1 2001-03-16 André Pönitz <poenitz@htwm.de>
5 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
7 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
15 * math_symbols.C: maths panel moved to GUII
17 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
19 * math_cursor.C: use lyxerr instead of cerr.
21 2001-03-15 André Pönitz <poenitz@htwm.de>
23 * math_cursor.C: fix bug (cursor was leaving two insets at a time
26 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
28 * math_macrotable.h: noncopyable is in namespace boost
29 * math_macrotemplate.h: ditto
31 * math_rowst.h: make MathedRowContainer::iterator public.
33 2001-03-15 André Pönitz <poenitz@htwm.de>
35 * math_parser.C: read '\nonumber' again (was broken)
37 * math_rowst.C: new file
39 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
41 * math_cursor.C: added using directive.
43 2001-03-15 André Pönitz <poenitz@htwm.de>
45 * math_rowst.h: Finally remove MathedRowSt
48 math_xiter.C: changed accordingly
50 2001-03-12 André Pönitz <poenitz@htwm.de>
52 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
53 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
55 2001-03-10 André Pönitz <poenitz@htwm.de>
58 math_matrixinset.C: move adjustVerticalSt to the only place where
59 it is used. Fix a small bug where the cached row structure and the
60 actual data get out of sync after the deletion of whole rows
62 2001-03-09 André Pönitz <poenitz@htwm.de>
64 * math_cursor.C: use std::vector<> in MathStackXIter
65 change selstk from a pointer to the "real thing"
67 * math_rowst.h: new MathedRowContainer::erase method
69 * math_xiter.C: use MathedRowContainer::erase
71 * math_parser.C: use MathedRowContainer::insert_after
73 2001-03-08 André Pönitz <poenitz@htwm.de>
75 * math_rowst.h: give MathedRowContainer an 'insert' method.
77 * math_xiter.C: new 'container()' method to encapsulated access to
78 the MathParInset's MathedRowContainer
80 * math_rowst.h: proper copy constructor and destructor for
83 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
84 automatically created by the compiler are ok now.
86 2001-03-06 André Pönitz <poenitz@htwm.de>
88 * array.[Ch]: factor out deep_copy,
89 remove third argument from raw_pointer_insert
91 * math_iter.[Ch]: remove unused function Clear()
93 * math_cursor.C: change signature of MathStackXIter:push()
96 * math_rowst.h: introduction of MathRowContainer
97 several files: corresponding changes
99 2001-03-04 André Pönitz <poenitz@htwm.de>
101 * math_macrotemplate.[Ch]:
102 math_macro.C: move update() functionality to the macro
104 * math_rowst.h: split MathedRowSt into "data" and "list"
106 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
108 * math_macrotemplate.C (update): use MathMacro::getArg, and
109 receive a const reference.
110 (getMacroPar): add an Assert
112 * math_macrotemplate.h: make MathMacro a friend, make update take
115 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
116 and store a MathMacroArgument in the vector
117 * math_macro.C: changes because of the above.
120 * math_parser.C (mathed_parse): plug potential leak
122 * math_iter.h: add comment on virtual destructor
124 * math_iter.C (Delete): make c const
126 * math_parinset.C (Metrics): cleanup indent. make one string const.
128 * math_inset.C (size): move out of line
131 * math_macroarg.h: remove default constructor
133 * math_macroarg.C: include Lsstream.h instead of debug.h
134 (MathMacroArgument): remove default constructor
135 (Write): add std:: on ostream arg
137 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
140 * formula.C: make DEBUG into lyxerr
142 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
144 * math_macrotemplate.h: make noncopyable, remove last arg to
145 constructor, remove flags_ add edit_
146 (flags): remove method
148 * math_macrotemplate.C (setArgument): delete method
149 (update): make idx const
150 (Metrics): use edit_, remove flags_
151 (draw): use edit_, remove flags_
152 (setEditMode): set edit_, remove flags_
153 (MathMacroTemplate): initialize edit_, remove flags_
155 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
156 shared_ptr, let constructor take a shared_ptr
158 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
160 (draw): remove unneded update, remove removed update of x,y
161 (GetXY): call tmplates GetMacroXY directly
162 (SetFocus): call Metrics() instead of update()
163 (Write): remove support for math macro environments, simplifications.
165 * math_macrotable.h: make class noncopyable, change getMacro to
166 createMacro, change vector to map store a
167 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
169 * math_macrotable.C: add pragma
170 (createMacro): change name from getMacro, use shared_ptr
171 (getTemplate): Use map lookup to get macro, return shared_ptr
172 (addTemplate): assert that m containse a valid pointer, use map[]
174 (builtinMacros): by using shared_ptr fix the mem leak, remove
175 commented out unsupported macros
177 * math_cursor.C: changes because of the above
178 * math_parser.C: changes because of the abobe
180 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
181 default arg on constructor.
182 * formulamacro.C: changes because of the above
184 * math_parinset.h: add pragma
185 (SetAlign): move inline out of class def
189 (setArgumentIdx): ditto
190 (setNextArgIdx): ditto
191 (getArgumentIdx): ditto
192 (getMaxArgumentIdx): ditto
197 * math_parinset.C: add pragma
198 (Write): change the else clause, lessen depth
200 * math_macroarg.h: small whitespace change
202 * array.C: include support/LOstream.h add using ostream and endl
204 * array.h (dump): add std:: on ostream
206 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
208 * math_macrotemplate.h: remove default arg on update
210 * math_macrotemplate.C (update): add assert and remove noop case.
212 * formulamacro.C (Read): add comment.
213 (ascent): remove noop call to MathMacroTemplate
218 * math_parser.C (mathed_parse): fix another potential problem by
219 passing a freestanding mathedarray.
221 * math_root.C (GetData): add const version
223 * math_parinset.C (~MathParInset): delete
224 (GetData): add const version
226 * math_matrixinset.C (MathMatrixInset): delete pointer version,
227 make it a proper copy constructor instead
229 (MathMatrixInset): remvoe default val for m and n
231 * math_macro.C (GetData): add const version
233 * math_fracinset.C (GetData): add const version
235 * math_cursor.C (SelCopy): make p1 and p2 const
236 (SelCut): make p1 and p2 const
238 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
239 (LyxCode): move inline out of class
243 * array.[Ch] (dump): method added for debugging purposes
245 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
246 mathed_parse when reading a matrix.
248 * math_spaceinset.[Ch]: add pragma, make variables private add
249 '_', change order of method definitions.
251 * math_root.h (~MathRootInset): delete
252 Change uroot_ to be a real object instead of a pointer
253 * math_root.C: changes because of the above
255 * math_macro.C (MathMacro(MathMacro*)): delete constructor
256 (MathMacro(MathMacro const &)): new copy constructor
258 * math_inset.h: delete constructor taking a pointer to MathedInset
259 (size, incSize): move inline method
261 * math_funcinset.h: add pragma, remove class vars ln and fname,
262 change protected to private, add '_' to priv vars.
263 (~MathFuncInset): remove
265 * math_fracinset.h: make MathParInset den_ a real object and not a
268 * math_fracinset.C (MathFracInset): clean up, move initalization
269 to initialization list
270 (~MathFracInset): remove
273 * math_draw.C: delete file
275 * math_dotsinset.[Ch]: add pragma
277 * math_bigopinset.h: make protected variables private add '_' to vars.
279 * math_bigopinset.C: move methods to follow class definition order
281 * math_accentinset.h (getAccentCode): move inline here
283 * math_accentinset.C (MathAccentInset): cleanup
286 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
288 * math_inset.[Ch] (MathedInset): remove method
290 * Makefile.am (libmathed_la_SOURCES): correct typo
292 * math_parinset.C (draw): move MathedXiter data(this) up. and
293 remove it two other places.
295 * math_macro.C (MathMacro): use array directly, don't use
296 setArgumentIdx and GetData
298 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
300 * math_macroarg.C (MathMacroArgument): delete
301 * math_macro.C (~MathMacro): delete
302 * math_macrotemplate.C (~MathMacroTemplate): delete
304 * math_decorationinset.[Ch]: add pragma
305 * math_deliminset.[Ch]: likewise
306 * math_fracinset.[Ch]: likewise
307 * math_macroarg.[Ch]: likewise
308 * math_macrotemplate.[Ch]: likewise
309 * math_matrixinset.[Ch]: likewise
311 * formulamacro.C (Read): set contents of tmacro_ to ar.
313 * formulamacro.h: add '_' to private variables.
314 * formalamacro.C: changes because of this.
316 2001-02-23 Juergen Vigna <jug@sad.it>
318 * formula.C (LocalDispatch): changed action to be a kb_action (as it
319 should be) and not an int.
321 * formulamacro.C (LocalDispatch): ditto.
323 2001-02-14 André Pönitz <poenitz@htwm.de>
325 * math_parinset.[Ch]: make array a real MathArray, not just a
328 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
330 * several files: subsequent changes
332 * math_cursor.C: make selarray a proper MathArray
334 * several files: Change "MathedArray *" to "MathedArray &"
337 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
339 * array.C (MathedArray): Fix compilation problem.
341 2001-02-14 André Pönitz <poenitz@htwm.de>
343 * array.[Ch]: "deep" copy constructor and assignment operator for
346 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
348 * math_iter.[Ch]: remove SetData
349 several files: subsequent changes
351 2001-02-14 André Pönitz <poenitz@htwm.de>
353 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
356 * math_iter.C: default-construct and resize array
358 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
360 * math_xiter.h: move ipush and ipop to public, add _ on private
361 variables, move protected var to private, remove friend.
363 * math_cursor.C (insertInset): rename method from Insert also
364 remove default arg val. Call the public methods of xiter instead
365 of private variables.
367 * changes to several files because of the above.
369 2001-02-14 André Pönitz <poenitz@htwm.de>
371 * math_iter.[Ch]: hide fcode_
373 * math_parinset.C: subsequent changes
376 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
378 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
381 * math_write.C: delete file
382 * math_delim.C: delete file
383 * marh_sqrtinset.h: delete file
385 * move funcs to more localized files, more general cleanup.
386 Constify several local vars. Doxygen changes. Formatting.
388 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
390 * support.C: add some consts
392 * matriz.C: clean up a bit.
393 (matmat): remove the for loop.
395 * several files: changes so that several friends can be removed
397 2001-02-14 André Pönitz <poenitz@htwm.de>
399 * formula.C: reformatting
403 math_xiter.[Ch]: remove unneeded members
405 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
409 * formula.C: remove cruft
411 * array.C (begin): new method
414 2001-02-14 André Pönitz <poenitz@htwm.de>
416 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
418 * math_cursor.C: reformatting
420 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
424 * math_matrixinset.C:
425 * math_macrotemplate.C:
430 * math_decorationinset.C:
432 * math_accentinset.C:
433 * math_sqrtinset.C: include LOstream.h and add using directive.
435 2001-02-14 André Pönitz <poenitz@htwm.de>
437 * math_iter.C: reformatting
439 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
441 * math_spaceinset.C (GetSpace): move here
443 * math_parinset.C: add debug.h, move several prev. inlined methods
446 * math_macrotable.C math_xiter.C support.C: add debug.h
448 * math_macro.h: remove debug.h, remove typedefs
450 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
453 * math_hash.C: change some defines to int const. change use of
454 LM_TC_NORMAL to LM_TC_VAR
456 * math_draw.C: delete file
458 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
459 forward decls. remove LM_TC_NORMAL, move inline methods to
460 support.C (and support.h)
462 * math_cursor.C: move several previous inlined methods here
464 * math_bigopinset.h math_dotsinset.h math_funcinset.h
465 math_parinset.h math_spaceinset.h: add math_defs.h
467 * math_accentinset.h: add support.h and math_defs.h
469 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
471 * formula.h: remove unused func decl: OpenMathInset
473 * formula.C math_inset.h: get rid of math_defs.h
475 * array.h: switch to support.h instead of math_defs.h
477 * array.C: remove one include
479 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
481 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
483 * math_parser.C: include macrotable and macrotemplate
485 * math_macrotemplate.[Ch]: new files
487 * math_macrotable.[Ch]: new files
489 * math_macroarg.[Ch]: new files
491 * math_macro.C: move stuff to the new files.
493 * math_cursor.C: include math_macrotable.h
495 * macro_support.[Ch]: new files
497 * formulamacro.C: add more includes
499 * Makefile.am (libmathed_la_SOURCES): add new files.
501 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
503 * Makefile.am (libmathed_la_SOURCES): remove duplicate
508 * math_parinset.C: add a bunch of "using" directives.
511 * math_decorationinset.h:
513 * math_spaceinset.h: remove more couples of inline.
515 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
517 * math_xiter.h: remove a couple of "inline"
519 * array.C (strange_copy): fix bug (hopefully)
520 * many files: add a lot of new files and move methods to the class
521 files they belong to. Only first attempt at cleanup more will
524 2001-02-12 André Pönitz <poenitz@htwm.de>
526 * math_macro.[hC]: replace MathMacroArgument[] with
527 std::vector<MathMacroArgument>
529 math_inset.C: replace int[] with std::vector<int>
531 * math_symbols.C: replace FL_OBJECTP[] with
532 std::vector<FL_OBJECT*>
534 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
536 * math_defs.h (struct MathedRowSt): make all private variables end
537 with '_', initialize in initializer list instead of in function
540 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
542 * formula.C (LocalDispatch): Change the default action of
543 break-line to create an align* environment instead of eqnarray*.
545 * math_inset.C (Metrics): Correct drawing of the multline
548 2001-02-12 André Pönitz <poenitz@htwm.de>
550 * array.[hC]: replace private variable maxsize_ with call to
552 * math_defs.h: replace int[] by std::vector<int> for
555 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
557 * array.h: made all variables private, removed friend, added new
558 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
559 non const operator[] added setter for last and getter for maxsize.
560 changed name from LyxArrayBase to MathedArray.
561 changed name of some methods to start with lowerchar.
562 moved inline methods to array.C
564 * math_iter.C + several file: changes because of the above.
566 * array.C: new file with the prev inline methods.
568 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
570 * Many files: add support for the align environment from amsmath.
572 2001-02-09 André Pönitz <poenitz@htwm.de>
574 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
575 * several files: subsequent changes
576 * math_iter.h: remove unused prototype
579 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
581 * math_macro.C (draw): add .c_str() to .str() (useful when
582 compiling with lyxstring, but STL sstream).
585 2001-02-08 André Pönitz <poenitz@htwm.de>
587 * several files: get rid of reinterpret_cast.
589 2001-02-04 Allan Rae <rae@lyx.org>
591 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
592 just casting the variable.
594 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
596 * Many files: Add support for multline and alignat environments from
599 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
601 * math_symbols.C (math_insert_greek): Move cursor right when
602 unlocking the math inset.
604 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
606 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
608 * formula.C (LocalDispatch): Before inserting a label in an
609 eqnarray, move the cursor to the top level.
611 * math_iter.C (getLabel): Test if crow == 0.
613 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
615 * math_draw.C (Metrics): Use the correct GetString.