1 2002-01-09 Martin Vermeer <martin.vermeer@hut.fi>
3 * math_support.C: modified to support a mathed pop-up for math
4 size "styles" and font types.
6 2002-01-07 Angus Leeming <a.leeming@ic.ac.uk>
8 * math_defs.h: remove trailing comma from enum MathTextCodes.
10 2002-01-03 André Pönitz <poenitz@gmx.net>
12 * formulabase.[Ch]: implement simple search
14 * math_sizeinset.[Ch]: support for \displaystyle etc
17 2001-12-18 Dekel Tsur <dekelts@tau.ac.il>
19 * math_macrotable.C (builtinMacros): Adjust kern values.
21 2001-12-18 Lars Gullik Bjønnes <larsbj@birdstep.com>
24 * math_binaryopinset.C:
29 * math_diminset.C:add missing config.h
32 * math_parser.C: move inludes around a bit.
34 * math_extinset.C: user boost::scoped_ptr
36 * math_parser.C: user std::fill to fill the catcodes. (please
37 check this one...), and some consts.
39 2001-12-11 André Pönitz <poenitz@gmx.net>
41 * math_cursor.C: allow cut&paste of rectangular regions of cells
43 2001-12-15 Dekel Tsur <dekelts@tau.ac.il>
45 * math_kerninset.C (metrics): Consider lyxrc.zoom
47 2001-12-14 Dekel Tsur <dekelts@tau.ac.il>
49 * math_support.C: Fix handling of \mathfrak font.
51 2001-12-10 Lars Gullik Bjønnes <larsbj@birdstep.com>
53 * math_iterator.C (nextInset): compilation fix.
55 2001-12-11 André Pönitz <poenitz@gmx.net>
59 * math_hash.C: support for \mathfrak
61 2001-12-12 Angus Leeming <a.leeming@ic.ac.uk>
63 * math_streamstr.C: #include <iostream> to compile with DEC cxx
65 2001-12-05 Lars Gullik Bjønnes <larsbj@birdstep.com>
69 * math_decorationinset.C:
75 * math_funcliminset.C:
82 * math_unknowninset.C: include math_streamstr.h and remove
85 * math_symbolinset.[Ch]: add constructor taking string
87 * math_mathmlstream.C: move includes around
89 * math_streamstr.[Ch]: add operator<<(Stream, string) for
90 NormalStream, MapleStream, MathMLStream and OctaveStream
92 * math_gridinset.C: user LyXLength::zero
94 2001-11-19 Angus Leeming <a.leeming@ic.ac.uk>
97 * math_arrayinset.C: add using std::getline directive.
99 2001-11-20 André Pönitz <poenitz@gmx.net>
101 * formulabase.C: fix mouse positioning using the cursor
103 2001-11-19 Dekel Tsur <dekelts@tau.ac.il>
105 * math_mathmlstream.C (operator<<): Count '\n' chars
107 2001-11-11 Michael A. Koziarski <michael@koziarski.org>
110 * math_hullinset.C: Fixes to use the new LaTeXFeatures
113 2001-11-07 André Pönitz <poenitz@gmx.net>
115 * math_extern.C: support for integrals, sums, e^x, and d/dx
117 2001-11-15 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
119 * math_extern.C (extractNumber):
120 (extractDiffExponent): add ugly .c_str()
122 2001-11-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
124 * math_arrayinset.C (MathArrayInset):
125 * formula.C (pipeThroughMaple):
126 (pipeThroughOctave): add ugly .c_str() to help compile
129 2001-11-07 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
131 * math_inset.C: compilation fix
133 2001-11-07 André Pönitz <poenitz@gmx.net>
136 * array.[Ch]: start native C++ support for Octave, Maple and MathML
138 2001-10-31 Angus Leeming <a.leeming@ic.ac.uk>
140 * math_defs.h: remove non-standard trailing comma from MathSymbolTypes.
142 2001-10-24 Angus Leeming <a.leeming@ic.ac.uk>
144 * math_nestinset.C: added using std::max, min directives.
145 * math_scriptinset.C: added using std::ostream directive.
146 * math_scriptinset.h: replaced ostream with std::ostream.
148 2001-10-17 André Pönitz <poenitz@gmx.net>
150 * math_*inset.[Ch]: remove MathStyles cache from insets that
154 formulabase.C: fix math font sizes in headings etc
157 formula.C: remove unused static member int MathInset::workwidth
159 * math_gridinset.[Ch]: implement idxHome() and idxEnd()
161 2001-10-17 André Pönitz <poenitz@gmx.net>
164 * *.[Ch]: make output more stream-like
166 2001-10-17 André Pönitz <poenitz@gmx.net>
169 * array.C: add missing/broken writeNormal()
171 * math_lefteqn.[Ch]: some visual support for \lefteqn
174 2001-10-10 André Pönitz <poenitz@gmx.net>
176 * math_cursor.C: introduce dummy "inner" position "between"
177 nucleus and scripts for smoother cursor movement
179 * math_cursor.C: use red dot to indicate empty nucleus
182 2001-10-02 André Pönitz <poenitz@gmx.net>
184 * math_cursor.C: leave red backslash as visual clue
185 in formula when typing macro names
187 * math_macrotemplate.C: sanity check
189 2001-10-01 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
192 * formula.C (localDispatch): fix a few of local variable sizes
194 * math_fracbase.C: change parameter types to match MathInset
196 2001-10-01 André Pönitz <poenitz@gmx.net>
198 * math_cursor.[Ch]: remove local parInset() method
200 * math_macro.C: add a static_cast
202 2001-09-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
204 * math_cursor.C: fix type mismatches with what was declared in
207 2001-09-28 Dekel Tsur <dekelts@tau.ac.il>
209 * math_matrixinset.C (header_write): Add \n after \begin{align}
211 2001-09-19 Dekel Tsur <dekelts@tau.ac.il>
213 * math_macrotable.C (builtinMacros): Add some macros if latex
216 2001-09-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
218 * formula.C (insetAllowed): disallow label insertion in inline
221 2001-09-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
223 * formulabase.C (mathDispatchCreation): pass second argument
224 'false' (no label) to selectionAsString
226 2001-09-11 André Pönitz <poenitz@gmx.net>
228 * math_atom.[Ch]: new basic item in the MathArray
230 * array.[Ch]: move code over to math_atom
232 * math_scriptinset.[Ch]:
234 math_cursor.C: try to do with super- and subscripts what TeX does
236 2001-09-04 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
238 * math_parser.C (tokenize): add a .c_str() (needed with lyxstring)
240 2001-09-04 André Pönitz <poenitz@gmx.net>
244 * math_matrixinset.C: some support for the AMS 'alignat', 'xalignat',
245 'xxalignt', 'gather' and 'multiline' environments
247 * math_cursor.C: fix handling of | and \|
249 2001-09-04 José Matos <jamatos@fep.up.pt>
256 * formulamacro.h (docbook): rename docBook method to docbook.
258 2001-09-03 Dekel Tsur <dekelts@tau.ac.il>
260 * math_hash.C (ReadSymbols): Check for duplicate symbols
262 2001-09-02 Angus Leeming <a.leeming@ic.ac.uk>
264 * support.C: added a using std::map directive.
266 2001-08-17 André Pönitz <poenitz@gmx.net>
268 * math_hash.C: Use std::map instead of faking it
270 * symbol_def.h: remove unneeded symbol definitions
272 * support.C: use the decorations' name for drawing
274 2001-09-02 Dekel Tsur <dekelts@tau.ac.il>
276 * math_hash.C (in_word_set): Initialize symbol table even when
277 symbols file was not found.
279 2001-09-02 Angus Leeming <a.leeming@ic.ac.uk>
281 * math_hash.C: added a using std::endl directive.
283 2001-09-01 Dekel Tsur <dekelts@tau.ac.il>
285 * support.C (whichFont): Add support for cmr font.
286 Add support for \mathbb.
288 * math_notinset.C (draw, metrics): Use cmsy symbol if available.
290 * math_macrotable.C (builtinMacros): Add 3 builtin macros
292 2001-08-31 Dekel Tsur <dekelts@tau.ac.il>
294 * math_hash.C: Read symbols information from external file
295 many files: Add support for latex symbol fonts
297 2001-08-18 Dekel Tsur <dekelts@tau.ac.il>
299 * math_parser.C (Parser): Eat spaces after \end_inset
301 2001-08-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
303 * math_parser.C (tokenize): fix typo
305 2001-08-17 André Pönitz <poenitz@gmx.net>
307 * math_parser.C: new "lexxer"
309 * array.C: write sequences of chars with same code as a unit
311 2001-08-13 André Pönitz <poenitz@gmx.net>
313 * math_factory.[Ch]: new files for the creation of math insets
317 math_hash.C: simplifications
319 * math_binom.[Ch]: new files for "native" \binom/\choose inset
322 math_cursor.C: reading support for TeX style \over and \choose
324 * formulabase.C: re-enabling the "selected text gets converted to
325 math when pressing C-m" feature.
327 2001-08-13 Angus Leeming <a.leeming@ic.ac.uk>
329 * math_parser.C (lexArg): remove default argument from the .C file
330 as it causes DEC cxx to complain about a redefinition.
332 2001-08-10 André Pönitz <poenitz@gmx.net>
334 * math_scopeinset.[Ch]: new inset for {} blocks
336 * math_accentinset.[Ch]: removed unneeded files
339 math_matrix.[Ch]: start support for "interrow spacing"
341 * all over the place: rework of parser stuff
343 2001-08-08 André Pönitz <poenitz@gmx.net>
345 * math_fracbase.[Ch]:
346 * math_fracinset.[Ch]: new hierarchy
348 * math_stackrelbase.[Ch]: native \stackrel support
350 * math_inset.[Ch]: removal of the name_ member
352 * math_deliminset.[Ch]: rework
354 2001-08-06 André Pönitz <poenitz@gmx.net>
356 * formulamacro.C: fix nasty bug due to missing copy constructor
358 * math_bigopinset.[Ch]: revival for things like \int, \sum
360 * math_funcliminset.[Ch]: dedicated new inset for \lim, \max, \min...
362 * math_diminset.h: make cache variables mutable, remove const_cast
364 * formulabase.[Ch]: remove unneeded convertFont()
366 * math_funcinset.[Ch]: bring red color back
368 * math_macro*.[Ch]: move ownership of the templates from the formulamacro
369 inset to the mcaro table
371 2001-08-01 André Pönitz <poenitz@gmx.net>
374 formulamacro.C: fix memory leaks
376 * math_matrixinset.C: fix mis-alignment of eqnarray columns
378 * formula*.[Ch]: seperation of the "pimpl" MathInset * into
379 MathMatrixInset * and MathMacroTemplate * to save a few casts
381 * all over the place: everything is an inset now
383 * math_nestinset.[Ch]: new abstract base class for insets containing
386 * math_diminset.[Ch]: new abstract base class for insets that need
387 the width_/ascent_/descent_ cache
389 2001-07-25 André Pönitz <poenitz@gmx.net>
391 * formulabase.C: re-enable 'space enlargement' feature
393 * math_scriptinset.C:
394 math_bigopinset.C: rework of script insets
396 2001-07-22 André Pönitz <poenitz@gmx.net>
398 * math_cursor.C: fix "pullArg" behaviour
400 * math_cursor.C: keep empty super/subscript a bit longer
402 * math_cursor.C: do not move into insets that don't have inner cells yet
404 * formulabase.C: fix memory leak
406 * math_cursor.C: ^ now copies selection into new srriptinset
408 * xarray.C: less crude MathXArray::x2pos for preciser cursor positioning
411 * math_updowninset.C: fix drawing glitches
413 * math_cursor.C: paste to correct position
415 2001-07-22 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
417 * formula.C (insetAllowed): allow insertion of label
419 2001-07-20 André Pönitz <poenitz@gmx.net>
421 * math_macrotable.C: support for \land and \vee
423 2001-07-16 André Pönitz <poenitz@gmx.net>
425 * math_grid.[Ch] -> math_gridinset.[Ch]
426 math_root.[Ch] -> math_rootinset.[Ch]: more consistent names
428 * formulabase.C: fix 'buffer set to (Changed) when moving in math',
429 fix 'mathed reports wrong width', cosmetics
431 2001-07-16 Lars Gullik Bjønnes <larsbj@birdstep.com>
433 * math_cursor.C (operator==): moved ouf of struct
435 (normalAnchor): reversed one test (but shouldn't it really be >= ?)
437 2001-07-16 André Pönitz <poenitz@gmx.net>
439 * math_cursor.[hC]: multicell selection (multicell pasete still defunct)
441 * several files: supporting changes
443 2001-07-13 Angus Leeming <a.leeming@ic.ac.uk>
445 Consistent use of Lsstream.h:
446 * formula.C: removed using std::ostringstream directive.
448 * math_cursor.C: std::istringstream -> istringstream.
450 2001-07-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
452 * math_decorationinset.h: add std:: qualifier
454 2001-07-12 André Pönitz <poenitz@gmx.net>
456 * math_updowninset.[hC]: new base class for script and bigop insets
457 *.[hC]: subsequent changes to all Metric() functions
459 * math_parser.C: small changes (\sqrt0 is read properly now)
461 2001-07-10 André Pönitz <poenitz@gmx.net>
463 * math_accentinset.[hC]: rewrite
466 math_cursor.C: subsequent changes
468 * math_grid.C: <Delete> in the first cell of a completely empty row
469 deletes that row, <C-Return> places the cursor in the first of the
472 * math_grid.C: try to split cell nicely when mutating from single-cell
473 to multi-cell environment
475 2001-07-09 Dekel Tsur <dekelts@tau.ac.il>
477 * math_matrixinset.C (mutate): Use only the first label when
478 mutating eqnarray to display formula.
480 2001-07-09 Juergen Vigna <jug@sad.it>
482 * formulabase.C (mathDispatchCreation): don't do anything with the
483 inset if it cannot be inserted!
485 2001-07-09 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
487 * formulabase.C (mathDispatchInsertMath): remove bogus return
490 2001-07-09 André Pönitz <poenitz@gmx.net>
492 * math_*inset.C: Change order of arguments in MathInset constructor
494 * math_cursor.C: Remove broken "increase space" feature for a while
496 2001-07-07 Dekel Tsur <dekelts@tau.ac.il>
498 * formulabase.C (mathDispatchInsertMath): Create an inline formula.
500 2001-07-04 André Pönitz <poenitz@gmx.net>
502 * math_parser.C: fix reading of "unusual" alpha chars
504 * xarray.[hC]: fix debug output of xarray
506 2001-07-03 André Pönitz <poenitz@gmx.net>
508 * math_parser.C: fix bug where equations did not get their labels
510 * formulabase.C: new feature: changing font on selection
512 * several files: subsequent changes
514 * array.C: fix bug when insets have not been cloned properly
515 This should fix quite a few "random" crashes...
517 2001-06-29 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
519 * formulabase.C (localDispatch): use .c_str() on istringstream
520 constructor argument.
522 2001-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
524 * math_grid.C (addCol): add second argument to cellinfo_.insert.
525 Cleanup a bit the code.
526 (appendRow): do not call push_back without argument.
528 * *.C: remove all "using namespace std" directives (not
529 good!!) and replaced it with relevant "using" directives.
531 * math_macrotemplate.C (Clone): change return type to MathInset*
533 2001-06-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
535 * math_sizeinset.C: include support/LOstream.h
537 * math_scriptinset.C (Metrics): std:: qualify max
539 * math_root.C (Metrics): std:: qualify max
540 (Write): std:: qualify ostream
543 * math_matrixinset.C (getLabelList): std:: qualify vector
545 (Metrics): std:: qualify max
546 (header_write): std:: qualify ostream
547 (footer_write): ditto
549 * math_macrotemplate.C (Write): std:: qualify ostream
551 * math_bigopinset.C (Metrics): std:: qualify max, and include
554 * math_matrixinset.h: include vector and std:: qualify it.
556 * array.C (GetInset): get a pointer to the first element of bf_
559 2001-06-25 The LyX Project <Asger>
561 * math_scriptinset.C: Fix for entering with cursor up/down.
563 * math_fracinset.C: We can enter fractions with cursor up and
566 * math_cursor.C (Right): Fixes for cursor movement.
568 * formula.C (draw): New background color for math.
570 * math_cursor.C: Fixes for toggling labels on/off in math.
571 Fixes for infinity and other symbols that didn't appear in
574 2001-06-24 The LyX Project <Asger>
576 * math_inset.C: Cursor movement is better in square roots, among
579 * math_cursor.C (Interpret): Improved subscript bullshit. Improved
580 cursor up/down movement. What not.
582 2001-06-24 The LyX Project <Asger>
584 * math_matrixinset.C: Hidden labels are hidden, unless a small
585 dragon jumps out of the screen, and pronounce them to the entire
588 2001-06-24 The LyX Project <Easter egg>
590 * math_cursor.C: Cursor improvements after a few dead-ends
591 in the evolution of cursor movement were tested and scrapped.
593 2001-06-24 The LyX Project <Asger>
595 * math_cursor.C: Renamed stack to path.
597 2001-06-24 The LyX Project <André>
600 Makefile.am: The Big Patch
601 (rewrite of MathArray, MathCursor, MathMatrixInset, MathBigopInset;
602 new MathScriptInset for up/down stuff;
603 delete MathIter/MatXIter, MathParInset, MathRowSt
604 Changes to the inset inheritance tree, reunification of abstract math
606 label/numbering handling back to life;
607 major changes to the parser(s);
608 new base class FormulaBase for the two math LyXInsets;
609 general cleanup and cosmetic changes)
611 2001-06-19 Angus Leeming <a.leeming@ic.ac.uk>
614 * math_root.C: removed // -*- C++ -*- as first line.
616 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
618 * array.C: bring memmove into main namespace if necessary
620 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
622 * math_parser.C (yylex): use contains instead of strchr
623 (parse_align): remove last arg, change to take string const & as
625 (mathed_parse): use string for ar2 and ar, adjust
627 * math_decorationinset.C (Write): use compare instead of strcmp
629 * formula.C (LocalDispatch): change arg2 to string, adjust for this
630 (LocalDispatch): add std::
631 (LocalDispatch): use contains instead of strchr
633 * array.C (move): add std::
635 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
637 * matriz.C: add using directives when needed for C functions
638 declared in std:: namespace.
640 * math_macrotemplate.h: do not use explicitely std::string, but
643 * math_macroarg.C: avoid bringing the whole std:: namespace in
644 global-land. When you do that, there is an ambiguity between
645 lyxstring and std::string (which may be defined at the same time).
647 * formula.C (HandleExtern): add .c_str() to .str() (useful when
650 2001-04-27 André Pönitz <poenitz@gmx.net>
652 * math_parser.C: fix \frac handling bug introduced on 04-24
653 * math_xiter.C: hotfix for merging "shared" insets
654 * formula.C: fixing display after using math-insert
656 2001-04-25 André Pönitz <poenitz@gmx.net>
658 * math_*.[Ch]: WriteNormal
659 * formula.C: Support for new "math extern" command
660 * math_parser.C: fix \frac handling bug introduced on 04-24
661 * math_xiter.C: hotfix for merging "shared" insets
663 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
665 * math_macrotable.C: include <iostream>
667 2001-04-24 André Pönitz <poenitz@gmx.net>
670 * math_macrotable.[Ch]:
671 * math_macroarg.[Ch]: restructuring of macro handling
674 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
676 * array.h (operator<<):
677 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
679 * math_macrotable.C: added using std::make_pair directive.
680 (dump): added using std::cerr directive here as I guess that this is
683 2001-04-20 Allan Rae <rae@lyx.org>
685 * formula.C (LocalDispatch): fixed another #warning. Guess who.
687 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
689 * math_macrotemplate.h: inherit privately from noncopyable
691 * math_macro.C (Metrics): reindent, use unsigned int as loop var
692 (setArgumentIdx): change test to avoid unsigned warning
694 * formula.C (LocalDispatch): use LFUN_MESSAGE
696 2001-04-16 Allan Rae <rae@lyx.org>
698 * formula.C (Latex, getLabelList, LocalDispatch):
699 * math_parser.C (mathed_parse):
700 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
701 an unrecognised preprocessor directive. So ensure they're wrapped.
703 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
705 * formula.C (draw): adjust for cursor_visible
706 (ToggleInsetCursor): adjust for cursor_visible and constify asc
708 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
709 (HideInsetCursor): adjust for cursor_visible
710 (LocalDispatch): constify default_label and res
712 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
714 * math_rowst.C: add missing #include <config.h>.
716 2001-03-16 André Pönitz <poenitz@gmx.net>
718 * math_matrixinset.h:
719 * math_parinset.[Ch]:
720 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
722 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
730 * math_symbols.C: maths panel moved to GUII
732 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
734 * math_cursor.C: use lyxerr instead of cerr.
736 2001-03-15 André Pönitz <poenitz@gmx.net>
738 * math_cursor.C: fix bug (cursor was leaving two insets at a time
741 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
743 * math_macrotable.h: noncopyable is in namespace boost
744 * math_macrotemplate.h: ditto
746 * math_rowst.h: make MathedRowContainer::iterator public.
748 2001-03-15 André Pönitz <poenitz@gmx.net>
750 * math_parser.C: read '\nonumber' again (was broken)
752 * math_rowst.C: new file
754 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
756 * math_cursor.C: added using directive.
758 2001-03-15 André Pönitz <poenitz@gmx.net>
760 * math_rowst.h: Finally remove MathedRowSt
763 math_xiter.C: changed accordingly
765 2001-03-12 André Pönitz <poenitz@gmx.net>
767 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
768 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
770 2001-03-10 André Pönitz <poenitz@gmx.net>
773 math_matrixinset.C: move adjustVerticalSt to the only place where
774 it is used. Fix a small bug where the cached row structure and the
775 actual data get out of sync after the deletion of whole rows
777 2001-03-09 André Pönitz <poenitz@gmx.net>
779 * math_cursor.C: use std::vector<> in MathStackXIter
780 change selstk from a pointer to the "real thing"
782 * math_rowst.h: new MathedRowContainer::erase method
784 * math_xiter.C: use MathedRowContainer::erase
786 * math_parser.C: use MathedRowContainer::insert_after
788 2001-03-08 André Pönitz <poenitz@gmx.net>
790 * math_rowst.h: give MathedRowContainer an 'insert' method.
792 * math_xiter.C: new 'container()' method to encapsulated access to
793 the MathParInset's MathedRowContainer
795 * math_rowst.h: proper copy constructor and destructor for
798 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
799 automatically created by the compiler are ok now.
801 2001-03-06 André Pönitz <poenitz@gmx.net>
803 * array.[Ch]: factor out deep_copy,
804 remove third argument from raw_pointer_insert
806 * math_iter.[Ch]: remove unused function Clear()
808 * math_cursor.C: change signature of MathStackXIter:push()
811 * math_rowst.h: introduction of MathRowContainer
812 several files: corresponding changes
814 2001-03-04 André Pönitz <poenitz@gmx.net>
816 * math_macrotemplate.[Ch]:
817 math_macro.C: move update() functionality to the macro
819 * math_rowst.h: split MathedRowSt into "data" and "list"
821 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
823 * math_macrotemplate.C (update): use MathMacro::getArg, and
824 receive a const reference.
825 (getMacroPar): add an Assert
827 * math_macrotemplate.h: make MathMacro a friend, make update take
830 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
831 and store a MathMacroArgument in the vector
832 * math_macro.C: changes because of the above.
835 * math_parser.C (mathed_parse): plug potential leak
837 * math_iter.h: add comment on virtual destructor
839 * math_iter.C (Delete): make c const
841 * math_parinset.C (Metrics): cleanup indent. make one string const.
843 * math_inset.C (size): move out of line
846 * math_macroarg.h: remove default constructor
848 * math_macroarg.C: include Lsstream.h instead of debug.h
849 (MathMacroArgument): remove default constructor
850 (Write): add std:: on ostream arg
852 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
855 * formula.C: make DEBUG into lyxerr
857 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
859 * math_macrotemplate.h: make noncopyable, remove last arg to
860 constructor, remove flags_ add edit_
861 (flags): remove method
863 * math_macrotemplate.C (setArgument): delete method
864 (update): make idx const
865 (Metrics): use edit_, remove flags_
866 (draw): use edit_, remove flags_
867 (setEditMode): set edit_, remove flags_
868 (MathMacroTemplate): initialize edit_, remove flags_
870 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
871 shared_ptr, let constructor take a shared_ptr
873 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
875 (draw): remove unneded update, remove removed update of x,y
876 (GetXY): call tmplates GetMacroXY directly
877 (SetFocus): call Metrics() instead of update()
878 (Write): remove support for math macro environments, simplifications.
880 * math_macrotable.h: make class noncopyable, change getMacro to
881 createMacro, change vector to map store a
882 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
884 * math_macrotable.C: add pragma
885 (createMacro): change name from getMacro, use shared_ptr
886 (getTemplate): Use map lookup to get macro, return shared_ptr
887 (addTemplate): assert that m containse a valid pointer, use map[]
889 (builtinMacros): by using shared_ptr fix the mem leak, remove
890 commented out unsupported macros
892 * math_cursor.C: changes because of the above
893 * math_parser.C: changes because of the abobe
895 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
896 default arg on constructor.
897 * formulamacro.C: changes because of the above
899 * math_parinset.h: add pragma
900 (SetAlign): move inline out of class def
904 (setArgumentIdx): ditto
905 (setNextArgIdx): ditto
906 (getArgumentIdx): ditto
907 (getMaxArgumentIdx): ditto
912 * math_parinset.C: add pragma
913 (Write): change the else clause, lessen depth
915 * math_macroarg.h: small whitespace change
917 * array.C: include support/LOstream.h add using ostream and endl
919 * array.h (dump): add std:: on ostream
921 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
923 * math_macrotemplate.h: remove default arg on update
925 * math_macrotemplate.C (update): add assert and remove noop case.
927 * formulamacro.C (Read): add comment.
928 (ascent): remove noop call to MathMacroTemplate
933 * math_parser.C (mathed_parse): fix another potential problem by
934 passing a freestanding mathedarray.
936 * math_root.C (GetData): add const version
938 * math_parinset.C (~MathParInset): delete
939 (GetData): add const version
941 * math_matrixinset.C (MathMatrixInset): delete pointer version,
942 make it a proper copy constructor instead
944 (MathMatrixInset): remvoe default val for m and n
946 * math_macro.C (GetData): add const version
948 * math_fracinset.C (GetData): add const version
950 * math_cursor.C (SelCopy): make p1 and p2 const
951 (SelCut): make p1 and p2 const
953 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
954 (LyxCode): move inline out of class
958 * array.[Ch] (dump): method added for debugging purposes
960 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
961 mathed_parse when reading a matrix.
963 * math_spaceinset.[Ch]: add pragma, make variables private add
964 '_', change order of method definitions.
966 * math_root.h (~MathRootInset): delete
967 Change uroot_ to be a real object instead of a pointer
968 * math_root.C: changes because of the above
970 * math_macro.C (MathMacro(MathMacro*)): delete constructor
971 (MathMacro(MathMacro const &)): new copy constructor
973 * math_inset.h: delete constructor taking a pointer to MathedInset
974 (size, incSize): move inline method
976 * math_funcinset.h: add pragma, remove class vars ln and fname,
977 change protected to private, add '_' to priv vars.
978 (~MathFuncInset): remove
980 * math_fracinset.h: make MathParInset den_ a real object and not a
983 * math_fracinset.C (MathFracInset): clean up, move initalization
984 to initialization list
985 (~MathFracInset): remove
988 * math_draw.C: delete file
990 * math_dotsinset.[Ch]: add pragma
992 * math_bigopinset.h: make protected variables private add '_' to vars.
994 * math_bigopinset.C: move methods to follow class definition order
996 * math_accentinset.h (getAccentCode): move inline here
998 * math_accentinset.C (MathAccentInset): cleanup
1001 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1003 * math_inset.[Ch] (MathedInset): remove method
1005 * Makefile.am (libmathed_la_SOURCES): correct typo
1007 * math_parinset.C (draw): move MathedXiter data(this) up. and
1008 remove it two other places.
1010 * math_macro.C (MathMacro): use array directly, don't use
1011 setArgumentIdx and GetData
1013 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
1015 * math_macroarg.C (MathMacroArgument): delete
1016 * math_macro.C (~MathMacro): delete
1017 * math_macrotemplate.C (~MathMacroTemplate): delete
1019 * math_decorationinset.[Ch]: add pragma
1020 * math_deliminset.[Ch]: likewise
1021 * math_fracinset.[Ch]: likewise
1022 * math_macroarg.[Ch]: likewise
1023 * math_macrotemplate.[Ch]: likewise
1024 * math_matrixinset.[Ch]: likewise
1026 * formulamacro.C (Read): set contents of tmacro_ to ar.
1028 * formulamacro.h: add '_' to private variables.
1029 * formalamacro.C: changes because of this.
1031 2001-02-23 Juergen Vigna <jug@sad.it>
1033 * formula.C (LocalDispatch): changed action to be a kb_action (as it
1034 should be) and not an int.
1036 * formulamacro.C (LocalDispatch): ditto.
1038 2001-02-14 André Pönitz <poenitz@gmx.net>
1040 * math_parinset.[Ch]: make array a real MathArray, not just a
1043 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
1045 * several files: subsequent changes
1047 * math_cursor.C: make selarray a proper MathArray
1049 * several files: Change "MathedArray *" to "MathedArray &"
1052 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
1054 * array.C (MathedArray): Fix compilation problem.
1056 2001-02-14 André Pönitz <poenitz@gmx.net>
1058 * array.[Ch]: "deep" copy constructor and assignment operator for
1061 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
1063 * math_iter.[Ch]: remove SetData
1064 several files: subsequent changes
1066 2001-02-14 André Pönitz <poenitz@gmx.net>
1068 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
1071 * math_iter.C: default-construct and resize array
1073 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
1075 * math_xiter.h: move ipush and ipop to public, add _ on private
1076 variables, move protected var to private, remove friend.
1078 * math_cursor.C (insertInset): rename method from Insert also
1079 remove default arg val. Call the public methods of xiter instead
1080 of private variables.
1082 * changes to several files because of the above.
1084 2001-02-14 André Pönitz <poenitz@gmx.net>
1086 * math_iter.[Ch]: hide fcode_
1088 * math_parinset.C: subsequent changes
1091 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
1093 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
1096 * math_write.C: delete file
1097 * math_delim.C: delete file
1098 * marh_sqrtinset.h: delete file
1100 * move funcs to more localized files, more general cleanup.
1101 Constify several local vars. Doxygen changes. Formatting.
1103 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
1105 * support.C: add some consts
1107 * matriz.C: clean up a bit.
1108 (matmat): remove the for loop.
1110 * several files: changes so that several friends can be removed
1112 2001-02-14 André Pönitz <poenitz@gmx.net>
1114 * formula.C: reformatting
1118 math_xiter.[Ch]: remove unneeded members
1120 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
1124 * formula.C: remove cruft
1126 * array.C (begin): new method
1129 2001-02-14 André Pönitz <poenitz@gmx.net>
1131 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
1133 * math_cursor.C: reformatting
1135 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1137 * math_spaceinset.C:
1139 * math_matrixinset.C:
1140 * math_macrotemplate.C:
1144 * math_deliminset.C:
1145 * math_decorationinset.C:
1146 * math_bigopinset.C:
1147 * math_accentinset.C:
1148 * math_sqrtinset.C: include LOstream.h and add using directive.
1150 2001-02-14 André Pönitz <poenitz@gmx.net>
1152 * math_iter.C: reformatting
1154 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1156 * math_spaceinset.C (GetSpace): move here
1158 * math_parinset.C: add debug.h, move several prev. inlined methods
1161 * math_macrotable.C math_xiter.C support.C: add debug.h
1163 * math_macro.h: remove debug.h, remove typedefs
1165 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
1168 * math_hash.C: change some defines to int const. change use of
1169 LM_TC_NORMAL to LM_TC_VAR
1171 * math_draw.C: delete file
1173 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
1174 forward decls. remove LM_TC_NORMAL, move inline methods to
1175 support.C (and support.h)
1177 * math_cursor.C: move several previous inlined methods here
1179 * math_bigopinset.h math_dotsinset.h math_funcinset.h
1180 math_parinset.h math_spaceinset.h: add math_defs.h
1182 * math_accentinset.h: add support.h and math_defs.h
1184 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
1186 * formula.h: remove unused func decl: OpenMathInset
1188 * formula.C math_inset.h: get rid of math_defs.h
1190 * array.h: switch to support.h instead of math_defs.h
1192 * array.C: remove one include
1194 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
1196 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
1198 * math_parser.C: include macrotable and macrotemplate
1200 * math_macrotemplate.[Ch]: new files
1202 * math_macrotable.[Ch]: new files
1204 * math_macroarg.[Ch]: new files
1206 * math_macro.C: move stuff to the new files.
1208 * math_cursor.C: include math_macrotable.h
1210 * macro_support.[Ch]: new files
1212 * formulamacro.C: add more includes
1214 * Makefile.am (libmathed_la_SOURCES): add new files.
1216 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1218 * Makefile.am (libmathed_la_SOURCES): remove duplicate
1223 * math_parinset.C: add a bunch of "using" directives.
1226 * math_decorationinset.h:
1227 * math_bigopinset.h:
1228 * math_spaceinset.h: remove more couples of inline.
1230 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
1232 * math_xiter.h: remove a couple of "inline"
1234 * array.C (strange_copy): fix bug (hopefully)
1235 * many files: add a lot of new files and move methods to the class
1236 files they belong to. Only first attempt at cleanup more will
1239 2001-02-12 André Pönitz <poenitz@gmx.net>
1241 * math_macro.[hC]: replace MathMacroArgument[] with
1242 std::vector<MathMacroArgument>
1244 math_inset.C: replace int[] with std::vector<int>
1246 * math_symbols.C: replace FL_OBJECTP[] with
1247 std::vector<FL_OBJECT*>
1249 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
1251 * math_defs.h (struct MathedRowSt): make all private variables end
1252 with '_', initialize in initializer list instead of in function
1255 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
1257 * formula.C (LocalDispatch): Change the default action of
1258 break-line to create an align* environment instead of eqnarray*.
1260 * math_inset.C (Metrics): Correct drawing of the multline
1263 2001-02-12 André Pönitz <poenitz@gmx.net>
1265 * array.[hC]: replace private variable maxsize_ with call to
1267 * math_defs.h: replace int[] by std::vector<int> for
1270 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
1272 * array.h: made all variables private, removed friend, added new
1273 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
1274 non const operator[] added setter for last and getter for maxsize.
1275 changed name from LyxArrayBase to MathedArray.
1276 changed name of some methods to start with lowerchar.
1277 moved inline methods to array.C
1279 * math_iter.C + several file: changes because of the above.
1281 * array.C: new file with the prev inline methods.
1283 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
1285 * Many files: add support for the align environment from amsmath.
1287 2001-02-09 André Pönitz <poenitz@gmx.net>
1289 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
1290 * several files: subsequent changes
1291 * math_iter.h: remove unused prototype
1294 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
1296 * math_macro.C (draw): add .c_str() to .str() (useful when
1297 compiling with lyxstring, but STL sstream).
1300 2001-02-08 André Pönitz <poenitz@gmx.net>
1302 * several files: get rid of reinterpret_cast.
1304 2001-02-04 Allan Rae <rae@lyx.org>
1306 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
1307 just casting the variable.
1309 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
1311 * Many files: Add support for multline and alignat environments from
1314 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
1316 * math_symbols.C (math_insert_greek): Move cursor right when
1317 unlocking the math inset.
1319 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
1321 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
1323 * formula.C (LocalDispatch): Before inserting a label in an
1324 eqnarray, move the cursor to the top level.
1326 * math_iter.C (getLabel): Test if crow == 0.
1328 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
1330 * math_draw.C (Metrics): Use the correct GetString.