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