1 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_cursor.C: use lyxerr instead of cerr.
5 2001-03-15 André Pönitz <poenitz@htwm.de>
7 * math_cursor.C: fix bug (cursor was leaving two insets at a time instead
10 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
12 * math_macrotable.h: noncopyable is in namespace boost
13 * math_macrotemplate.h: ditto
15 * math_rowst.h: make MathedRowContainer::iterator public.
17 2001-03-15 André Pönitz <poenitz@htwm.de>
19 * math_parser.C: read '\nonumber' again (was broken)
21 * math_rowst.C: new file
23 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
25 * math_cursor.C: added using directive.
27 2001-03-15 André Pönitz <poenitz@htwm.de>
29 * math_rowst.h: Finally remove MathedRowSt
32 math_xiter.C: changed accordingly
34 2001-03-12 André Pönitz <poenitz@htwm.de>
36 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
37 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
39 2001-03-10 André Pönitz <poenitz@htwm.de>
42 math_matrixinset.C: move adjustVerticalSt to the only place where
43 it is used. Fix a small bug where the cached row structure and the
44 actual data get out of sync after the deletion of whole rows
46 2001-03-09 André Pönitz <poenitz@htwm.de>
48 * math_cursor.C: use std::vector<> in MathStackXIter
49 change selstk from a pointer to the "real thing"
51 * math_rowst.h: new MathedRowContainer::erase method
53 * math_xiter.C: use MathedRowContainer::erase
55 * math_parser.C: use MathedRowContainer::insert_after
57 2001-03-08 André Pönitz <poenitz@htwm.de>
59 * math_rowst.h: give MathedRowContainer an 'insert' method.
61 * math_xiter.C: new 'container()' method to encapsulated access to
62 the MathParInset's MathedRowContainer
64 * math_rowst.h: proper copy constructor and destructor for
67 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
68 automatically created by the compiler are ok now.
70 2001-03-06 André Pönitz <poenitz@htwm.de>
72 * array.[Ch]: factor out deep_copy,
73 remove third argument from raw_pointer_insert
75 * math_iter.[Ch]: remove unused function Clear()
77 * math_cursor.C: change signature of MathStackXIter:push()
80 * math_rowst.h: introduction of MathRowContainer
81 several files: corresponding changes
83 2001-03-04 André Pönitz <poenitz@htwm.de>
85 * math_macrotemplate.[Ch]:
86 math_macro.C: move update() functionality to the macro
88 * math_rowst.h: split MathedRowSt into "data" and "list"
90 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
92 * math_macrotemplate.C (update): use MathMacro::getArg, and
93 receive a const reference.
94 (getMacroPar): add an Assert
96 * math_macrotemplate.h: make MathMacro a friend, make update take
99 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
100 and store a MathMacroArgument in the vector
101 * math_macro.C: changes because of the above.
104 * math_parser.C (mathed_parse): plug potential leak
106 * math_iter.h: add comment on virtual destructor
108 * math_iter.C (Delete): make c const
110 * math_parinset.C (Metrics): cleanup indent. make one string const.
112 * math_inset.C (size): move out of line
115 * math_macroarg.h: remove default constructor
117 * math_macroarg.C: include Lsstream.h instead of debug.h
118 (MathMacroArgument): remove default constructor
119 (Write): add std:: on ostream arg
121 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
124 * formula.C: make DEBUG into lyxerr
126 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
128 * math_macrotemplate.h: make noncopyable, remove last arg to
129 constructor, remove flags_ add edit_
130 (flags): remove method
132 * math_macrotemplate.C (setArgument): delete method
133 (update): make idx const
134 (Metrics): use edit_, remove flags_
135 (draw): use edit_, remove flags_
136 (setEditMode): set edit_, remove flags_
137 (MathMacroTemplate): initialize edit_, remove flags_
139 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
140 shared_ptr, let constructor take a shared_ptr
142 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
144 (draw): remove unneded update, remove removed update of x,y
145 (GetXY): call tmplates GetMacroXY directly
146 (SetFocus): call Metrics() instead of update()
147 (Write): remove support for math macro environments, simplifications.
149 * math_macrotable.h: make class noncopyable, change getMacro to
150 createMacro, change vector to map store a
151 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
153 * math_macrotable.C: add pragma
154 (createMacro): change name from getMacro, use shared_ptr
155 (getTemplate): Use map lookup to get macro, return shared_ptr
156 (addTemplate): assert that m containse a valid pointer, use map[]
158 (builtinMacros): by using shared_ptr fix the mem leak, remove
159 commented out unsupported macros
161 * math_cursor.C: changes because of the above
162 * math_parser.C: changes because of the abobe
164 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
165 default arg on constructor.
166 * formulamacro.C: changes because of the above
168 * math_parinset.h: add pragma
169 (SetAlign): move inline out of class def
173 (setArgumentIdx): ditto
174 (setNextArgIdx): ditto
175 (getArgumentIdx): ditto
176 (getMaxArgumentIdx): ditto
181 * math_parinset.C: add pragma
182 (Write): change the else clause, lessen depth
184 * math_macroarg.h: small whitespace change
186 * array.C: include support/LOstream.h add using ostream and endl
188 * array.h (dump): add std:: on ostream
190 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
192 * math_macrotemplate.h: remove default arg on update
194 * math_macrotemplate.C (update): add assert and remove noop case.
196 * formulamacro.C (Read): add comment.
197 (ascent): remove noop call to MathMacroTemplate
202 * math_parser.C (mathed_parse): fix another potential problem by
203 passing a freestanding mathedarray.
205 * math_root.C (GetData): add const version
207 * math_parinset.C (~MathParInset): delete
208 (GetData): add const version
210 * math_matrixinset.C (MathMatrixInset): delete pointer version,
211 make it a proper copy constructor instead
213 (MathMatrixInset): remvoe default val for m and n
215 * math_macro.C (GetData): add const version
217 * math_fracinset.C (GetData): add const version
219 * math_cursor.C (SelCopy): make p1 and p2 const
220 (SelCut): make p1 and p2 const
222 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
223 (LyxCode): move inline out of class
227 * array.[Ch] (dump): method added for debugging purposes
229 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
230 mathed_parse when reading a matrix.
232 * math_spaceinset.[Ch]: add pragma, make variables private add
233 '_', change order of method definitions.
235 * math_root.h (~MathRootInset): delete
236 Change uroot_ to be a real object instead of a pointer
237 * math_root.C: changes because of the above
239 * math_macro.C (MathMacro(MathMacro*)): delete constructor
240 (MathMacro(MathMacro const &)): new copy constructor
242 * math_inset.h: delete constructor taking a pointer to MathedInset
243 (size, incSize): move inline method
245 * math_funcinset.h: add pragma, remove class vars ln and fname,
246 change protected to private, add '_' to priv vars.
247 (~MathFuncInset): remove
249 * math_fracinset.h: make MathParInset den_ a real object and not a
252 * math_fracinset.C (MathFracInset): clean up, move initalization
253 to initialization list
254 (~MathFracInset): remove
257 * math_draw.C: delete file
259 * math_dotsinset.[Ch]: add pragma
261 * math_bigopinset.h: make protected variables private add '_' to vars.
263 * math_bigopinset.C: move methods to follow class definition order
265 * math_accentinset.h (getAccentCode): move inline here
267 * math_accentinset.C (MathAccentInset): cleanup
270 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
272 * math_inset.[Ch] (MathedInset): remove method
274 * Makefile.am (libmathed_la_SOURCES): correct typo
276 * math_parinset.C (draw): move MathedXiter data(this) up. and
277 remove it two other places.
279 * math_macro.C (MathMacro): use array directly, don't use
280 setArgumentIdx and GetData
282 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
284 * math_macroarg.C (MathMacroArgument): delete
285 * math_macro.C (~MathMacro): delete
286 * math_macrotemplate.C (~MathMacroTemplate): delete
288 * math_decorationinset.[Ch]: add pragma
289 * math_deliminset.[Ch]: likewise
290 * math_fracinset.[Ch]: likewise
291 * math_macroarg.[Ch]: likewise
292 * math_macrotemplate.[Ch]: likewise
293 * math_matrixinset.[Ch]: likewise
295 * formulamacro.C (Read): set contents of tmacro_ to ar.
297 * formulamacro.h: add '_' to private variables.
298 * formalamacro.C: changes because of this.
300 2001-02-23 Juergen Vigna <jug@sad.it>
302 * formula.C (LocalDispatch): changed action to be a kb_action (as it
303 should be) and not an int.
305 * formulamacro.C (LocalDispatch): ditto.
307 2001-02-14 André Pönitz <poenitz@htwm.de>
309 * math_parinset.[Ch]: make array a real MathArray, not just a
312 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
314 * several files: subsequent changes
316 * math_cursor.C: make selarray a proper MathArray
318 * several files: Change "MathedArray *" to "MathedArray &"
321 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
323 * array.C (MathedArray): Fix compilation problem.
325 2001-02-14 André Pönitz <poenitz@htwm.de>
327 * array.[Ch]: "deep" copy constructor and assignment operator for
330 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
332 * math_iter.[Ch]: remove SetData
333 several files: subsequent changes
335 2001-02-14 André Pönitz <poenitz@htwm.de>
337 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
340 * math_iter.C: default-construct and resize array
342 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
344 * math_xiter.h: move ipush and ipop to public, add _ on private
345 variables, move protected var to private, remove friend.
347 * math_cursor.C (insertInset): rename method from Insert also
348 remove default arg val. Call the public methods of xiter instead
349 of private variables.
351 * changes to several files because of the above.
353 2001-02-14 André Pönitz <poenitz@htwm.de>
355 * math_iter.[Ch]: hide fcode_
357 * math_parinset.C: subsequent changes
360 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
362 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
365 * math_write.C: delete file
366 * math_delim.C: delete file
367 * marh_sqrtinset.h: delete file
369 * move funcs to more localized files, more general cleanup.
370 Constify several local vars. Doxygen changes. Formatting.
372 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
374 * support.C: add some consts
376 * matriz.C: clean up a bit.
377 (matmat): remove the for loop.
379 * several files: changes so that several friends can be removed
381 2001-02-14 André Pönitz <poenitz@htwm.de>
383 * formula.C: reformatting
387 math_xiter.[Ch]: remove unneeded members
389 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
393 * formula.C: remove cruft
395 * array.C (begin): new method
398 2001-02-14 André Pönitz <poenitz@htwm.de>
400 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
402 * math_cursor.C: reformatting
404 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
408 * math_matrixinset.C:
409 * math_macrotemplate.C:
414 * math_decorationinset.C:
416 * math_accentinset.C:
417 * math_sqrtinset.C: include LOstream.h and add using directive.
419 2001-02-14 André Pönitz <poenitz@htwm.de>
421 * math_iter.C: reformatting
423 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
425 * math_spaceinset.C (GetSpace): move here
427 * math_parinset.C: add debug.h, move several prev. inlined methods
430 * math_macrotable.C math_xiter.C support.C: add debug.h
432 * math_macro.h: remove debug.h, remove typedefs
434 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
437 * math_hash.C: change some defines to int const. change use of
438 LM_TC_NORMAL to LM_TC_VAR
440 * math_draw.C: delete file
442 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
443 forward decls. remove LM_TC_NORMAL, move inline methods to
444 support.C (and support.h)
446 * math_cursor.C: move several previous inlined methods here
448 * math_bigopinset.h math_dotsinset.h math_funcinset.h
449 math_parinset.h math_spaceinset.h: add math_defs.h
451 * math_accentinset.h: add support.h and math_defs.h
453 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
455 * formula.h: remove unused func decl: OpenMathInset
457 * formula.C math_inset.h: get rid of math_defs.h
459 * array.h: switch to support.h instead of math_defs.h
461 * array.C: remove one include
463 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
465 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
467 * math_parser.C: include macrotable and macrotemplate
469 * math_macrotemplate.[Ch]: new files
471 * math_macrotable.[Ch]: new files
473 * math_macroarg.[Ch]: new files
475 * math_macro.C: move stuff to the new files.
477 * math_cursor.C: include math_macrotable.h
479 * macro_support.[Ch]: new files
481 * formulamacro.C: add more includes
483 * Makefile.am (libmathed_la_SOURCES): add new files.
485 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
487 * Makefile.am (libmathed_la_SOURCES): remove duplicate
492 * math_parinset.C: add a bunch of "using" directives.
495 * math_decorationinset.h:
497 * math_spaceinset.h: remove more couples of inline.
499 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
501 * math_xiter.h: remove a couple of "inline"
503 * array.C (strange_copy): fix bug (hopefully)
504 * many files: add a lot of new files and move methods to the class
505 files they belong to. Only first attempt at cleanup more will
508 2001-02-12 André Pönitz <poenitz@htwm.de>
510 * math_macro.[hC]: replace MathMacroArgument[] with
511 std::vector<MathMacroArgument>
513 math_inset.C: replace int[] with std::vector<int>
515 * math_symbols.C: replace FL_OBJECTP[] with
516 std::vector<FL_OBJECT*>
518 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
520 * math_defs.h (struct MathedRowSt): make all private variables end
521 with '_', initialize in initializer list instead of in function
524 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
526 * formula.C (LocalDispatch): Change the default action of
527 break-line to create an align* environment instead of eqnarray*.
529 * math_inset.C (Metrics): Correct drawing of the multline
532 2001-02-12 André Pönitz <poenitz@htwm.de>
534 * array.[hC]: replace private variable maxsize_ with call to
536 * math_defs.h: replace int[] by std::vector<int> for
539 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
541 * array.h: made all variables private, removed friend, added new
542 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
543 non const operator[] added setter for last and getter for maxsize.
544 changed name from LyxArrayBase to MathedArray.
545 changed name of some methods to start with lowerchar.
546 moved inline methods to array.C
548 * math_iter.C + several file: changes because of the above.
550 * array.C: new file with the prev inline methods.
552 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
554 * Many files: add support for the align environment from amsmath.
556 2001-02-09 André Pönitz <poenitz@htwm.de>
558 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
559 * several files: subsequent changes
560 * math_iter.h: remove unused prototype
563 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
565 * math_macro.C (draw): add .c_str() to .str() (useful when
566 compiling with lyxstring, but STL sstream).
569 2001-02-08 André Pönitz <poenitz@htwm.de>
571 * several files: get rid of reinterpret_cast.
573 2001-02-04 Allan Rae <rae@lyx.org>
575 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
576 just casting the variable.
578 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
580 * Many files: Add support for multline and alignat environments from
583 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
585 * math_symbols.C (math_insert_greek): Move cursor right when
586 unlocking the math inset.
588 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
590 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
592 * formula.C (LocalDispatch): Before inserting a label in an
593 eqnarray, move the cursor to the top level.
595 * math_iter.C (getLabel): Test if crow == 0.
597 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
599 * math_draw.C (Metrics): Use the correct GetString.