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