2 2001-04-27 André Pönitz <poenitz@htwm.de>
4 * math_parser.C: fix \frac handling bug introduced on 04-24
5 * math_xiter.C: hotfix for merging "shared" insets
7 2001-04-25 André Pönitz <poenitz@htwm.de>
9 * math_*.[Ch]: WriteNormal
10 * formula.C: Support for new "math extern" command
12 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
14 * math_macrotable.C: include <iostream>
16 2001-04-24 André Pönitz <poenitz@htwm.de>
19 * math_macrotable.[Ch]:
20 * math_macroarg.[Ch]: restructuring of macro handling
23 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
25 * array.h (operator<<):
26 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
28 * math_macrotable.C: added using std::make_pair directive.
29 (dump): added using std::cerr directive here as I guess that this is
32 2001-04-20 Allan Rae <rae@lyx.org>
34 * formula.C (LocalDispatch): fixed another #warning. Guess who.
36 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
38 * math_macrotemplate.h: inherit privately from noncopyable
40 * math_macro.C (Metrics): reindent, use unsigned int as loop var
41 (setArgumentIdx): change test to avoid unsigned warning
43 * formula.C (LocalDispatch): use LFUN_MESSAGE
45 2001-04-16 Allan Rae <rae@lyx.org>
47 * formula.C (Latex, getLabelList, LocalDispatch):
48 * math_parser.C (mathed_parse):
49 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
50 an unrecognised preprocessor directive. So ensure they're wrapped.
52 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
54 * formula.C (draw): adjust for cursor_visible
55 (ToggleInsetCursor): adjust for cursor_visible and constify asc
57 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
58 (HideInsetCursor): adjust for cursor_visible
59 (LocalDispatch): constify default_label and res
61 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
63 * math_rowst.C: add missing #include <config.h>.
65 2001-03-16 André Pönitz <poenitz@htwm.de>
69 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
71 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
79 * math_symbols.C: maths panel moved to GUII
81 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
83 * math_cursor.C: use lyxerr instead of cerr.
85 2001-03-15 André Pönitz <poenitz@htwm.de>
87 * math_cursor.C: fix bug (cursor was leaving two insets at a time
90 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
92 * math_macrotable.h: noncopyable is in namespace boost
93 * math_macrotemplate.h: ditto
95 * math_rowst.h: make MathedRowContainer::iterator public.
97 2001-03-15 André Pönitz <poenitz@htwm.de>
99 * math_parser.C: read '\nonumber' again (was broken)
101 * math_rowst.C: new file
103 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
105 * math_cursor.C: added using directive.
107 2001-03-15 André Pönitz <poenitz@htwm.de>
109 * math_rowst.h: Finally remove MathedRowSt
112 math_xiter.C: changed accordingly
114 2001-03-12 André Pönitz <poenitz@htwm.de>
116 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
117 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
119 2001-03-10 André Pönitz <poenitz@htwm.de>
122 math_matrixinset.C: move adjustVerticalSt to the only place where
123 it is used. Fix a small bug where the cached row structure and the
124 actual data get out of sync after the deletion of whole rows
126 2001-03-09 André Pönitz <poenitz@htwm.de>
128 * math_cursor.C: use std::vector<> in MathStackXIter
129 change selstk from a pointer to the "real thing"
131 * math_rowst.h: new MathedRowContainer::erase method
133 * math_xiter.C: use MathedRowContainer::erase
135 * math_parser.C: use MathedRowContainer::insert_after
137 2001-03-08 André Pönitz <poenitz@htwm.de>
139 * math_rowst.h: give MathedRowContainer an 'insert' method.
141 * math_xiter.C: new 'container()' method to encapsulated access to
142 the MathParInset's MathedRowContainer
144 * math_rowst.h: proper copy constructor and destructor for
147 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
148 automatically created by the compiler are ok now.
150 2001-03-06 André Pönitz <poenitz@htwm.de>
152 * array.[Ch]: factor out deep_copy,
153 remove third argument from raw_pointer_insert
155 * math_iter.[Ch]: remove unused function Clear()
157 * math_cursor.C: change signature of MathStackXIter:push()
160 * math_rowst.h: introduction of MathRowContainer
161 several files: corresponding changes
163 2001-03-04 André Pönitz <poenitz@htwm.de>
165 * math_macrotemplate.[Ch]:
166 math_macro.C: move update() functionality to the macro
168 * math_rowst.h: split MathedRowSt into "data" and "list"
170 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
172 * math_macrotemplate.C (update): use MathMacro::getArg, and
173 receive a const reference.
174 (getMacroPar): add an Assert
176 * math_macrotemplate.h: make MathMacro a friend, make update take
179 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
180 and store a MathMacroArgument in the vector
181 * math_macro.C: changes because of the above.
184 * math_parser.C (mathed_parse): plug potential leak
186 * math_iter.h: add comment on virtual destructor
188 * math_iter.C (Delete): make c const
190 * math_parinset.C (Metrics): cleanup indent. make one string const.
192 * math_inset.C (size): move out of line
195 * math_macroarg.h: remove default constructor
197 * math_macroarg.C: include Lsstream.h instead of debug.h
198 (MathMacroArgument): remove default constructor
199 (Write): add std:: on ostream arg
201 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
204 * formula.C: make DEBUG into lyxerr
206 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
208 * math_macrotemplate.h: make noncopyable, remove last arg to
209 constructor, remove flags_ add edit_
210 (flags): remove method
212 * math_macrotemplate.C (setArgument): delete method
213 (update): make idx const
214 (Metrics): use edit_, remove flags_
215 (draw): use edit_, remove flags_
216 (setEditMode): set edit_, remove flags_
217 (MathMacroTemplate): initialize edit_, remove flags_
219 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
220 shared_ptr, let constructor take a shared_ptr
222 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
224 (draw): remove unneded update, remove removed update of x,y
225 (GetXY): call tmplates GetMacroXY directly
226 (SetFocus): call Metrics() instead of update()
227 (Write): remove support for math macro environments, simplifications.
229 * math_macrotable.h: make class noncopyable, change getMacro to
230 createMacro, change vector to map store a
231 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
233 * math_macrotable.C: add pragma
234 (createMacro): change name from getMacro, use shared_ptr
235 (getTemplate): Use map lookup to get macro, return shared_ptr
236 (addTemplate): assert that m containse a valid pointer, use map[]
238 (builtinMacros): by using shared_ptr fix the mem leak, remove
239 commented out unsupported macros
241 * math_cursor.C: changes because of the above
242 * math_parser.C: changes because of the abobe
244 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
245 default arg on constructor.
246 * formulamacro.C: changes because of the above
248 * math_parinset.h: add pragma
249 (SetAlign): move inline out of class def
253 (setArgumentIdx): ditto
254 (setNextArgIdx): ditto
255 (getArgumentIdx): ditto
256 (getMaxArgumentIdx): ditto
261 * math_parinset.C: add pragma
262 (Write): change the else clause, lessen depth
264 * math_macroarg.h: small whitespace change
266 * array.C: include support/LOstream.h add using ostream and endl
268 * array.h (dump): add std:: on ostream
270 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
272 * math_macrotemplate.h: remove default arg on update
274 * math_macrotemplate.C (update): add assert and remove noop case.
276 * formulamacro.C (Read): add comment.
277 (ascent): remove noop call to MathMacroTemplate
282 * math_parser.C (mathed_parse): fix another potential problem by
283 passing a freestanding mathedarray.
285 * math_root.C (GetData): add const version
287 * math_parinset.C (~MathParInset): delete
288 (GetData): add const version
290 * math_matrixinset.C (MathMatrixInset): delete pointer version,
291 make it a proper copy constructor instead
293 (MathMatrixInset): remvoe default val for m and n
295 * math_macro.C (GetData): add const version
297 * math_fracinset.C (GetData): add const version
299 * math_cursor.C (SelCopy): make p1 and p2 const
300 (SelCut): make p1 and p2 const
302 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
303 (LyxCode): move inline out of class
307 * array.[Ch] (dump): method added for debugging purposes
309 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
310 mathed_parse when reading a matrix.
312 * math_spaceinset.[Ch]: add pragma, make variables private add
313 '_', change order of method definitions.
315 * math_root.h (~MathRootInset): delete
316 Change uroot_ to be a real object instead of a pointer
317 * math_root.C: changes because of the above
319 * math_macro.C (MathMacro(MathMacro*)): delete constructor
320 (MathMacro(MathMacro const &)): new copy constructor
322 * math_inset.h: delete constructor taking a pointer to MathedInset
323 (size, incSize): move inline method
325 * math_funcinset.h: add pragma, remove class vars ln and fname,
326 change protected to private, add '_' to priv vars.
327 (~MathFuncInset): remove
329 * math_fracinset.h: make MathParInset den_ a real object and not a
332 * math_fracinset.C (MathFracInset): clean up, move initalization
333 to initialization list
334 (~MathFracInset): remove
337 * math_draw.C: delete file
339 * math_dotsinset.[Ch]: add pragma
341 * math_bigopinset.h: make protected variables private add '_' to vars.
343 * math_bigopinset.C: move methods to follow class definition order
345 * math_accentinset.h (getAccentCode): move inline here
347 * math_accentinset.C (MathAccentInset): cleanup
350 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
352 * math_inset.[Ch] (MathedInset): remove method
354 * Makefile.am (libmathed_la_SOURCES): correct typo
356 * math_parinset.C (draw): move MathedXiter data(this) up. and
357 remove it two other places.
359 * math_macro.C (MathMacro): use array directly, don't use
360 setArgumentIdx and GetData
362 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
364 * math_macroarg.C (MathMacroArgument): delete
365 * math_macro.C (~MathMacro): delete
366 * math_macrotemplate.C (~MathMacroTemplate): delete
368 * math_decorationinset.[Ch]: add pragma
369 * math_deliminset.[Ch]: likewise
370 * math_fracinset.[Ch]: likewise
371 * math_macroarg.[Ch]: likewise
372 * math_macrotemplate.[Ch]: likewise
373 * math_matrixinset.[Ch]: likewise
375 * formulamacro.C (Read): set contents of tmacro_ to ar.
377 * formulamacro.h: add '_' to private variables.
378 * formalamacro.C: changes because of this.
380 2001-02-23 Juergen Vigna <jug@sad.it>
382 * formula.C (LocalDispatch): changed action to be a kb_action (as it
383 should be) and not an int.
385 * formulamacro.C (LocalDispatch): ditto.
387 2001-02-14 André Pönitz <poenitz@htwm.de>
389 * math_parinset.[Ch]: make array a real MathArray, not just a
392 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
394 * several files: subsequent changes
396 * math_cursor.C: make selarray a proper MathArray
398 * several files: Change "MathedArray *" to "MathedArray &"
401 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
403 * array.C (MathedArray): Fix compilation problem.
405 2001-02-14 André Pönitz <poenitz@htwm.de>
407 * array.[Ch]: "deep" copy constructor and assignment operator for
410 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
412 * math_iter.[Ch]: remove SetData
413 several files: subsequent changes
415 2001-02-14 André Pönitz <poenitz@htwm.de>
417 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
420 * math_iter.C: default-construct and resize array
422 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
424 * math_xiter.h: move ipush and ipop to public, add _ on private
425 variables, move protected var to private, remove friend.
427 * math_cursor.C (insertInset): rename method from Insert also
428 remove default arg val. Call the public methods of xiter instead
429 of private variables.
431 * changes to several files because of the above.
433 2001-02-14 André Pönitz <poenitz@htwm.de>
435 * math_iter.[Ch]: hide fcode_
437 * math_parinset.C: subsequent changes
440 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
442 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
445 * math_write.C: delete file
446 * math_delim.C: delete file
447 * marh_sqrtinset.h: delete file
449 * move funcs to more localized files, more general cleanup.
450 Constify several local vars. Doxygen changes. Formatting.
452 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
454 * support.C: add some consts
456 * matriz.C: clean up a bit.
457 (matmat): remove the for loop.
459 * several files: changes so that several friends can be removed
461 2001-02-14 André Pönitz <poenitz@htwm.de>
463 * formula.C: reformatting
467 math_xiter.[Ch]: remove unneeded members
469 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
473 * formula.C: remove cruft
475 * array.C (begin): new method
478 2001-02-14 André Pönitz <poenitz@htwm.de>
480 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
482 * math_cursor.C: reformatting
484 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
488 * math_matrixinset.C:
489 * math_macrotemplate.C:
494 * math_decorationinset.C:
496 * math_accentinset.C:
497 * math_sqrtinset.C: include LOstream.h and add using directive.
499 2001-02-14 André Pönitz <poenitz@htwm.de>
501 * math_iter.C: reformatting
503 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
505 * math_spaceinset.C (GetSpace): move here
507 * math_parinset.C: add debug.h, move several prev. inlined methods
510 * math_macrotable.C math_xiter.C support.C: add debug.h
512 * math_macro.h: remove debug.h, remove typedefs
514 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
517 * math_hash.C: change some defines to int const. change use of
518 LM_TC_NORMAL to LM_TC_VAR
520 * math_draw.C: delete file
522 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
523 forward decls. remove LM_TC_NORMAL, move inline methods to
524 support.C (and support.h)
526 * math_cursor.C: move several previous inlined methods here
528 * math_bigopinset.h math_dotsinset.h math_funcinset.h
529 math_parinset.h math_spaceinset.h: add math_defs.h
531 * math_accentinset.h: add support.h and math_defs.h
533 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
535 * formula.h: remove unused func decl: OpenMathInset
537 * formula.C math_inset.h: get rid of math_defs.h
539 * array.h: switch to support.h instead of math_defs.h
541 * array.C: remove one include
543 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
545 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
547 * math_parser.C: include macrotable and macrotemplate
549 * math_macrotemplate.[Ch]: new files
551 * math_macrotable.[Ch]: new files
553 * math_macroarg.[Ch]: new files
555 * math_macro.C: move stuff to the new files.
557 * math_cursor.C: include math_macrotable.h
559 * macro_support.[Ch]: new files
561 * formulamacro.C: add more includes
563 * Makefile.am (libmathed_la_SOURCES): add new files.
565 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
567 * Makefile.am (libmathed_la_SOURCES): remove duplicate
572 * math_parinset.C: add a bunch of "using" directives.
575 * math_decorationinset.h:
577 * math_spaceinset.h: remove more couples of inline.
579 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
581 * math_xiter.h: remove a couple of "inline"
583 * array.C (strange_copy): fix bug (hopefully)
584 * many files: add a lot of new files and move methods to the class
585 files they belong to. Only first attempt at cleanup more will
588 2001-02-12 André Pönitz <poenitz@htwm.de>
590 * math_macro.[hC]: replace MathMacroArgument[] with
591 std::vector<MathMacroArgument>
593 math_inset.C: replace int[] with std::vector<int>
595 * math_symbols.C: replace FL_OBJECTP[] with
596 std::vector<FL_OBJECT*>
598 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
600 * math_defs.h (struct MathedRowSt): make all private variables end
601 with '_', initialize in initializer list instead of in function
604 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
606 * formula.C (LocalDispatch): Change the default action of
607 break-line to create an align* environment instead of eqnarray*.
609 * math_inset.C (Metrics): Correct drawing of the multline
612 2001-02-12 André Pönitz <poenitz@htwm.de>
614 * array.[hC]: replace private variable maxsize_ with call to
616 * math_defs.h: replace int[] by std::vector<int> for
619 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
621 * array.h: made all variables private, removed friend, added new
622 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
623 non const operator[] added setter for last and getter for maxsize.
624 changed name from LyxArrayBase to MathedArray.
625 changed name of some methods to start with lowerchar.
626 moved inline methods to array.C
628 * math_iter.C + several file: changes because of the above.
630 * array.C: new file with the prev inline methods.
632 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
634 * Many files: add support for the align environment from amsmath.
636 2001-02-09 André Pönitz <poenitz@htwm.de>
638 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
639 * several files: subsequent changes
640 * math_iter.h: remove unused prototype
643 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
645 * math_macro.C (draw): add .c_str() to .str() (useful when
646 compiling with lyxstring, but STL sstream).
649 2001-02-08 André Pönitz <poenitz@htwm.de>
651 * several files: get rid of reinterpret_cast.
653 2001-02-04 Allan Rae <rae@lyx.org>
655 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
656 just casting the variable.
658 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
660 * Many files: Add support for multline and alignat environments from
663 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
665 * math_symbols.C (math_insert_greek): Move cursor right when
666 unlocking the math inset.
668 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
670 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
672 * formula.C (LocalDispatch): Before inserting a label in an
673 eqnarray, move the cursor to the top level.
675 * math_iter.C (getLabel): Test if crow == 0.
677 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
679 * math_draw.C (Metrics): Use the correct GetString.