1 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
3 * math_cursor.C: added using directive.
5 2001-03-15 André Pönitz <poenitz@htwm.de>
6 * math_rowst.h: Finally remove MathedRowSt
9 math_xiter.C: changed accordingly
11 2001-03-12 André Pönitz <poenitz@htwm.de>
12 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
13 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
15 2001-03-10 André Pönitz <poenitz@htwm.de>
17 math_matrixinset.C: move adjustVerticalSt to the only place where
18 it is used. Fix a small bug where the cached row structure and the
19 actual data get out of sync after the deletion of whole rows
21 2001-03-09 André Pönitz <poenitz@htwm.de>
22 * math_cursor.C: use std::vector<> in MathStackXIter
23 change selstk from a pointer to the "real thing"
25 * math_rowst.h: new MathedRowContainer::erase method
27 * math_xiter.C: use MathedRowContainer::erase
29 * math_parser.C: use MathedRowContainer::insert_after
31 2001-03-08 André Pönitz <poenitz@htwm.de>
32 * math_rowst.h: give MathedRowContainer an 'insert' method.
34 * math_xiter.C: new 'container()' method to encapsulated access to
35 the MathParInset's MathedRowContainer
37 * math_rowst.h: proper copy constructor and destructor for
40 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
41 automatically created by the compiler are ok now.
43 2001-03-06 André Pönitz <poenitz@htwm.de>
44 * array.[Ch]: factor out deep_copy,
45 remove third argument from raw_pointer_insert
47 * math_iter.[Ch]: remove unused function Clear()
49 * math_cursor.C: change signature of MathStackXIter:push()
52 * math_rowst.h: introduction of MathRowContainer
53 several files: corresponding changes
55 2001-03-04 André Pönitz <poenitz@htwm.de>
56 * math_macrotemplate.[Ch]:
57 math_macro.C: move update() functionality to the macro
59 * math_rowst.h: split MathedRowSt into "data" and "list"
61 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
63 * math_macrotemplate.C (update): use MathMacro::getArg, and
64 receive a const reference.
65 (getMacroPar): add an Assert
67 * math_macrotemplate.h: make MathMacro a friend, make update take
70 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
71 and store a MathMacroArgument in the vector
72 * math_macro.C: changes because of the above.
75 * math_parser.C (mathed_parse): plug potential leak
77 * math_iter.h: add comment on virtual destructor
79 * math_iter.C (Delete): make c const
81 * math_parinset.C (Metrics): cleanup indent. make one string const.
83 * math_inset.C (size): move out of line
86 * math_macroarg.h: remove default constructor
88 * math_macroarg.C: include Lsstream.h instead of debug.h
89 (MathMacroArgument): remove default constructor
90 (Write): add std:: on ostream arg
92 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
95 * formula.C: make DEBUG into lyxerr
97 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
99 * math_macrotemplate.h: make noncopyable, remove last arg to
100 constructor, remove flags_ add edit_
101 (flags): remove method
103 * math_macrotemplate.C (setArgument): delete method
104 (update): make idx const
105 (Metrics): use edit_, remove flags_
106 (draw): use edit_, remove flags_
107 (setEditMode): set edit_, remove flags_
108 (MathMacroTemplate): initialize edit_, remove flags_
110 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
111 shared_ptr, let constructor take a shared_ptr
113 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
115 (draw): remove unneded update, remove removed update of x,y
116 (GetXY): call tmplates GetMacroXY directly
117 (SetFocus): call Metrics() instead of update()
118 (Write): remove support for math macro environments, simplifications.
120 * math_macrotable.h: make class noncopyable, change getMacro to
121 createMacro, change vector to map store a
122 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
124 * math_macrotable.C: add pragma
125 (createMacro): change name from getMacro, use shared_ptr
126 (getTemplate): Use map lookup to get macro, return shared_ptr
127 (addTemplate): assert that m containse a valid pointer, use map[]
129 (builtinMacros): by using shared_ptr fix the mem leak, remove
130 commented out unsupported macros
132 * math_cursor.C: changes because of the above
133 * math_parser.C: changes because of the abobe
135 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
136 default arg on constructor.
137 * formulamacro.C: changes because of the above
139 * math_parinset.h: add pragma
140 (SetAlign): move inline out of class def
144 (setArgumentIdx): ditto
145 (setNextArgIdx): ditto
146 (getArgumentIdx): ditto
147 (getMaxArgumentIdx): ditto
152 * math_parinset.C: add pragma
153 (Write): change the else clause, lessen depth
155 * math_macroarg.h: small whitespace change
157 * array.C: include support/LOstream.h add using ostream and endl
159 * array.h (dump): add std:: on ostream
161 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
163 * math_macrotemplate.h: remove default arg on update
165 * math_macrotemplate.C (update): add assert and remove noop case.
167 * formulamacro.C (Read): add comment.
168 (ascent): remove noop call to MathMacroTemplate
173 * math_parser.C (mathed_parse): fix another potential problem by
174 passing a freestanding mathedarray.
176 * math_root.C (GetData): add const version
178 * math_parinset.C (~MathParInset): delete
179 (GetData): add const version
181 * math_matrixinset.C (MathMatrixInset): delete pointer version,
182 make it a proper copy constructor instead
184 (MathMatrixInset): remvoe default val for m and n
186 * math_macro.C (GetData): add const version
188 * math_fracinset.C (GetData): add const version
190 * math_cursor.C (SelCopy): make p1 and p2 const
191 (SelCut): make p1 and p2 const
193 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
194 (LyxCode): move inline out of class
198 * array.[Ch] (dump): method added for debugging purposes
200 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
201 mathed_parse when reading a matrix.
203 * math_spaceinset.[Ch]: add pragma, make variables private add
204 '_', change order of method definitions.
206 * math_root.h (~MathRootInset): delete
207 Change uroot_ to be a real object instead of a pointer
208 * math_root.C: changes because of the above
210 * math_macro.C (MathMacro(MathMacro*)): delete constructor
211 (MathMacro(MathMacro const &)): new copy constructor
213 * math_inset.h: delete constructor taking a pointer to MathedInset
214 (size, incSize): move inline method
216 * math_funcinset.h: add pragma, remove class vars ln and fname,
217 change protected to private, add '_' to priv vars.
218 (~MathFuncInset): remove
220 * math_fracinset.h: make MathParInset den_ a real object and not a
223 * math_fracinset.C (MathFracInset): clean up, move initalization
224 to initialization list
225 (~MathFracInset): remove
228 * math_draw.C: delete file
230 * math_dotsinset.[Ch]: add pragma
232 * math_bigopinset.h: make protected variables private add '_' to vars.
234 * math_bigopinset.C: move methods to follow class definition order
236 * math_accentinset.h (getAccentCode): move inline here
238 * math_accentinset.C (MathAccentInset): cleanup
241 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
243 * math_inset.[Ch] (MathedInset): remove method
245 * Makefile.am (libmathed_la_SOURCES): correct typo
247 * math_parinset.C (draw): move MathedXiter data(this) up. and
248 remove it two other places.
250 * math_macro.C (MathMacro): use array directly, don't use
251 setArgumentIdx and GetData
253 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
255 * math_macroarg.C (MathMacroArgument): delete
256 * math_macro.C (~MathMacro): delete
257 * math_macrotemplate.C (~MathMacroTemplate): delete
259 * math_decorationinset.[Ch]: add pragma
260 * math_deliminset.[Ch]: likewise
261 * math_fracinset.[Ch]: likewise
262 * math_macroarg.[Ch]: likewise
263 * math_macrotemplate.[Ch]: likewise
264 * math_matrixinset.[Ch]: likewise
266 * formulamacro.C (Read): set contents of tmacro_ to ar.
268 * formulamacro.h: add '_' to private variables.
269 * formalamacro.C: changes because of this.
271 2001-02-23 Juergen Vigna <jug@sad.it>
273 * formula.C (LocalDispatch): changed action to be a kb_action (as it
274 should be) and not an int.
276 * formulamacro.C (LocalDispatch): ditto.
278 2001-02-14 André Pönitz <poenitz@htwm.de>
280 * math_parinset.[Ch]: make array a real MathArray, not just a
283 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
285 * several files: subsequent changes
287 * math_cursor.C: make selarray a proper MathArray
289 * several files: Change "MathedArray *" to "MathedArray &"
292 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
294 * array.C (MathedArray): Fix compilation problem.
296 2001-02-14 André Pönitz <poenitz@htwm.de>
298 * array.[Ch]: "deep" copy constructor and assignment operator for
301 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
303 * math_iter.[Ch]: remove SetData
304 several files: subsequent changes
306 2001-02-14 André Pönitz <poenitz@htwm.de>
308 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
311 * math_iter.C: default-construct and resize array
313 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
315 * math_xiter.h: move ipush and ipop to public, add _ on private
316 variables, move protected var to private, remove friend.
318 * math_cursor.C (insertInset): rename method from Insert also
319 remove default arg val. Call the public methods of xiter instead
320 of private variables.
322 * changes to several files because of the above.
324 2001-02-14 André Pönitz <poenitz@htwm.de>
326 * math_iter.[Ch]: hide fcode_
328 * math_parinset.C: subsequent changes
331 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
333 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
336 * math_write.C: delete file
337 * math_delim.C: delete file
338 * marh_sqrtinset.h: delete file
340 * move funcs to more localized files, more general cleanup.
341 Constify several local vars. Doxygen changes. Formatting.
343 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
345 * support.C: add some consts
347 * matriz.C: clean up a bit.
348 (matmat): remove the for loop.
350 * several files: changes so that several friends can be removed
352 2001-02-14 André Pönitz <poenitz@htwm.de>
354 * formula.C: reformatting
358 math_xiter.[Ch]: remove unneeded members
360 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
364 * formula.C: remove cruft
366 * array.C (begin): new method
369 2001-02-14 André Pönitz <poenitz@htwm.de>
371 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
373 * math_cursor.C: reformatting
375 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
379 * math_matrixinset.C:
380 * math_macrotemplate.C:
385 * math_decorationinset.C:
387 * math_accentinset.C:
388 * math_sqrtinset.C: include LOstream.h and add using directive.
390 2001-02-14 André Pönitz <poenitz@htwm.de>
392 * math_iter.C: reformatting
394 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
396 * math_spaceinset.C (GetSpace): move here
398 * math_parinset.C: add debug.h, move several prev. inlined methods
401 * math_macrotable.C math_xiter.C support.C: add debug.h
403 * math_macro.h: remove debug.h, remove typedefs
405 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
408 * math_hash.C: change some defines to int const. change use of
409 LM_TC_NORMAL to LM_TC_VAR
411 * math_draw.C: delete file
413 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
414 forward decls. remove LM_TC_NORMAL, move inline methods to
415 support.C (and support.h)
417 * math_cursor.C: move several previous inlined methods here
419 * math_bigopinset.h math_dotsinset.h math_funcinset.h
420 math_parinset.h math_spaceinset.h: add math_defs.h
422 * math_accentinset.h: add support.h and math_defs.h
424 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
426 * formula.h: remove unused func decl: OpenMathInset
428 * formula.C math_inset.h: get rid of math_defs.h
430 * array.h: switch to support.h instead of math_defs.h
432 * array.C: remove one include
434 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
436 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
438 * math_parser.C: include macrotable and macrotemplate
440 * math_macrotemplate.[Ch]: new files
442 * math_macrotable.[Ch]: new files
444 * math_macroarg.[Ch]: new files
446 * math_macro.C: move stuff to the new files.
448 * math_cursor.C: include math_macrotable.h
450 * macro_support.[Ch]: new files
452 * formulamacro.C: add more includes
454 * Makefile.am (libmathed_la_SOURCES): add new files.
456 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
458 * Makefile.am (libmathed_la_SOURCES): remove duplicate
463 * math_parinset.C: add a bunch of "using" directives.
466 * math_decorationinset.h:
468 * math_spaceinset.h: remove more couples of inline.
470 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
472 * math_xiter.h: remove a couple of "inline"
474 * array.C (strange_copy): fix bug (hopefully)
475 * many files: add a lot of new files and move methods to the class
476 files they belong to. Only first attempt at cleanup more will
479 2001-02-12 André Pönitz <poenitz@htwm.de>
481 * math_macro.[hC]: replace MathMacroArgument[] with
482 std::vector<MathMacroArgument>
484 math_inset.C: replace int[] with std::vector<int>
486 * math_symbols.C: replace FL_OBJECTP[] with
487 std::vector<FL_OBJECT*>
489 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
491 * math_defs.h (struct MathedRowSt): make all private variables end
492 with '_', initialize in initializer list instead of in function
495 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
497 * formula.C (LocalDispatch): Change the default action of
498 break-line to create an align* environment instead of eqnarray*.
500 * math_inset.C (Metrics): Correct drawing of the multline
503 2001-02-12 André Pönitz <poenitz@htwm.de>
505 * array.[hC]: replace private variable maxsize_ with call to
507 * math_defs.h: replace int[] by std::vector<int> for
510 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
512 * array.h: made all variables private, removed friend, added new
513 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
514 non const operator[] added setter for last and getter for maxsize.
515 changed name from LyxArrayBase to MathedArray.
516 changed name of some methods to start with lowerchar.
517 moved inline methods to array.C
519 * math_iter.C + several file: changes because of the above.
521 * array.C: new file with the prev inline methods.
523 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
525 * Many files: add support for the align environment from amsmath.
527 2001-02-09 André Pönitz <poenitz@htwm.de>
529 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
530 * several files: subsequent changes
531 * math_iter.h: remove unused prototype
534 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
536 * math_macro.C (draw): add .c_str() to .str() (useful when
537 compiling with lyxstring, but STL sstream).
540 2001-02-08 André Pönitz <poenitz@htwm.de>
542 * several files: get rid of reinterpret_cast.
544 2001-02-04 Allan Rae <rae@lyx.org>
546 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
547 just casting the variable.
549 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
551 * Many files: Add support for multline and alignat environments from
554 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
556 * math_symbols.C (math_insert_greek): Move cursor right when
557 unlocking the math inset.
559 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
561 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
563 * formula.C (LocalDispatch): Before inserting a label in an
564 eqnarray, move the cursor to the top level.
566 * math_iter.C (getLabel): Test if crow == 0.
568 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
570 * math_draw.C (Metrics): Use the correct GetString.