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