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