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