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