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