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