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