1 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
3 * math_sizeinset.C: include support/LOstream.h
5 * math_scriptinset.C (Metrics): std:: qualify max
7 * math_root.C (Metrics): std:: qualify max
8 (Write): std:: qualify ostream
11 * math_matrixinset.C (getLabelList): std:: qualify vector
13 (Metrics): std:: qualify max
14 (header_write): std:: qualify ostream
17 * math_macrotemplate.C (Write): std:: qualify ostream
19 * math_bigopinset.C (Metrics): std:: qualify max, and include
22 * math_matrixinset.h: include vector and std:: qualify it.
24 * array.C (GetInset): get a pointer to the first element of bf_
27 2001-06-25 The LyX Project <Asger>
29 * math_scriptinset.C: Fix for entering with cursor up/down.
31 * math_fracinset.C: We can enter fractions with cursor up and
34 * math_cursor.C (Right): Fixes for cursor movement.
36 * formula.C (draw): New background color for math.
38 * math_cursor.C: Fixes for toggling labels on/off in math.
39 Fixes for infinity and other symbols that didn't appear in
42 2001-06-24 The LyX Project <Asger>
44 * math_inset.C: Cursor movement is better in square roots, among
47 * math_cursor.C (Interpret): Improved subscript bullshit. Improved
48 cursor up/down movement. What not.
50 2001-06-24 The LyX Project <Asger>
52 * math_matrixinset.C: Hidden labels are hidden, unless a small
53 dragon jumps out of the screen, and pronounce them to the entire
56 2001-06-24 The LyX Project <Easter egg>
58 * math_cursor.C: Cursor improvements after a few dead-ends
59 in the evolution of cursor movement were tested and scrapped.
61 2001-06-24 The LyX Project <Asger>
63 * math_cursor.C: Renamed stack to path.
65 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
68 * math_root.C: removed // -*- C++ -*- as first line.
70 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
72 * array.C: bring memmove into main namespace if necessary
74 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
76 * math_parser.C (yylex): use contains instead of strchr
77 (parse_align): remove last arg, change to take string const & as
79 (mathed_parse): use string for ar2 and ar, adjust
81 * math_decorationinset.C (Write): use compare instead of strcmp
83 * formula.C (LocalDispatch): change arg2 to string, adjust for this
84 (LocalDispatch): add std::
85 (LocalDispatch): use contains instead of strchr
87 * array.C (move): add std::
89 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
91 * matriz.C: add using directives when needed for C functions
92 declared in std:: namespace.
94 * math_macrotemplate.h: do not use explicitely std::string, but
97 * math_macroarg.C: avoid bringing the whole std:: namespace in
98 global-land. When you do that, there is an ambiguity between
99 lyxstring and std::string (which may be defined at the same time).
101 * formula.C (HandleExtern): add .c_str() to .str() (useful when
104 2001-04-27 André Pönitz <poenitz@htwm.de>
106 * math_parser.C: fix \frac handling bug introduced on 04-24
107 * math_xiter.C: hotfix for merging "shared" insets
108 * formula.C: fixing display after using math-insert
110 2001-04-25 André Pönitz <poenitz@htwm.de>
112 * math_*.[Ch]: WriteNormal
113 * formula.C: Support for new "math extern" command
114 * math_parser.C: fix \frac handling bug introduced on 04-24
115 * math_xiter.C: hotfix for merging "shared" insets
117 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
119 * math_macrotable.C: include <iostream>
121 2001-04-24 André Pönitz <poenitz@htwm.de>
124 * math_macrotable.[Ch]:
125 * math_macroarg.[Ch]: restructuring of macro handling
128 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
130 * array.h (operator<<):
131 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
133 * math_macrotable.C: added using std::make_pair directive.
134 (dump): added using std::cerr directive here as I guess that this is
137 2001-04-20 Allan Rae <rae@lyx.org>
139 * formula.C (LocalDispatch): fixed another #warning. Guess who.
141 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
143 * math_macrotemplate.h: inherit privately from noncopyable
145 * math_macro.C (Metrics): reindent, use unsigned int as loop var
146 (setArgumentIdx): change test to avoid unsigned warning
148 * formula.C (LocalDispatch): use LFUN_MESSAGE
150 2001-04-16 Allan Rae <rae@lyx.org>
152 * formula.C (Latex, getLabelList, LocalDispatch):
153 * math_parser.C (mathed_parse):
154 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
155 an unrecognised preprocessor directive. So ensure they're wrapped.
157 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
159 * formula.C (draw): adjust for cursor_visible
160 (ToggleInsetCursor): adjust for cursor_visible and constify asc
162 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
163 (HideInsetCursor): adjust for cursor_visible
164 (LocalDispatch): constify default_label and res
166 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
168 * math_rowst.C: add missing #include <config.h>.
170 2001-03-16 André Pönitz <poenitz@htwm.de>
172 * math_matrixinset.h:
173 * math_parinset.[Ch]:
174 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
176 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
184 * math_symbols.C: maths panel moved to GUII
186 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
188 * math_cursor.C: use lyxerr instead of cerr.
190 2001-03-15 André Pönitz <poenitz@htwm.de>
192 * math_cursor.C: fix bug (cursor was leaving two insets at a time
195 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
197 * math_macrotable.h: noncopyable is in namespace boost
198 * math_macrotemplate.h: ditto
200 * math_rowst.h: make MathedRowContainer::iterator public.
202 2001-03-15 André Pönitz <poenitz@htwm.de>
204 * math_parser.C: read '\nonumber' again (was broken)
206 * math_rowst.C: new file
208 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
210 * math_cursor.C: added using directive.
212 2001-03-15 André Pönitz <poenitz@htwm.de>
214 * math_rowst.h: Finally remove MathedRowSt
217 math_xiter.C: changed accordingly
219 2001-03-12 André Pönitz <poenitz@htwm.de>
221 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
222 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
224 2001-03-10 André Pönitz <poenitz@htwm.de>
227 math_matrixinset.C: move adjustVerticalSt to the only place where
228 it is used. Fix a small bug where the cached row structure and the
229 actual data get out of sync after the deletion of whole rows
231 2001-03-09 André Pönitz <poenitz@htwm.de>
233 * math_cursor.C: use std::vector<> in MathStackXIter
234 change selstk from a pointer to the "real thing"
236 * math_rowst.h: new MathedRowContainer::erase method
238 * math_xiter.C: use MathedRowContainer::erase
240 * math_parser.C: use MathedRowContainer::insert_after
242 2001-03-08 André Pönitz <poenitz@htwm.de>
244 * math_rowst.h: give MathedRowContainer an 'insert' method.
246 * math_xiter.C: new 'container()' method to encapsulated access to
247 the MathParInset's MathedRowContainer
249 * math_rowst.h: proper copy constructor and destructor for
252 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
253 automatically created by the compiler are ok now.
255 2001-03-06 André Pönitz <poenitz@htwm.de>
257 * array.[Ch]: factor out deep_copy,
258 remove third argument from raw_pointer_insert
260 * math_iter.[Ch]: remove unused function Clear()
262 * math_cursor.C: change signature of MathStackXIter:push()
265 * math_rowst.h: introduction of MathRowContainer
266 several files: corresponding changes
268 2001-03-04 André Pönitz <poenitz@htwm.de>
270 * math_macrotemplate.[Ch]:
271 math_macro.C: move update() functionality to the macro
273 * math_rowst.h: split MathedRowSt into "data" and "list"
275 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
277 * math_macrotemplate.C (update): use MathMacro::getArg, and
278 receive a const reference.
279 (getMacroPar): add an Assert
281 * math_macrotemplate.h: make MathMacro a friend, make update take
284 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
285 and store a MathMacroArgument in the vector
286 * math_macro.C: changes because of the above.
289 * math_parser.C (mathed_parse): plug potential leak
291 * math_iter.h: add comment on virtual destructor
293 * math_iter.C (Delete): make c const
295 * math_parinset.C (Metrics): cleanup indent. make one string const.
297 * math_inset.C (size): move out of line
300 * math_macroarg.h: remove default constructor
302 * math_macroarg.C: include Lsstream.h instead of debug.h
303 (MathMacroArgument): remove default constructor
304 (Write): add std:: on ostream arg
306 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
309 * formula.C: make DEBUG into lyxerr
311 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
313 * math_macrotemplate.h: make noncopyable, remove last arg to
314 constructor, remove flags_ add edit_
315 (flags): remove method
317 * math_macrotemplate.C (setArgument): delete method
318 (update): make idx const
319 (Metrics): use edit_, remove flags_
320 (draw): use edit_, remove flags_
321 (setEditMode): set edit_, remove flags_
322 (MathMacroTemplate): initialize edit_, remove flags_
324 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
325 shared_ptr, let constructor take a shared_ptr
327 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
329 (draw): remove unneded update, remove removed update of x,y
330 (GetXY): call tmplates GetMacroXY directly
331 (SetFocus): call Metrics() instead of update()
332 (Write): remove support for math macro environments, simplifications.
334 * math_macrotable.h: make class noncopyable, change getMacro to
335 createMacro, change vector to map store a
336 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
338 * math_macrotable.C: add pragma
339 (createMacro): change name from getMacro, use shared_ptr
340 (getTemplate): Use map lookup to get macro, return shared_ptr
341 (addTemplate): assert that m containse a valid pointer, use map[]
343 (builtinMacros): by using shared_ptr fix the mem leak, remove
344 commented out unsupported macros
346 * math_cursor.C: changes because of the above
347 * math_parser.C: changes because of the abobe
349 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
350 default arg on constructor.
351 * formulamacro.C: changes because of the above
353 * math_parinset.h: add pragma
354 (SetAlign): move inline out of class def
358 (setArgumentIdx): ditto
359 (setNextArgIdx): ditto
360 (getArgumentIdx): ditto
361 (getMaxArgumentIdx): ditto
366 * math_parinset.C: add pragma
367 (Write): change the else clause, lessen depth
369 * math_macroarg.h: small whitespace change
371 * array.C: include support/LOstream.h add using ostream and endl
373 * array.h (dump): add std:: on ostream
375 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
377 * math_macrotemplate.h: remove default arg on update
379 * math_macrotemplate.C (update): add assert and remove noop case.
381 * formulamacro.C (Read): add comment.
382 (ascent): remove noop call to MathMacroTemplate
387 * math_parser.C (mathed_parse): fix another potential problem by
388 passing a freestanding mathedarray.
390 * math_root.C (GetData): add const version
392 * math_parinset.C (~MathParInset): delete
393 (GetData): add const version
395 * math_matrixinset.C (MathMatrixInset): delete pointer version,
396 make it a proper copy constructor instead
398 (MathMatrixInset): remvoe default val for m and n
400 * math_macro.C (GetData): add const version
402 * math_fracinset.C (GetData): add const version
404 * math_cursor.C (SelCopy): make p1 and p2 const
405 (SelCut): make p1 and p2 const
407 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
408 (LyxCode): move inline out of class
412 * array.[Ch] (dump): method added for debugging purposes
414 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
415 mathed_parse when reading a matrix.
417 * math_spaceinset.[Ch]: add pragma, make variables private add
418 '_', change order of method definitions.
420 * math_root.h (~MathRootInset): delete
421 Change uroot_ to be a real object instead of a pointer
422 * math_root.C: changes because of the above
424 * math_macro.C (MathMacro(MathMacro*)): delete constructor
425 (MathMacro(MathMacro const &)): new copy constructor
427 * math_inset.h: delete constructor taking a pointer to MathedInset
428 (size, incSize): move inline method
430 * math_funcinset.h: add pragma, remove class vars ln and fname,
431 change protected to private, add '_' to priv vars.
432 (~MathFuncInset): remove
434 * math_fracinset.h: make MathParInset den_ a real object and not a
437 * math_fracinset.C (MathFracInset): clean up, move initalization
438 to initialization list
439 (~MathFracInset): remove
442 * math_draw.C: delete file
444 * math_dotsinset.[Ch]: add pragma
446 * math_bigopinset.h: make protected variables private add '_' to vars.
448 * math_bigopinset.C: move methods to follow class definition order
450 * math_accentinset.h (getAccentCode): move inline here
452 * math_accentinset.C (MathAccentInset): cleanup
455 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
457 * math_inset.[Ch] (MathedInset): remove method
459 * Makefile.am (libmathed_la_SOURCES): correct typo
461 * math_parinset.C (draw): move MathedXiter data(this) up. and
462 remove it two other places.
464 * math_macro.C (MathMacro): use array directly, don't use
465 setArgumentIdx and GetData
467 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
469 * math_macroarg.C (MathMacroArgument): delete
470 * math_macro.C (~MathMacro): delete
471 * math_macrotemplate.C (~MathMacroTemplate): delete
473 * math_decorationinset.[Ch]: add pragma
474 * math_deliminset.[Ch]: likewise
475 * math_fracinset.[Ch]: likewise
476 * math_macroarg.[Ch]: likewise
477 * math_macrotemplate.[Ch]: likewise
478 * math_matrixinset.[Ch]: likewise
480 * formulamacro.C (Read): set contents of tmacro_ to ar.
482 * formulamacro.h: add '_' to private variables.
483 * formalamacro.C: changes because of this.
485 2001-02-23 Juergen Vigna <jug@sad.it>
487 * formula.C (LocalDispatch): changed action to be a kb_action (as it
488 should be) and not an int.
490 * formulamacro.C (LocalDispatch): ditto.
492 2001-02-14 André Pönitz <poenitz@htwm.de>
494 * math_parinset.[Ch]: make array a real MathArray, not just a
497 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
499 * several files: subsequent changes
501 * math_cursor.C: make selarray a proper MathArray
503 * several files: Change "MathedArray *" to "MathedArray &"
506 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
508 * array.C (MathedArray): Fix compilation problem.
510 2001-02-14 André Pönitz <poenitz@htwm.de>
512 * array.[Ch]: "deep" copy constructor and assignment operator for
515 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
517 * math_iter.[Ch]: remove SetData
518 several files: subsequent changes
520 2001-02-14 André Pönitz <poenitz@htwm.de>
522 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
525 * math_iter.C: default-construct and resize array
527 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
529 * math_xiter.h: move ipush and ipop to public, add _ on private
530 variables, move protected var to private, remove friend.
532 * math_cursor.C (insertInset): rename method from Insert also
533 remove default arg val. Call the public methods of xiter instead
534 of private variables.
536 * changes to several files because of the above.
538 2001-02-14 André Pönitz <poenitz@htwm.de>
540 * math_iter.[Ch]: hide fcode_
542 * math_parinset.C: subsequent changes
545 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
547 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
550 * math_write.C: delete file
551 * math_delim.C: delete file
552 * marh_sqrtinset.h: delete file
554 * move funcs to more localized files, more general cleanup.
555 Constify several local vars. Doxygen changes. Formatting.
557 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
559 * support.C: add some consts
561 * matriz.C: clean up a bit.
562 (matmat): remove the for loop.
564 * several files: changes so that several friends can be removed
566 2001-02-14 André Pönitz <poenitz@htwm.de>
568 * formula.C: reformatting
572 math_xiter.[Ch]: remove unneeded members
574 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
578 * formula.C: remove cruft
580 * array.C (begin): new method
583 2001-02-14 André Pönitz <poenitz@htwm.de>
585 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
587 * math_cursor.C: reformatting
589 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
593 * math_matrixinset.C:
594 * math_macrotemplate.C:
599 * math_decorationinset.C:
601 * math_accentinset.C:
602 * math_sqrtinset.C: include LOstream.h and add using directive.
604 2001-02-14 André Pönitz <poenitz@htwm.de>
606 * math_iter.C: reformatting
608 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
610 * math_spaceinset.C (GetSpace): move here
612 * math_parinset.C: add debug.h, move several prev. inlined methods
615 * math_macrotable.C math_xiter.C support.C: add debug.h
617 * math_macro.h: remove debug.h, remove typedefs
619 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
622 * math_hash.C: change some defines to int const. change use of
623 LM_TC_NORMAL to LM_TC_VAR
625 * math_draw.C: delete file
627 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
628 forward decls. remove LM_TC_NORMAL, move inline methods to
629 support.C (and support.h)
631 * math_cursor.C: move several previous inlined methods here
633 * math_bigopinset.h math_dotsinset.h math_funcinset.h
634 math_parinset.h math_spaceinset.h: add math_defs.h
636 * math_accentinset.h: add support.h and math_defs.h
638 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
640 * formula.h: remove unused func decl: OpenMathInset
642 * formula.C math_inset.h: get rid of math_defs.h
644 * array.h: switch to support.h instead of math_defs.h
646 * array.C: remove one include
648 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
650 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
652 * math_parser.C: include macrotable and macrotemplate
654 * math_macrotemplate.[Ch]: new files
656 * math_macrotable.[Ch]: new files
658 * math_macroarg.[Ch]: new files
660 * math_macro.C: move stuff to the new files.
662 * math_cursor.C: include math_macrotable.h
664 * macro_support.[Ch]: new files
666 * formulamacro.C: add more includes
668 * Makefile.am (libmathed_la_SOURCES): add new files.
670 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
672 * Makefile.am (libmathed_la_SOURCES): remove duplicate
677 * math_parinset.C: add a bunch of "using" directives.
680 * math_decorationinset.h:
682 * math_spaceinset.h: remove more couples of inline.
684 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
686 * math_xiter.h: remove a couple of "inline"
688 * array.C (strange_copy): fix bug (hopefully)
689 * many files: add a lot of new files and move methods to the class
690 files they belong to. Only first attempt at cleanup more will
693 2001-02-12 André Pönitz <poenitz@htwm.de>
695 * math_macro.[hC]: replace MathMacroArgument[] with
696 std::vector<MathMacroArgument>
698 math_inset.C: replace int[] with std::vector<int>
700 * math_symbols.C: replace FL_OBJECTP[] with
701 std::vector<FL_OBJECT*>
703 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
705 * math_defs.h (struct MathedRowSt): make all private variables end
706 with '_', initialize in initializer list instead of in function
709 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
711 * formula.C (LocalDispatch): Change the default action of
712 break-line to create an align* environment instead of eqnarray*.
714 * math_inset.C (Metrics): Correct drawing of the multline
717 2001-02-12 André Pönitz <poenitz@htwm.de>
719 * array.[hC]: replace private variable maxsize_ with call to
721 * math_defs.h: replace int[] by std::vector<int> for
724 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
726 * array.h: made all variables private, removed friend, added new
727 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
728 non const operator[] added setter for last and getter for maxsize.
729 changed name from LyxArrayBase to MathedArray.
730 changed name of some methods to start with lowerchar.
731 moved inline methods to array.C
733 * math_iter.C + several file: changes because of the above.
735 * array.C: new file with the prev inline methods.
737 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
739 * Many files: add support for the align environment from amsmath.
741 2001-02-09 André Pönitz <poenitz@htwm.de>
743 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
744 * several files: subsequent changes
745 * math_iter.h: remove unused prototype
748 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
750 * math_macro.C (draw): add .c_str() to .str() (useful when
751 compiling with lyxstring, but STL sstream).
754 2001-02-08 André Pönitz <poenitz@htwm.de>
756 * several files: get rid of reinterpret_cast.
758 2001-02-04 Allan Rae <rae@lyx.org>
760 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
761 just casting the variable.
763 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
765 * Many files: Add support for multline and alignat environments from
768 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
770 * math_symbols.C (math_insert_greek): Move cursor right when
771 unlocking the math inset.
773 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
775 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
777 * formula.C (LocalDispatch): Before inserting a label in an
778 eqnarray, move the cursor to the top level.
780 * math_iter.C (getLabel): Test if crow == 0.
782 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
784 * math_draw.C (Metrics): Use the correct GetString.