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