]> git.lyx.org Git - lyx.git/blob - src/mathed/ChangeLog
some visual support for \lefteqn
[lyx.git] / src / mathed / ChangeLog
1
2 2001-10-17  André Pönitz  <poenitz@gmx.net>
3
4         * formula.C:
5         * array.C: add missing/broken  writeNormal()
6
7         * math_lefteqn.[Ch]: some visual support for \lefteqn
8         
9
10 2001-10-10  André Pönitz  <poenitz@gmx.net>
11
12         * math_cursor.C: introduce dummy "inner" position "between"
13         nucleus and scripts for smoother cursor movement
14
15         * math_cursor.C: use red dot to indicate empty nucleus
16
17
18 2001-10-02  André Pönitz  <poenitz@gmx.net>
19
20         * math_cursor.C: leave red backslash as visual clue
21         in formula when typing macro names
22
23         *       math_macrotemplate.C: sanity check
24
25 2001-10-01  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
26
27         * math_cursor.C:
28         * formula.C (localDispatch): fix a few of local variable sizes
29
30         * math_fracbase.C: change parameter types to match MathInset
31
32 2001-10-01  André Pönitz  <poenitz@gmx.net>
33
34         * math_cursor.[Ch]: remove local parInset() method
35
36         * math_macro.C: add a static_cast
37
38 2001-09-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
39
40         * math_cursor.C: fix type mismatches with what was declared in
41         math_cursor.h. 
42
43 2001-09-28  Dekel Tsur  <dekelts@tau.ac.il>
44
45         * math_matrixinset.C (header_write): Add \n after \begin{align}
46
47 2001-09-19  Dekel Tsur  <dekelts@tau.ac.il>
48
49         * math_macrotable.C (builtinMacros): Add some macros if latex
50         fonts are available.
51
52 2001-09-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
53
54         * formula.C (insetAllowed): disallow label insertion in inline
55         formula
56
57 2001-09-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
58
59         * formulabase.C (mathDispatchCreation): pass second argument
60         'false' (no label) to selectionAsString
61
62 2001-09-11  André Pönitz  <poenitz@gmx.net>
63
64         * math_atom.[Ch]: new basic item in the MathArray
65
66         * array.[Ch]: move code over to math_atom
67
68         * math_scriptinset.[Ch]:
69           math_parser.C:
70           math_cursor.C: try to do with super- and subscripts what TeX does
71
72 2001-09-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
73
74         * math_parser.C (tokenize): add a .c_str() (needed with lyxstring)
75
76 2001-09-04  André Pönitz  <poenitz@gmx.net>
77
78         * math_defs.h:
79         * math_parser.C:
80         * math_matrixinset.C: some support for the AMS 'alignat', 'xalignat',
81             'xxalignt', 'gather' and 'multiline' environments
82
83         * math_cursor.C: fix handling of | and \|
84         
85 2001-09-04  José Matos  <jamatos@fep.up.pt>
86
87         * formulabase.C
88         * formulabase.h
89         * formula.C
90         * formula.h
91         * formulamacro.C
92         * formulamacro.h (docbook): rename docBook method to docbook.
93
94 2001-09-03  Dekel Tsur  <dekelts@tau.ac.il>
95
96         * math_hash.C (ReadSymbols): Check for duplicate symbols
97
98 2001-09-02  Angus Leeming  <a.leeming@ic.ac.uk>
99
100         * support.C: added a using std::map directive.
101
102 2001-08-17  André Pönitz  <poenitz@gmx.net>
103
104         * math_hash.C: Use std::map instead of faking it
105         
106         * symbol_def.h: remove unneeded symbol definitions
107
108         *       support.C: use the decorations' name for drawing
109
110 2001-09-02  Dekel Tsur  <dekelts@tau.ac.il>
111
112         * math_hash.C (in_word_set): Initialize symbol table even when
113         symbols file was not found.
114
115 2001-09-02  Angus Leeming  <a.leeming@ic.ac.uk>
116
117         * math_hash.C: added a using std::endl directive.
118
119 2001-09-01  Dekel Tsur  <dekelts@tau.ac.il>
120
121         * support.C (whichFont): Add support for cmr font.
122         Add support for \mathbb.
123
124         * math_notinset.C (draw, metrics): Use cmsy symbol if available.
125
126         * math_macrotable.C (builtinMacros): Add 3 builtin macros
127
128 2001-08-31  Dekel Tsur  <dekelts@tau.ac.il>
129
130         * math_hash.C: Read symbols information from external file
131         many files: Add support for latex symbol fonts
132
133 2001-08-18  Dekel Tsur  <dekelts@tau.ac.il>
134
135         * math_parser.C (Parser): Eat spaces after \end_inset
136
137 2001-08-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
138
139         * math_parser.C (tokenize): fix typo
140
141 2001-08-17  André Pönitz  <poenitz@gmx.net>
142
143         * math_parser.C: new "lexxer"
144
145         * array.C: write sequences of chars with same code as a unit
146
147 2001-08-13  André Pönitz  <poenitz@gmx.net>
148
149         * math_factory.[Ch]: new files for the creation of math insets
150
151         * math_parser.C:
152                 math_cursor.C:
153                 math_hash.C: simplifications
154
155         * math_binom.[Ch]: new files for "native" \binom/\choose inset
156
157         * math_parser.C:
158                 math_cursor.C: reading support for TeX style \over and \choose
159
160         * formulabase.C: re-enabling the "selected text gets converted to
161         math when pressing C-m" feature.
162
163 2001-08-13  Angus Leeming  <a.leeming@ic.ac.uk>
164
165         * math_parser.C (lexArg): remove default argument from the .C file
166         as it causes DEC cxx to complain about a redefinition.
167
168 2001-08-10  André Pönitz  <poenitz@gmx.net>
169
170         *       math_scopeinset.[Ch]: new inset for {} blocks
171
172         *       math_accentinset.[Ch]: removed unneeded files
173
174         * math_grid.[Ch]:
175           math_matrix.[Ch]: start support for "interrow spacing"
176
177         * all over the place: rework of parser stuff
178
179 2001-08-08  André Pönitz  <poenitz@gmx.net>
180
181         *       math_fracbase.[Ch]:
182         * math_fracinset.[Ch]: new hierarchy
183
184         *       math_stackrelbase.[Ch]: native \stackrel support
185
186         * math_inset.[Ch]: removal of the name_ member
187
188         * math_deliminset.[Ch]: rework
189
190 2001-08-06  André Pönitz  <poenitz@gmx.net>
191
192         * formulamacro.C: fix nasty bug due to missing copy constructor
193
194         * math_bigopinset.[Ch]: revival for things like \int, \sum
195
196         * math_funcliminset.[Ch]: dedicated new inset for \lim, \max, \min...
197         
198         * math_diminset.h: make cache variables mutable, remove const_cast
199
200         * formulabase.[Ch]: remove unneeded convertFont()
201
202         * math_funcinset.[Ch]: bring red color back
203
204         * math_macro*.[Ch]: move ownership of the templates from the formulamacro
205         inset to the mcaro table
206
207 2001-08-01  André Pönitz  <poenitz@gmx.net>
208
209         * math_cursor.C:
210                 formulamacro.C: fix memory leaks
211
212         * math_matrixinset.C: fix mis-alignment of eqnarray columns
213
214         *       formula*.[Ch]: seperation of the "pimpl" MathInset * into
215         MathMatrixInset * and MathMacroTemplate * to save a few casts
216
217         * all over the place: everything is an inset now
218
219         * math_nestinset.[Ch]: new abstract base class for insets containing
220         other insets.
221
222         * math_diminset.[Ch]: new abstract base class for insets that need
223         the width_/ascent_/descent_ cache
224
225 2001-07-25  André Pönitz  <poenitz@gmx.net>
226         
227         * formulabase.C: re-enable 'space enlargement' feature
228
229         * math_scriptinset.C:
230                 math_bigopinset.C: rework of script insets
231
232 2001-07-22  André Pönitz  <poenitz@gmx.net>
233
234         * math_cursor.C: fix "pullArg" behaviour
235
236         * math_cursor.C: keep empty super/subscript a bit longer
237
238         * math_cursor.C: do not move into insets that don't have inner cells yet
239
240         * formulabase.C: fix memory leak
241
242         * math_cursor.C: ^ now copies selection into new srriptinset
243         
244         * xarray.C: less crude MathXArray::x2pos for preciser cursor positioning
245           using the mouse
246
247         * math_updowninset.C: fix drawing glitches
248
249         * math_cursor.C: paste to correct position
250
251 2001-07-22  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
252
253         * formula.C (insetAllowed): allow insertion of label
254
255 2001-07-20 André Pönitz  <poenitz@gmx.net>
256
257         * math_macrotable.C: support for \land and \vee
258
259 2001-07-16 André Pönitz  <poenitz@gmx.net>
260
261         * math_grid.[Ch] -> math_gridinset.[Ch]
262           math_root.[Ch] -> math_rootinset.[Ch]: more consistent names
263
264         * formulabase.C: fix 'buffer set to (Changed) when moving in math',
265           fix 'mathed reports wrong width', cosmetics
266
267 2001-07-16  Lars Gullik Bjønnes  <larsbj@birdstep.com>
268
269         * math_cursor.C (operator==): moved ouf of struct
270         (operator<): ditto
271         (normalAnchor): reversed one test (but shouldn't it really be >= ?)
272
273 2001-07-16 André Pönitz  <poenitz@gmx.net>
274
275         * math_cursor.[hC]: multicell selection (multicell pasete still defunct)
276
277         * several files: supporting changes
278
279 2001-07-13  Angus Leeming  <a.leeming@ic.ac.uk>
280
281         Consistent use of Lsstream.h:
282         * formula.C: removed using std::ostringstream directive.
283
284         * math_cursor.C: std::istringstream -> istringstream.
285
286 2001-07-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
287
288         * math_decorationinset.h: add std:: qualifier
289
290 2001-07-12 André Pönitz  <poenitz@gmx.net>
291
292         * math_updowninset.[hC]: new base class for script and bigop insets
293                 *.[hC]: subsequent changes to all Metric() functions
294         
295         * math_parser.C: small changes (\sqrt0 is read properly now)
296         
297 2001-07-10 André Pönitz  <poenitz@gmx.net>
298         
299         * math_accentinset.[hC]: rewrite
300
301         * math_parser.C:
302                 math_cursor.C: subsequent changes
303
304         * math_grid.C: <Delete> in the first cell of a completely empty row
305           deletes that row, <C-Return> places the cursor in the first of the
306           new empty cells.
307
308         * math_grid.C: try to split cell nicely when mutating from single-cell
309           to multi-cell environment
310
311 2001-07-09  Dekel Tsur  <dekelts@tau.ac.il>
312
313         * math_matrixinset.C (mutate): Use only the first label when
314         mutating eqnarray to display formula.
315
316 2001-07-09  Juergen Vigna  <jug@sad.it>
317
318         * formulabase.C (mathDispatchCreation): don't do anything with the
319         inset if it cannot be inserted!
320
321 2001-07-09  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
322
323         * formulabase.C (mathDispatchInsertMath): remove bogus return
324         statement. 
325
326 2001-07-09 André Pönitz  <poenitz@gmx.net>
327
328         * math_*inset.C: Change order of arguments in MathInset constructor 
329
330         * math_cursor.C: Remove broken "increase space" feature for a while
331
332 2001-07-07  Dekel Tsur  <dekelts@tau.ac.il>
333
334         * formulabase.C (mathDispatchInsertMath): Create an inline formula.
335
336 2001-07-04 André Pönitz  <poenitz@gmx.net>
337
338         * math_parser.C: fix reading of "unusual" alpha chars
339
340         * xarray.[hC]: fix debug output of xarray
341
342 2001-07-03 André Pönitz  <poenitz@gmx.net>
343
344         * math_parser.C: fix bug where equations did not get their labels
345
346         * formulabase.C: new feature: changing font on selection
347
348         * several files: subsequent changes
349
350         * array.C: fix bug when insets have not been cloned properly
351         This should fix quite a few "random" crashes...
352
353 2001-06-29  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
354
355         * formulabase.C (localDispatch): use .c_str() on istringstream
356         constructor argument.
357
358 2001-06-27  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
359
360         * math_grid.C (addCol): add second argument to cellinfo_.insert.
361         Cleanup a bit the code.
362         (appendRow): do not call push_back without argument.
363
364         * *.C: remove all "using namespace std" directives (not
365         good!!) and replaced it with relevant "using" directives.
366         
367         * math_macrotemplate.C (Clone): change return type to MathInset*
368
369 2001-06-27  Lars Gullik Bjønnes  <larsbj@birdstep.com>
370
371         * math_sizeinset.C: include support/LOstream.h
372
373         * math_scriptinset.C (Metrics): std:: qualify max
374
375         * math_root.C (Metrics): std:: qualify max
376         (Write): std:: qualify ostream
377         (WriteNormal): ditto
378
379         * math_matrixinset.C (getLabelList): std:: qualify vector
380         include vector
381         (Metrics): std:: qualify max
382         (header_write): std:: qualify ostream
383         (footer_write): ditto
384
385         * math_macrotemplate.C (Write): std:: qualify ostream
386
387         * math_bigopinset.C (Metrics): std:: qualify max, and include
388         functional 
389
390         * math_matrixinset.h: include vector and std:: qualify it.
391
392         * array.C (GetInset): get a pointer to the first element of bf_
393         not an iterator.
394
395 2001-06-25  The LyX Project  <Asger>
396
397         * math_scriptinset.C: Fix for entering with cursor up/down.
398
399         * math_fracinset.C: We can enter fractions with cursor up and
400         down.
401
402         * math_cursor.C (Right): Fixes for cursor movement.
403
404         * formula.C (draw): New background color for math.
405         
406         * math_cursor.C: Fixes for toggling labels on/off in math.
407         Fixes for infinity and other symbols that didn't appear in
408         LaTeX.
409
410 2001-06-24  The LyX Project  <Asger>
411
412         * math_inset.C: Cursor movement is better in square roots, among
413         other things.
414
415         * math_cursor.C (Interpret): Improved subscript bullshit. Improved
416         cursor up/down movement. What not.
417
418 2001-06-24  The LyX Project  <Asger>
419
420         * math_matrixinset.C: Hidden labels are hidden, unless a small
421         dragon jumps out of the screen, and pronounce them to the entire
422         world.
423
424 2001-06-24  The LyX Project  <Easter egg>
425
426         * math_cursor.C: Cursor improvements after a few dead-ends
427         in the evolution of cursor movement were tested and scrapped.
428         
429 2001-06-24  The LyX Project  <Asger>
430
431         * math_cursor.C: Renamed stack to path.
432
433 2001-06-24  The LyX Project  <André>
434
435         * *.[Ch]:
436           Makefile.am: The Big Patch
437           (rewrite of MathArray, MathCursor, MathMatrixInset, MathBigopInset;
438      new MathScriptInset for up/down stuff;
439            delete MathIter/MatXIter, MathParInset, MathRowSt
440      Changes to the inset inheritance tree, reunification of abstract math
441      inset base classes;
442      label/numbering handling back to life;
443      major changes to the parser(s);
444      new base class FormulaBase for the two math LyXInsets;
445            general cleanup and cosmetic changes)
446
447 2001-06-19  Angus Leeming  <a.leeming@ic.ac.uk>
448
449         * math_macro.C:
450         * math_root.C: removed // -*- C++ -*- as first line.
451
452 2001-05-31  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
453
454         * array.C: bring memmove into main namespace if necessary
455
456 2001-05-31  Lars Gullik Bjønnes  <larsbj@birdstep.com>
457
458         * math_parser.C (yylex): use contains instead of strchr
459         (parse_align): remove last arg, change to take string const & as
460         first arg.
461         (mathed_parse): use string for ar2 and ar, adjust
462
463         * math_decorationinset.C (Write): use compare instead of strcmp
464
465         * formula.C (LocalDispatch): change arg2 to string, adjust for this
466         (LocalDispatch): add std::
467         (LocalDispatch): use contains instead of strchr
468
469         * array.C (move): add std::
470
471 2001-05-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
472
473         * matriz.C: add using directives when needed for C functions
474         declared in std:: namespace.
475
476         * math_macrotemplate.h: do not use explicitely std::string, but
477         string. 
478
479         * math_macroarg.C: avoid bringing the whole std:: namespace in
480         global-land. When you do that, there is an ambiguity between
481         lyxstring and std::string (which may be defined at the same time).
482
483         * formula.C (HandleExtern): add .c_str() to .str() (useful when
484         using lyxtring)
485
486 2001-04-27 André Pönitz  <poenitz@gmx.net>
487
488         * math_parser.C: fix \frac handling bug introduced on 04-24
489         * math_xiter.C: hotfix for merging "shared" insets
490         * formula.C: fixing display after using math-insert
491
492 2001-04-25 André Pönitz  <poenitz@gmx.net>
493
494         * math_*.[Ch]: WriteNormal
495         * formula.C: Support for new "math extern" command
496         * math_parser.C: fix \frac handling bug introduced on 04-24
497         * math_xiter.C: hotfix for merging "shared" insets
498
499 2001-04-25  Lars Gullik Bjønnes  <larsbj@birdstep.com>
500
501         * math_macrotable.C: include <iostream>
502
503 2001-04-24 André Pönitz  <poenitz@gmx.net>
504
505         * math_macro.[Ch]:
506         * math_macrotable.[Ch]:
507         * math_macroarg.[Ch]: restructuring of macro handling
508         * several files: 
509
510 2001-04-25  Angus Leeming  <a.leeming@ic.ac.uk>
511
512         * array.h (operator<<):
513         * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
514
515         * math_macrotable.C: added using std::make_pair directive.
516         (dump): added using std::cerr directive here as I guess that this is
517         temporary.
518
519 2001-04-20  Allan Rae  <rae@lyx.org>
520
521         * formula.C (LocalDispatch): fixed another #warning.  Guess who.
522
523 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
524
525         * math_macrotemplate.h: inherit privately from noncopyable
526
527         * math_macro.C (Metrics): reindent, use unsigned int as loop var
528         (setArgumentIdx): change test to avoid unsigned warning
529
530         * formula.C (LocalDispatch): use LFUN_MESSAGE
531
532 2001-04-16  Allan Rae  <rae@lyx.org>
533
534         * formula.C (Latex, getLabelList, LocalDispatch): 
535         * math_parser.C (mathed_parse): 
536         * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
537         an unrecognised preprocessor directive.  So ensure they're wrapped.
538
539 2001-04-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
540
541         * formula.C (draw): adjust for cursor_visible
542         (ToggleInsetCursor): adjust for cursor_visible and constify asc
543         and desc
544         (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
545         (HideInsetCursor): adjust for cursor_visible
546         (LocalDispatch): constify default_label and res
547
548 2001-03-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
549
550         * math_rowst.C: add missing #include <config.h>.
551
552 2001-03-16  André Pönitz  <poenitz@gmx.net>
553
554         * math_matrixinset.h:
555         * math_parinset.[Ch]:
556         * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
557       
558 2001-03-13  John Levon  <moz@compsoc.man.ac.uk>
559
560         * Makefile.am:
561         * formula.C:
562         * math_forms.h:
563         * math_forms.C:
564         * math_panel.h:
565         * math_panel.C:
566         * math_symbols.C: maths panel moved to GUII
567
568 2001-03-16  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
569
570         * math_cursor.C: use lyxerr instead of cerr.
571
572 2001-03-15  André Pönitz  <poenitz@gmx.net>
573
574         * math_cursor.C: fix bug (cursor was leaving two insets at a time
575            instead of one)
576
577 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
578
579         * math_macrotable.h: noncopyable is in namespace boost
580         * math_macrotemplate.h: ditto
581
582         * math_rowst.h: make MathedRowContainer::iterator public.
583
584 2001-03-15  André Pönitz  <poenitz@gmx.net>
585
586         * math_parser.C: read '\nonumber' again (was broken)
587
588         * math_rowst.C: new file
589
590 2001-03-15  Angus Leeming  <a.leeming@ic.ac.uk>
591
592         * math_cursor.C: added using directive.
593
594 2001-03-15  André Pönitz  <poenitz@gmx.net>
595
596         * math_rowst.h: Finally remove MathedRowSt
597
598         * math_parser.C:
599           math_xiter.C: changed accordingly
600
601 2001-03-12  André Pönitz  <poenitz@gmx.net>
602
603         *       math_rowst.h: replace MathedRowSt with MathedRowStruct,
604             more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
605
606 2001-03-10  André Pönitz  <poenitz@gmx.net>
607
608         * math_xiter.[Ch]:
609           math_matrixinset.C: move adjustVerticalSt to the only place where
610       it is used. Fix a small bug where the cached row structure and the
611             actual data get out of sync after the deletion of whole rows
612
613 2001-03-09  André Pönitz  <poenitz@gmx.net>
614
615         * math_cursor.C: use std::vector<> in MathStackXIter
616                 change selstk from a pointer to the "real thing"
617
618         * math_rowst.h: new MathedRowContainer::erase method
619
620         * math_xiter.C: use MathedRowContainer::erase
621
622         * math_parser.C: use MathedRowContainer::insert_after
623
624 2001-03-08  André Pönitz  <poenitz@gmx.net>
625
626         * math_rowst.h: give MathedRowContainer an 'insert' method. 
627
628         * math_xiter.C: new 'container()' method to encapsulated access to
629           the MathParInset's MathedRowContainer
630
631         * math_rowst.h: proper copy constructor and destructor for
632           MathedRowContainer
633
634         * math_matrixinset.[hC]: remove copy constructr and destructor. Those
635           automatically created by the compiler are ok now.
636         
637 2001-03-06  André Pönitz  <poenitz@gmx.net>
638
639         * array.[Ch]: factor out deep_copy,
640           remove third argument from raw_pointer_insert 
641
642         * math_iter.[Ch]: remove unused function Clear()        
643
644         * math_cursor.C: change signature of MathStackXIter:push()
645           whitespace changes
646
647         * math_rowst.h: introduction of MathRowContainer
648           several files: corresponding changes
649
650 2001-03-04  André Pönitz  <poenitz@gmx.net>
651
652   * math_macrotemplate.[Ch]:
653     math_macro.C: move update() functionality to the macro
654
655         * math_rowst.h: split MathedRowSt into "data" and "list"
656
657 2001-03-01  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
658
659         * math_macrotemplate.C (update): use MathMacro::getArg, and
660         receive a const reference.
661         (getMacroPar): add an Assert
662
663         * math_macrotemplate.h: make MathMacro a friend, make update take
664         a const reference.
665
666         * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
667         and store a MathMacroArgument in the vector
668         * math_macro.C: changes because of the above.
669         (getArg): new method
670
671         * math_parser.C (mathed_parse): plug potential leak
672
673         * math_iter.h: add comment on virtual destructor
674
675         * math_iter.C (Delete): make c const
676
677         * math_parinset.C (Metrics): cleanup indent. make one string const.
678
679         * math_inset.C (size): move out of line
680         (incSize): ditto
681
682         * math_macroarg.h: remove default constructor
683
684         * math_macroarg.C: include Lsstream.h instead of debug.h
685         (MathMacroArgument): remove default constructor
686         (Write): add std:: on ostream arg
687
688 2001-02-23  John Levon  <moz@compsoc.man.ac.uk>
689
690         * math_parser.C:
691         * formula.C: make DEBUG into lyxerr
692
693 2001-03-01  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
694
695         * math_macrotemplate.h: make noncopyable, remove last arg to
696         constructor, remove flags_ add edit_
697         (flags): remove method
698
699         * math_macrotemplate.C (setArgument): delete method
700         (update): make idx const
701         (Metrics): use edit_, remove flags_
702         (draw): use edit_, remove flags_
703         (setEditMode): set edit_, remove flags_
704         (MathMacroTemplate): initialize edit_, remove flags_
705
706         * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
707         shared_ptr, let constructor take a shared_ptr
708
709         * math_macro.C (MathMacro): take shared_ptr as arg, remove double
710         initialization. 
711         (draw): remove unneded update, remove removed update of x,y
712         (GetXY): call tmplates GetMacroXY directly
713         (SetFocus): call Metrics() instead of update()
714         (Write): remove support for math macro environments, simplifications.
715
716         * math_macrotable.h: make class noncopyable, change getMacro to
717         createMacro, change vector to map store a
718         shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
719
720         * math_macrotable.C: add pragma
721         (createMacro): change name from getMacro, use shared_ptr
722         (getTemplate): Use map lookup to get macro, return shared_ptr
723         (addTemplate): assert that m containse a valid pointer, use map[]
724         insert.
725         (builtinMacros): by using shared_ptr fix the mem leak, remove
726         commented out unsupported macros
727
728         * math_cursor.C: changes because of the above
729         * math_parser.C: changes because of the abobe
730         
731         * formulamacro.h: change tmacro_ to be a shared_ptr, remove
732         default arg on constructor.
733         * formulamacro.C: changes because of the above
734
735         * math_parinset.h: add pragma
736         (SetAlign): move inline out of class def
737         (GetColumns): ditto
738         (GetRows): ditto
739         (isMatrix): ditto
740         (setArgumentIdx): ditto
741         (setNextArgIdx): ditto
742         (getArgumentIdx): ditto
743         (getMaxArgumentIdx): ditto
744         (setRowSt): ditto
745         (xo): ditto
746         (yo): ditto
747
748         * math_parinset.C: add pragma
749         (Write): change the else clause, lessen depth
750
751         * math_macroarg.h: small whitespace change
752
753         * array.C: include support/LOstream.h add using ostream and endl
754
755         * array.h (dump): add std:: on ostream
756
757 2001-02-28  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
758
759         * math_macrotemplate.h: remove default arg on update
760
761         * math_macrotemplate.C (update): add assert and remove noop case.
762
763         * formulamacro.C (Read): add comment.
764         (ascent): remove noop call to MathMacroTemplate
765         (descent): ditto
766         (width): ditto
767         (draw): ditto
768
769         * math_parser.C (mathed_parse): fix another potential problem by
770         passing a freestanding mathedarray.
771
772         * math_root.C (GetData): add const version
773
774         * math_parinset.C (~MathParInset): delete
775         (GetData): add const version
776
777         * math_matrixinset.C (MathMatrixInset): delete pointer version,
778         make it a proper copy constructor instead
779         (Clone): change acc.
780         (MathMatrixInset): remvoe default val for m and n
781
782         * math_macro.C (GetData): add const version
783
784         * math_fracinset.C (GetData): add const version
785
786         * math_cursor.C (SelCopy): make p1 and p2 const
787         (SelCut): make p1 and p2 const
788
789         * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
790         (LyxCode): move inline out of class
791         (ConvertFont): ditto
792         (display): ditto
793
794         * array.[Ch] (dump): method added for debugging purposes
795
796         * math_parser.C (mathed_parse): pass a freestanding mathedarray to
797         mathed_parse when reading a matrix.
798
799         * math_spaceinset.[Ch]: add pragma, make variables private add
800         '_', change order of method definitions.
801
802         * math_root.h (~MathRootInset): delete
803         Change uroot_ to be a real object instead of a pointer
804         * math_root.C: changes because of the above
805
806         * math_macro.C (MathMacro(MathMacro*)): delete constructor
807         (MathMacro(MathMacro const &)): new copy constructor
808
809         * math_inset.h: delete constructor taking a pointer to MathedInset
810         (size, incSize): move inline method
811
812         * math_funcinset.h: add pragma, remove class vars ln and fname,
813         change protected to private, add '_' to priv vars.
814         (~MathFuncInset): remove
815
816         * math_fracinset.h: make MathParInset den_ a real object and not a
817         pointer. 
818
819         * math_fracinset.C (MathFracInset): clean up, move initalization
820         to initialization list
821         (~MathFracInset): remove
822         (Clone): remove leak
823
824         * math_draw.C: delete file
825         
826         * math_dotsinset.[Ch]: add pragma
827
828         * math_bigopinset.h: make protected variables private add '_' to vars.
829
830         * math_bigopinset.C: move methods to follow class definition order
831
832         * math_accentinset.h (getAccentCode): move inline here
833
834         * math_accentinset.C (MathAccentInset): cleanup
835         (draw): constify dw
836
837 2001-02-27  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
838
839         * math_inset.[Ch] (MathedInset): remove method
840
841         * Makefile.am (libmathed_la_SOURCES): correct typo
842
843         * math_parinset.C (draw): move MathedXiter data(this) up. and
844         remove it two other places.
845
846         * math_macro.C (MathMacro): use array directly, don't use
847         setArgumentIdx and GetData
848
849 2001-02-26  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
850
851         * math_macroarg.C (MathMacroArgument): delete
852         * math_macro.C (~MathMacro): delete
853         * math_macrotemplate.C (~MathMacroTemplate): delete
854         
855         * math_decorationinset.[Ch]: add pragma
856         * math_deliminset.[Ch]: likewise
857         * math_fracinset.[Ch]: likewise
858         * math_macroarg.[Ch]: likewise
859         * math_macrotemplate.[Ch]: likewise
860         * math_matrixinset.[Ch]: likewise
861         
862         * formulamacro.C (Read): set contents of tmacro_ to ar.
863
864         * formulamacro.h: add '_' to private variables.
865         * formalamacro.C: changes because of this.
866
867 2001-02-23  Juergen Vigna  <jug@sad.it>
868
869         * formula.C (LocalDispatch):  changed action to be a kb_action (as it
870         should be) and not an int.
871
872         * formulamacro.C (LocalDispatch): ditto.
873
874 2001-02-14  André Pönitz  <poenitz@gmx.net>
875
876         * math_parinset.[Ch]: make array a real MathArray, not just a
877           pointer to one.
878
879         * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
880
881         * several files: subsequent changes
882         
883         * math_cursor.C: make selarray a proper MathArray
884
885         * several files: Change "MathedArray *" to "MathedArray &"
886
887
888 2001-02-19  Dekel Tsur  <dekelts@tau.ac.il>
889
890         * array.C (MathedArray): Fix compilation problem.
891
892 2001-02-14  André Pönitz  <poenitz@gmx.net>
893
894         * array.[Ch]: "deep" copy constructor and assignment operator for
895         MathArray 
896
897         * math_iter.[Ch]: seperate Copy() from Copy(int, int)
898
899         * math_iter.[Ch]: remove SetData
900           several files: subsequent changes
901
902 2001-02-14  André Pönitz  <poenitz@gmx.net>
903
904         * array.[Ch]: remove constructor and  enums ARRAY_MIN_SIZE and
905         ARRAY_STEP 
906
907         * math_iter.C: default-construct and resize array
908
909 2001-02-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
910
911         * math_xiter.h: move ipush and ipop to public, add _ on private
912         variables, move protected var to private, remove friend.
913
914         * math_cursor.C (insertInset): rename method from Insert also
915         remove default arg val. Call the public methods of xiter instead
916         of private variables.
917
918         * changes to several files because of the above.
919         
920 2001-02-14  André Pönitz  <poenitz@gmx.net>
921
922         * math_iter.[Ch]: hide fcode_
923         * math_xiter.C:
924         * math_parinset.C: subsequent changes
925
926
927 2001-02-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
928
929         * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
930         math_utils.h
931
932         * math_write.C: delete file
933         * math_delim.C: delete file
934         * marh_sqrtinset.h: delete file
935
936         * move funcs to more localized files, more general cleanup.
937         Constify several local vars. Doxygen changes. Formatting.
938         
939 2001-02-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
940
941         * support.C: add some consts
942
943         * matriz.C: clean up a bit.
944         (matmat): remove the for loop.
945
946         * several files: changes so that several friends can be removed
947
948 2001-02-14  André Pönitz  <poenitz@gmx.net>
949
950         * formula.C: reformatting 
951
952         * math_cursor.[Ch]:
953           math_iter.[Ch]:
954           math_xiter.[Ch]: remove unneeded members
955
956 2001-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
957
958         * math_parser.C: 
959         * math_panel.C: 
960         * formula.C: remove cruft
961
962         * array.C (begin): new method
963         (end): ditto
964
965 2001-02-14  André Pönitz  <poenitz@gmx.net>
966         
967         * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
968
969         * math_cursor.C: reformatting 
970
971 2001-02-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
972
973         * math_spaceinset.C: 
974         * math_root.C: 
975         * math_matrixinset.C: 
976         * math_macrotemplate.C: 
977         * math_funcinset.C: 
978         * math_fracinset.C: 
979         * math_dotsinset.C: 
980         * math_deliminset.C: 
981         * math_decorationinset.C: 
982         * math_bigopinset.C: 
983         * math_accentinset.C: 
984         * math_sqrtinset.C: include LOstream.h and add using directive.
985
986 2001-02-14  André Pönitz  <poenitz@gmx.net>
987
988         * math_iter.C: reformatting 
989
990 2001-02-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
991
992         * math_spaceinset.C (GetSpace): move here
993
994         * math_parinset.C: add debug.h, move several prev. inlined methods
995         here. 
996
997         * math_macrotable.C math_xiter.C support.C: add debug.h
998
999         * math_macro.h: remove debug.h, remove typedefs
1000
1001         * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
1002         extern decls.
1003
1004         * math_hash.C: change some defines to int const. change use of
1005         LM_TC_NORMAL to LM_TC_VAR
1006
1007         * math_draw.C: delete file
1008
1009         * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
1010         forward decls. remove LM_TC_NORMAL, move inline methods to
1011         support.C (and support.h)
1012
1013         * math_cursor.C: move several previous inlined methods here
1014
1015         * math_bigopinset.h math_dotsinset.h math_funcinset.h
1016         math_parinset.h math_spaceinset.h: add math_defs.h
1017
1018         * math_accentinset.h: add support.h and math_defs.h
1019
1020         * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
1021
1022         * formula.h: remove unused func decl: OpenMathInset
1023
1024         * formula.C math_inset.h: get rid of math_defs.h
1025
1026         * array.h: switch to support.h instead of math_defs.h
1027
1028         * array.C: remove one include
1029
1030         * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
1031
1032         * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
1033
1034         * math_parser.C: include macrotable and macrotemplate
1035
1036         * math_macrotemplate.[Ch]: new files
1037
1038         * math_macrotable.[Ch]: new files
1039
1040         * math_macroarg.[Ch]: new files
1041
1042         * math_macro.C: move stuff to the new files.
1043
1044         * math_cursor.C: include math_macrotable.h
1045
1046         * macro_support.[Ch]: new files
1047
1048         * formulamacro.C: add more includes
1049
1050         * Makefile.am (libmathed_la_SOURCES): add new files.
1051
1052 2001-02-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1053
1054         * Makefile.am (libmathed_la_SOURCES): remove duplicate
1055         math_sqrtinset. 
1056
1057         * support.C: 
1058         * math_xiter.C: 
1059         * math_parinset.C: add a bunch of "using" directives.
1060
1061         * math_funcinset.h: 
1062         * math_decorationinset.h: 
1063         * math_bigopinset.h: 
1064         * math_spaceinset.h: remove more couples of inline.
1065
1066 2001-02-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
1067
1068         * math_xiter.h: remove a couple of "inline"
1069
1070         * array.C (strange_copy): fix bug (hopefully) 
1071         * many files: add a lot of new files and move methods to the class
1072         files they belong to. Only first attempt at cleanup more will
1073         follow.
1074         
1075 2001-02-12  André Pönitz  <poenitz@gmx.net>
1076         
1077         * math_macro.[hC]: replace MathMacroArgument[] with
1078           std::vector<MathMacroArgument>
1079         * math_defs.h:
1080           math_inset.C: replace int[] with std::vector<int>
1081         * math_panel.h:
1082         * math_symbols.C: replace FL_OBJECTP[] with
1083         std::vector<FL_OBJECT*>
1084         
1085 2001-02-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
1086
1087         * math_defs.h (struct MathedRowSt): make all private variables end
1088         with '_', initialize in initializer list instead of in function
1089         body.
1090
1091 2001-02-12  Dekel Tsur  <dekelts@tau.ac.il>
1092
1093         * formula.C (LocalDispatch): Change the default action of
1094         break-line to create an align* environment instead of eqnarray*.
1095
1096         * math_inset.C (Metrics): Correct drawing of the multline
1097         environment.
1098
1099 2001-02-12  André Pönitz  <poenitz@gmx.net>
1100         
1101         * array.[hC]: replace private variable maxsize_ with call to
1102         bf_.size()
1103         * math_defs.h: replace int[] by std::vector<int> for
1104         MathedRowSt::widths
1105
1106 2001-02-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
1107
1108         * array.h: made all variables private, removed friend, added new
1109         methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
1110         non const operator[] added setter for last and getter for maxsize.
1111         changed name from LyxArrayBase to MathedArray.
1112         changed name of some methods to start with lowerchar.
1113         moved inline methods to array.C
1114         
1115         * math_iter.C + several file: changes because of the above.
1116
1117         * array.C: new file with the prev inline methods.
1118         
1119 2001-02-10  Dekel Tsur  <dekelts@tau.ac.il>
1120
1121         * Many files: add support for the align environment from amsmath.
1122
1123 2001-02-09  André Pönitz  <poenitz@gmx.net>
1124
1125         * array.h: replace array buffer  'byte bf[]'  by 'std::vector<byte> bf'
1126         * several files: subsequent changes         
1127         * math_iter.h: remove unused prototype
1128         * array.h: ditto.
1129
1130 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
1131
1132         * math_macro.C (draw): add .c_str() to .str() (useful when
1133         compiling with lyxstring, but STL sstream).
1134         (Metrics): ditto.
1135
1136 2001-02-08  André Pönitz  <poenitz@gmx.net>
1137
1138         * several files: get rid of reinterpret_cast.
1139
1140 2001-02-04  Allan Rae  <rae@lyx.org>
1141
1142         * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
1143         just casting the variable.
1144
1145 2001-02-02  Dekel Tsur  <dekelts@tau.ac.il>
1146
1147         * Many files: Add support for multline and alignat environments from 
1148         amsmath.
1149
1150 2001-02-02  Dekel Tsur  <dekelts@tau.ac.il>
1151
1152         * math_symbols.C (math_insert_greek): Move cursor right when
1153         unlocking the math inset.
1154
1155 2001-01-26  Dekel Tsur  <dekelts@tau.ac.il>
1156
1157         * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
1158
1159         * formula.C (LocalDispatch): Before inserting a label in an
1160         eqnarray, move the cursor to the top level.
1161
1162         * math_iter.C (getLabel): Test if crow == 0.
1163
1164 2001-01-15  Dekel Tsur  <dekelts@tau.ac.il>
1165
1166         * math_draw.C (Metrics): Use the correct GetString.
1167