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