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