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