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