1 2001-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * *.C: remove all "using namespace std" directives (not
4 good!!) and replaced it with relevant "using" directives.
6 * math_macrotemplate.C (Clone): change return type to MathInset*
8 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
10 * math_sizeinset.C: include support/LOstream.h
12 * math_scriptinset.C (Metrics): std:: qualify max
14 * math_root.C (Metrics): std:: qualify max
15 (Write): std:: qualify ostream
18 * math_matrixinset.C (getLabelList): std:: qualify vector
20 (Metrics): std:: qualify max
21 (header_write): std:: qualify ostream
24 * math_macrotemplate.C (Write): std:: qualify ostream
26 * math_bigopinset.C (Metrics): std:: qualify max, and include
29 * math_matrixinset.h: include vector and std:: qualify it.
31 * array.C (GetInset): get a pointer to the first element of bf_
34 2001-06-25 The LyX Project <Asger>
36 * math_scriptinset.C: Fix for entering with cursor up/down.
38 * math_fracinset.C: We can enter fractions with cursor up and
41 * math_cursor.C (Right): Fixes for cursor movement.
43 * formula.C (draw): New background color for math.
45 * math_cursor.C: Fixes for toggling labels on/off in math.
46 Fixes for infinity and other symbols that didn't appear in
49 2001-06-24 The LyX Project <Asger>
51 * math_inset.C: Cursor movement is better in square roots, among
54 * math_cursor.C (Interpret): Improved subscript bullshit. Improved
55 cursor up/down movement. What not.
57 2001-06-24 The LyX Project <Asger>
59 * math_matrixinset.C: Hidden labels are hidden, unless a small
60 dragon jumps out of the screen, and pronounce them to the entire
63 2001-06-24 The LyX Project <Easter egg>
65 * math_cursor.C: Cursor improvements after a few dead-ends
66 in the evolution of cursor movement were tested and scrapped.
68 2001-06-24 The LyX Project <Asger>
70 * math_cursor.C: Renamed stack to path.
72 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
75 * math_root.C: removed // -*- C++ -*- as first line.
77 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
79 * array.C: bring memmove into main namespace if necessary
81 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
83 * math_parser.C (yylex): use contains instead of strchr
84 (parse_align): remove last arg, change to take string const & as
86 (mathed_parse): use string for ar2 and ar, adjust
88 * math_decorationinset.C (Write): use compare instead of strcmp
90 * formula.C (LocalDispatch): change arg2 to string, adjust for this
91 (LocalDispatch): add std::
92 (LocalDispatch): use contains instead of strchr
94 * array.C (move): add std::
96 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
98 * matriz.C: add using directives when needed for C functions
99 declared in std:: namespace.
101 * math_macrotemplate.h: do not use explicitely std::string, but
104 * math_macroarg.C: avoid bringing the whole std:: namespace in
105 global-land. When you do that, there is an ambiguity between
106 lyxstring and std::string (which may be defined at the same time).
108 * formula.C (HandleExtern): add .c_str() to .str() (useful when
111 2001-04-27 André Pönitz <poenitz@htwm.de>
113 * math_parser.C: fix \frac handling bug introduced on 04-24
114 * math_xiter.C: hotfix for merging "shared" insets
115 * formula.C: fixing display after using math-insert
117 2001-04-25 André Pönitz <poenitz@htwm.de>
119 * math_*.[Ch]: WriteNormal
120 * formula.C: Support for new "math extern" command
121 * math_parser.C: fix \frac handling bug introduced on 04-24
122 * math_xiter.C: hotfix for merging "shared" insets
124 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
126 * math_macrotable.C: include <iostream>
128 2001-04-24 André Pönitz <poenitz@htwm.de>
131 * math_macrotable.[Ch]:
132 * math_macroarg.[Ch]: restructuring of macro handling
135 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
137 * array.h (operator<<):
138 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
140 * math_macrotable.C: added using std::make_pair directive.
141 (dump): added using std::cerr directive here as I guess that this is
144 2001-04-20 Allan Rae <rae@lyx.org>
146 * formula.C (LocalDispatch): fixed another #warning. Guess who.
148 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
150 * math_macrotemplate.h: inherit privately from noncopyable
152 * math_macro.C (Metrics): reindent, use unsigned int as loop var
153 (setArgumentIdx): change test to avoid unsigned warning
155 * formula.C (LocalDispatch): use LFUN_MESSAGE
157 2001-04-16 Allan Rae <rae@lyx.org>
159 * formula.C (Latex, getLabelList, LocalDispatch):
160 * math_parser.C (mathed_parse):
161 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
162 an unrecognised preprocessor directive. So ensure they're wrapped.
164 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
166 * formula.C (draw): adjust for cursor_visible
167 (ToggleInsetCursor): adjust for cursor_visible and constify asc
169 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
170 (HideInsetCursor): adjust for cursor_visible
171 (LocalDispatch): constify default_label and res
173 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
175 * math_rowst.C: add missing #include <config.h>.
177 2001-03-16 André Pönitz <poenitz@htwm.de>
179 * math_matrixinset.h:
180 * math_parinset.[Ch]:
181 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
183 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
191 * math_symbols.C: maths panel moved to GUII
193 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
195 * math_cursor.C: use lyxerr instead of cerr.
197 2001-03-15 André Pönitz <poenitz@htwm.de>
199 * math_cursor.C: fix bug (cursor was leaving two insets at a time
202 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
204 * math_macrotable.h: noncopyable is in namespace boost
205 * math_macrotemplate.h: ditto
207 * math_rowst.h: make MathedRowContainer::iterator public.
209 2001-03-15 André Pönitz <poenitz@htwm.de>
211 * math_parser.C: read '\nonumber' again (was broken)
213 * math_rowst.C: new file
215 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
217 * math_cursor.C: added using directive.
219 2001-03-15 André Pönitz <poenitz@htwm.de>
221 * math_rowst.h: Finally remove MathedRowSt
224 math_xiter.C: changed accordingly
226 2001-03-12 André Pönitz <poenitz@htwm.de>
228 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
229 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
231 2001-03-10 André Pönitz <poenitz@htwm.de>
234 math_matrixinset.C: move adjustVerticalSt to the only place where
235 it is used. Fix a small bug where the cached row structure and the
236 actual data get out of sync after the deletion of whole rows
238 2001-03-09 André Pönitz <poenitz@htwm.de>
240 * math_cursor.C: use std::vector<> in MathStackXIter
241 change selstk from a pointer to the "real thing"
243 * math_rowst.h: new MathedRowContainer::erase method
245 * math_xiter.C: use MathedRowContainer::erase
247 * math_parser.C: use MathedRowContainer::insert_after
249 2001-03-08 André Pönitz <poenitz@htwm.de>
251 * math_rowst.h: give MathedRowContainer an 'insert' method.
253 * math_xiter.C: new 'container()' method to encapsulated access to
254 the MathParInset's MathedRowContainer
256 * math_rowst.h: proper copy constructor and destructor for
259 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
260 automatically created by the compiler are ok now.
262 2001-03-06 André Pönitz <poenitz@htwm.de>
264 * array.[Ch]: factor out deep_copy,
265 remove third argument from raw_pointer_insert
267 * math_iter.[Ch]: remove unused function Clear()
269 * math_cursor.C: change signature of MathStackXIter:push()
272 * math_rowst.h: introduction of MathRowContainer
273 several files: corresponding changes
275 2001-03-04 André Pönitz <poenitz@htwm.de>
277 * math_macrotemplate.[Ch]:
278 math_macro.C: move update() functionality to the macro
280 * math_rowst.h: split MathedRowSt into "data" and "list"
282 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
284 * math_macrotemplate.C (update): use MathMacro::getArg, and
285 receive a const reference.
286 (getMacroPar): add an Assert
288 * math_macrotemplate.h: make MathMacro a friend, make update take
291 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
292 and store a MathMacroArgument in the vector
293 * math_macro.C: changes because of the above.
296 * math_parser.C (mathed_parse): plug potential leak
298 * math_iter.h: add comment on virtual destructor
300 * math_iter.C (Delete): make c const
302 * math_parinset.C (Metrics): cleanup indent. make one string const.
304 * math_inset.C (size): move out of line
307 * math_macroarg.h: remove default constructor
309 * math_macroarg.C: include Lsstream.h instead of debug.h
310 (MathMacroArgument): remove default constructor
311 (Write): add std:: on ostream arg
313 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
316 * formula.C: make DEBUG into lyxerr
318 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
320 * math_macrotemplate.h: make noncopyable, remove last arg to
321 constructor, remove flags_ add edit_
322 (flags): remove method
324 * math_macrotemplate.C (setArgument): delete method
325 (update): make idx const
326 (Metrics): use edit_, remove flags_
327 (draw): use edit_, remove flags_
328 (setEditMode): set edit_, remove flags_
329 (MathMacroTemplate): initialize edit_, remove flags_
331 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
332 shared_ptr, let constructor take a shared_ptr
334 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
336 (draw): remove unneded update, remove removed update of x,y
337 (GetXY): call tmplates GetMacroXY directly
338 (SetFocus): call Metrics() instead of update()
339 (Write): remove support for math macro environments, simplifications.
341 * math_macrotable.h: make class noncopyable, change getMacro to
342 createMacro, change vector to map store a
343 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
345 * math_macrotable.C: add pragma
346 (createMacro): change name from getMacro, use shared_ptr
347 (getTemplate): Use map lookup to get macro, return shared_ptr
348 (addTemplate): assert that m containse a valid pointer, use map[]
350 (builtinMacros): by using shared_ptr fix the mem leak, remove
351 commented out unsupported macros
353 * math_cursor.C: changes because of the above
354 * math_parser.C: changes because of the abobe
356 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
357 default arg on constructor.
358 * formulamacro.C: changes because of the above
360 * math_parinset.h: add pragma
361 (SetAlign): move inline out of class def
365 (setArgumentIdx): ditto
366 (setNextArgIdx): ditto
367 (getArgumentIdx): ditto
368 (getMaxArgumentIdx): ditto
373 * math_parinset.C: add pragma
374 (Write): change the else clause, lessen depth
376 * math_macroarg.h: small whitespace change
378 * array.C: include support/LOstream.h add using ostream and endl
380 * array.h (dump): add std:: on ostream
382 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
384 * math_macrotemplate.h: remove default arg on update
386 * math_macrotemplate.C (update): add assert and remove noop case.
388 * formulamacro.C (Read): add comment.
389 (ascent): remove noop call to MathMacroTemplate
394 * math_parser.C (mathed_parse): fix another potential problem by
395 passing a freestanding mathedarray.
397 * math_root.C (GetData): add const version
399 * math_parinset.C (~MathParInset): delete
400 (GetData): add const version
402 * math_matrixinset.C (MathMatrixInset): delete pointer version,
403 make it a proper copy constructor instead
405 (MathMatrixInset): remvoe default val for m and n
407 * math_macro.C (GetData): add const version
409 * math_fracinset.C (GetData): add const version
411 * math_cursor.C (SelCopy): make p1 and p2 const
412 (SelCut): make p1 and p2 const
414 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
415 (LyxCode): move inline out of class
419 * array.[Ch] (dump): method added for debugging purposes
421 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
422 mathed_parse when reading a matrix.
424 * math_spaceinset.[Ch]: add pragma, make variables private add
425 '_', change order of method definitions.
427 * math_root.h (~MathRootInset): delete
428 Change uroot_ to be a real object instead of a pointer
429 * math_root.C: changes because of the above
431 * math_macro.C (MathMacro(MathMacro*)): delete constructor
432 (MathMacro(MathMacro const &)): new copy constructor
434 * math_inset.h: delete constructor taking a pointer to MathedInset
435 (size, incSize): move inline method
437 * math_funcinset.h: add pragma, remove class vars ln and fname,
438 change protected to private, add '_' to priv vars.
439 (~MathFuncInset): remove
441 * math_fracinset.h: make MathParInset den_ a real object and not a
444 * math_fracinset.C (MathFracInset): clean up, move initalization
445 to initialization list
446 (~MathFracInset): remove
449 * math_draw.C: delete file
451 * math_dotsinset.[Ch]: add pragma
453 * math_bigopinset.h: make protected variables private add '_' to vars.
455 * math_bigopinset.C: move methods to follow class definition order
457 * math_accentinset.h (getAccentCode): move inline here
459 * math_accentinset.C (MathAccentInset): cleanup
462 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
464 * math_inset.[Ch] (MathedInset): remove method
466 * Makefile.am (libmathed_la_SOURCES): correct typo
468 * math_parinset.C (draw): move MathedXiter data(this) up. and
469 remove it two other places.
471 * math_macro.C (MathMacro): use array directly, don't use
472 setArgumentIdx and GetData
474 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
476 * math_macroarg.C (MathMacroArgument): delete
477 * math_macro.C (~MathMacro): delete
478 * math_macrotemplate.C (~MathMacroTemplate): delete
480 * math_decorationinset.[Ch]: add pragma
481 * math_deliminset.[Ch]: likewise
482 * math_fracinset.[Ch]: likewise
483 * math_macroarg.[Ch]: likewise
484 * math_macrotemplate.[Ch]: likewise
485 * math_matrixinset.[Ch]: likewise
487 * formulamacro.C (Read): set contents of tmacro_ to ar.
489 * formulamacro.h: add '_' to private variables.
490 * formalamacro.C: changes because of this.
492 2001-02-23 Juergen Vigna <jug@sad.it>
494 * formula.C (LocalDispatch): changed action to be a kb_action (as it
495 should be) and not an int.
497 * formulamacro.C (LocalDispatch): ditto.
499 2001-02-14 André Pönitz <poenitz@htwm.de>
501 * math_parinset.[Ch]: make array a real MathArray, not just a
504 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
506 * several files: subsequent changes
508 * math_cursor.C: make selarray a proper MathArray
510 * several files: Change "MathedArray *" to "MathedArray &"
513 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
515 * array.C (MathedArray): Fix compilation problem.
517 2001-02-14 André Pönitz <poenitz@htwm.de>
519 * array.[Ch]: "deep" copy constructor and assignment operator for
522 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
524 * math_iter.[Ch]: remove SetData
525 several files: subsequent changes
527 2001-02-14 André Pönitz <poenitz@htwm.de>
529 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
532 * math_iter.C: default-construct and resize array
534 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
536 * math_xiter.h: move ipush and ipop to public, add _ on private
537 variables, move protected var to private, remove friend.
539 * math_cursor.C (insertInset): rename method from Insert also
540 remove default arg val. Call the public methods of xiter instead
541 of private variables.
543 * changes to several files because of the above.
545 2001-02-14 André Pönitz <poenitz@htwm.de>
547 * math_iter.[Ch]: hide fcode_
549 * math_parinset.C: subsequent changes
552 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
554 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
557 * math_write.C: delete file
558 * math_delim.C: delete file
559 * marh_sqrtinset.h: delete file
561 * move funcs to more localized files, more general cleanup.
562 Constify several local vars. Doxygen changes. Formatting.
564 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
566 * support.C: add some consts
568 * matriz.C: clean up a bit.
569 (matmat): remove the for loop.
571 * several files: changes so that several friends can be removed
573 2001-02-14 André Pönitz <poenitz@htwm.de>
575 * formula.C: reformatting
579 math_xiter.[Ch]: remove unneeded members
581 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
585 * formula.C: remove cruft
587 * array.C (begin): new method
590 2001-02-14 André Pönitz <poenitz@htwm.de>
592 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
594 * math_cursor.C: reformatting
596 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
600 * math_matrixinset.C:
601 * math_macrotemplate.C:
606 * math_decorationinset.C:
608 * math_accentinset.C:
609 * math_sqrtinset.C: include LOstream.h and add using directive.
611 2001-02-14 André Pönitz <poenitz@htwm.de>
613 * math_iter.C: reformatting
615 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
617 * math_spaceinset.C (GetSpace): move here
619 * math_parinset.C: add debug.h, move several prev. inlined methods
622 * math_macrotable.C math_xiter.C support.C: add debug.h
624 * math_macro.h: remove debug.h, remove typedefs
626 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
629 * math_hash.C: change some defines to int const. change use of
630 LM_TC_NORMAL to LM_TC_VAR
632 * math_draw.C: delete file
634 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
635 forward decls. remove LM_TC_NORMAL, move inline methods to
636 support.C (and support.h)
638 * math_cursor.C: move several previous inlined methods here
640 * math_bigopinset.h math_dotsinset.h math_funcinset.h
641 math_parinset.h math_spaceinset.h: add math_defs.h
643 * math_accentinset.h: add support.h and math_defs.h
645 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
647 * formula.h: remove unused func decl: OpenMathInset
649 * formula.C math_inset.h: get rid of math_defs.h
651 * array.h: switch to support.h instead of math_defs.h
653 * array.C: remove one include
655 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
657 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
659 * math_parser.C: include macrotable and macrotemplate
661 * math_macrotemplate.[Ch]: new files
663 * math_macrotable.[Ch]: new files
665 * math_macroarg.[Ch]: new files
667 * math_macro.C: move stuff to the new files.
669 * math_cursor.C: include math_macrotable.h
671 * macro_support.[Ch]: new files
673 * formulamacro.C: add more includes
675 * Makefile.am (libmathed_la_SOURCES): add new files.
677 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
679 * Makefile.am (libmathed_la_SOURCES): remove duplicate
684 * math_parinset.C: add a bunch of "using" directives.
687 * math_decorationinset.h:
689 * math_spaceinset.h: remove more couples of inline.
691 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
693 * math_xiter.h: remove a couple of "inline"
695 * array.C (strange_copy): fix bug (hopefully)
696 * many files: add a lot of new files and move methods to the class
697 files they belong to. Only first attempt at cleanup more will
700 2001-02-12 André Pönitz <poenitz@htwm.de>
702 * math_macro.[hC]: replace MathMacroArgument[] with
703 std::vector<MathMacroArgument>
705 math_inset.C: replace int[] with std::vector<int>
707 * math_symbols.C: replace FL_OBJECTP[] with
708 std::vector<FL_OBJECT*>
710 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
712 * math_defs.h (struct MathedRowSt): make all private variables end
713 with '_', initialize in initializer list instead of in function
716 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
718 * formula.C (LocalDispatch): Change the default action of
719 break-line to create an align* environment instead of eqnarray*.
721 * math_inset.C (Metrics): Correct drawing of the multline
724 2001-02-12 André Pönitz <poenitz@htwm.de>
726 * array.[hC]: replace private variable maxsize_ with call to
728 * math_defs.h: replace int[] by std::vector<int> for
731 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
733 * array.h: made all variables private, removed friend, added new
734 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
735 non const operator[] added setter for last and getter for maxsize.
736 changed name from LyxArrayBase to MathedArray.
737 changed name of some methods to start with lowerchar.
738 moved inline methods to array.C
740 * math_iter.C + several file: changes because of the above.
742 * array.C: new file with the prev inline methods.
744 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
746 * Many files: add support for the align environment from amsmath.
748 2001-02-09 André Pönitz <poenitz@htwm.de>
750 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
751 * several files: subsequent changes
752 * math_iter.h: remove unused prototype
755 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
757 * math_macro.C (draw): add .c_str() to .str() (useful when
758 compiling with lyxstring, but STL sstream).
761 2001-02-08 André Pönitz <poenitz@htwm.de>
763 * several files: get rid of reinterpret_cast.
765 2001-02-04 Allan Rae <rae@lyx.org>
767 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
768 just casting the variable.
770 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
772 * Many files: Add support for multline and alignat environments from
775 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
777 * math_symbols.C (math_insert_greek): Move cursor right when
778 unlocking the math inset.
780 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
782 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
784 * formula.C (LocalDispatch): Before inserting a label in an
785 eqnarray, move the cursor to the top level.
787 * math_iter.C (getLabel): Test if crow == 0.
789 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
791 * math_draw.C (Metrics): Use the correct GetString.