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