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