1 2001-06-24 The LyX Project <Asger>
3 * math_inset.C: Cursor movement is better in square roots, among
6 * math_cursor.C (Interpret): Improved subscript bullshit. Improved
7 cursor up/down movement. What not.
9 2001-06-24 The LyX Project <Asger>
11 * math_matrixinset.C: Hidden labels are hidden, unless a small
12 dragon jumps out of the screen, and pronounce them to the entire
15 2001-06-24 The LyX Project <Easter egg>
17 * math_cursor.C: Cursor improvements after a few dead-ends
18 in the evolution of cursor movement were tested and scrapped.
20 2001-06-24 The LyX Project <Asger>
22 * math_cursor.C: Renamed stack to path.
24 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
27 * math_root.C: removed // -*- C++ -*- as first line.
29 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
31 * array.C: bring memmove into main namespace if necessary
33 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
35 * math_parser.C (yylex): use contains instead of strchr
36 (parse_align): remove last arg, change to take string const & as
38 (mathed_parse): use string for ar2 and ar, adjust
40 * math_decorationinset.C (Write): use compare instead of strcmp
42 * formula.C (LocalDispatch): change arg2 to string, adjust for this
43 (LocalDispatch): add std::
44 (LocalDispatch): use contains instead of strchr
46 * array.C (move): add std::
48 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
50 * matriz.C: add using directives when needed for C functions
51 declared in std:: namespace.
53 * math_macrotemplate.h: do not use explicitely std::string, but
56 * math_macroarg.C: avoid bringing the whole std:: namespace in
57 global-land. When you do that, there is an ambiguity between
58 lyxstring and std::string (which may be defined at the same time).
60 * formula.C (HandleExtern): add .c_str() to .str() (useful when
63 2001-04-27 André Pönitz <poenitz@htwm.de>
65 * math_parser.C: fix \frac handling bug introduced on 04-24
66 * math_xiter.C: hotfix for merging "shared" insets
67 * formula.C: fixing display after using math-insert
69 2001-04-25 André Pönitz <poenitz@htwm.de>
71 * math_*.[Ch]: WriteNormal
72 * formula.C: Support for new "math extern" command
73 * math_parser.C: fix \frac handling bug introduced on 04-24
74 * math_xiter.C: hotfix for merging "shared" insets
76 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
78 * math_macrotable.C: include <iostream>
80 2001-04-24 André Pönitz <poenitz@htwm.de>
83 * math_macrotable.[Ch]:
84 * math_macroarg.[Ch]: restructuring of macro handling
87 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
89 * array.h (operator<<):
90 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
92 * math_macrotable.C: added using std::make_pair directive.
93 (dump): added using std::cerr directive here as I guess that this is
96 2001-04-20 Allan Rae <rae@lyx.org>
98 * formula.C (LocalDispatch): fixed another #warning. Guess who.
100 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
102 * math_macrotemplate.h: inherit privately from noncopyable
104 * math_macro.C (Metrics): reindent, use unsigned int as loop var
105 (setArgumentIdx): change test to avoid unsigned warning
107 * formula.C (LocalDispatch): use LFUN_MESSAGE
109 2001-04-16 Allan Rae <rae@lyx.org>
111 * formula.C (Latex, getLabelList, LocalDispatch):
112 * math_parser.C (mathed_parse):
113 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
114 an unrecognised preprocessor directive. So ensure they're wrapped.
116 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
118 * formula.C (draw): adjust for cursor_visible
119 (ToggleInsetCursor): adjust for cursor_visible and constify asc
121 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
122 (HideInsetCursor): adjust for cursor_visible
123 (LocalDispatch): constify default_label and res
125 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
127 * math_rowst.C: add missing #include <config.h>.
129 2001-03-16 André Pönitz <poenitz@htwm.de>
131 * math_matrixinset.h:
132 * math_parinset.[Ch]:
133 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
135 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
143 * math_symbols.C: maths panel moved to GUII
145 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
147 * math_cursor.C: use lyxerr instead of cerr.
149 2001-03-15 André Pönitz <poenitz@htwm.de>
151 * math_cursor.C: fix bug (cursor was leaving two insets at a time
154 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
156 * math_macrotable.h: noncopyable is in namespace boost
157 * math_macrotemplate.h: ditto
159 * math_rowst.h: make MathedRowContainer::iterator public.
161 2001-03-15 André Pönitz <poenitz@htwm.de>
163 * math_parser.C: read '\nonumber' again (was broken)
165 * math_rowst.C: new file
167 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
169 * math_cursor.C: added using directive.
171 2001-03-15 André Pönitz <poenitz@htwm.de>
173 * math_rowst.h: Finally remove MathedRowSt
176 math_xiter.C: changed accordingly
178 2001-03-12 André Pönitz <poenitz@htwm.de>
180 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
181 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
183 2001-03-10 André Pönitz <poenitz@htwm.de>
186 math_matrixinset.C: move adjustVerticalSt to the only place where
187 it is used. Fix a small bug where the cached row structure and the
188 actual data get out of sync after the deletion of whole rows
190 2001-03-09 André Pönitz <poenitz@htwm.de>
192 * math_cursor.C: use std::vector<> in MathStackXIter
193 change selstk from a pointer to the "real thing"
195 * math_rowst.h: new MathedRowContainer::erase method
197 * math_xiter.C: use MathedRowContainer::erase
199 * math_parser.C: use MathedRowContainer::insert_after
201 2001-03-08 André Pönitz <poenitz@htwm.de>
203 * math_rowst.h: give MathedRowContainer an 'insert' method.
205 * math_xiter.C: new 'container()' method to encapsulated access to
206 the MathParInset's MathedRowContainer
208 * math_rowst.h: proper copy constructor and destructor for
211 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
212 automatically created by the compiler are ok now.
214 2001-03-06 André Pönitz <poenitz@htwm.de>
216 * array.[Ch]: factor out deep_copy,
217 remove third argument from raw_pointer_insert
219 * math_iter.[Ch]: remove unused function Clear()
221 * math_cursor.C: change signature of MathStackXIter:push()
224 * math_rowst.h: introduction of MathRowContainer
225 several files: corresponding changes
227 2001-03-04 André Pönitz <poenitz@htwm.de>
229 * math_macrotemplate.[Ch]:
230 math_macro.C: move update() functionality to the macro
232 * math_rowst.h: split MathedRowSt into "data" and "list"
234 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
236 * math_macrotemplate.C (update): use MathMacro::getArg, and
237 receive a const reference.
238 (getMacroPar): add an Assert
240 * math_macrotemplate.h: make MathMacro a friend, make update take
243 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
244 and store a MathMacroArgument in the vector
245 * math_macro.C: changes because of the above.
248 * math_parser.C (mathed_parse): plug potential leak
250 * math_iter.h: add comment on virtual destructor
252 * math_iter.C (Delete): make c const
254 * math_parinset.C (Metrics): cleanup indent. make one string const.
256 * math_inset.C (size): move out of line
259 * math_macroarg.h: remove default constructor
261 * math_macroarg.C: include Lsstream.h instead of debug.h
262 (MathMacroArgument): remove default constructor
263 (Write): add std:: on ostream arg
265 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
268 * formula.C: make DEBUG into lyxerr
270 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
272 * math_macrotemplate.h: make noncopyable, remove last arg to
273 constructor, remove flags_ add edit_
274 (flags): remove method
276 * math_macrotemplate.C (setArgument): delete method
277 (update): make idx const
278 (Metrics): use edit_, remove flags_
279 (draw): use edit_, remove flags_
280 (setEditMode): set edit_, remove flags_
281 (MathMacroTemplate): initialize edit_, remove flags_
283 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
284 shared_ptr, let constructor take a shared_ptr
286 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
288 (draw): remove unneded update, remove removed update of x,y
289 (GetXY): call tmplates GetMacroXY directly
290 (SetFocus): call Metrics() instead of update()
291 (Write): remove support for math macro environments, simplifications.
293 * math_macrotable.h: make class noncopyable, change getMacro to
294 createMacro, change vector to map store a
295 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
297 * math_macrotable.C: add pragma
298 (createMacro): change name from getMacro, use shared_ptr
299 (getTemplate): Use map lookup to get macro, return shared_ptr
300 (addTemplate): assert that m containse a valid pointer, use map[]
302 (builtinMacros): by using shared_ptr fix the mem leak, remove
303 commented out unsupported macros
305 * math_cursor.C: changes because of the above
306 * math_parser.C: changes because of the abobe
308 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
309 default arg on constructor.
310 * formulamacro.C: changes because of the above
312 * math_parinset.h: add pragma
313 (SetAlign): move inline out of class def
317 (setArgumentIdx): ditto
318 (setNextArgIdx): ditto
319 (getArgumentIdx): ditto
320 (getMaxArgumentIdx): ditto
325 * math_parinset.C: add pragma
326 (Write): change the else clause, lessen depth
328 * math_macroarg.h: small whitespace change
330 * array.C: include support/LOstream.h add using ostream and endl
332 * array.h (dump): add std:: on ostream
334 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
336 * math_macrotemplate.h: remove default arg on update
338 * math_macrotemplate.C (update): add assert and remove noop case.
340 * formulamacro.C (Read): add comment.
341 (ascent): remove noop call to MathMacroTemplate
346 * math_parser.C (mathed_parse): fix another potential problem by
347 passing a freestanding mathedarray.
349 * math_root.C (GetData): add const version
351 * math_parinset.C (~MathParInset): delete
352 (GetData): add const version
354 * math_matrixinset.C (MathMatrixInset): delete pointer version,
355 make it a proper copy constructor instead
357 (MathMatrixInset): remvoe default val for m and n
359 * math_macro.C (GetData): add const version
361 * math_fracinset.C (GetData): add const version
363 * math_cursor.C (SelCopy): make p1 and p2 const
364 (SelCut): make p1 and p2 const
366 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
367 (LyxCode): move inline out of class
371 * array.[Ch] (dump): method added for debugging purposes
373 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
374 mathed_parse when reading a matrix.
376 * math_spaceinset.[Ch]: add pragma, make variables private add
377 '_', change order of method definitions.
379 * math_root.h (~MathRootInset): delete
380 Change uroot_ to be a real object instead of a pointer
381 * math_root.C: changes because of the above
383 * math_macro.C (MathMacro(MathMacro*)): delete constructor
384 (MathMacro(MathMacro const &)): new copy constructor
386 * math_inset.h: delete constructor taking a pointer to MathedInset
387 (size, incSize): move inline method
389 * math_funcinset.h: add pragma, remove class vars ln and fname,
390 change protected to private, add '_' to priv vars.
391 (~MathFuncInset): remove
393 * math_fracinset.h: make MathParInset den_ a real object and not a
396 * math_fracinset.C (MathFracInset): clean up, move initalization
397 to initialization list
398 (~MathFracInset): remove
401 * math_draw.C: delete file
403 * math_dotsinset.[Ch]: add pragma
405 * math_bigopinset.h: make protected variables private add '_' to vars.
407 * math_bigopinset.C: move methods to follow class definition order
409 * math_accentinset.h (getAccentCode): move inline here
411 * math_accentinset.C (MathAccentInset): cleanup
414 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
416 * math_inset.[Ch] (MathedInset): remove method
418 * Makefile.am (libmathed_la_SOURCES): correct typo
420 * math_parinset.C (draw): move MathedXiter data(this) up. and
421 remove it two other places.
423 * math_macro.C (MathMacro): use array directly, don't use
424 setArgumentIdx and GetData
426 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
428 * math_macroarg.C (MathMacroArgument): delete
429 * math_macro.C (~MathMacro): delete
430 * math_macrotemplate.C (~MathMacroTemplate): delete
432 * math_decorationinset.[Ch]: add pragma
433 * math_deliminset.[Ch]: likewise
434 * math_fracinset.[Ch]: likewise
435 * math_macroarg.[Ch]: likewise
436 * math_macrotemplate.[Ch]: likewise
437 * math_matrixinset.[Ch]: likewise
439 * formulamacro.C (Read): set contents of tmacro_ to ar.
441 * formulamacro.h: add '_' to private variables.
442 * formalamacro.C: changes because of this.
444 2001-02-23 Juergen Vigna <jug@sad.it>
446 * formula.C (LocalDispatch): changed action to be a kb_action (as it
447 should be) and not an int.
449 * formulamacro.C (LocalDispatch): ditto.
451 2001-02-14 André Pönitz <poenitz@htwm.de>
453 * math_parinset.[Ch]: make array a real MathArray, not just a
456 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
458 * several files: subsequent changes
460 * math_cursor.C: make selarray a proper MathArray
462 * several files: Change "MathedArray *" to "MathedArray &"
465 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
467 * array.C (MathedArray): Fix compilation problem.
469 2001-02-14 André Pönitz <poenitz@htwm.de>
471 * array.[Ch]: "deep" copy constructor and assignment operator for
474 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
476 * math_iter.[Ch]: remove SetData
477 several files: subsequent changes
479 2001-02-14 André Pönitz <poenitz@htwm.de>
481 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
484 * math_iter.C: default-construct and resize array
486 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
488 * math_xiter.h: move ipush and ipop to public, add _ on private
489 variables, move protected var to private, remove friend.
491 * math_cursor.C (insertInset): rename method from Insert also
492 remove default arg val. Call the public methods of xiter instead
493 of private variables.
495 * changes to several files because of the above.
497 2001-02-14 André Pönitz <poenitz@htwm.de>
499 * math_iter.[Ch]: hide fcode_
501 * math_parinset.C: subsequent changes
504 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
506 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
509 * math_write.C: delete file
510 * math_delim.C: delete file
511 * marh_sqrtinset.h: delete file
513 * move funcs to more localized files, more general cleanup.
514 Constify several local vars. Doxygen changes. Formatting.
516 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
518 * support.C: add some consts
520 * matriz.C: clean up a bit.
521 (matmat): remove the for loop.
523 * several files: changes so that several friends can be removed
525 2001-02-14 André Pönitz <poenitz@htwm.de>
527 * formula.C: reformatting
531 math_xiter.[Ch]: remove unneeded members
533 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
537 * formula.C: remove cruft
539 * array.C (begin): new method
542 2001-02-14 André Pönitz <poenitz@htwm.de>
544 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
546 * math_cursor.C: reformatting
548 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
552 * math_matrixinset.C:
553 * math_macrotemplate.C:
558 * math_decorationinset.C:
560 * math_accentinset.C:
561 * math_sqrtinset.C: include LOstream.h and add using directive.
563 2001-02-14 André Pönitz <poenitz@htwm.de>
565 * math_iter.C: reformatting
567 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
569 * math_spaceinset.C (GetSpace): move here
571 * math_parinset.C: add debug.h, move several prev. inlined methods
574 * math_macrotable.C math_xiter.C support.C: add debug.h
576 * math_macro.h: remove debug.h, remove typedefs
578 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
581 * math_hash.C: change some defines to int const. change use of
582 LM_TC_NORMAL to LM_TC_VAR
584 * math_draw.C: delete file
586 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
587 forward decls. remove LM_TC_NORMAL, move inline methods to
588 support.C (and support.h)
590 * math_cursor.C: move several previous inlined methods here
592 * math_bigopinset.h math_dotsinset.h math_funcinset.h
593 math_parinset.h math_spaceinset.h: add math_defs.h
595 * math_accentinset.h: add support.h and math_defs.h
597 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
599 * formula.h: remove unused func decl: OpenMathInset
601 * formula.C math_inset.h: get rid of math_defs.h
603 * array.h: switch to support.h instead of math_defs.h
605 * array.C: remove one include
607 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
609 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
611 * math_parser.C: include macrotable and macrotemplate
613 * math_macrotemplate.[Ch]: new files
615 * math_macrotable.[Ch]: new files
617 * math_macroarg.[Ch]: new files
619 * math_macro.C: move stuff to the new files.
621 * math_cursor.C: include math_macrotable.h
623 * macro_support.[Ch]: new files
625 * formulamacro.C: add more includes
627 * Makefile.am (libmathed_la_SOURCES): add new files.
629 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
631 * Makefile.am (libmathed_la_SOURCES): remove duplicate
636 * math_parinset.C: add a bunch of "using" directives.
639 * math_decorationinset.h:
641 * math_spaceinset.h: remove more couples of inline.
643 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
645 * math_xiter.h: remove a couple of "inline"
647 * array.C (strange_copy): fix bug (hopefully)
648 * many files: add a lot of new files and move methods to the class
649 files they belong to. Only first attempt at cleanup more will
652 2001-02-12 André Pönitz <poenitz@htwm.de>
654 * math_macro.[hC]: replace MathMacroArgument[] with
655 std::vector<MathMacroArgument>
657 math_inset.C: replace int[] with std::vector<int>
659 * math_symbols.C: replace FL_OBJECTP[] with
660 std::vector<FL_OBJECT*>
662 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
664 * math_defs.h (struct MathedRowSt): make all private variables end
665 with '_', initialize in initializer list instead of in function
668 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
670 * formula.C (LocalDispatch): Change the default action of
671 break-line to create an align* environment instead of eqnarray*.
673 * math_inset.C (Metrics): Correct drawing of the multline
676 2001-02-12 André Pönitz <poenitz@htwm.de>
678 * array.[hC]: replace private variable maxsize_ with call to
680 * math_defs.h: replace int[] by std::vector<int> for
683 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
685 * array.h: made all variables private, removed friend, added new
686 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
687 non const operator[] added setter for last and getter for maxsize.
688 changed name from LyxArrayBase to MathedArray.
689 changed name of some methods to start with lowerchar.
690 moved inline methods to array.C
692 * math_iter.C + several file: changes because of the above.
694 * array.C: new file with the prev inline methods.
696 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
698 * Many files: add support for the align environment from amsmath.
700 2001-02-09 André Pönitz <poenitz@htwm.de>
702 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
703 * several files: subsequent changes
704 * math_iter.h: remove unused prototype
707 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
709 * math_macro.C (draw): add .c_str() to .str() (useful when
710 compiling with lyxstring, but STL sstream).
713 2001-02-08 André Pönitz <poenitz@htwm.de>
715 * several files: get rid of reinterpret_cast.
717 2001-02-04 Allan Rae <rae@lyx.org>
719 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
720 just casting the variable.
722 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
724 * Many files: Add support for multline and alignat environments from
727 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
729 * math_symbols.C (math_insert_greek): Move cursor right when
730 unlocking the math inset.
732 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
734 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
736 * formula.C (LocalDispatch): Before inserting a label in an
737 eqnarray, move the cursor to the top level.
739 * math_iter.C (getLabel): Test if crow == 0.
741 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
743 * math_draw.C (Metrics): Use the correct GetString.