1 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
3 * array.h (operator<<):
4 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
6 * math_macrotable.C: added using std::make_pair directive.
7 (dump): added using std::cerr directive here as I guess that this is
10 2001-04-20 Allan Rae <rae@lyx.org>
12 * formula.C (LocalDispatch): fixed another #warning. Guess who.
14 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
16 * math_macrotemplate.h: inherit privately from noncopyable
18 * math_macro.C (Metrics): reindent, use unsigned int as loop var
19 (setArgumentIdx): change test to avoid unsigned warning
21 * formula.C (LocalDispatch): use LFUN_MESSAGE
23 2001-04-16 Allan Rae <rae@lyx.org>
25 * formula.C (Latex, getLabelList, LocalDispatch):
26 * math_parser.C (mathed_parse):
27 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
28 an unrecognised preprocessor directive. So ensure they're wrapped.
30 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
32 * formula.C (draw): adjust for cursor_visible
33 (ToggleInsetCursor): adjust for cursor_visible and constify asc
35 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
36 (HideInsetCursor): adjust for cursor_visible
37 (LocalDispatch): constify default_label and res
39 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
41 * math_rowst.C: add missing #include <config.h>.
43 2001-03-16 André Pönitz <poenitz@htwm.de>
47 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
49 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
57 * math_symbols.C: maths panel moved to GUII
59 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
61 * math_cursor.C: use lyxerr instead of cerr.
63 2001-03-15 André Pönitz <poenitz@htwm.de>
65 * math_cursor.C: fix bug (cursor was leaving two insets at a time
68 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
70 * math_macrotable.h: noncopyable is in namespace boost
71 * math_macrotemplate.h: ditto
73 * math_rowst.h: make MathedRowContainer::iterator public.
75 2001-03-15 André Pönitz <poenitz@htwm.de>
77 * math_parser.C: read '\nonumber' again (was broken)
79 * math_rowst.C: new file
81 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
83 * math_cursor.C: added using directive.
85 2001-03-15 André Pönitz <poenitz@htwm.de>
87 * math_rowst.h: Finally remove MathedRowSt
90 math_xiter.C: changed accordingly
92 2001-03-12 André Pönitz <poenitz@htwm.de>
94 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
95 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
97 2001-03-10 André Pönitz <poenitz@htwm.de>
100 math_matrixinset.C: move adjustVerticalSt to the only place where
101 it is used. Fix a small bug where the cached row structure and the
102 actual data get out of sync after the deletion of whole rows
104 2001-03-09 André Pönitz <poenitz@htwm.de>
106 * math_cursor.C: use std::vector<> in MathStackXIter
107 change selstk from a pointer to the "real thing"
109 * math_rowst.h: new MathedRowContainer::erase method
111 * math_xiter.C: use MathedRowContainer::erase
113 * math_parser.C: use MathedRowContainer::insert_after
115 2001-03-08 André Pönitz <poenitz@htwm.de>
117 * math_rowst.h: give MathedRowContainer an 'insert' method.
119 * math_xiter.C: new 'container()' method to encapsulated access to
120 the MathParInset's MathedRowContainer
122 * math_rowst.h: proper copy constructor and destructor for
125 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
126 automatically created by the compiler are ok now.
128 2001-03-06 André Pönitz <poenitz@htwm.de>
130 * array.[Ch]: factor out deep_copy,
131 remove third argument from raw_pointer_insert
133 * math_iter.[Ch]: remove unused function Clear()
135 * math_cursor.C: change signature of MathStackXIter:push()
138 * math_rowst.h: introduction of MathRowContainer
139 several files: corresponding changes
141 2001-03-04 André Pönitz <poenitz@htwm.de>
143 * math_macrotemplate.[Ch]:
144 math_macro.C: move update() functionality to the macro
146 * math_rowst.h: split MathedRowSt into "data" and "list"
148 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
150 * math_macrotemplate.C (update): use MathMacro::getArg, and
151 receive a const reference.
152 (getMacroPar): add an Assert
154 * math_macrotemplate.h: make MathMacro a friend, make update take
157 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
158 and store a MathMacroArgument in the vector
159 * math_macro.C: changes because of the above.
162 * math_parser.C (mathed_parse): plug potential leak
164 * math_iter.h: add comment on virtual destructor
166 * math_iter.C (Delete): make c const
168 * math_parinset.C (Metrics): cleanup indent. make one string const.
170 * math_inset.C (size): move out of line
173 * math_macroarg.h: remove default constructor
175 * math_macroarg.C: include Lsstream.h instead of debug.h
176 (MathMacroArgument): remove default constructor
177 (Write): add std:: on ostream arg
179 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
182 * formula.C: make DEBUG into lyxerr
184 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
186 * math_macrotemplate.h: make noncopyable, remove last arg to
187 constructor, remove flags_ add edit_
188 (flags): remove method
190 * math_macrotemplate.C (setArgument): delete method
191 (update): make idx const
192 (Metrics): use edit_, remove flags_
193 (draw): use edit_, remove flags_
194 (setEditMode): set edit_, remove flags_
195 (MathMacroTemplate): initialize edit_, remove flags_
197 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
198 shared_ptr, let constructor take a shared_ptr
200 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
202 (draw): remove unneded update, remove removed update of x,y
203 (GetXY): call tmplates GetMacroXY directly
204 (SetFocus): call Metrics() instead of update()
205 (Write): remove support for math macro environments, simplifications.
207 * math_macrotable.h: make class noncopyable, change getMacro to
208 createMacro, change vector to map store a
209 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
211 * math_macrotable.C: add pragma
212 (createMacro): change name from getMacro, use shared_ptr
213 (getTemplate): Use map lookup to get macro, return shared_ptr
214 (addTemplate): assert that m containse a valid pointer, use map[]
216 (builtinMacros): by using shared_ptr fix the mem leak, remove
217 commented out unsupported macros
219 * math_cursor.C: changes because of the above
220 * math_parser.C: changes because of the abobe
222 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
223 default arg on constructor.
224 * formulamacro.C: changes because of the above
226 * math_parinset.h: add pragma
227 (SetAlign): move inline out of class def
231 (setArgumentIdx): ditto
232 (setNextArgIdx): ditto
233 (getArgumentIdx): ditto
234 (getMaxArgumentIdx): ditto
239 * math_parinset.C: add pragma
240 (Write): change the else clause, lessen depth
242 * math_macroarg.h: small whitespace change
244 * array.C: include support/LOstream.h add using ostream and endl
246 * array.h (dump): add std:: on ostream
248 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
250 * math_macrotemplate.h: remove default arg on update
252 * math_macrotemplate.C (update): add assert and remove noop case.
254 * formulamacro.C (Read): add comment.
255 (ascent): remove noop call to MathMacroTemplate
260 * math_parser.C (mathed_parse): fix another potential problem by
261 passing a freestanding mathedarray.
263 * math_root.C (GetData): add const version
265 * math_parinset.C (~MathParInset): delete
266 (GetData): add const version
268 * math_matrixinset.C (MathMatrixInset): delete pointer version,
269 make it a proper copy constructor instead
271 (MathMatrixInset): remvoe default val for m and n
273 * math_macro.C (GetData): add const version
275 * math_fracinset.C (GetData): add const version
277 * math_cursor.C (SelCopy): make p1 and p2 const
278 (SelCut): make p1 and p2 const
280 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
281 (LyxCode): move inline out of class
285 * array.[Ch] (dump): method added for debugging purposes
287 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
288 mathed_parse when reading a matrix.
290 * math_spaceinset.[Ch]: add pragma, make variables private add
291 '_', change order of method definitions.
293 * math_root.h (~MathRootInset): delete
294 Change uroot_ to be a real object instead of a pointer
295 * math_root.C: changes because of the above
297 * math_macro.C (MathMacro(MathMacro*)): delete constructor
298 (MathMacro(MathMacro const &)): new copy constructor
300 * math_inset.h: delete constructor taking a pointer to MathedInset
301 (size, incSize): move inline method
303 * math_funcinset.h: add pragma, remove class vars ln and fname,
304 change protected to private, add '_' to priv vars.
305 (~MathFuncInset): remove
307 * math_fracinset.h: make MathParInset den_ a real object and not a
310 * math_fracinset.C (MathFracInset): clean up, move initalization
311 to initialization list
312 (~MathFracInset): remove
315 * math_draw.C: delete file
317 * math_dotsinset.[Ch]: add pragma
319 * math_bigopinset.h: make protected variables private add '_' to vars.
321 * math_bigopinset.C: move methods to follow class definition order
323 * math_accentinset.h (getAccentCode): move inline here
325 * math_accentinset.C (MathAccentInset): cleanup
328 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
330 * math_inset.[Ch] (MathedInset): remove method
332 * Makefile.am (libmathed_la_SOURCES): correct typo
334 * math_parinset.C (draw): move MathedXiter data(this) up. and
335 remove it two other places.
337 * math_macro.C (MathMacro): use array directly, don't use
338 setArgumentIdx and GetData
340 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
342 * math_macroarg.C (MathMacroArgument): delete
343 * math_macro.C (~MathMacro): delete
344 * math_macrotemplate.C (~MathMacroTemplate): delete
346 * math_decorationinset.[Ch]: add pragma
347 * math_deliminset.[Ch]: likewise
348 * math_fracinset.[Ch]: likewise
349 * math_macroarg.[Ch]: likewise
350 * math_macrotemplate.[Ch]: likewise
351 * math_matrixinset.[Ch]: likewise
353 * formulamacro.C (Read): set contents of tmacro_ to ar.
355 * formulamacro.h: add '_' to private variables.
356 * formalamacro.C: changes because of this.
358 2001-02-23 Juergen Vigna <jug@sad.it>
360 * formula.C (LocalDispatch): changed action to be a kb_action (as it
361 should be) and not an int.
363 * formulamacro.C (LocalDispatch): ditto.
365 2001-02-14 André Pönitz <poenitz@htwm.de>
367 * math_parinset.[Ch]: make array a real MathArray, not just a
370 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
372 * several files: subsequent changes
374 * math_cursor.C: make selarray a proper MathArray
376 * several files: Change "MathedArray *" to "MathedArray &"
379 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
381 * array.C (MathedArray): Fix compilation problem.
383 2001-02-14 André Pönitz <poenitz@htwm.de>
385 * array.[Ch]: "deep" copy constructor and assignment operator for
388 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
390 * math_iter.[Ch]: remove SetData
391 several files: subsequent changes
393 2001-02-14 André Pönitz <poenitz@htwm.de>
395 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
398 * math_iter.C: default-construct and resize array
400 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
402 * math_xiter.h: move ipush and ipop to public, add _ on private
403 variables, move protected var to private, remove friend.
405 * math_cursor.C (insertInset): rename method from Insert also
406 remove default arg val. Call the public methods of xiter instead
407 of private variables.
409 * changes to several files because of the above.
411 2001-02-14 André Pönitz <poenitz@htwm.de>
413 * math_iter.[Ch]: hide fcode_
415 * math_parinset.C: subsequent changes
418 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
420 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
423 * math_write.C: delete file
424 * math_delim.C: delete file
425 * marh_sqrtinset.h: delete file
427 * move funcs to more localized files, more general cleanup.
428 Constify several local vars. Doxygen changes. Formatting.
430 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
432 * support.C: add some consts
434 * matriz.C: clean up a bit.
435 (matmat): remove the for loop.
437 * several files: changes so that several friends can be removed
439 2001-02-14 André Pönitz <poenitz@htwm.de>
441 * formula.C: reformatting
445 math_xiter.[Ch]: remove unneeded members
447 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
451 * formula.C: remove cruft
453 * array.C (begin): new method
456 2001-02-14 André Pönitz <poenitz@htwm.de>
458 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
460 * math_cursor.C: reformatting
462 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
466 * math_matrixinset.C:
467 * math_macrotemplate.C:
472 * math_decorationinset.C:
474 * math_accentinset.C:
475 * math_sqrtinset.C: include LOstream.h and add using directive.
477 2001-02-14 André Pönitz <poenitz@htwm.de>
479 * math_iter.C: reformatting
481 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
483 * math_spaceinset.C (GetSpace): move here
485 * math_parinset.C: add debug.h, move several prev. inlined methods
488 * math_macrotable.C math_xiter.C support.C: add debug.h
490 * math_macro.h: remove debug.h, remove typedefs
492 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
495 * math_hash.C: change some defines to int const. change use of
496 LM_TC_NORMAL to LM_TC_VAR
498 * math_draw.C: delete file
500 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
501 forward decls. remove LM_TC_NORMAL, move inline methods to
502 support.C (and support.h)
504 * math_cursor.C: move several previous inlined methods here
506 * math_bigopinset.h math_dotsinset.h math_funcinset.h
507 math_parinset.h math_spaceinset.h: add math_defs.h
509 * math_accentinset.h: add support.h and math_defs.h
511 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
513 * formula.h: remove unused func decl: OpenMathInset
515 * formula.C math_inset.h: get rid of math_defs.h
517 * array.h: switch to support.h instead of math_defs.h
519 * array.C: remove one include
521 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
523 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
525 * math_parser.C: include macrotable and macrotemplate
527 * math_macrotemplate.[Ch]: new files
529 * math_macrotable.[Ch]: new files
531 * math_macroarg.[Ch]: new files
533 * math_macro.C: move stuff to the new files.
535 * math_cursor.C: include math_macrotable.h
537 * macro_support.[Ch]: new files
539 * formulamacro.C: add more includes
541 * Makefile.am (libmathed_la_SOURCES): add new files.
543 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
545 * Makefile.am (libmathed_la_SOURCES): remove duplicate
550 * math_parinset.C: add a bunch of "using" directives.
553 * math_decorationinset.h:
555 * math_spaceinset.h: remove more couples of inline.
557 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
559 * math_xiter.h: remove a couple of "inline"
561 * array.C (strange_copy): fix bug (hopefully)
562 * many files: add a lot of new files and move methods to the class
563 files they belong to. Only first attempt at cleanup more will
566 2001-02-12 André Pönitz <poenitz@htwm.de>
568 * math_macro.[hC]: replace MathMacroArgument[] with
569 std::vector<MathMacroArgument>
571 math_inset.C: replace int[] with std::vector<int>
573 * math_symbols.C: replace FL_OBJECTP[] with
574 std::vector<FL_OBJECT*>
576 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
578 * math_defs.h (struct MathedRowSt): make all private variables end
579 with '_', initialize in initializer list instead of in function
582 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
584 * formula.C (LocalDispatch): Change the default action of
585 break-line to create an align* environment instead of eqnarray*.
587 * math_inset.C (Metrics): Correct drawing of the multline
590 2001-02-12 André Pönitz <poenitz@htwm.de>
592 * array.[hC]: replace private variable maxsize_ with call to
594 * math_defs.h: replace int[] by std::vector<int> for
597 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
599 * array.h: made all variables private, removed friend, added new
600 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
601 non const operator[] added setter for last and getter for maxsize.
602 changed name from LyxArrayBase to MathedArray.
603 changed name of some methods to start with lowerchar.
604 moved inline methods to array.C
606 * math_iter.C + several file: changes because of the above.
608 * array.C: new file with the prev inline methods.
610 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
612 * Many files: add support for the align environment from amsmath.
614 2001-02-09 André Pönitz <poenitz@htwm.de>
616 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
617 * several files: subsequent changes
618 * math_iter.h: remove unused prototype
621 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
623 * math_macro.C (draw): add .c_str() to .str() (useful when
624 compiling with lyxstring, but STL sstream).
627 2001-02-08 André Pönitz <poenitz@htwm.de>
629 * several files: get rid of reinterpret_cast.
631 2001-02-04 Allan Rae <rae@lyx.org>
633 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
634 just casting the variable.
636 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
638 * Many files: Add support for multline and alignat environments from
641 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
643 * math_symbols.C (math_insert_greek): Move cursor right when
644 unlocking the math inset.
646 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
648 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
650 * formula.C (LocalDispatch): Before inserting a label in an
651 eqnarray, move the cursor to the top level.
653 * math_iter.C (getLabel): Test if crow == 0.
655 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
657 * math_draw.C (Metrics): Use the correct GetString.