2 2001-03-15 André Pönitz <poenitz@htwm.de>
4 * math_parser.C: read '\nonumber' again (was broken)
6 * math_rowst.C: new file
8 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
10 * math_cursor.C: added using directive.
12 2001-03-15 André Pönitz <poenitz@htwm.de>
14 * math_rowst.h: Finally remove MathedRowSt
17 math_xiter.C: changed accordingly
19 2001-03-12 André Pönitz <poenitz@htwm.de>
21 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
22 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
24 2001-03-10 André Pönitz <poenitz@htwm.de>
27 math_matrixinset.C: move adjustVerticalSt to the only place where
28 it is used. Fix a small bug where the cached row structure and the
29 actual data get out of sync after the deletion of whole rows
31 2001-03-09 André Pönitz <poenitz@htwm.de>
33 * math_cursor.C: use std::vector<> in MathStackXIter
34 change selstk from a pointer to the "real thing"
36 * math_rowst.h: new MathedRowContainer::erase method
38 * math_xiter.C: use MathedRowContainer::erase
40 * math_parser.C: use MathedRowContainer::insert_after
42 2001-03-08 André Pönitz <poenitz@htwm.de>
44 * math_rowst.h: give MathedRowContainer an 'insert' method.
46 * math_xiter.C: new 'container()' method to encapsulated access to
47 the MathParInset's MathedRowContainer
49 * math_rowst.h: proper copy constructor and destructor for
52 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
53 automatically created by the compiler are ok now.
55 2001-03-06 André Pönitz <poenitz@htwm.de>
57 * array.[Ch]: factor out deep_copy,
58 remove third argument from raw_pointer_insert
60 * math_iter.[Ch]: remove unused function Clear()
62 * math_cursor.C: change signature of MathStackXIter:push()
65 * math_rowst.h: introduction of MathRowContainer
66 several files: corresponding changes
68 2001-03-04 André Pönitz <poenitz@htwm.de>
70 * math_macrotemplate.[Ch]:
71 math_macro.C: move update() functionality to the macro
73 * math_rowst.h: split MathedRowSt into "data" and "list"
75 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
77 * math_macrotemplate.C (update): use MathMacro::getArg, and
78 receive a const reference.
79 (getMacroPar): add an Assert
81 * math_macrotemplate.h: make MathMacro a friend, make update take
84 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
85 and store a MathMacroArgument in the vector
86 * math_macro.C: changes because of the above.
89 * math_parser.C (mathed_parse): plug potential leak
91 * math_iter.h: add comment on virtual destructor
93 * math_iter.C (Delete): make c const
95 * math_parinset.C (Metrics): cleanup indent. make one string const.
97 * math_inset.C (size): move out of line
100 * math_macroarg.h: remove default constructor
102 * math_macroarg.C: include Lsstream.h instead of debug.h
103 (MathMacroArgument): remove default constructor
104 (Write): add std:: on ostream arg
106 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
109 * formula.C: make DEBUG into lyxerr
111 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
113 * math_macrotemplate.h: make noncopyable, remove last arg to
114 constructor, remove flags_ add edit_
115 (flags): remove method
117 * math_macrotemplate.C (setArgument): delete method
118 (update): make idx const
119 (Metrics): use edit_, remove flags_
120 (draw): use edit_, remove flags_
121 (setEditMode): set edit_, remove flags_
122 (MathMacroTemplate): initialize edit_, remove flags_
124 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
125 shared_ptr, let constructor take a shared_ptr
127 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
129 (draw): remove unneded update, remove removed update of x,y
130 (GetXY): call tmplates GetMacroXY directly
131 (SetFocus): call Metrics() instead of update()
132 (Write): remove support for math macro environments, simplifications.
134 * math_macrotable.h: make class noncopyable, change getMacro to
135 createMacro, change vector to map store a
136 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
138 * math_macrotable.C: add pragma
139 (createMacro): change name from getMacro, use shared_ptr
140 (getTemplate): Use map lookup to get macro, return shared_ptr
141 (addTemplate): assert that m containse a valid pointer, use map[]
143 (builtinMacros): by using shared_ptr fix the mem leak, remove
144 commented out unsupported macros
146 * math_cursor.C: changes because of the above
147 * math_parser.C: changes because of the abobe
149 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
150 default arg on constructor.
151 * formulamacro.C: changes because of the above
153 * math_parinset.h: add pragma
154 (SetAlign): move inline out of class def
158 (setArgumentIdx): ditto
159 (setNextArgIdx): ditto
160 (getArgumentIdx): ditto
161 (getMaxArgumentIdx): ditto
166 * math_parinset.C: add pragma
167 (Write): change the else clause, lessen depth
169 * math_macroarg.h: small whitespace change
171 * array.C: include support/LOstream.h add using ostream and endl
173 * array.h (dump): add std:: on ostream
175 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
177 * math_macrotemplate.h: remove default arg on update
179 * math_macrotemplate.C (update): add assert and remove noop case.
181 * formulamacro.C (Read): add comment.
182 (ascent): remove noop call to MathMacroTemplate
187 * math_parser.C (mathed_parse): fix another potential problem by
188 passing a freestanding mathedarray.
190 * math_root.C (GetData): add const version
192 * math_parinset.C (~MathParInset): delete
193 (GetData): add const version
195 * math_matrixinset.C (MathMatrixInset): delete pointer version,
196 make it a proper copy constructor instead
198 (MathMatrixInset): remvoe default val for m and n
200 * math_macro.C (GetData): add const version
202 * math_fracinset.C (GetData): add const version
204 * math_cursor.C (SelCopy): make p1 and p2 const
205 (SelCut): make p1 and p2 const
207 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
208 (LyxCode): move inline out of class
212 * array.[Ch] (dump): method added for debugging purposes
214 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
215 mathed_parse when reading a matrix.
217 * math_spaceinset.[Ch]: add pragma, make variables private add
218 '_', change order of method definitions.
220 * math_root.h (~MathRootInset): delete
221 Change uroot_ to be a real object instead of a pointer
222 * math_root.C: changes because of the above
224 * math_macro.C (MathMacro(MathMacro*)): delete constructor
225 (MathMacro(MathMacro const &)): new copy constructor
227 * math_inset.h: delete constructor taking a pointer to MathedInset
228 (size, incSize): move inline method
230 * math_funcinset.h: add pragma, remove class vars ln and fname,
231 change protected to private, add '_' to priv vars.
232 (~MathFuncInset): remove
234 * math_fracinset.h: make MathParInset den_ a real object and not a
237 * math_fracinset.C (MathFracInset): clean up, move initalization
238 to initialization list
239 (~MathFracInset): remove
242 * math_draw.C: delete file
244 * math_dotsinset.[Ch]: add pragma
246 * math_bigopinset.h: make protected variables private add '_' to vars.
248 * math_bigopinset.C: move methods to follow class definition order
250 * math_accentinset.h (getAccentCode): move inline here
252 * math_accentinset.C (MathAccentInset): cleanup
255 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
257 * math_inset.[Ch] (MathedInset): remove method
259 * Makefile.am (libmathed_la_SOURCES): correct typo
261 * math_parinset.C (draw): move MathedXiter data(this) up. and
262 remove it two other places.
264 * math_macro.C (MathMacro): use array directly, don't use
265 setArgumentIdx and GetData
267 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
269 * math_macroarg.C (MathMacroArgument): delete
270 * math_macro.C (~MathMacro): delete
271 * math_macrotemplate.C (~MathMacroTemplate): delete
273 * math_decorationinset.[Ch]: add pragma
274 * math_deliminset.[Ch]: likewise
275 * math_fracinset.[Ch]: likewise
276 * math_macroarg.[Ch]: likewise
277 * math_macrotemplate.[Ch]: likewise
278 * math_matrixinset.[Ch]: likewise
280 * formulamacro.C (Read): set contents of tmacro_ to ar.
282 * formulamacro.h: add '_' to private variables.
283 * formalamacro.C: changes because of this.
285 2001-02-23 Juergen Vigna <jug@sad.it>
287 * formula.C (LocalDispatch): changed action to be a kb_action (as it
288 should be) and not an int.
290 * formulamacro.C (LocalDispatch): ditto.
292 2001-02-14 André Pönitz <poenitz@htwm.de>
294 * math_parinset.[Ch]: make array a real MathArray, not just a
297 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
299 * several files: subsequent changes
301 * math_cursor.C: make selarray a proper MathArray
303 * several files: Change "MathedArray *" to "MathedArray &"
306 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
308 * array.C (MathedArray): Fix compilation problem.
310 2001-02-14 André Pönitz <poenitz@htwm.de>
312 * array.[Ch]: "deep" copy constructor and assignment operator for
315 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
317 * math_iter.[Ch]: remove SetData
318 several files: subsequent changes
320 2001-02-14 André Pönitz <poenitz@htwm.de>
322 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
325 * math_iter.C: default-construct and resize array
327 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
329 * math_xiter.h: move ipush and ipop to public, add _ on private
330 variables, move protected var to private, remove friend.
332 * math_cursor.C (insertInset): rename method from Insert also
333 remove default arg val. Call the public methods of xiter instead
334 of private variables.
336 * changes to several files because of the above.
338 2001-02-14 André Pönitz <poenitz@htwm.de>
340 * math_iter.[Ch]: hide fcode_
342 * math_parinset.C: subsequent changes
345 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
347 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
350 * math_write.C: delete file
351 * math_delim.C: delete file
352 * marh_sqrtinset.h: delete file
354 * move funcs to more localized files, more general cleanup.
355 Constify several local vars. Doxygen changes. Formatting.
357 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
359 * support.C: add some consts
361 * matriz.C: clean up a bit.
362 (matmat): remove the for loop.
364 * several files: changes so that several friends can be removed
366 2001-02-14 André Pönitz <poenitz@htwm.de>
368 * formula.C: reformatting
372 math_xiter.[Ch]: remove unneeded members
374 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
378 * formula.C: remove cruft
380 * array.C (begin): new method
383 2001-02-14 André Pönitz <poenitz@htwm.de>
385 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
387 * math_cursor.C: reformatting
389 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
393 * math_matrixinset.C:
394 * math_macrotemplate.C:
399 * math_decorationinset.C:
401 * math_accentinset.C:
402 * math_sqrtinset.C: include LOstream.h and add using directive.
404 2001-02-14 André Pönitz <poenitz@htwm.de>
406 * math_iter.C: reformatting
408 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
410 * math_spaceinset.C (GetSpace): move here
412 * math_parinset.C: add debug.h, move several prev. inlined methods
415 * math_macrotable.C math_xiter.C support.C: add debug.h
417 * math_macro.h: remove debug.h, remove typedefs
419 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
422 * math_hash.C: change some defines to int const. change use of
423 LM_TC_NORMAL to LM_TC_VAR
425 * math_draw.C: delete file
427 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
428 forward decls. remove LM_TC_NORMAL, move inline methods to
429 support.C (and support.h)
431 * math_cursor.C: move several previous inlined methods here
433 * math_bigopinset.h math_dotsinset.h math_funcinset.h
434 math_parinset.h math_spaceinset.h: add math_defs.h
436 * math_accentinset.h: add support.h and math_defs.h
438 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
440 * formula.h: remove unused func decl: OpenMathInset
442 * formula.C math_inset.h: get rid of math_defs.h
444 * array.h: switch to support.h instead of math_defs.h
446 * array.C: remove one include
448 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
450 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
452 * math_parser.C: include macrotable and macrotemplate
454 * math_macrotemplate.[Ch]: new files
456 * math_macrotable.[Ch]: new files
458 * math_macroarg.[Ch]: new files
460 * math_macro.C: move stuff to the new files.
462 * math_cursor.C: include math_macrotable.h
464 * macro_support.[Ch]: new files
466 * formulamacro.C: add more includes
468 * Makefile.am (libmathed_la_SOURCES): add new files.
470 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
472 * Makefile.am (libmathed_la_SOURCES): remove duplicate
477 * math_parinset.C: add a bunch of "using" directives.
480 * math_decorationinset.h:
482 * math_spaceinset.h: remove more couples of inline.
484 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
486 * math_xiter.h: remove a couple of "inline"
488 * array.C (strange_copy): fix bug (hopefully)
489 * many files: add a lot of new files and move methods to the class
490 files they belong to. Only first attempt at cleanup more will
493 2001-02-12 André Pönitz <poenitz@htwm.de>
495 * math_macro.[hC]: replace MathMacroArgument[] with
496 std::vector<MathMacroArgument>
498 math_inset.C: replace int[] with std::vector<int>
500 * math_symbols.C: replace FL_OBJECTP[] with
501 std::vector<FL_OBJECT*>
503 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
505 * math_defs.h (struct MathedRowSt): make all private variables end
506 with '_', initialize in initializer list instead of in function
509 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
511 * formula.C (LocalDispatch): Change the default action of
512 break-line to create an align* environment instead of eqnarray*.
514 * math_inset.C (Metrics): Correct drawing of the multline
517 2001-02-12 André Pönitz <poenitz@htwm.de>
519 * array.[hC]: replace private variable maxsize_ with call to
521 * math_defs.h: replace int[] by std::vector<int> for
524 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
526 * array.h: made all variables private, removed friend, added new
527 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
528 non const operator[] added setter for last and getter for maxsize.
529 changed name from LyxArrayBase to MathedArray.
530 changed name of some methods to start with lowerchar.
531 moved inline methods to array.C
533 * math_iter.C + several file: changes because of the above.
535 * array.C: new file with the prev inline methods.
537 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
539 * Many files: add support for the align environment from amsmath.
541 2001-02-09 André Pönitz <poenitz@htwm.de>
543 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
544 * several files: subsequent changes
545 * math_iter.h: remove unused prototype
548 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
550 * math_macro.C (draw): add .c_str() to .str() (useful when
551 compiling with lyxstring, but STL sstream).
554 2001-02-08 André Pönitz <poenitz@htwm.de>
556 * several files: get rid of reinterpret_cast.
558 2001-02-04 Allan Rae <rae@lyx.org>
560 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
561 just casting the variable.
563 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
565 * Many files: Add support for multline and alignat environments from
568 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
570 * math_symbols.C (math_insert_greek): Move cursor right when
571 unlocking the math inset.
573 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
575 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
577 * formula.C (LocalDispatch): Before inserting a label in an
578 eqnarray, move the cursor to the top level.
580 * math_iter.C (getLabel): Test if crow == 0.
582 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
584 * math_draw.C (Metrics): Use the correct GetString.