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