]> git.lyx.org Git - lyx.git/blob - src/mathed/ChangeLog
5989fef9c3a307e709761286e13497a06e032cf1
[lyx.git] / src / mathed / ChangeLog
1
2 2001-04-27 André Pönitz  <poenitz@htwm.de>
3
4         * math_parser.C: fix \frac handling bug introduced on 04-24
5         * math_xiter.C: hotfix for merging "shared" insets
6
7 2001-04-25 André Pönitz  <poenitz@htwm.de>
8
9         * math_*.[Ch]: WriteNormal
10         * formula.C: Support for new "math extern" command
11
12 2001-04-25  Lars Gullik Bjønnes  <larsbj@birdstep.com>
13
14         * math_macrotable.C: include <iostream>
15
16 2001-04-24 André Pönitz  <poenitz@htwm.de>
17
18         * math_macro.[Ch]:
19         * math_macrotable.[Ch]:
20         * math_macroarg.[Ch]: restructuring of macro handling
21         * several files: 
22
23 2001-04-25  Angus Leeming  <a.leeming@ic.ac.uk>
24
25         * array.h (operator<<):
26         * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
27
28         * math_macrotable.C: added using std::make_pair directive.
29         (dump): added using std::cerr directive here as I guess that this is
30         temporary.
31
32 2001-04-20  Allan Rae  <rae@lyx.org>
33
34         * formula.C (LocalDispatch): fixed another #warning.  Guess who.
35
36 2001-04-17  Lars Gullik Bjønnes  <larsbj@birdstep.com>
37
38         * math_macrotemplate.h: inherit privately from noncopyable
39
40         * math_macro.C (Metrics): reindent, use unsigned int as loop var
41         (setArgumentIdx): change test to avoid unsigned warning
42
43         * formula.C (LocalDispatch): use LFUN_MESSAGE
44
45 2001-04-16  Allan Rae  <rae@lyx.org>
46
47         * formula.C (Latex, getLabelList, LocalDispatch): 
48         * math_parser.C (mathed_parse): 
49         * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
50         an unrecognised preprocessor directive.  So ensure they're wrapped.
51
52 2001-04-04  Lars Gullik Bjønnes  <larsbj@birdstep.com>
53
54         * formula.C (draw): adjust for cursor_visible
55         (ToggleInsetCursor): adjust for cursor_visible and constify asc
56         and desc
57         (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
58         (HideInsetCursor): adjust for cursor_visible
59         (LocalDispatch): constify default_label and res
60
61 2001-03-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
62
63         * math_rowst.C: add missing #include <config.h>.
64
65 2001-03-16  André Pönitz  <poenitz@htwm.de>
66
67         * math_matrixinset.h:
68         * math_parinset.[Ch]:
69         * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
70       
71 2001-03-13  John Levon  <moz@compsoc.man.ac.uk>
72
73         * Makefile.am:
74         * formula.C:
75         * math_forms.h:
76         * math_forms.C:
77         * math_panel.h:
78         * math_panel.C:
79         * math_symbols.C: maths panel moved to GUII
80
81 2001-03-16  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
82
83         * math_cursor.C: use lyxerr instead of cerr.
84
85 2001-03-15  André Pönitz  <poenitz@htwm.de>
86
87         * math_cursor.C: fix bug (cursor was leaving two insets at a time
88            instead of one)
89
90 2001-03-15  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
91
92         * math_macrotable.h: noncopyable is in namespace boost
93         * math_macrotemplate.h: ditto
94
95         * math_rowst.h: make MathedRowContainer::iterator public.
96
97 2001-03-15  André Pönitz  <poenitz@htwm.de>
98
99         * math_parser.C: read '\nonumber' again (was broken)
100
101         * math_rowst.C: new file
102
103 2001-03-15  Angus Leeming  <a.leeming@ic.ac.uk>
104
105         * math_cursor.C: added using directive.
106
107 2001-03-15  André Pönitz  <poenitz@htwm.de>
108
109         * math_rowst.h: Finally remove MathedRowSt
110
111         * math_parser.C:
112           math_xiter.C: changed accordingly
113
114 2001-03-12  André Pönitz  <poenitz@htwm.de>
115
116         *       math_rowst.h: replace MathedRowSt with MathedRowStruct,
117             more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
118
119 2001-03-10  André Pönitz  <poenitz@htwm.de>
120
121         * math_xiter.[Ch]:
122           math_matrixinset.C: move adjustVerticalSt to the only place where
123       it is used. Fix a small bug where the cached row structure and the
124             actual data get out of sync after the deletion of whole rows
125
126 2001-03-09  André Pönitz  <poenitz@htwm.de>
127
128         * math_cursor.C: use std::vector<> in MathStackXIter
129                 change selstk from a pointer to the "real thing"
130
131         * math_rowst.h: new MathedRowContainer::erase method
132
133         * math_xiter.C: use MathedRowContainer::erase
134
135         * math_parser.C: use MathedRowContainer::insert_after
136
137 2001-03-08  André Pönitz  <poenitz@htwm.de>
138
139         * math_rowst.h: give MathedRowContainer an 'insert' method. 
140
141         * math_xiter.C: new 'container()' method to encapsulated access to
142           the MathParInset's MathedRowContainer
143
144         * math_rowst.h: proper copy constructor and destructor for
145           MathedRowContainer
146
147         * math_matrixinset.[hC]: remove copy constructr and destructor. Those
148           automatically created by the compiler are ok now.
149         
150 2001-03-06  André Pönitz  <poenitz@htwm.de>
151
152         * array.[Ch]: factor out deep_copy,
153           remove third argument from raw_pointer_insert 
154
155         * math_iter.[Ch]: remove unused function Clear()        
156
157         * math_cursor.C: change signature of MathStackXIter:push()
158           whitespace changes
159
160         * math_rowst.h: introduction of MathRowContainer
161           several files: corresponding changes
162
163 2001-03-04  André Pönitz  <poenitz@htwm.de>
164
165   * math_macrotemplate.[Ch]:
166     math_macro.C: move update() functionality to the macro
167
168         * math_rowst.h: split MathedRowSt into "data" and "list"
169
170 2001-03-01  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
171
172         * math_macrotemplate.C (update): use MathMacro::getArg, and
173         receive a const reference.
174         (getMacroPar): add an Assert
175
176         * math_macrotemplate.h: make MathMacro a friend, make update take
177         a const reference.
178
179         * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
180         and store a MathMacroArgument in the vector
181         * math_macro.C: changes because of the above.
182         (getArg): new method
183
184         * math_parser.C (mathed_parse): plug potential leak
185
186         * math_iter.h: add comment on virtual destructor
187
188         * math_iter.C (Delete): make c const
189
190         * math_parinset.C (Metrics): cleanup indent. make one string const.
191
192         * math_inset.C (size): move out of line
193         (incSize): ditto
194
195         * math_macroarg.h: remove default constructor
196
197         * math_macroarg.C: include Lsstream.h instead of debug.h
198         (MathMacroArgument): remove default constructor
199         (Write): add std:: on ostream arg
200
201 2001-02-23  John Levon  <moz@compsoc.man.ac.uk>
202
203         * math_parser.C:
204         * formula.C: make DEBUG into lyxerr
205
206 2001-03-01  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
207
208         * math_macrotemplate.h: make noncopyable, remove last arg to
209         constructor, remove flags_ add edit_
210         (flags): remove method
211
212         * math_macrotemplate.C (setArgument): delete method
213         (update): make idx const
214         (Metrics): use edit_, remove flags_
215         (draw): use edit_, remove flags_
216         (setEditMode): set edit_, remove flags_
217         (MathMacroTemplate): initialize edit_, remove flags_
218
219         * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
220         shared_ptr, let constructor take a shared_ptr
221
222         * math_macro.C (MathMacro): take shared_ptr as arg, remove double
223         initialization. 
224         (draw): remove unneded update, remove removed update of x,y
225         (GetXY): call tmplates GetMacroXY directly
226         (SetFocus): call Metrics() instead of update()
227         (Write): remove support for math macro environments, simplifications.
228
229         * math_macrotable.h: make class noncopyable, change getMacro to
230         createMacro, change vector to map store a
231         shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
232
233         * math_macrotable.C: add pragma
234         (createMacro): change name from getMacro, use shared_ptr
235         (getTemplate): Use map lookup to get macro, return shared_ptr
236         (addTemplate): assert that m containse a valid pointer, use map[]
237         insert.
238         (builtinMacros): by using shared_ptr fix the mem leak, remove
239         commented out unsupported macros
240
241         * math_cursor.C: changes because of the above
242         * math_parser.C: changes because of the abobe
243         
244         * formulamacro.h: change tmacro_ to be a shared_ptr, remove
245         default arg on constructor.
246         * formulamacro.C: changes because of the above
247
248         * math_parinset.h: add pragma
249         (SetAlign): move inline out of class def
250         (GetColumns): ditto
251         (GetRows): ditto
252         (isMatrix): ditto
253         (setArgumentIdx): ditto
254         (setNextArgIdx): ditto
255         (getArgumentIdx): ditto
256         (getMaxArgumentIdx): ditto
257         (setRowSt): ditto
258         (xo): ditto
259         (yo): ditto
260
261         * math_parinset.C: add pragma
262         (Write): change the else clause, lessen depth
263
264         * math_macroarg.h: small whitespace change
265
266         * array.C: include support/LOstream.h add using ostream and endl
267
268         * array.h (dump): add std:: on ostream
269
270 2001-02-28  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
271
272         * math_macrotemplate.h: remove default arg on update
273
274         * math_macrotemplate.C (update): add assert and remove noop case.
275
276         * formulamacro.C (Read): add comment.
277         (ascent): remove noop call to MathMacroTemplate
278         (descent): ditto
279         (width): ditto
280         (draw): ditto
281
282         * math_parser.C (mathed_parse): fix another potential problem by
283         passing a freestanding mathedarray.
284
285         * math_root.C (GetData): add const version
286
287         * math_parinset.C (~MathParInset): delete
288         (GetData): add const version
289
290         * math_matrixinset.C (MathMatrixInset): delete pointer version,
291         make it a proper copy constructor instead
292         (Clone): change acc.
293         (MathMatrixInset): remvoe default val for m and n
294
295         * math_macro.C (GetData): add const version
296
297         * math_fracinset.C (GetData): add const version
298
299         * math_cursor.C (SelCopy): make p1 and p2 const
300         (SelCut): make p1 and p2 const
301
302         * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
303         (LyxCode): move inline out of class
304         (ConvertFont): ditto
305         (display): ditto
306
307         * array.[Ch] (dump): method added for debugging purposes
308
309         * math_parser.C (mathed_parse): pass a freestanding mathedarray to
310         mathed_parse when reading a matrix.
311
312         * math_spaceinset.[Ch]: add pragma, make variables private add
313         '_', change order of method definitions.
314
315         * math_root.h (~MathRootInset): delete
316         Change uroot_ to be a real object instead of a pointer
317         * math_root.C: changes because of the above
318
319         * math_macro.C (MathMacro(MathMacro*)): delete constructor
320         (MathMacro(MathMacro const &)): new copy constructor
321
322         * math_inset.h: delete constructor taking a pointer to MathedInset
323         (size, incSize): move inline method
324
325         * math_funcinset.h: add pragma, remove class vars ln and fname,
326         change protected to private, add '_' to priv vars.
327         (~MathFuncInset): remove
328
329         * math_fracinset.h: make MathParInset den_ a real object and not a
330         pointer. 
331
332         * math_fracinset.C (MathFracInset): clean up, move initalization
333         to initialization list
334         (~MathFracInset): remove
335         (Clone): remove leak
336
337         * math_draw.C: delete file
338         
339         * math_dotsinset.[Ch]: add pragma
340
341         * math_bigopinset.h: make protected variables private add '_' to vars.
342
343         * math_bigopinset.C: move methods to follow class definition order
344
345         * math_accentinset.h (getAccentCode): move inline here
346
347         * math_accentinset.C (MathAccentInset): cleanup
348         (draw): constify dw
349
350 2001-02-27  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
351
352         * math_inset.[Ch] (MathedInset): remove method
353
354         * Makefile.am (libmathed_la_SOURCES): correct typo
355
356         * math_parinset.C (draw): move MathedXiter data(this) up. and
357         remove it two other places.
358
359         * math_macro.C (MathMacro): use array directly, don't use
360         setArgumentIdx and GetData
361
362 2001-02-26  Lars Gullik Bjønnes  <larsbj@trylle.birdstep.com>
363
364         * math_macroarg.C (MathMacroArgument): delete
365         * math_macro.C (~MathMacro): delete
366         * math_macrotemplate.C (~MathMacroTemplate): delete
367         
368         * math_decorationinset.[Ch]: add pragma
369         * math_deliminset.[Ch]: likewise
370         * math_fracinset.[Ch]: likewise
371         * math_macroarg.[Ch]: likewise
372         * math_macrotemplate.[Ch]: likewise
373         * math_matrixinset.[Ch]: likewise
374         
375         * formulamacro.C (Read): set contents of tmacro_ to ar.
376
377         * formulamacro.h: add '_' to private variables.
378         * formalamacro.C: changes because of this.
379
380 2001-02-23  Juergen Vigna  <jug@sad.it>
381
382         * formula.C (LocalDispatch):  changed action to be a kb_action (as it
383         should be) and not an int.
384
385         * formulamacro.C (LocalDispatch): ditto.
386
387 2001-02-14  André Pönitz  <poenitz@htwm.de>
388
389         * math_parinset.[Ch]: make array a real MathArray, not just a
390           pointer to one.
391
392         * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
393
394         * several files: subsequent changes
395         
396         * math_cursor.C: make selarray a proper MathArray
397
398         * several files: Change "MathedArray *" to "MathedArray &"
399
400
401 2001-02-19  Dekel Tsur  <dekelts@tau.ac.il>
402
403         * array.C (MathedArray): Fix compilation problem.
404
405 2001-02-14  André Pönitz  <poenitz@htwm.de>
406
407         * array.[Ch]: "deep" copy constructor and assignment operator for
408         MathArray 
409
410         * math_iter.[Ch]: seperate Copy() from Copy(int, int)
411
412         * math_iter.[Ch]: remove SetData
413           several files: subsequent changes
414
415 2001-02-14  André Pönitz  <poenitz@htwm.de>
416
417         * array.[Ch]: remove constructor and  enums ARRAY_MIN_SIZE and
418         ARRAY_STEP 
419
420         * math_iter.C: default-construct and resize array
421
422 2001-02-17  Lars Gullik Bjønnes  <larsbj@lyx.org>
423
424         * math_xiter.h: move ipush and ipop to public, add _ on private
425         variables, move protected var to private, remove friend.
426
427         * math_cursor.C (insertInset): rename method from Insert also
428         remove default arg val. Call the public methods of xiter instead
429         of private variables.
430
431         * changes to several files because of the above.
432         
433 2001-02-14  André Pönitz  <poenitz@htwm.de>
434
435         * math_iter.[Ch]: hide fcode_
436         * math_xiter.C:
437         * math_parinset.C: subsequent changes
438
439
440 2001-02-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
441
442         * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
443         math_utils.h
444
445         * math_write.C: delete file
446         * math_delim.C: delete file
447         * marh_sqrtinset.h: delete file
448
449         * move funcs to more localized files, more general cleanup.
450         Constify several local vars. Doxygen changes. Formatting.
451         
452 2001-02-15  Lars Gullik Bjønnes  <larsbj@lyx.org>
453
454         * support.C: add some consts
455
456         * matriz.C: clean up a bit.
457         (matmat): remove the for loop.
458
459         * several files: changes so that several friends can be removed
460
461 2001-02-14  André Pönitz  <poenitz@htwm.de>
462
463         * formula.C: reformatting 
464
465         * math_cursor.[Ch]:
466           math_iter.[Ch]:
467           math_xiter.[Ch]: remove unneeded members
468
469 2001-02-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
470
471         * math_parser.C: 
472         * math_panel.C: 
473         * formula.C: remove cruft
474
475         * array.C (begin): new method
476         (end): ditto
477
478 2001-02-14  André Pönitz  <poenitz@htwm.de>
479         
480         * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
481
482         * math_cursor.C: reformatting 
483
484 2001-02-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
485
486         * math_spaceinset.C: 
487         * math_root.C: 
488         * math_matrixinset.C: 
489         * math_macrotemplate.C: 
490         * math_funcinset.C: 
491         * math_fracinset.C: 
492         * math_dotsinset.C: 
493         * math_deliminset.C: 
494         * math_decorationinset.C: 
495         * math_bigopinset.C: 
496         * math_accentinset.C: 
497         * math_sqrtinset.C: include LOstream.h and add using directive.
498
499 2001-02-14  André Pönitz  <poenitz@htwm.de>
500
501         * math_iter.C: reformatting 
502
503 2001-02-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
504
505         * math_spaceinset.C (GetSpace): move here
506
507         * math_parinset.C: add debug.h, move several prev. inlined methods
508         here. 
509
510         * math_macrotable.C math_xiter.C support.C: add debug.h
511
512         * math_macro.h: remove debug.h, remove typedefs
513
514         * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
515         extern decls.
516
517         * math_hash.C: change some defines to int const. change use of
518         LM_TC_NORMAL to LM_TC_VAR
519
520         * math_draw.C: delete file
521
522         * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
523         forward decls. remove LM_TC_NORMAL, move inline methods to
524         support.C (and support.h)
525
526         * math_cursor.C: move several previous inlined methods here
527
528         * math_bigopinset.h math_dotsinset.h math_funcinset.h
529         math_parinset.h math_spaceinset.h: add math_defs.h
530
531         * math_accentinset.h: add support.h and math_defs.h
532
533         * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
534
535         * formula.h: remove unused func decl: OpenMathInset
536
537         * formula.C math_inset.h: get rid of math_defs.h
538
539         * array.h: switch to support.h instead of math_defs.h
540
541         * array.C: remove one include
542
543         * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
544
545         * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
546
547         * math_parser.C: include macrotable and macrotemplate
548
549         * math_macrotemplate.[Ch]: new files
550
551         * math_macrotable.[Ch]: new files
552
553         * math_macroarg.[Ch]: new files
554
555         * math_macro.C: move stuff to the new files.
556
557         * math_cursor.C: include math_macrotable.h
558
559         * macro_support.[Ch]: new files
560
561         * formulamacro.C: add more includes
562
563         * Makefile.am (libmathed_la_SOURCES): add new files.
564
565 2001-02-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
566
567         * Makefile.am (libmathed_la_SOURCES): remove duplicate
568         math_sqrtinset. 
569
570         * support.C: 
571         * math_xiter.C: 
572         * math_parinset.C: add a bunch of "using" directives.
573
574         * math_funcinset.h: 
575         * math_decorationinset.h: 
576         * math_bigopinset.h: 
577         * math_spaceinset.h: remove more couples of inline.
578
579 2001-02-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
580
581         * math_xiter.h: remove a couple of "inline"
582
583         * array.C (strange_copy): fix bug (hopefully) 
584         * many files: add a lot of new files and move methods to the class
585         files they belong to. Only first attempt at cleanup more will
586         follow.
587         
588 2001-02-12  André Pönitz  <poenitz@htwm.de>
589         
590         * math_macro.[hC]: replace MathMacroArgument[] with
591           std::vector<MathMacroArgument>
592         * math_defs.h:
593           math_inset.C: replace int[] with std::vector<int>
594         * math_panel.h:
595         * math_symbols.C: replace FL_OBJECTP[] with
596         std::vector<FL_OBJECT*>
597         
598 2001-02-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
599
600         * math_defs.h (struct MathedRowSt): make all private variables end
601         with '_', initialize in initializer list instead of in function
602         body.
603
604 2001-02-12  Dekel Tsur  <dekelts@tau.ac.il>
605
606         * formula.C (LocalDispatch): Change the default action of
607         break-line to create an align* environment instead of eqnarray*.
608
609         * math_inset.C (Metrics): Correct drawing of the multline
610         environment.
611
612 2001-02-12  André Pönitz  <poenitz@htwm.de>
613         
614         * array.[hC]: replace private variable maxsize_ with call to
615         bf_.size()
616         * math_defs.h: replace int[] by std::vector<int> for
617         MathedRowSt::widths
618
619 2001-02-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
620
621         * array.h: made all variables private, removed friend, added new
622         methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
623         non const operator[] added setter for last and getter for maxsize.
624         changed name from LyxArrayBase to MathedArray.
625         changed name of some methods to start with lowerchar.
626         moved inline methods to array.C
627         
628         * math_iter.C + several file: changes because of the above.
629
630         * array.C: new file with the prev inline methods.
631         
632 2001-02-10  Dekel Tsur  <dekelts@tau.ac.il>
633
634         * Many files: add support for the align environment from amsmath.
635
636 2001-02-09  André Pönitz  <poenitz@htwm.de>
637
638         * array.h: replace array buffer  'byte bf[]'  by 'std::vector<byte> bf'
639         * several files: subsequent changes         
640         * math_iter.h: remove unused prototype
641         * array.h: ditto.
642
643 2001-02-08  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
644
645         * math_macro.C (draw): add .c_str() to .str() (useful when
646         compiling with lyxstring, but STL sstream).
647         (Metrics): ditto.
648
649 2001-02-08  André Pönitz  <poenitz@htwm.de>
650
651         * several files: get rid of reinterpret_cast.
652
653 2001-02-04  Allan Rae  <rae@lyx.org>
654
655         * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
656         just casting the variable.
657
658 2001-02-02  Dekel Tsur  <dekelts@tau.ac.il>
659
660         * Many files: Add support for multline and alignat environments from 
661         amsmath.
662
663 2001-02-02  Dekel Tsur  <dekelts@tau.ac.il>
664
665         * math_symbols.C (math_insert_greek): Move cursor right when
666         unlocking the math inset.
667
668 2001-01-26  Dekel Tsur  <dekelts@tau.ac.il>
669
670         * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
671
672         * formula.C (LocalDispatch): Before inserting a label in an
673         eqnarray, move the cursor to the top level.
674
675         * math_iter.C (getLabel): Test if crow == 0.
676
677 2001-01-15  Dekel Tsur  <dekelts@tau.ac.il>
678
679         * math_draw.C (Metrics): Use the correct GetString.
680