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