1 2001-06-25 The LyX Project <Asger>
3 * math_scriptinset.C: Fix for entering with cursor up/down.
5 * math_fracinset.C: We can enter fractions with cursor up and
8 * math_cursor.C (Right): Fixes for cursor movement.
10 * formula.C (draw): New background color for math.
12 * math_cursor.C: Fixes for toggling labels on/off in math.
13 Fixes for infinity and other symbols that didn't appear in
16 2001-06-24 The LyX Project <Asger>
18 * math_inset.C: Cursor movement is better in square roots, among
21 * math_cursor.C (Interpret): Improved subscript bullshit. Improved
22 cursor up/down movement. What not.
24 2001-06-24 The LyX Project <Asger>
26 * math_matrixinset.C: Hidden labels are hidden, unless a small
27 dragon jumps out of the screen, and pronounce them to the entire
30 2001-06-24 The LyX Project <Easter egg>
32 * math_cursor.C: Cursor improvements after a few dead-ends
33 in the evolution of cursor movement were tested and scrapped.
35 2001-06-24 The LyX Project <Asger>
37 * math_cursor.C: Renamed stack to path.
39 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
42 * math_root.C: removed // -*- C++ -*- as first line.
44 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
46 * array.C: bring memmove into main namespace if necessary
48 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
50 * math_parser.C (yylex): use contains instead of strchr
51 (parse_align): remove last arg, change to take string const & as
53 (mathed_parse): use string for ar2 and ar, adjust
55 * math_decorationinset.C (Write): use compare instead of strcmp
57 * formula.C (LocalDispatch): change arg2 to string, adjust for this
58 (LocalDispatch): add std::
59 (LocalDispatch): use contains instead of strchr
61 * array.C (move): add std::
63 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
65 * matriz.C: add using directives when needed for C functions
66 declared in std:: namespace.
68 * math_macrotemplate.h: do not use explicitely std::string, but
71 * math_macroarg.C: avoid bringing the whole std:: namespace in
72 global-land. When you do that, there is an ambiguity between
73 lyxstring and std::string (which may be defined at the same time).
75 * formula.C (HandleExtern): add .c_str() to .str() (useful when
78 2001-04-27 André Pönitz <poenitz@htwm.de>
80 * math_parser.C: fix \frac handling bug introduced on 04-24
81 * math_xiter.C: hotfix for merging "shared" insets
82 * formula.C: fixing display after using math-insert
84 2001-04-25 André Pönitz <poenitz@htwm.de>
86 * math_*.[Ch]: WriteNormal
87 * formula.C: Support for new "math extern" command
88 * math_parser.C: fix \frac handling bug introduced on 04-24
89 * math_xiter.C: hotfix for merging "shared" insets
91 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
93 * math_macrotable.C: include <iostream>
95 2001-04-24 André Pönitz <poenitz@htwm.de>
98 * math_macrotable.[Ch]:
99 * math_macroarg.[Ch]: restructuring of macro handling
102 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
104 * array.h (operator<<):
105 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
107 * math_macrotable.C: added using std::make_pair directive.
108 (dump): added using std::cerr directive here as I guess that this is
111 2001-04-20 Allan Rae <rae@lyx.org>
113 * formula.C (LocalDispatch): fixed another #warning. Guess who.
115 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
117 * math_macrotemplate.h: inherit privately from noncopyable
119 * math_macro.C (Metrics): reindent, use unsigned int as loop var
120 (setArgumentIdx): change test to avoid unsigned warning
122 * formula.C (LocalDispatch): use LFUN_MESSAGE
124 2001-04-16 Allan Rae <rae@lyx.org>
126 * formula.C (Latex, getLabelList, LocalDispatch):
127 * math_parser.C (mathed_parse):
128 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
129 an unrecognised preprocessor directive. So ensure they're wrapped.
131 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
133 * formula.C (draw): adjust for cursor_visible
134 (ToggleInsetCursor): adjust for cursor_visible and constify asc
136 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
137 (HideInsetCursor): adjust for cursor_visible
138 (LocalDispatch): constify default_label and res
140 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
142 * math_rowst.C: add missing #include <config.h>.
144 2001-03-16 André Pönitz <poenitz@htwm.de>
146 * math_matrixinset.h:
147 * math_parinset.[Ch]:
148 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
150 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
158 * math_symbols.C: maths panel moved to GUII
160 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
162 * math_cursor.C: use lyxerr instead of cerr.
164 2001-03-15 André Pönitz <poenitz@htwm.de>
166 * math_cursor.C: fix bug (cursor was leaving two insets at a time
169 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
171 * math_macrotable.h: noncopyable is in namespace boost
172 * math_macrotemplate.h: ditto
174 * math_rowst.h: make MathedRowContainer::iterator public.
176 2001-03-15 André Pönitz <poenitz@htwm.de>
178 * math_parser.C: read '\nonumber' again (was broken)
180 * math_rowst.C: new file
182 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
184 * math_cursor.C: added using directive.
186 2001-03-15 André Pönitz <poenitz@htwm.de>
188 * math_rowst.h: Finally remove MathedRowSt
191 math_xiter.C: changed accordingly
193 2001-03-12 André Pönitz <poenitz@htwm.de>
195 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
196 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
198 2001-03-10 André Pönitz <poenitz@htwm.de>
201 math_matrixinset.C: move adjustVerticalSt to the only place where
202 it is used. Fix a small bug where the cached row structure and the
203 actual data get out of sync after the deletion of whole rows
205 2001-03-09 André Pönitz <poenitz@htwm.de>
207 * math_cursor.C: use std::vector<> in MathStackXIter
208 change selstk from a pointer to the "real thing"
210 * math_rowst.h: new MathedRowContainer::erase method
212 * math_xiter.C: use MathedRowContainer::erase
214 * math_parser.C: use MathedRowContainer::insert_after
216 2001-03-08 André Pönitz <poenitz@htwm.de>
218 * math_rowst.h: give MathedRowContainer an 'insert' method.
220 * math_xiter.C: new 'container()' method to encapsulated access to
221 the MathParInset's MathedRowContainer
223 * math_rowst.h: proper copy constructor and destructor for
226 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
227 automatically created by the compiler are ok now.
229 2001-03-06 André Pönitz <poenitz@htwm.de>
231 * array.[Ch]: factor out deep_copy,
232 remove third argument from raw_pointer_insert
234 * math_iter.[Ch]: remove unused function Clear()
236 * math_cursor.C: change signature of MathStackXIter:push()
239 * math_rowst.h: introduction of MathRowContainer
240 several files: corresponding changes
242 2001-03-04 André Pönitz <poenitz@htwm.de>
244 * math_macrotemplate.[Ch]:
245 math_macro.C: move update() functionality to the macro
247 * math_rowst.h: split MathedRowSt into "data" and "list"
249 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
251 * math_macrotemplate.C (update): use MathMacro::getArg, and
252 receive a const reference.
253 (getMacroPar): add an Assert
255 * math_macrotemplate.h: make MathMacro a friend, make update take
258 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
259 and store a MathMacroArgument in the vector
260 * math_macro.C: changes because of the above.
263 * math_parser.C (mathed_parse): plug potential leak
265 * math_iter.h: add comment on virtual destructor
267 * math_iter.C (Delete): make c const
269 * math_parinset.C (Metrics): cleanup indent. make one string const.
271 * math_inset.C (size): move out of line
274 * math_macroarg.h: remove default constructor
276 * math_macroarg.C: include Lsstream.h instead of debug.h
277 (MathMacroArgument): remove default constructor
278 (Write): add std:: on ostream arg
280 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
283 * formula.C: make DEBUG into lyxerr
285 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
287 * math_macrotemplate.h: make noncopyable, remove last arg to
288 constructor, remove flags_ add edit_
289 (flags): remove method
291 * math_macrotemplate.C (setArgument): delete method
292 (update): make idx const
293 (Metrics): use edit_, remove flags_
294 (draw): use edit_, remove flags_
295 (setEditMode): set edit_, remove flags_
296 (MathMacroTemplate): initialize edit_, remove flags_
298 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
299 shared_ptr, let constructor take a shared_ptr
301 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
303 (draw): remove unneded update, remove removed update of x,y
304 (GetXY): call tmplates GetMacroXY directly
305 (SetFocus): call Metrics() instead of update()
306 (Write): remove support for math macro environments, simplifications.
308 * math_macrotable.h: make class noncopyable, change getMacro to
309 createMacro, change vector to map store a
310 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
312 * math_macrotable.C: add pragma
313 (createMacro): change name from getMacro, use shared_ptr
314 (getTemplate): Use map lookup to get macro, return shared_ptr
315 (addTemplate): assert that m containse a valid pointer, use map[]
317 (builtinMacros): by using shared_ptr fix the mem leak, remove
318 commented out unsupported macros
320 * math_cursor.C: changes because of the above
321 * math_parser.C: changes because of the abobe
323 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
324 default arg on constructor.
325 * formulamacro.C: changes because of the above
327 * math_parinset.h: add pragma
328 (SetAlign): move inline out of class def
332 (setArgumentIdx): ditto
333 (setNextArgIdx): ditto
334 (getArgumentIdx): ditto
335 (getMaxArgumentIdx): ditto
340 * math_parinset.C: add pragma
341 (Write): change the else clause, lessen depth
343 * math_macroarg.h: small whitespace change
345 * array.C: include support/LOstream.h add using ostream and endl
347 * array.h (dump): add std:: on ostream
349 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
351 * math_macrotemplate.h: remove default arg on update
353 * math_macrotemplate.C (update): add assert and remove noop case.
355 * formulamacro.C (Read): add comment.
356 (ascent): remove noop call to MathMacroTemplate
361 * math_parser.C (mathed_parse): fix another potential problem by
362 passing a freestanding mathedarray.
364 * math_root.C (GetData): add const version
366 * math_parinset.C (~MathParInset): delete
367 (GetData): add const version
369 * math_matrixinset.C (MathMatrixInset): delete pointer version,
370 make it a proper copy constructor instead
372 (MathMatrixInset): remvoe default val for m and n
374 * math_macro.C (GetData): add const version
376 * math_fracinset.C (GetData): add const version
378 * math_cursor.C (SelCopy): make p1 and p2 const
379 (SelCut): make p1 and p2 const
381 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
382 (LyxCode): move inline out of class
386 * array.[Ch] (dump): method added for debugging purposes
388 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
389 mathed_parse when reading a matrix.
391 * math_spaceinset.[Ch]: add pragma, make variables private add
392 '_', change order of method definitions.
394 * math_root.h (~MathRootInset): delete
395 Change uroot_ to be a real object instead of a pointer
396 * math_root.C: changes because of the above
398 * math_macro.C (MathMacro(MathMacro*)): delete constructor
399 (MathMacro(MathMacro const &)): new copy constructor
401 * math_inset.h: delete constructor taking a pointer to MathedInset
402 (size, incSize): move inline method
404 * math_funcinset.h: add pragma, remove class vars ln and fname,
405 change protected to private, add '_' to priv vars.
406 (~MathFuncInset): remove
408 * math_fracinset.h: make MathParInset den_ a real object and not a
411 * math_fracinset.C (MathFracInset): clean up, move initalization
412 to initialization list
413 (~MathFracInset): remove
416 * math_draw.C: delete file
418 * math_dotsinset.[Ch]: add pragma
420 * math_bigopinset.h: make protected variables private add '_' to vars.
422 * math_bigopinset.C: move methods to follow class definition order
424 * math_accentinset.h (getAccentCode): move inline here
426 * math_accentinset.C (MathAccentInset): cleanup
429 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
431 * math_inset.[Ch] (MathedInset): remove method
433 * Makefile.am (libmathed_la_SOURCES): correct typo
435 * math_parinset.C (draw): move MathedXiter data(this) up. and
436 remove it two other places.
438 * math_macro.C (MathMacro): use array directly, don't use
439 setArgumentIdx and GetData
441 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
443 * math_macroarg.C (MathMacroArgument): delete
444 * math_macro.C (~MathMacro): delete
445 * math_macrotemplate.C (~MathMacroTemplate): delete
447 * math_decorationinset.[Ch]: add pragma
448 * math_deliminset.[Ch]: likewise
449 * math_fracinset.[Ch]: likewise
450 * math_macroarg.[Ch]: likewise
451 * math_macrotemplate.[Ch]: likewise
452 * math_matrixinset.[Ch]: likewise
454 * formulamacro.C (Read): set contents of tmacro_ to ar.
456 * formulamacro.h: add '_' to private variables.
457 * formalamacro.C: changes because of this.
459 2001-02-23 Juergen Vigna <jug@sad.it>
461 * formula.C (LocalDispatch): changed action to be a kb_action (as it
462 should be) and not an int.
464 * formulamacro.C (LocalDispatch): ditto.
466 2001-02-14 André Pönitz <poenitz@htwm.de>
468 * math_parinset.[Ch]: make array a real MathArray, not just a
471 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
473 * several files: subsequent changes
475 * math_cursor.C: make selarray a proper MathArray
477 * several files: Change "MathedArray *" to "MathedArray &"
480 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
482 * array.C (MathedArray): Fix compilation problem.
484 2001-02-14 André Pönitz <poenitz@htwm.de>
486 * array.[Ch]: "deep" copy constructor and assignment operator for
489 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
491 * math_iter.[Ch]: remove SetData
492 several files: subsequent changes
494 2001-02-14 André Pönitz <poenitz@htwm.de>
496 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
499 * math_iter.C: default-construct and resize array
501 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
503 * math_xiter.h: move ipush and ipop to public, add _ on private
504 variables, move protected var to private, remove friend.
506 * math_cursor.C (insertInset): rename method from Insert also
507 remove default arg val. Call the public methods of xiter instead
508 of private variables.
510 * changes to several files because of the above.
512 2001-02-14 André Pönitz <poenitz@htwm.de>
514 * math_iter.[Ch]: hide fcode_
516 * math_parinset.C: subsequent changes
519 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
521 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
524 * math_write.C: delete file
525 * math_delim.C: delete file
526 * marh_sqrtinset.h: delete file
528 * move funcs to more localized files, more general cleanup.
529 Constify several local vars. Doxygen changes. Formatting.
531 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
533 * support.C: add some consts
535 * matriz.C: clean up a bit.
536 (matmat): remove the for loop.
538 * several files: changes so that several friends can be removed
540 2001-02-14 André Pönitz <poenitz@htwm.de>
542 * formula.C: reformatting
546 math_xiter.[Ch]: remove unneeded members
548 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
552 * formula.C: remove cruft
554 * array.C (begin): new method
557 2001-02-14 André Pönitz <poenitz@htwm.de>
559 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
561 * math_cursor.C: reformatting
563 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
567 * math_matrixinset.C:
568 * math_macrotemplate.C:
573 * math_decorationinset.C:
575 * math_accentinset.C:
576 * math_sqrtinset.C: include LOstream.h and add using directive.
578 2001-02-14 André Pönitz <poenitz@htwm.de>
580 * math_iter.C: reformatting
582 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
584 * math_spaceinset.C (GetSpace): move here
586 * math_parinset.C: add debug.h, move several prev. inlined methods
589 * math_macrotable.C math_xiter.C support.C: add debug.h
591 * math_macro.h: remove debug.h, remove typedefs
593 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
596 * math_hash.C: change some defines to int const. change use of
597 LM_TC_NORMAL to LM_TC_VAR
599 * math_draw.C: delete file
601 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
602 forward decls. remove LM_TC_NORMAL, move inline methods to
603 support.C (and support.h)
605 * math_cursor.C: move several previous inlined methods here
607 * math_bigopinset.h math_dotsinset.h math_funcinset.h
608 math_parinset.h math_spaceinset.h: add math_defs.h
610 * math_accentinset.h: add support.h and math_defs.h
612 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
614 * formula.h: remove unused func decl: OpenMathInset
616 * formula.C math_inset.h: get rid of math_defs.h
618 * array.h: switch to support.h instead of math_defs.h
620 * array.C: remove one include
622 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
624 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
626 * math_parser.C: include macrotable and macrotemplate
628 * math_macrotemplate.[Ch]: new files
630 * math_macrotable.[Ch]: new files
632 * math_macroarg.[Ch]: new files
634 * math_macro.C: move stuff to the new files.
636 * math_cursor.C: include math_macrotable.h
638 * macro_support.[Ch]: new files
640 * formulamacro.C: add more includes
642 * Makefile.am (libmathed_la_SOURCES): add new files.
644 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
646 * Makefile.am (libmathed_la_SOURCES): remove duplicate
651 * math_parinset.C: add a bunch of "using" directives.
654 * math_decorationinset.h:
656 * math_spaceinset.h: remove more couples of inline.
658 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
660 * math_xiter.h: remove a couple of "inline"
662 * array.C (strange_copy): fix bug (hopefully)
663 * many files: add a lot of new files and move methods to the class
664 files they belong to. Only first attempt at cleanup more will
667 2001-02-12 André Pönitz <poenitz@htwm.de>
669 * math_macro.[hC]: replace MathMacroArgument[] with
670 std::vector<MathMacroArgument>
672 math_inset.C: replace int[] with std::vector<int>
674 * math_symbols.C: replace FL_OBJECTP[] with
675 std::vector<FL_OBJECT*>
677 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
679 * math_defs.h (struct MathedRowSt): make all private variables end
680 with '_', initialize in initializer list instead of in function
683 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
685 * formula.C (LocalDispatch): Change the default action of
686 break-line to create an align* environment instead of eqnarray*.
688 * math_inset.C (Metrics): Correct drawing of the multline
691 2001-02-12 André Pönitz <poenitz@htwm.de>
693 * array.[hC]: replace private variable maxsize_ with call to
695 * math_defs.h: replace int[] by std::vector<int> for
698 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
700 * array.h: made all variables private, removed friend, added new
701 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
702 non const operator[] added setter for last and getter for maxsize.
703 changed name from LyxArrayBase to MathedArray.
704 changed name of some methods to start with lowerchar.
705 moved inline methods to array.C
707 * math_iter.C + several file: changes because of the above.
709 * array.C: new file with the prev inline methods.
711 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
713 * Many files: add support for the align environment from amsmath.
715 2001-02-09 André Pönitz <poenitz@htwm.de>
717 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
718 * several files: subsequent changes
719 * math_iter.h: remove unused prototype
722 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
724 * math_macro.C (draw): add .c_str() to .str() (useful when
725 compiling with lyxstring, but STL sstream).
728 2001-02-08 André Pönitz <poenitz@htwm.de>
730 * several files: get rid of reinterpret_cast.
732 2001-02-04 Allan Rae <rae@lyx.org>
734 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
735 just casting the variable.
737 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
739 * Many files: Add support for multline and alignat environments from
742 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
744 * math_symbols.C (math_insert_greek): Move cursor right when
745 unlocking the math inset.
747 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
749 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
751 * formula.C (LocalDispatch): Before inserting a label in an
752 eqnarray, move the cursor to the top level.
754 * math_iter.C (getLabel): Test if crow == 0.
756 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
758 * math_draw.C (Metrics): Use the correct GetString.