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