2 2001-03-15 André Pönitz <poenitz@htwm.de>
4 * math_cursor.C: fix bug (cursor was leaving two insets at a time instead
7 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
9 * math_macrotable.h: noncopyable is in namespace boost
10 * math_macrotemplate.h: ditto
12 * math_rowst.h: make MathedRowContainer::iterator public.
14 2001-03-15 André Pönitz <poenitz@htwm.de>
16 * math_parser.C: read '\nonumber' again (was broken)
18 * math_rowst.C: new file
20 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
22 * math_cursor.C: added using directive.
24 2001-03-15 André Pönitz <poenitz@htwm.de>
26 * math_rowst.h: Finally remove MathedRowSt
29 math_xiter.C: changed accordingly
31 2001-03-12 André Pönitz <poenitz@htwm.de>
33 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
34 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
36 2001-03-10 André Pönitz <poenitz@htwm.de>
39 math_matrixinset.C: move adjustVerticalSt to the only place where
40 it is used. Fix a small bug where the cached row structure and the
41 actual data get out of sync after the deletion of whole rows
43 2001-03-09 André Pönitz <poenitz@htwm.de>
45 * math_cursor.C: use std::vector<> in MathStackXIter
46 change selstk from a pointer to the "real thing"
48 * math_rowst.h: new MathedRowContainer::erase method
50 * math_xiter.C: use MathedRowContainer::erase
52 * math_parser.C: use MathedRowContainer::insert_after
54 2001-03-08 André Pönitz <poenitz@htwm.de>
56 * math_rowst.h: give MathedRowContainer an 'insert' method.
58 * math_xiter.C: new 'container()' method to encapsulated access to
59 the MathParInset's MathedRowContainer
61 * math_rowst.h: proper copy constructor and destructor for
64 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
65 automatically created by the compiler are ok now.
67 2001-03-06 André Pönitz <poenitz@htwm.de>
69 * array.[Ch]: factor out deep_copy,
70 remove third argument from raw_pointer_insert
72 * math_iter.[Ch]: remove unused function Clear()
74 * math_cursor.C: change signature of MathStackXIter:push()
77 * math_rowst.h: introduction of MathRowContainer
78 several files: corresponding changes
80 2001-03-04 André Pönitz <poenitz@htwm.de>
82 * math_macrotemplate.[Ch]:
83 math_macro.C: move update() functionality to the macro
85 * math_rowst.h: split MathedRowSt into "data" and "list"
87 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
89 * math_macrotemplate.C (update): use MathMacro::getArg, and
90 receive a const reference.
91 (getMacroPar): add an Assert
93 * math_macrotemplate.h: make MathMacro a friend, make update take
96 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
97 and store a MathMacroArgument in the vector
98 * math_macro.C: changes because of the above.
101 * math_parser.C (mathed_parse): plug potential leak
103 * math_iter.h: add comment on virtual destructor
105 * math_iter.C (Delete): make c const
107 * math_parinset.C (Metrics): cleanup indent. make one string const.
109 * math_inset.C (size): move out of line
112 * math_macroarg.h: remove default constructor
114 * math_macroarg.C: include Lsstream.h instead of debug.h
115 (MathMacroArgument): remove default constructor
116 (Write): add std:: on ostream arg
118 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
121 * formula.C: make DEBUG into lyxerr
123 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
125 * math_macrotemplate.h: make noncopyable, remove last arg to
126 constructor, remove flags_ add edit_
127 (flags): remove method
129 * math_macrotemplate.C (setArgument): delete method
130 (update): make idx const
131 (Metrics): use edit_, remove flags_
132 (draw): use edit_, remove flags_
133 (setEditMode): set edit_, remove flags_
134 (MathMacroTemplate): initialize edit_, remove flags_
136 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
137 shared_ptr, let constructor take a shared_ptr
139 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
141 (draw): remove unneded update, remove removed update of x,y
142 (GetXY): call tmplates GetMacroXY directly
143 (SetFocus): call Metrics() instead of update()
144 (Write): remove support for math macro environments, simplifications.
146 * math_macrotable.h: make class noncopyable, change getMacro to
147 createMacro, change vector to map store a
148 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
150 * math_macrotable.C: add pragma
151 (createMacro): change name from getMacro, use shared_ptr
152 (getTemplate): Use map lookup to get macro, return shared_ptr
153 (addTemplate): assert that m containse a valid pointer, use map[]
155 (builtinMacros): by using shared_ptr fix the mem leak, remove
156 commented out unsupported macros
158 * math_cursor.C: changes because of the above
159 * math_parser.C: changes because of the abobe
161 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
162 default arg on constructor.
163 * formulamacro.C: changes because of the above
165 * math_parinset.h: add pragma
166 (SetAlign): move inline out of class def
170 (setArgumentIdx): ditto
171 (setNextArgIdx): ditto
172 (getArgumentIdx): ditto
173 (getMaxArgumentIdx): ditto
178 * math_parinset.C: add pragma
179 (Write): change the else clause, lessen depth
181 * math_macroarg.h: small whitespace change
183 * array.C: include support/LOstream.h add using ostream and endl
185 * array.h (dump): add std:: on ostream
187 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
189 * math_macrotemplate.h: remove default arg on update
191 * math_macrotemplate.C (update): add assert and remove noop case.
193 * formulamacro.C (Read): add comment.
194 (ascent): remove noop call to MathMacroTemplate
199 * math_parser.C (mathed_parse): fix another potential problem by
200 passing a freestanding mathedarray.
202 * math_root.C (GetData): add const version
204 * math_parinset.C (~MathParInset): delete
205 (GetData): add const version
207 * math_matrixinset.C (MathMatrixInset): delete pointer version,
208 make it a proper copy constructor instead
210 (MathMatrixInset): remvoe default val for m and n
212 * math_macro.C (GetData): add const version
214 * math_fracinset.C (GetData): add const version
216 * math_cursor.C (SelCopy): make p1 and p2 const
217 (SelCut): make p1 and p2 const
219 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
220 (LyxCode): move inline out of class
224 * array.[Ch] (dump): method added for debugging purposes
226 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
227 mathed_parse when reading a matrix.
229 * math_spaceinset.[Ch]: add pragma, make variables private add
230 '_', change order of method definitions.
232 * math_root.h (~MathRootInset): delete
233 Change uroot_ to be a real object instead of a pointer
234 * math_root.C: changes because of the above
236 * math_macro.C (MathMacro(MathMacro*)): delete constructor
237 (MathMacro(MathMacro const &)): new copy constructor
239 * math_inset.h: delete constructor taking a pointer to MathedInset
240 (size, incSize): move inline method
242 * math_funcinset.h: add pragma, remove class vars ln and fname,
243 change protected to private, add '_' to priv vars.
244 (~MathFuncInset): remove
246 * math_fracinset.h: make MathParInset den_ a real object and not a
249 * math_fracinset.C (MathFracInset): clean up, move initalization
250 to initialization list
251 (~MathFracInset): remove
254 * math_draw.C: delete file
256 * math_dotsinset.[Ch]: add pragma
258 * math_bigopinset.h: make protected variables private add '_' to vars.
260 * math_bigopinset.C: move methods to follow class definition order
262 * math_accentinset.h (getAccentCode): move inline here
264 * math_accentinset.C (MathAccentInset): cleanup
267 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
269 * math_inset.[Ch] (MathedInset): remove method
271 * Makefile.am (libmathed_la_SOURCES): correct typo
273 * math_parinset.C (draw): move MathedXiter data(this) up. and
274 remove it two other places.
276 * math_macro.C (MathMacro): use array directly, don't use
277 setArgumentIdx and GetData
279 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
281 * math_macroarg.C (MathMacroArgument): delete
282 * math_macro.C (~MathMacro): delete
283 * math_macrotemplate.C (~MathMacroTemplate): delete
285 * math_decorationinset.[Ch]: add pragma
286 * math_deliminset.[Ch]: likewise
287 * math_fracinset.[Ch]: likewise
288 * math_macroarg.[Ch]: likewise
289 * math_macrotemplate.[Ch]: likewise
290 * math_matrixinset.[Ch]: likewise
292 * formulamacro.C (Read): set contents of tmacro_ to ar.
294 * formulamacro.h: add '_' to private variables.
295 * formalamacro.C: changes because of this.
297 2001-02-23 Juergen Vigna <jug@sad.it>
299 * formula.C (LocalDispatch): changed action to be a kb_action (as it
300 should be) and not an int.
302 * formulamacro.C (LocalDispatch): ditto.
304 2001-02-14 André Pönitz <poenitz@htwm.de>
306 * math_parinset.[Ch]: make array a real MathArray, not just a
309 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
311 * several files: subsequent changes
313 * math_cursor.C: make selarray a proper MathArray
315 * several files: Change "MathedArray *" to "MathedArray &"
318 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
320 * array.C (MathedArray): Fix compilation problem.
322 2001-02-14 André Pönitz <poenitz@htwm.de>
324 * array.[Ch]: "deep" copy constructor and assignment operator for
327 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
329 * math_iter.[Ch]: remove SetData
330 several files: subsequent changes
332 2001-02-14 André Pönitz <poenitz@htwm.de>
334 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
337 * math_iter.C: default-construct and resize array
339 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
341 * math_xiter.h: move ipush and ipop to public, add _ on private
342 variables, move protected var to private, remove friend.
344 * math_cursor.C (insertInset): rename method from Insert also
345 remove default arg val. Call the public methods of xiter instead
346 of private variables.
348 * changes to several files because of the above.
350 2001-02-14 André Pönitz <poenitz@htwm.de>
352 * math_iter.[Ch]: hide fcode_
354 * math_parinset.C: subsequent changes
357 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
359 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
362 * math_write.C: delete file
363 * math_delim.C: delete file
364 * marh_sqrtinset.h: delete file
366 * move funcs to more localized files, more general cleanup.
367 Constify several local vars. Doxygen changes. Formatting.
369 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
371 * support.C: add some consts
373 * matriz.C: clean up a bit.
374 (matmat): remove the for loop.
376 * several files: changes so that several friends can be removed
378 2001-02-14 André Pönitz <poenitz@htwm.de>
380 * formula.C: reformatting
384 math_xiter.[Ch]: remove unneeded members
386 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
390 * formula.C: remove cruft
392 * array.C (begin): new method
395 2001-02-14 André Pönitz <poenitz@htwm.de>
397 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
399 * math_cursor.C: reformatting
401 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
405 * math_matrixinset.C:
406 * math_macrotemplate.C:
411 * math_decorationinset.C:
413 * math_accentinset.C:
414 * math_sqrtinset.C: include LOstream.h and add using directive.
416 2001-02-14 André Pönitz <poenitz@htwm.de>
418 * math_iter.C: reformatting
420 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
422 * math_spaceinset.C (GetSpace): move here
424 * math_parinset.C: add debug.h, move several prev. inlined methods
427 * math_macrotable.C math_xiter.C support.C: add debug.h
429 * math_macro.h: remove debug.h, remove typedefs
431 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
434 * math_hash.C: change some defines to int const. change use of
435 LM_TC_NORMAL to LM_TC_VAR
437 * math_draw.C: delete file
439 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
440 forward decls. remove LM_TC_NORMAL, move inline methods to
441 support.C (and support.h)
443 * math_cursor.C: move several previous inlined methods here
445 * math_bigopinset.h math_dotsinset.h math_funcinset.h
446 math_parinset.h math_spaceinset.h: add math_defs.h
448 * math_accentinset.h: add support.h and math_defs.h
450 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
452 * formula.h: remove unused func decl: OpenMathInset
454 * formula.C math_inset.h: get rid of math_defs.h
456 * array.h: switch to support.h instead of math_defs.h
458 * array.C: remove one include
460 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
462 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
464 * math_parser.C: include macrotable and macrotemplate
466 * math_macrotemplate.[Ch]: new files
468 * math_macrotable.[Ch]: new files
470 * math_macroarg.[Ch]: new files
472 * math_macro.C: move stuff to the new files.
474 * math_cursor.C: include math_macrotable.h
476 * macro_support.[Ch]: new files
478 * formulamacro.C: add more includes
480 * Makefile.am (libmathed_la_SOURCES): add new files.
482 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
484 * Makefile.am (libmathed_la_SOURCES): remove duplicate
489 * math_parinset.C: add a bunch of "using" directives.
492 * math_decorationinset.h:
494 * math_spaceinset.h: remove more couples of inline.
496 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
498 * math_xiter.h: remove a couple of "inline"
500 * array.C (strange_copy): fix bug (hopefully)
501 * many files: add a lot of new files and move methods to the class
502 files they belong to. Only first attempt at cleanup more will
505 2001-02-12 André Pönitz <poenitz@htwm.de>
507 * math_macro.[hC]: replace MathMacroArgument[] with
508 std::vector<MathMacroArgument>
510 math_inset.C: replace int[] with std::vector<int>
512 * math_symbols.C: replace FL_OBJECTP[] with
513 std::vector<FL_OBJECT*>
515 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
517 * math_defs.h (struct MathedRowSt): make all private variables end
518 with '_', initialize in initializer list instead of in function
521 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
523 * formula.C (LocalDispatch): Change the default action of
524 break-line to create an align* environment instead of eqnarray*.
526 * math_inset.C (Metrics): Correct drawing of the multline
529 2001-02-12 André Pönitz <poenitz@htwm.de>
531 * array.[hC]: replace private variable maxsize_ with call to
533 * math_defs.h: replace int[] by std::vector<int> for
536 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
538 * array.h: made all variables private, removed friend, added new
539 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
540 non const operator[] added setter for last and getter for maxsize.
541 changed name from LyxArrayBase to MathedArray.
542 changed name of some methods to start with lowerchar.
543 moved inline methods to array.C
545 * math_iter.C + several file: changes because of the above.
547 * array.C: new file with the prev inline methods.
549 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
551 * Many files: add support for the align environment from amsmath.
553 2001-02-09 André Pönitz <poenitz@htwm.de>
555 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
556 * several files: subsequent changes
557 * math_iter.h: remove unused prototype
560 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
562 * math_macro.C (draw): add .c_str() to .str() (useful when
563 compiling with lyxstring, but STL sstream).
566 2001-02-08 André Pönitz <poenitz@htwm.de>
568 * several files: get rid of reinterpret_cast.
570 2001-02-04 Allan Rae <rae@lyx.org>
572 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
573 just casting the variable.
575 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
577 * Many files: Add support for multline and alignat environments from
580 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
582 * math_symbols.C (math_insert_greek): Move cursor right when
583 unlocking the math inset.
585 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
587 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
589 * formula.C (LocalDispatch): Before inserting a label in an
590 eqnarray, move the cursor to the top level.
592 * math_iter.C (getLabel): Test if crow == 0.
594 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
596 * math_draw.C (Metrics): Use the correct GetString.