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 2001-03-08 André Pönitz <poenitz@htwm.de>
10 * math_rowst.h: give MathedRowContainer an 'insert' method.
12 * math_xiter.C: new 'container()' method to encapsulated access to
13 the MathParInset's MathedRowContainer
15 * math_rowst.h: proper copy constructor and destructor for
18 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
19 automatically created by the compiler are ok now.
21 2001-03-06 André Pönitz <poenitz@htwm.de>
22 * array.[Ch]: factor out deep_copy,
23 remove third argument from raw_pointer_insert
25 * math_iter.[Ch]: remove unused function Clear()
27 * math_cursor.C: change signature of MathStackXIter:push()
30 * math_rowst.h: introduction of MathRowContainer
31 several files: corresponding changes
33 2001-03-04 André Pönitz <poenitz@htwm.de>
34 * math_macrotemplate.[Ch]:
35 math_macro.C: move update() functionality to the macro
37 * math_rowst.h: split MathedRowSt into "data" and "list"
39 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
41 * math_macrotemplate.C (update): use MathMacro::getArg, and
42 receive a const reference.
43 (getMacroPar): add an Assert
45 * math_macrotemplate.h: make MathMacro a friend, make update take
48 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
49 and store a MathMacroArgument in the vector
50 * math_macro.C: changes because of the above.
53 * math_parser.C (mathed_parse): plug potential leak
55 * math_iter.h: add comment on virtual destructor
57 * math_iter.C (Delete): make c const
59 * math_parinset.C (Metrics): cleanup indent. make one string const.
61 * math_inset.C (size): move out of line
64 * math_macroarg.h: remove default constructor
66 * math_macroarg.C: include Lsstream.h instead of debug.h
67 (MathMacroArgument): remove default constructor
68 (Write): add std:: on ostream arg
70 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
73 * formula.C: make DEBUG into lyxerr
75 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
77 * math_macrotemplate.h: make noncopyable, remove last arg to
78 constructor, remove flags_ add edit_
79 (flags): remove method
81 * math_macrotemplate.C (setArgument): delete method
82 (update): make idx const
83 (Metrics): use edit_, remove flags_
84 (draw): use edit_, remove flags_
85 (setEditMode): set edit_, remove flags_
86 (MathMacroTemplate): initialize edit_, remove flags_
88 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
89 shared_ptr, let constructor take a shared_ptr
91 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
93 (draw): remove unneded update, remove removed update of x,y
94 (GetXY): call tmplates GetMacroXY directly
95 (SetFocus): call Metrics() instead of update()
96 (Write): remove support for math macro environments, simplifications.
98 * math_macrotable.h: make class noncopyable, change getMacro to
99 createMacro, change vector to map store a
100 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
102 * math_macrotable.C: add pragma
103 (createMacro): change name from getMacro, use shared_ptr
104 (getTemplate): Use map lookup to get macro, return shared_ptr
105 (addTemplate): assert that m containse a valid pointer, use map[]
107 (builtinMacros): by using shared_ptr fix the mem leak, remove
108 commented out unsupported macros
110 * math_cursor.C: changes because of the above
111 * math_parser.C: changes because of the abobe
113 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
114 default arg on constructor.
115 * formulamacro.C: changes because of the above
117 * math_parinset.h: add pragma
118 (SetAlign): move inline out of class def
122 (setArgumentIdx): ditto
123 (setNextArgIdx): ditto
124 (getArgumentIdx): ditto
125 (getMaxArgumentIdx): ditto
130 * math_parinset.C: add pragma
131 (Write): change the else clause, lessen depth
133 * math_macroarg.h: small whitespace change
135 * array.C: include support/LOstream.h add using ostream and endl
137 * array.h (dump): add std:: on ostream
139 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
141 * math_macrotemplate.h: remove default arg on update
143 * math_macrotemplate.C (update): add assert and remove noop case.
145 * formulamacro.C (Read): add comment.
146 (ascent): remove noop call to MathMacroTemplate
151 * math_parser.C (mathed_parse): fix another potential problem by
152 passing a freestanding mathedarray.
154 * math_root.C (GetData): add const version
156 * math_parinset.C (~MathParInset): delete
157 (GetData): add const version
159 * math_matrixinset.C (MathMatrixInset): delete pointer version,
160 make it a proper copy constructor instead
162 (MathMatrixInset): remvoe default val for m and n
164 * math_macro.C (GetData): add const version
166 * math_fracinset.C (GetData): add const version
168 * math_cursor.C (SelCopy): make p1 and p2 const
169 (SelCut): make p1 and p2 const
171 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
172 (LyxCode): move inline out of class
176 * array.[Ch] (dump): method added for debugging purposes
178 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
179 mathed_parse when reading a matrix.
181 * math_spaceinset.[Ch]: add pragma, make variables private add
182 '_', change order of method definitions.
184 * math_root.h (~MathRootInset): delete
185 Change uroot_ to be a real object instead of a pointer
186 * math_root.C: changes because of the above
188 * math_macro.C (MathMacro(MathMacro*)): delete constructor
189 (MathMacro(MathMacro const &)): new copy constructor
191 * math_inset.h: delete constructor taking a pointer to MathedInset
192 (size, incSize): move inline method
194 * math_funcinset.h: add pragma, remove class vars ln and fname,
195 change protected to private, add '_' to priv vars.
196 (~MathFuncInset): remove
198 * math_fracinset.h: make MathParInset den_ a real object and not a
201 * math_fracinset.C (MathFracInset): clean up, move initalization
202 to initialization list
203 (~MathFracInset): remove
206 * math_draw.C: delete file
208 * math_dotsinset.[Ch]: add pragma
210 * math_bigopinset.h: make protected variables private add '_' to vars.
212 * math_bigopinset.C: move methods to follow class definition order
214 * math_accentinset.h (getAccentCode): move inline here
216 * math_accentinset.C (MathAccentInset): cleanup
219 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
221 * math_inset.[Ch] (MathedInset): remove method
223 * Makefile.am (libmathed_la_SOURCES): correct typo
225 * math_parinset.C (draw): move MathedXiter data(this) up. and
226 remove it two other places.
228 * math_macro.C (MathMacro): use array directly, don't use
229 setArgumentIdx and GetData
231 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
233 * math_macroarg.C (MathMacroArgument): delete
234 * math_macro.C (~MathMacro): delete
235 * math_macrotemplate.C (~MathMacroTemplate): delete
237 * math_decorationinset.[Ch]: add pragma
238 * math_deliminset.[Ch]: likewise
239 * math_fracinset.[Ch]: likewise
240 * math_macroarg.[Ch]: likewise
241 * math_macrotemplate.[Ch]: likewise
242 * math_matrixinset.[Ch]: likewise
244 * formulamacro.C (Read): set contents of tmacro_ to ar.
246 * formulamacro.h: add '_' to private variables.
247 * formalamacro.C: changes because of this.
249 2001-02-23 Juergen Vigna <jug@sad.it>
251 * formula.C (LocalDispatch): changed action to be a kb_action (as it
252 should be) and not an int.
254 * formulamacro.C (LocalDispatch): ditto.
256 2001-02-14 André Pönitz <poenitz@htwm.de>
258 * math_parinset.[Ch]: make array a real MathArray, not just a
261 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
263 * several files: subsequent changes
265 * math_cursor.C: make selarray a proper MathArray
267 * several files: Change "MathedArray *" to "MathedArray &"
270 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
272 * array.C (MathedArray): Fix compilation problem.
274 2001-02-14 André Pönitz <poenitz@htwm.de>
276 * array.[Ch]: "deep" copy constructor and assignment operator for
279 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
281 * math_iter.[Ch]: remove SetData
282 several files: subsequent changes
284 2001-02-14 André Pönitz <poenitz@htwm.de>
286 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
289 * math_iter.C: default-construct and resize array
291 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
293 * math_xiter.h: move ipush and ipop to public, add _ on private
294 variables, move protected var to private, remove friend.
296 * math_cursor.C (insertInset): rename method from Insert also
297 remove default arg val. Call the public methods of xiter instead
298 of private variables.
300 * changes to several files because of the above.
302 2001-02-14 André Pönitz <poenitz@htwm.de>
304 * math_iter.[Ch]: hide fcode_
306 * math_parinset.C: subsequent changes
309 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
311 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
314 * math_write.C: delete file
315 * math_delim.C: delete file
316 * marh_sqrtinset.h: delete file
318 * move funcs to more localized files, more general cleanup.
319 Constify several local vars. Doxygen changes. Formatting.
321 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
323 * support.C: add some consts
325 * matriz.C: clean up a bit.
326 (matmat): remove the for loop.
328 * several files: changes so that several friends can be removed
330 2001-02-14 André Pönitz <poenitz@htwm.de>
332 * formula.C: reformatting
336 math_xiter.[Ch]: remove unneeded members
338 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
342 * formula.C: remove cruft
344 * array.C (begin): new method
347 2001-02-14 André Pönitz <poenitz@htwm.de>
349 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
351 * math_cursor.C: reformatting
353 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
357 * math_matrixinset.C:
358 * math_macrotemplate.C:
363 * math_decorationinset.C:
365 * math_accentinset.C:
366 * math_sqrtinset.C: include LOstream.h and add using directive.
368 2001-02-14 André Pönitz <poenitz@htwm.de>
370 * math_iter.C: reformatting
372 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
374 * math_spaceinset.C (GetSpace): move here
376 * math_parinset.C: add debug.h, move several prev. inlined methods
379 * math_macrotable.C math_xiter.C support.C: add debug.h
381 * math_macro.h: remove debug.h, remove typedefs
383 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
386 * math_hash.C: change some defines to int const. change use of
387 LM_TC_NORMAL to LM_TC_VAR
389 * math_draw.C: delete file
391 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
392 forward decls. remove LM_TC_NORMAL, move inline methods to
393 support.C (and support.h)
395 * math_cursor.C: move several previous inlined methods here
397 * math_bigopinset.h math_dotsinset.h math_funcinset.h
398 math_parinset.h math_spaceinset.h: add math_defs.h
400 * math_accentinset.h: add support.h and math_defs.h
402 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
404 * formula.h: remove unused func decl: OpenMathInset
406 * formula.C math_inset.h: get rid of math_defs.h
408 * array.h: switch to support.h instead of math_defs.h
410 * array.C: remove one include
412 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
414 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
416 * math_parser.C: include macrotable and macrotemplate
418 * math_macrotemplate.[Ch]: new files
420 * math_macrotable.[Ch]: new files
422 * math_macroarg.[Ch]: new files
424 * math_macro.C: move stuff to the new files.
426 * math_cursor.C: include math_macrotable.h
428 * macro_support.[Ch]: new files
430 * formulamacro.C: add more includes
432 * Makefile.am (libmathed_la_SOURCES): add new files.
434 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
436 * Makefile.am (libmathed_la_SOURCES): remove duplicate
441 * math_parinset.C: add a bunch of "using" directives.
444 * math_decorationinset.h:
446 * math_spaceinset.h: remove more couples of inline.
448 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
450 * math_xiter.h: remove a couple of "inline"
452 * array.C (strange_copy): fix bug (hopefully)
453 * many files: add a lot of new files and move methods to the class
454 files they belong to. Only first attempt at cleanup more will
457 2001-02-12 André Pönitz <poenitz@htwm.de>
459 * math_macro.[hC]: replace MathMacroArgument[] with
460 std::vector<MathMacroArgument>
462 math_inset.C: replace int[] with std::vector<int>
464 * math_symbols.C: replace FL_OBJECTP[] with
465 std::vector<FL_OBJECT*>
467 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
469 * math_defs.h (struct MathedRowSt): make all private variables end
470 with '_', initialize in initializer list instead of in function
473 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
475 * formula.C (LocalDispatch): Change the default action of
476 break-line to create an align* environment instead of eqnarray*.
478 * math_inset.C (Metrics): Correct drawing of the multline
481 2001-02-12 André Pönitz <poenitz@htwm.de>
483 * array.[hC]: replace private variable maxsize_ with call to
485 * math_defs.h: replace int[] by std::vector<int> for
488 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
490 * array.h: made all variables private, removed friend, added new
491 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
492 non const operator[] added setter for last and getter for maxsize.
493 changed name from LyxArrayBase to MathedArray.
494 changed name of some methods to start with lowerchar.
495 moved inline methods to array.C
497 * math_iter.C + several file: changes because of the above.
499 * array.C: new file with the prev inline methods.
501 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
503 * Many files: add support for the align environment from amsmath.
505 2001-02-09 André Pönitz <poenitz@htwm.de>
507 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
508 * several files: subsequent changes
509 * math_iter.h: remove unused prototype
512 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
514 * math_macro.C (draw): add .c_str() to .str() (useful when
515 compiling with lyxstring, but STL sstream).
518 2001-02-08 André Pönitz <poenitz@htwm.de>
520 * several files: get rid of reinterpret_cast.
522 2001-02-04 Allan Rae <rae@lyx.org>
524 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
525 just casting the variable.
527 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
529 * Many files: Add support for multline and alignat environments from
532 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
534 * math_symbols.C (math_insert_greek): Move cursor right when
535 unlocking the math inset.
537 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
539 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
541 * formula.C (LocalDispatch): Before inserting a label in an
542 eqnarray, move the cursor to the top level.
544 * math_iter.C (getLabel): Test if crow == 0.
546 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
548 * math_draw.C (Metrics): Use the correct GetString.