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