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