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