1 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
4 * math_root.C: removed // -*- C++ -*- as first line.
6 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
8 * array.C: bring memmove into main namespace if necessary
10 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
12 * math_parser.C (yylex): use contains instead of strchr
13 (parse_align): remove last arg, change to take string const & as
15 (mathed_parse): use string for ar2 and ar, adjust
17 * math_decorationinset.C (Write): use compare instead of strcmp
19 * formula.C (LocalDispatch): change arg2 to string, adjust for this
20 (LocalDispatch): add std::
21 (LocalDispatch): use contains instead of strchr
23 * array.C (move): add std::
25 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
27 * matriz.C: add using directives when needed for C functions
28 declared in std:: namespace.
30 * math_macrotemplate.h: do not use explicitely std::string, but
33 * math_macroarg.C: avoid bringing the whole std:: namespace in
34 global-land. When you do that, there is an ambiguity between
35 lyxstring and std::string (which may be defined at the same time).
37 * formula.C (HandleExtern): add .c_str() to .str() (useful when
40 2001-04-27 André Pönitz <poenitz@htwm.de>
42 * math_parser.C: fix \frac handling bug introduced on 04-24
43 * math_xiter.C: hotfix for merging "shared" insets
45 2001-04-25 André Pönitz <poenitz@htwm.de>
47 * math_*.[Ch]: WriteNormal
48 * formula.C: Support for new "math extern" command
50 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
52 * math_macrotable.C: include <iostream>
54 2001-04-24 André Pönitz <poenitz@htwm.de>
57 * math_macrotable.[Ch]:
58 * math_macroarg.[Ch]: restructuring of macro handling
61 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
63 * array.h (operator<<):
64 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
66 * math_macrotable.C: added using std::make_pair directive.
67 (dump): added using std::cerr directive here as I guess that this is
70 2001-04-20 Allan Rae <rae@lyx.org>
72 * formula.C (LocalDispatch): fixed another #warning. Guess who.
74 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
76 * math_macrotemplate.h: inherit privately from noncopyable
78 * math_macro.C (Metrics): reindent, use unsigned int as loop var
79 (setArgumentIdx): change test to avoid unsigned warning
81 * formula.C (LocalDispatch): use LFUN_MESSAGE
83 2001-04-16 Allan Rae <rae@lyx.org>
85 * formula.C (Latex, getLabelList, LocalDispatch):
86 * math_parser.C (mathed_parse):
87 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
88 an unrecognised preprocessor directive. So ensure they're wrapped.
90 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
92 * formula.C (draw): adjust for cursor_visible
93 (ToggleInsetCursor): adjust for cursor_visible and constify asc
95 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
96 (HideInsetCursor): adjust for cursor_visible
97 (LocalDispatch): constify default_label and res
99 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
101 * math_rowst.C: add missing #include <config.h>.
103 2001-03-16 André Pönitz <poenitz@htwm.de>
105 * math_matrixinset.h:
106 * math_parinset.[Ch]:
107 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
109 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
117 * math_symbols.C: maths panel moved to GUII
119 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
121 * math_cursor.C: use lyxerr instead of cerr.
123 2001-03-15 André Pönitz <poenitz@htwm.de>
125 * math_cursor.C: fix bug (cursor was leaving two insets at a time
128 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
130 * math_macrotable.h: noncopyable is in namespace boost
131 * math_macrotemplate.h: ditto
133 * math_rowst.h: make MathedRowContainer::iterator public.
135 2001-03-15 André Pönitz <poenitz@htwm.de>
137 * math_parser.C: read '\nonumber' again (was broken)
139 * math_rowst.C: new file
141 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
143 * math_cursor.C: added using directive.
145 2001-03-15 André Pönitz <poenitz@htwm.de>
147 * math_rowst.h: Finally remove MathedRowSt
150 math_xiter.C: changed accordingly
152 2001-03-12 André Pönitz <poenitz@htwm.de>
154 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
155 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
157 2001-03-10 André Pönitz <poenitz@htwm.de>
160 math_matrixinset.C: move adjustVerticalSt to the only place where
161 it is used. Fix a small bug where the cached row structure and the
162 actual data get out of sync after the deletion of whole rows
164 2001-03-09 André Pönitz <poenitz@htwm.de>
166 * math_cursor.C: use std::vector<> in MathStackXIter
167 change selstk from a pointer to the "real thing"
169 * math_rowst.h: new MathedRowContainer::erase method
171 * math_xiter.C: use MathedRowContainer::erase
173 * math_parser.C: use MathedRowContainer::insert_after
175 2001-03-08 André Pönitz <poenitz@htwm.de>
177 * math_rowst.h: give MathedRowContainer an 'insert' method.
179 * math_xiter.C: new 'container()' method to encapsulated access to
180 the MathParInset's MathedRowContainer
182 * math_rowst.h: proper copy constructor and destructor for
185 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
186 automatically created by the compiler are ok now.
188 2001-03-06 André Pönitz <poenitz@htwm.de>
190 * array.[Ch]: factor out deep_copy,
191 remove third argument from raw_pointer_insert
193 * math_iter.[Ch]: remove unused function Clear()
195 * math_cursor.C: change signature of MathStackXIter:push()
198 * math_rowst.h: introduction of MathRowContainer
199 several files: corresponding changes
201 2001-03-04 André Pönitz <poenitz@htwm.de>
203 * math_macrotemplate.[Ch]:
204 math_macro.C: move update() functionality to the macro
206 * math_rowst.h: split MathedRowSt into "data" and "list"
208 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
210 * math_macrotemplate.C (update): use MathMacro::getArg, and
211 receive a const reference.
212 (getMacroPar): add an Assert
214 * math_macrotemplate.h: make MathMacro a friend, make update take
217 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
218 and store a MathMacroArgument in the vector
219 * math_macro.C: changes because of the above.
222 * math_parser.C (mathed_parse): plug potential leak
224 * math_iter.h: add comment on virtual destructor
226 * math_iter.C (Delete): make c const
228 * math_parinset.C (Metrics): cleanup indent. make one string const.
230 * math_inset.C (size): move out of line
233 * math_macroarg.h: remove default constructor
235 * math_macroarg.C: include Lsstream.h instead of debug.h
236 (MathMacroArgument): remove default constructor
237 (Write): add std:: on ostream arg
239 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
242 * formula.C: make DEBUG into lyxerr
244 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
246 * math_macrotemplate.h: make noncopyable, remove last arg to
247 constructor, remove flags_ add edit_
248 (flags): remove method
250 * math_macrotemplate.C (setArgument): delete method
251 (update): make idx const
252 (Metrics): use edit_, remove flags_
253 (draw): use edit_, remove flags_
254 (setEditMode): set edit_, remove flags_
255 (MathMacroTemplate): initialize edit_, remove flags_
257 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
258 shared_ptr, let constructor take a shared_ptr
260 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
262 (draw): remove unneded update, remove removed update of x,y
263 (GetXY): call tmplates GetMacroXY directly
264 (SetFocus): call Metrics() instead of update()
265 (Write): remove support for math macro environments, simplifications.
267 * math_macrotable.h: make class noncopyable, change getMacro to
268 createMacro, change vector to map store a
269 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
271 * math_macrotable.C: add pragma
272 (createMacro): change name from getMacro, use shared_ptr
273 (getTemplate): Use map lookup to get macro, return shared_ptr
274 (addTemplate): assert that m containse a valid pointer, use map[]
276 (builtinMacros): by using shared_ptr fix the mem leak, remove
277 commented out unsupported macros
279 * math_cursor.C: changes because of the above
280 * math_parser.C: changes because of the abobe
282 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
283 default arg on constructor.
284 * formulamacro.C: changes because of the above
286 * math_parinset.h: add pragma
287 (SetAlign): move inline out of class def
291 (setArgumentIdx): ditto
292 (setNextArgIdx): ditto
293 (getArgumentIdx): ditto
294 (getMaxArgumentIdx): ditto
299 * math_parinset.C: add pragma
300 (Write): change the else clause, lessen depth
302 * math_macroarg.h: small whitespace change
304 * array.C: include support/LOstream.h add using ostream and endl
306 * array.h (dump): add std:: on ostream
308 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
310 * math_macrotemplate.h: remove default arg on update
312 * math_macrotemplate.C (update): add assert and remove noop case.
314 * formulamacro.C (Read): add comment.
315 (ascent): remove noop call to MathMacroTemplate
320 * math_parser.C (mathed_parse): fix another potential problem by
321 passing a freestanding mathedarray.
323 * math_root.C (GetData): add const version
325 * math_parinset.C (~MathParInset): delete
326 (GetData): add const version
328 * math_matrixinset.C (MathMatrixInset): delete pointer version,
329 make it a proper copy constructor instead
331 (MathMatrixInset): remvoe default val for m and n
333 * math_macro.C (GetData): add const version
335 * math_fracinset.C (GetData): add const version
337 * math_cursor.C (SelCopy): make p1 and p2 const
338 (SelCut): make p1 and p2 const
340 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
341 (LyxCode): move inline out of class
345 * array.[Ch] (dump): method added for debugging purposes
347 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
348 mathed_parse when reading a matrix.
350 * math_spaceinset.[Ch]: add pragma, make variables private add
351 '_', change order of method definitions.
353 * math_root.h (~MathRootInset): delete
354 Change uroot_ to be a real object instead of a pointer
355 * math_root.C: changes because of the above
357 * math_macro.C (MathMacro(MathMacro*)): delete constructor
358 (MathMacro(MathMacro const &)): new copy constructor
360 * math_inset.h: delete constructor taking a pointer to MathedInset
361 (size, incSize): move inline method
363 * math_funcinset.h: add pragma, remove class vars ln and fname,
364 change protected to private, add '_' to priv vars.
365 (~MathFuncInset): remove
367 * math_fracinset.h: make MathParInset den_ a real object and not a
370 * math_fracinset.C (MathFracInset): clean up, move initalization
371 to initialization list
372 (~MathFracInset): remove
375 * math_draw.C: delete file
377 * math_dotsinset.[Ch]: add pragma
379 * math_bigopinset.h: make protected variables private add '_' to vars.
381 * math_bigopinset.C: move methods to follow class definition order
383 * math_accentinset.h (getAccentCode): move inline here
385 * math_accentinset.C (MathAccentInset): cleanup
388 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
390 * math_inset.[Ch] (MathedInset): remove method
392 * Makefile.am (libmathed_la_SOURCES): correct typo
394 * math_parinset.C (draw): move MathedXiter data(this) up. and
395 remove it two other places.
397 * math_macro.C (MathMacro): use array directly, don't use
398 setArgumentIdx and GetData
400 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
402 * math_macroarg.C (MathMacroArgument): delete
403 * math_macro.C (~MathMacro): delete
404 * math_macrotemplate.C (~MathMacroTemplate): delete
406 * math_decorationinset.[Ch]: add pragma
407 * math_deliminset.[Ch]: likewise
408 * math_fracinset.[Ch]: likewise
409 * math_macroarg.[Ch]: likewise
410 * math_macrotemplate.[Ch]: likewise
411 * math_matrixinset.[Ch]: likewise
413 * formulamacro.C (Read): set contents of tmacro_ to ar.
415 * formulamacro.h: add '_' to private variables.
416 * formalamacro.C: changes because of this.
418 2001-02-23 Juergen Vigna <jug@sad.it>
420 * formula.C (LocalDispatch): changed action to be a kb_action (as it
421 should be) and not an int.
423 * formulamacro.C (LocalDispatch): ditto.
425 2001-02-14 André Pönitz <poenitz@htwm.de>
427 * math_parinset.[Ch]: make array a real MathArray, not just a
430 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
432 * several files: subsequent changes
434 * math_cursor.C: make selarray a proper MathArray
436 * several files: Change "MathedArray *" to "MathedArray &"
439 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
441 * array.C (MathedArray): Fix compilation problem.
443 2001-02-14 André Pönitz <poenitz@htwm.de>
445 * array.[Ch]: "deep" copy constructor and assignment operator for
448 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
450 * math_iter.[Ch]: remove SetData
451 several files: subsequent changes
453 2001-02-14 André Pönitz <poenitz@htwm.de>
455 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
458 * math_iter.C: default-construct and resize array
460 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
462 * math_xiter.h: move ipush and ipop to public, add _ on private
463 variables, move protected var to private, remove friend.
465 * math_cursor.C (insertInset): rename method from Insert also
466 remove default arg val. Call the public methods of xiter instead
467 of private variables.
469 * changes to several files because of the above.
471 2001-02-14 André Pönitz <poenitz@htwm.de>
473 * math_iter.[Ch]: hide fcode_
475 * math_parinset.C: subsequent changes
478 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
480 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
483 * math_write.C: delete file
484 * math_delim.C: delete file
485 * marh_sqrtinset.h: delete file
487 * move funcs to more localized files, more general cleanup.
488 Constify several local vars. Doxygen changes. Formatting.
490 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
492 * support.C: add some consts
494 * matriz.C: clean up a bit.
495 (matmat): remove the for loop.
497 * several files: changes so that several friends can be removed
499 2001-02-14 André Pönitz <poenitz@htwm.de>
501 * formula.C: reformatting
505 math_xiter.[Ch]: remove unneeded members
507 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
511 * formula.C: remove cruft
513 * array.C (begin): new method
516 2001-02-14 André Pönitz <poenitz@htwm.de>
518 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
520 * math_cursor.C: reformatting
522 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
526 * math_matrixinset.C:
527 * math_macrotemplate.C:
532 * math_decorationinset.C:
534 * math_accentinset.C:
535 * math_sqrtinset.C: include LOstream.h and add using directive.
537 2001-02-14 André Pönitz <poenitz@htwm.de>
539 * math_iter.C: reformatting
541 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
543 * math_spaceinset.C (GetSpace): move here
545 * math_parinset.C: add debug.h, move several prev. inlined methods
548 * math_macrotable.C math_xiter.C support.C: add debug.h
550 * math_macro.h: remove debug.h, remove typedefs
552 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
555 * math_hash.C: change some defines to int const. change use of
556 LM_TC_NORMAL to LM_TC_VAR
558 * math_draw.C: delete file
560 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
561 forward decls. remove LM_TC_NORMAL, move inline methods to
562 support.C (and support.h)
564 * math_cursor.C: move several previous inlined methods here
566 * math_bigopinset.h math_dotsinset.h math_funcinset.h
567 math_parinset.h math_spaceinset.h: add math_defs.h
569 * math_accentinset.h: add support.h and math_defs.h
571 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
573 * formula.h: remove unused func decl: OpenMathInset
575 * formula.C math_inset.h: get rid of math_defs.h
577 * array.h: switch to support.h instead of math_defs.h
579 * array.C: remove one include
581 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
583 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
585 * math_parser.C: include macrotable and macrotemplate
587 * math_macrotemplate.[Ch]: new files
589 * math_macrotable.[Ch]: new files
591 * math_macroarg.[Ch]: new files
593 * math_macro.C: move stuff to the new files.
595 * math_cursor.C: include math_macrotable.h
597 * macro_support.[Ch]: new files
599 * formulamacro.C: add more includes
601 * Makefile.am (libmathed_la_SOURCES): add new files.
603 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
605 * Makefile.am (libmathed_la_SOURCES): remove duplicate
610 * math_parinset.C: add a bunch of "using" directives.
613 * math_decorationinset.h:
615 * math_spaceinset.h: remove more couples of inline.
617 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
619 * math_xiter.h: remove a couple of "inline"
621 * array.C (strange_copy): fix bug (hopefully)
622 * many files: add a lot of new files and move methods to the class
623 files they belong to. Only first attempt at cleanup more will
626 2001-02-12 André Pönitz <poenitz@htwm.de>
628 * math_macro.[hC]: replace MathMacroArgument[] with
629 std::vector<MathMacroArgument>
631 math_inset.C: replace int[] with std::vector<int>
633 * math_symbols.C: replace FL_OBJECTP[] with
634 std::vector<FL_OBJECT*>
636 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
638 * math_defs.h (struct MathedRowSt): make all private variables end
639 with '_', initialize in initializer list instead of in function
642 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
644 * formula.C (LocalDispatch): Change the default action of
645 break-line to create an align* environment instead of eqnarray*.
647 * math_inset.C (Metrics): Correct drawing of the multline
650 2001-02-12 André Pönitz <poenitz@htwm.de>
652 * array.[hC]: replace private variable maxsize_ with call to
654 * math_defs.h: replace int[] by std::vector<int> for
657 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
659 * array.h: made all variables private, removed friend, added new
660 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
661 non const operator[] added setter for last and getter for maxsize.
662 changed name from LyxArrayBase to MathedArray.
663 changed name of some methods to start with lowerchar.
664 moved inline methods to array.C
666 * math_iter.C + several file: changes because of the above.
668 * array.C: new file with the prev inline methods.
670 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
672 * Many files: add support for the align environment from amsmath.
674 2001-02-09 André Pönitz <poenitz@htwm.de>
676 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
677 * several files: subsequent changes
678 * math_iter.h: remove unused prototype
681 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
683 * math_macro.C (draw): add .c_str() to .str() (useful when
684 compiling with lyxstring, but STL sstream).
687 2001-02-08 André Pönitz <poenitz@htwm.de>
689 * several files: get rid of reinterpret_cast.
691 2001-02-04 Allan Rae <rae@lyx.org>
693 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
694 just casting the variable.
696 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
698 * Many files: Add support for multline and alignat environments from
701 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
703 * math_symbols.C (math_insert_greek): Move cursor right when
704 unlocking the math inset.
706 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
708 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
710 * formula.C (LocalDispatch): Before inserting a label in an
711 eqnarray, move the cursor to the top level.
713 * math_iter.C (getLabel): Test if crow == 0.
715 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
717 * math_draw.C (Metrics): Use the correct GetString.