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