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