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