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