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