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