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