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