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