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