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