1 2001-03-09 André Pönitz <poenitz@htwm.de>
2 * math_cursor.C: use std::vector<> in MathStackXIter
3 change selstk from a pointer to the "real thing"
5 * math_rowst.h: new MathedRowContainer::erase method
7 * math_xiter.C: use MathedRowContainer::erase
9 * math_parser.C: use MathedRowContainer::insert_after
11 2001-03-08 André Pönitz <poenitz@htwm.de>
12 * math_rowst.h: give MathedRowContainer an 'insert' method.
14 * math_xiter.C: new 'container()' method to encapsulated access to
15 the MathParInset's MathedRowContainer
17 * math_rowst.h: proper copy constructor and destructor for
20 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
21 automatically created by the compiler are ok now.
23 2001-03-06 André Pönitz <poenitz@htwm.de>
24 * array.[Ch]: factor out deep_copy,
25 remove third argument from raw_pointer_insert
27 * math_iter.[Ch]: remove unused function Clear()
29 * math_cursor.C: change signature of MathStackXIter:push()
32 * math_rowst.h: introduction of MathRowContainer
33 several files: corresponding changes
35 2001-03-04 André Pönitz <poenitz@htwm.de>
36 * math_macrotemplate.[Ch]:
37 math_macro.C: move update() functionality to the macro
39 * math_rowst.h: split MathedRowSt into "data" and "list"
41 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
43 * math_macrotemplate.C (update): use MathMacro::getArg, and
44 receive a const reference.
45 (getMacroPar): add an Assert
47 * math_macrotemplate.h: make MathMacro a friend, make update take
50 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
51 and store a MathMacroArgument in the vector
52 * math_macro.C: changes because of the above.
55 * math_parser.C (mathed_parse): plug potential leak
57 * math_iter.h: add comment on virtual destructor
59 * math_iter.C (Delete): make c const
61 * math_parinset.C (Metrics): cleanup indent. make one string const.
63 * math_inset.C (size): move out of line
66 * math_macroarg.h: remove default constructor
68 * math_macroarg.C: include Lsstream.h instead of debug.h
69 (MathMacroArgument): remove default constructor
70 (Write): add std:: on ostream arg
72 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
75 * formula.C: make DEBUG into lyxerr
77 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
79 * math_macrotemplate.h: make noncopyable, remove last arg to
80 constructor, remove flags_ add edit_
81 (flags): remove method
83 * math_macrotemplate.C (setArgument): delete method
84 (update): make idx const
85 (Metrics): use edit_, remove flags_
86 (draw): use edit_, remove flags_
87 (setEditMode): set edit_, remove flags_
88 (MathMacroTemplate): initialize edit_, remove flags_
90 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
91 shared_ptr, let constructor take a shared_ptr
93 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
95 (draw): remove unneded update, remove removed update of x,y
96 (GetXY): call tmplates GetMacroXY directly
97 (SetFocus): call Metrics() instead of update()
98 (Write): remove support for math macro environments, simplifications.
100 * math_macrotable.h: make class noncopyable, change getMacro to
101 createMacro, change vector to map store a
102 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
104 * math_macrotable.C: add pragma
105 (createMacro): change name from getMacro, use shared_ptr
106 (getTemplate): Use map lookup to get macro, return shared_ptr
107 (addTemplate): assert that m containse a valid pointer, use map[]
109 (builtinMacros): by using shared_ptr fix the mem leak, remove
110 commented out unsupported macros
112 * math_cursor.C: changes because of the above
113 * math_parser.C: changes because of the abobe
115 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
116 default arg on constructor.
117 * formulamacro.C: changes because of the above
119 * math_parinset.h: add pragma
120 (SetAlign): move inline out of class def
124 (setArgumentIdx): ditto
125 (setNextArgIdx): ditto
126 (getArgumentIdx): ditto
127 (getMaxArgumentIdx): ditto
132 * math_parinset.C: add pragma
133 (Write): change the else clause, lessen depth
135 * math_macroarg.h: small whitespace change
137 * array.C: include support/LOstream.h add using ostream and endl
139 * array.h (dump): add std:: on ostream
141 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
143 * math_macrotemplate.h: remove default arg on update
145 * math_macrotemplate.C (update): add assert and remove noop case.
147 * formulamacro.C (Read): add comment.
148 (ascent): remove noop call to MathMacroTemplate
153 * math_parser.C (mathed_parse): fix another potential problem by
154 passing a freestanding mathedarray.
156 * math_root.C (GetData): add const version
158 * math_parinset.C (~MathParInset): delete
159 (GetData): add const version
161 * math_matrixinset.C (MathMatrixInset): delete pointer version,
162 make it a proper copy constructor instead
164 (MathMatrixInset): remvoe default val for m and n
166 * math_macro.C (GetData): add const version
168 * math_fracinset.C (GetData): add const version
170 * math_cursor.C (SelCopy): make p1 and p2 const
171 (SelCut): make p1 and p2 const
173 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
174 (LyxCode): move inline out of class
178 * array.[Ch] (dump): method added for debugging purposes
180 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
181 mathed_parse when reading a matrix.
183 * math_spaceinset.[Ch]: add pragma, make variables private add
184 '_', change order of method definitions.
186 * math_root.h (~MathRootInset): delete
187 Change uroot_ to be a real object instead of a pointer
188 * math_root.C: changes because of the above
190 * math_macro.C (MathMacro(MathMacro*)): delete constructor
191 (MathMacro(MathMacro const &)): new copy constructor
193 * math_inset.h: delete constructor taking a pointer to MathedInset
194 (size, incSize): move inline method
196 * math_funcinset.h: add pragma, remove class vars ln and fname,
197 change protected to private, add '_' to priv vars.
198 (~MathFuncInset): remove
200 * math_fracinset.h: make MathParInset den_ a real object and not a
203 * math_fracinset.C (MathFracInset): clean up, move initalization
204 to initialization list
205 (~MathFracInset): remove
208 * math_draw.C: delete file
210 * math_dotsinset.[Ch]: add pragma
212 * math_bigopinset.h: make protected variables private add '_' to vars.
214 * math_bigopinset.C: move methods to follow class definition order
216 * math_accentinset.h (getAccentCode): move inline here
218 * math_accentinset.C (MathAccentInset): cleanup
221 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
223 * math_inset.[Ch] (MathedInset): remove method
225 * Makefile.am (libmathed_la_SOURCES): correct typo
227 * math_parinset.C (draw): move MathedXiter data(this) up. and
228 remove it two other places.
230 * math_macro.C (MathMacro): use array directly, don't use
231 setArgumentIdx and GetData
233 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
235 * math_macroarg.C (MathMacroArgument): delete
236 * math_macro.C (~MathMacro): delete
237 * math_macrotemplate.C (~MathMacroTemplate): delete
239 * math_decorationinset.[Ch]: add pragma
240 * math_deliminset.[Ch]: likewise
241 * math_fracinset.[Ch]: likewise
242 * math_macroarg.[Ch]: likewise
243 * math_macrotemplate.[Ch]: likewise
244 * math_matrixinset.[Ch]: likewise
246 * formulamacro.C (Read): set contents of tmacro_ to ar.
248 * formulamacro.h: add '_' to private variables.
249 * formalamacro.C: changes because of this.
251 2001-02-23 Juergen Vigna <jug@sad.it>
253 * formula.C (LocalDispatch): changed action to be a kb_action (as it
254 should be) and not an int.
256 * formulamacro.C (LocalDispatch): ditto.
258 2001-02-14 André Pönitz <poenitz@htwm.de>
260 * math_parinset.[Ch]: make array a real MathArray, not just a
263 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
265 * several files: subsequent changes
267 * math_cursor.C: make selarray a proper MathArray
269 * several files: Change "MathedArray *" to "MathedArray &"
272 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
274 * array.C (MathedArray): Fix compilation problem.
276 2001-02-14 André Pönitz <poenitz@htwm.de>
278 * array.[Ch]: "deep" copy constructor and assignment operator for
281 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
283 * math_iter.[Ch]: remove SetData
284 several files: subsequent changes
286 2001-02-14 André Pönitz <poenitz@htwm.de>
288 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
291 * math_iter.C: default-construct and resize array
293 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
295 * math_xiter.h: move ipush and ipop to public, add _ on private
296 variables, move protected var to private, remove friend.
298 * math_cursor.C (insertInset): rename method from Insert also
299 remove default arg val. Call the public methods of xiter instead
300 of private variables.
302 * changes to several files because of the above.
304 2001-02-14 André Pönitz <poenitz@htwm.de>
306 * math_iter.[Ch]: hide fcode_
308 * math_parinset.C: subsequent changes
311 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
313 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
316 * math_write.C: delete file
317 * math_delim.C: delete file
318 * marh_sqrtinset.h: delete file
320 * move funcs to more localized files, more general cleanup.
321 Constify several local vars. Doxygen changes. Formatting.
323 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
325 * support.C: add some consts
327 * matriz.C: clean up a bit.
328 (matmat): remove the for loop.
330 * several files: changes so that several friends can be removed
332 2001-02-14 André Pönitz <poenitz@htwm.de>
334 * formula.C: reformatting
338 math_xiter.[Ch]: remove unneeded members
340 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
344 * formula.C: remove cruft
346 * array.C (begin): new method
349 2001-02-14 André Pönitz <poenitz@htwm.de>
351 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
353 * math_cursor.C: reformatting
355 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
359 * math_matrixinset.C:
360 * math_macrotemplate.C:
365 * math_decorationinset.C:
367 * math_accentinset.C:
368 * math_sqrtinset.C: include LOstream.h and add using directive.
370 2001-02-14 André Pönitz <poenitz@htwm.de>
372 * math_iter.C: reformatting
374 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
376 * math_spaceinset.C (GetSpace): move here
378 * math_parinset.C: add debug.h, move several prev. inlined methods
381 * math_macrotable.C math_xiter.C support.C: add debug.h
383 * math_macro.h: remove debug.h, remove typedefs
385 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
388 * math_hash.C: change some defines to int const. change use of
389 LM_TC_NORMAL to LM_TC_VAR
391 * math_draw.C: delete file
393 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
394 forward decls. remove LM_TC_NORMAL, move inline methods to
395 support.C (and support.h)
397 * math_cursor.C: move several previous inlined methods here
399 * math_bigopinset.h math_dotsinset.h math_funcinset.h
400 math_parinset.h math_spaceinset.h: add math_defs.h
402 * math_accentinset.h: add support.h and math_defs.h
404 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
406 * formula.h: remove unused func decl: OpenMathInset
408 * formula.C math_inset.h: get rid of math_defs.h
410 * array.h: switch to support.h instead of math_defs.h
412 * array.C: remove one include
414 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
416 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
418 * math_parser.C: include macrotable and macrotemplate
420 * math_macrotemplate.[Ch]: new files
422 * math_macrotable.[Ch]: new files
424 * math_macroarg.[Ch]: new files
426 * math_macro.C: move stuff to the new files.
428 * math_cursor.C: include math_macrotable.h
430 * macro_support.[Ch]: new files
432 * formulamacro.C: add more includes
434 * Makefile.am (libmathed_la_SOURCES): add new files.
436 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * Makefile.am (libmathed_la_SOURCES): remove duplicate
443 * math_parinset.C: add a bunch of "using" directives.
446 * math_decorationinset.h:
448 * math_spaceinset.h: remove more couples of inline.
450 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
452 * math_xiter.h: remove a couple of "inline"
454 * array.C (strange_copy): fix bug (hopefully)
455 * many files: add a lot of new files and move methods to the class
456 files they belong to. Only first attempt at cleanup more will
459 2001-02-12 André Pönitz <poenitz@htwm.de>
461 * math_macro.[hC]: replace MathMacroArgument[] with
462 std::vector<MathMacroArgument>
464 math_inset.C: replace int[] with std::vector<int>
466 * math_symbols.C: replace FL_OBJECTP[] with
467 std::vector<FL_OBJECT*>
469 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
471 * math_defs.h (struct MathedRowSt): make all private variables end
472 with '_', initialize in initializer list instead of in function
475 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
477 * formula.C (LocalDispatch): Change the default action of
478 break-line to create an align* environment instead of eqnarray*.
480 * math_inset.C (Metrics): Correct drawing of the multline
483 2001-02-12 André Pönitz <poenitz@htwm.de>
485 * array.[hC]: replace private variable maxsize_ with call to
487 * math_defs.h: replace int[] by std::vector<int> for
490 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
492 * array.h: made all variables private, removed friend, added new
493 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
494 non const operator[] added setter for last and getter for maxsize.
495 changed name from LyxArrayBase to MathedArray.
496 changed name of some methods to start with lowerchar.
497 moved inline methods to array.C
499 * math_iter.C + several file: changes because of the above.
501 * array.C: new file with the prev inline methods.
503 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
505 * Many files: add support for the align environment from amsmath.
507 2001-02-09 André Pönitz <poenitz@htwm.de>
509 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
510 * several files: subsequent changes
511 * math_iter.h: remove unused prototype
514 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
516 * math_macro.C (draw): add .c_str() to .str() (useful when
517 compiling with lyxstring, but STL sstream).
520 2001-02-08 André Pönitz <poenitz@htwm.de>
522 * several files: get rid of reinterpret_cast.
524 2001-02-04 Allan Rae <rae@lyx.org>
526 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
527 just casting the variable.
529 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
531 * Many files: Add support for multline and alignat environments from
534 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
536 * math_symbols.C (math_insert_greek): Move cursor right when
537 unlocking the math inset.
539 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
541 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
543 * formula.C (LocalDispatch): Before inserting a label in an
544 eqnarray, move the cursor to the top level.
546 * math_iter.C (getLabel): Test if crow == 0.
548 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
550 * math_draw.C (Metrics): Use the correct GetString.