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