1 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * math_rowst.C: add missing #include <config.h>.
5 2001-03-16 André Pönitz <poenitz@htwm.de>
9 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
11 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
19 * math_symbols.C: maths panel moved to GUII
21 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
23 * math_cursor.C: use lyxerr instead of cerr.
25 2001-03-15 André Pönitz <poenitz@htwm.de>
27 * math_cursor.C: fix bug (cursor was leaving two insets at a time
30 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
32 * math_macrotable.h: noncopyable is in namespace boost
33 * math_macrotemplate.h: ditto
35 * math_rowst.h: make MathedRowContainer::iterator public.
37 2001-03-15 André Pönitz <poenitz@htwm.de>
39 * math_parser.C: read '\nonumber' again (was broken)
41 * math_rowst.C: new file
43 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
45 * math_cursor.C: added using directive.
47 2001-03-15 André Pönitz <poenitz@htwm.de>
49 * math_rowst.h: Finally remove MathedRowSt
52 math_xiter.C: changed accordingly
54 2001-03-12 André Pönitz <poenitz@htwm.de>
56 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
57 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
59 2001-03-10 André Pönitz <poenitz@htwm.de>
62 math_matrixinset.C: move adjustVerticalSt to the only place where
63 it is used. Fix a small bug where the cached row structure and the
64 actual data get out of sync after the deletion of whole rows
66 2001-03-09 André Pönitz <poenitz@htwm.de>
68 * math_cursor.C: use std::vector<> in MathStackXIter
69 change selstk from a pointer to the "real thing"
71 * math_rowst.h: new MathedRowContainer::erase method
73 * math_xiter.C: use MathedRowContainer::erase
75 * math_parser.C: use MathedRowContainer::insert_after
77 2001-03-08 André Pönitz <poenitz@htwm.de>
79 * math_rowst.h: give MathedRowContainer an 'insert' method.
81 * math_xiter.C: new 'container()' method to encapsulated access to
82 the MathParInset's MathedRowContainer
84 * math_rowst.h: proper copy constructor and destructor for
87 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
88 automatically created by the compiler are ok now.
90 2001-03-06 André Pönitz <poenitz@htwm.de>
92 * array.[Ch]: factor out deep_copy,
93 remove third argument from raw_pointer_insert
95 * math_iter.[Ch]: remove unused function Clear()
97 * math_cursor.C: change signature of MathStackXIter:push()
100 * math_rowst.h: introduction of MathRowContainer
101 several files: corresponding changes
103 2001-03-04 André Pönitz <poenitz@htwm.de>
105 * math_macrotemplate.[Ch]:
106 math_macro.C: move update() functionality to the macro
108 * math_rowst.h: split MathedRowSt into "data" and "list"
110 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
112 * math_macrotemplate.C (update): use MathMacro::getArg, and
113 receive a const reference.
114 (getMacroPar): add an Assert
116 * math_macrotemplate.h: make MathMacro a friend, make update take
119 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
120 and store a MathMacroArgument in the vector
121 * math_macro.C: changes because of the above.
124 * math_parser.C (mathed_parse): plug potential leak
126 * math_iter.h: add comment on virtual destructor
128 * math_iter.C (Delete): make c const
130 * math_parinset.C (Metrics): cleanup indent. make one string const.
132 * math_inset.C (size): move out of line
135 * math_macroarg.h: remove default constructor
137 * math_macroarg.C: include Lsstream.h instead of debug.h
138 (MathMacroArgument): remove default constructor
139 (Write): add std:: on ostream arg
141 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
144 * formula.C: make DEBUG into lyxerr
146 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
148 * math_macrotemplate.h: make noncopyable, remove last arg to
149 constructor, remove flags_ add edit_
150 (flags): remove method
152 * math_macrotemplate.C (setArgument): delete method
153 (update): make idx const
154 (Metrics): use edit_, remove flags_
155 (draw): use edit_, remove flags_
156 (setEditMode): set edit_, remove flags_
157 (MathMacroTemplate): initialize edit_, remove flags_
159 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
160 shared_ptr, let constructor take a shared_ptr
162 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
164 (draw): remove unneded update, remove removed update of x,y
165 (GetXY): call tmplates GetMacroXY directly
166 (SetFocus): call Metrics() instead of update()
167 (Write): remove support for math macro environments, simplifications.
169 * math_macrotable.h: make class noncopyable, change getMacro to
170 createMacro, change vector to map store a
171 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
173 * math_macrotable.C: add pragma
174 (createMacro): change name from getMacro, use shared_ptr
175 (getTemplate): Use map lookup to get macro, return shared_ptr
176 (addTemplate): assert that m containse a valid pointer, use map[]
178 (builtinMacros): by using shared_ptr fix the mem leak, remove
179 commented out unsupported macros
181 * math_cursor.C: changes because of the above
182 * math_parser.C: changes because of the abobe
184 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
185 default arg on constructor.
186 * formulamacro.C: changes because of the above
188 * math_parinset.h: add pragma
189 (SetAlign): move inline out of class def
193 (setArgumentIdx): ditto
194 (setNextArgIdx): ditto
195 (getArgumentIdx): ditto
196 (getMaxArgumentIdx): ditto
201 * math_parinset.C: add pragma
202 (Write): change the else clause, lessen depth
204 * math_macroarg.h: small whitespace change
206 * array.C: include support/LOstream.h add using ostream and endl
208 * array.h (dump): add std:: on ostream
210 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
212 * math_macrotemplate.h: remove default arg on update
214 * math_macrotemplate.C (update): add assert and remove noop case.
216 * formulamacro.C (Read): add comment.
217 (ascent): remove noop call to MathMacroTemplate
222 * math_parser.C (mathed_parse): fix another potential problem by
223 passing a freestanding mathedarray.
225 * math_root.C (GetData): add const version
227 * math_parinset.C (~MathParInset): delete
228 (GetData): add const version
230 * math_matrixinset.C (MathMatrixInset): delete pointer version,
231 make it a proper copy constructor instead
233 (MathMatrixInset): remvoe default val for m and n
235 * math_macro.C (GetData): add const version
237 * math_fracinset.C (GetData): add const version
239 * math_cursor.C (SelCopy): make p1 and p2 const
240 (SelCut): make p1 and p2 const
242 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
243 (LyxCode): move inline out of class
247 * array.[Ch] (dump): method added for debugging purposes
249 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
250 mathed_parse when reading a matrix.
252 * math_spaceinset.[Ch]: add pragma, make variables private add
253 '_', change order of method definitions.
255 * math_root.h (~MathRootInset): delete
256 Change uroot_ to be a real object instead of a pointer
257 * math_root.C: changes because of the above
259 * math_macro.C (MathMacro(MathMacro*)): delete constructor
260 (MathMacro(MathMacro const &)): new copy constructor
262 * math_inset.h: delete constructor taking a pointer to MathedInset
263 (size, incSize): move inline method
265 * math_funcinset.h: add pragma, remove class vars ln and fname,
266 change protected to private, add '_' to priv vars.
267 (~MathFuncInset): remove
269 * math_fracinset.h: make MathParInset den_ a real object and not a
272 * math_fracinset.C (MathFracInset): clean up, move initalization
273 to initialization list
274 (~MathFracInset): remove
277 * math_draw.C: delete file
279 * math_dotsinset.[Ch]: add pragma
281 * math_bigopinset.h: make protected variables private add '_' to vars.
283 * math_bigopinset.C: move methods to follow class definition order
285 * math_accentinset.h (getAccentCode): move inline here
287 * math_accentinset.C (MathAccentInset): cleanup
290 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
292 * math_inset.[Ch] (MathedInset): remove method
294 * Makefile.am (libmathed_la_SOURCES): correct typo
296 * math_parinset.C (draw): move MathedXiter data(this) up. and
297 remove it two other places.
299 * math_macro.C (MathMacro): use array directly, don't use
300 setArgumentIdx and GetData
302 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
304 * math_macroarg.C (MathMacroArgument): delete
305 * math_macro.C (~MathMacro): delete
306 * math_macrotemplate.C (~MathMacroTemplate): delete
308 * math_decorationinset.[Ch]: add pragma
309 * math_deliminset.[Ch]: likewise
310 * math_fracinset.[Ch]: likewise
311 * math_macroarg.[Ch]: likewise
312 * math_macrotemplate.[Ch]: likewise
313 * math_matrixinset.[Ch]: likewise
315 * formulamacro.C (Read): set contents of tmacro_ to ar.
317 * formulamacro.h: add '_' to private variables.
318 * formalamacro.C: changes because of this.
320 2001-02-23 Juergen Vigna <jug@sad.it>
322 * formula.C (LocalDispatch): changed action to be a kb_action (as it
323 should be) and not an int.
325 * formulamacro.C (LocalDispatch): ditto.
327 2001-02-14 André Pönitz <poenitz@htwm.de>
329 * math_parinset.[Ch]: make array a real MathArray, not just a
332 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
334 * several files: subsequent changes
336 * math_cursor.C: make selarray a proper MathArray
338 * several files: Change "MathedArray *" to "MathedArray &"
341 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
343 * array.C (MathedArray): Fix compilation problem.
345 2001-02-14 André Pönitz <poenitz@htwm.de>
347 * array.[Ch]: "deep" copy constructor and assignment operator for
350 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
352 * math_iter.[Ch]: remove SetData
353 several files: subsequent changes
355 2001-02-14 André Pönitz <poenitz@htwm.de>
357 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
360 * math_iter.C: default-construct and resize array
362 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
364 * math_xiter.h: move ipush and ipop to public, add _ on private
365 variables, move protected var to private, remove friend.
367 * math_cursor.C (insertInset): rename method from Insert also
368 remove default arg val. Call the public methods of xiter instead
369 of private variables.
371 * changes to several files because of the above.
373 2001-02-14 André Pönitz <poenitz@htwm.de>
375 * math_iter.[Ch]: hide fcode_
377 * math_parinset.C: subsequent changes
380 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
382 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
385 * math_write.C: delete file
386 * math_delim.C: delete file
387 * marh_sqrtinset.h: delete file
389 * move funcs to more localized files, more general cleanup.
390 Constify several local vars. Doxygen changes. Formatting.
392 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
394 * support.C: add some consts
396 * matriz.C: clean up a bit.
397 (matmat): remove the for loop.
399 * several files: changes so that several friends can be removed
401 2001-02-14 André Pönitz <poenitz@htwm.de>
403 * formula.C: reformatting
407 math_xiter.[Ch]: remove unneeded members
409 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
413 * formula.C: remove cruft
415 * array.C (begin): new method
418 2001-02-14 André Pönitz <poenitz@htwm.de>
420 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
422 * math_cursor.C: reformatting
424 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
428 * math_matrixinset.C:
429 * math_macrotemplate.C:
434 * math_decorationinset.C:
436 * math_accentinset.C:
437 * math_sqrtinset.C: include LOstream.h and add using directive.
439 2001-02-14 André Pönitz <poenitz@htwm.de>
441 * math_iter.C: reformatting
443 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
445 * math_spaceinset.C (GetSpace): move here
447 * math_parinset.C: add debug.h, move several prev. inlined methods
450 * math_macrotable.C math_xiter.C support.C: add debug.h
452 * math_macro.h: remove debug.h, remove typedefs
454 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
457 * math_hash.C: change some defines to int const. change use of
458 LM_TC_NORMAL to LM_TC_VAR
460 * math_draw.C: delete file
462 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
463 forward decls. remove LM_TC_NORMAL, move inline methods to
464 support.C (and support.h)
466 * math_cursor.C: move several previous inlined methods here
468 * math_bigopinset.h math_dotsinset.h math_funcinset.h
469 math_parinset.h math_spaceinset.h: add math_defs.h
471 * math_accentinset.h: add support.h and math_defs.h
473 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
475 * formula.h: remove unused func decl: OpenMathInset
477 * formula.C math_inset.h: get rid of math_defs.h
479 * array.h: switch to support.h instead of math_defs.h
481 * array.C: remove one include
483 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
485 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
487 * math_parser.C: include macrotable and macrotemplate
489 * math_macrotemplate.[Ch]: new files
491 * math_macrotable.[Ch]: new files
493 * math_macroarg.[Ch]: new files
495 * math_macro.C: move stuff to the new files.
497 * math_cursor.C: include math_macrotable.h
499 * macro_support.[Ch]: new files
501 * formulamacro.C: add more includes
503 * Makefile.am (libmathed_la_SOURCES): add new files.
505 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
507 * Makefile.am (libmathed_la_SOURCES): remove duplicate
512 * math_parinset.C: add a bunch of "using" directives.
515 * math_decorationinset.h:
517 * math_spaceinset.h: remove more couples of inline.
519 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
521 * math_xiter.h: remove a couple of "inline"
523 * array.C (strange_copy): fix bug (hopefully)
524 * many files: add a lot of new files and move methods to the class
525 files they belong to. Only first attempt at cleanup more will
528 2001-02-12 André Pönitz <poenitz@htwm.de>
530 * math_macro.[hC]: replace MathMacroArgument[] with
531 std::vector<MathMacroArgument>
533 math_inset.C: replace int[] with std::vector<int>
535 * math_symbols.C: replace FL_OBJECTP[] with
536 std::vector<FL_OBJECT*>
538 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
540 * math_defs.h (struct MathedRowSt): make all private variables end
541 with '_', initialize in initializer list instead of in function
544 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
546 * formula.C (LocalDispatch): Change the default action of
547 break-line to create an align* environment instead of eqnarray*.
549 * math_inset.C (Metrics): Correct drawing of the multline
552 2001-02-12 André Pönitz <poenitz@htwm.de>
554 * array.[hC]: replace private variable maxsize_ with call to
556 * math_defs.h: replace int[] by std::vector<int> for
559 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
561 * array.h: made all variables private, removed friend, added new
562 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
563 non const operator[] added setter for last and getter for maxsize.
564 changed name from LyxArrayBase to MathedArray.
565 changed name of some methods to start with lowerchar.
566 moved inline methods to array.C
568 * math_iter.C + several file: changes because of the above.
570 * array.C: new file with the prev inline methods.
572 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
574 * Many files: add support for the align environment from amsmath.
576 2001-02-09 André Pönitz <poenitz@htwm.de>
578 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
579 * several files: subsequent changes
580 * math_iter.h: remove unused prototype
583 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
585 * math_macro.C (draw): add .c_str() to .str() (useful when
586 compiling with lyxstring, but STL sstream).
589 2001-02-08 André Pönitz <poenitz@htwm.de>
591 * several files: get rid of reinterpret_cast.
593 2001-02-04 Allan Rae <rae@lyx.org>
595 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
596 just casting the variable.
598 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
600 * Many files: Add support for multline and alignat environments from
603 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
605 * math_symbols.C (math_insert_greek): Move cursor right when
606 unlocking the math inset.
608 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
610 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
612 * formula.C (LocalDispatch): Before inserting a label in an
613 eqnarray, move the cursor to the top level.
615 * math_iter.C (getLabel): Test if crow == 0.
617 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
619 * math_draw.C (Metrics): Use the correct GetString.