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