1 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_macrotemplate.h: make noncopyable, remove last arg to
4 constructor, remove flags_ add edit_
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_
14 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
15 shared_ptr, let constructor take a shared_ptr
17 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
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.
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
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[]
33 (builtinMacros): by using shared_ptr fix the mem leak, remove
34 commented out unsupported macros
36 * math_cursor.C: changes because of the above
37 * math_parser.C: changes because of the abobe
39 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
40 default arg on constructor.
41 * formulamacro.C: changes because of the above
43 * math_parinset.h: add pragma
44 (SetAlign): move inline out of class def
48 (setArgumentIdx): ditto
49 (setNextArgIdx): ditto
50 (getArgumentIdx): ditto
51 (getMaxArgumentIdx): ditto
56 * math_parinset.C: add pragma
57 (Write): change the else clause, lessen depth
59 * math_macroarg.h: small whitespace change
61 * array.C: include support/LOstream.h add using ostream and endl
63 * array.h (dump): add std:: on ostream
65 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
67 * math_macrotemplate.h: remove default arg on update
69 * math_macrotemplate.C (update): add assert and remove noop case.
71 * formulamacro.C (Read): add comment.
72 (ascent): remove noop call to MathMacroTemplate
77 * math_parser.C (mathed_parse): fix another potential problem by
78 passing a freestanding mathedarray.
80 * math_root.C (GetData): add const version
82 * math_parinset.C (~MathParInset): delete
83 (GetData): add const version
85 * math_matrixinset.C (MathMatrixInset): delete pointer version,
86 make it a proper copy constructor instead
88 (MathMatrixInset): remvoe default val for m and n
90 * math_macro.C (GetData): add const version
92 * math_fracinset.C (GetData): add const version
94 * math_cursor.C (SelCopy): make p1 and p2 const
95 (SelCut): make p1 and p2 const
97 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
98 (LyxCode): move inline out of class
102 * array.[Ch] (dump): method added for debugging purposes
104 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
105 mathed_parse when reading a matrix.
107 * math_spaceinset.[Ch]: add pragma, make variables private add
108 '_', change order of method definitions.
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
114 * math_macro.C (MathMacro(MathMacro*)): delete constructor
115 (MathMacro(MathMacro const &)): new copy constructor
117 * math_inset.h: delete constructor taking a pointer to MathedInset
118 (size, incSize): move inline method
120 * math_funcinset.h: add pragma, remove class vars ln and fname,
121 change protected to private, add '_' to priv vars.
122 (~MathFuncInset): remove
124 * math_fracinset.h: make MathParInset den_ a real object and not a
127 * math_fracinset.C (MathFracInset): clean up, move initalization
128 to initialization list
129 (~MathFracInset): remove
132 * math_draw.C: delete file
134 * math_dotsinset.[Ch]: add pragma
136 * math_bigopinset.h: make protected variables private add '_' to vars.
138 * math_bigopinset.C: move methods to follow class definition order
140 * math_accentinset.h (getAccentCode): move inline here
142 * math_accentinset.C (MathAccentInset): cleanup
145 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
147 * math_inset.[Ch] (MathedInset): remove method
149 * Makefile.am (libmathed_la_SOURCES): correct typo
151 * math_parinset.C (draw): move MathedXiter data(this) up. and
152 remove it two other places.
154 * math_macro.C (MathMacro): use array directly, don't use
155 setArgumentIdx and GetData
157 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
159 * math_macroarg.C (MathMacroArgument): delete
160 * math_macro.C (~MathMacro): delete
161 * math_macrotemplate.C (~MathMacroTemplate): delete
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
170 * formulamacro.C (Read): set contents of tmacro_ to ar.
172 * formulamacro.h: add '_' to private variables.
173 * formalamacro.C: changes because of this.
175 2001-02-23 Juergen Vigna <jug@sad.it>
177 * formula.C (LocalDispatch): changed action to be a kb_action (as it
178 should be) and not an int.
180 * formulamacro.C (LocalDispatch): ditto.
182 2001-02-14 André Pönitz <poenitz@htwm.de>
184 * math_parinset.[Ch]: make array a real MathArray, not just a
187 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
189 * several files: subsequent changes
191 * math_cursor.C: make selarray a proper MathArray
193 * several files: Change "MathedArray *" to "MathedArray &"
196 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
198 * array.C (MathedArray): Fix compilation problem.
200 2001-02-14 André Pönitz <poenitz@htwm.de>
202 * array.[Ch]: "deep" copy constructor and assignment operator for MathArray
204 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
206 * math_iter.[Ch]: remove SetData
207 several files: subsequent changes
209 2001-02-14 André Pönitz <poenitz@htwm.de>
211 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and ARRAY_STEP
213 * math_iter.C: default-construct and resize array
215 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
217 * math_xiter.h: move ipush and ipop to public, add _ on private
218 variables, move protected var to private, remove friend.
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.
224 * changes to several files because of the above.
226 2001-02-14 André Pönitz <poenitz@htwm.de>
228 * math_iter.[Ch]: hide fcode_
230 * math_parinset.C: subsequent changes
233 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
235 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
238 * math_write.C: delete file
239 * math_delim.C: delete file
240 * marh_sqrtinset.h: delete file
242 * move funcs to more localized files, more general cleanup.
243 Constify several local vars. Doxygen changes. Formatting.
245 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
247 * support.C: add some consts
249 * matriz.C: clean up a bit.
250 (matmat): remove the for loop.
252 * several files: changes so that several friends can be removed
254 2001-02-14 André Pönitz <poenitz@htwm.de>
256 * formula.C: reformatting
260 math_xiter.[Ch]: remove unneeded members
262 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
266 * formula.C: remove cruft
268 * array.C (begin): new method
271 2001-02-14 André Pönitz <poenitz@htwm.de>
273 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
275 * math_cursor.C: reformatting
277 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
281 * math_matrixinset.C:
282 * math_macrotemplate.C:
287 * math_decorationinset.C:
289 * math_accentinset.C:
290 * math_sqrtinset.C: include LOstream.h and add using directive.
292 2001-02-14 André Pönitz <poenitz@htwm.de>
294 * math_iter.C: reformatting
296 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
298 * math_spaceinset.C (GetSpace): move here
300 * math_parinset.C: add debug.h, move several prev. inlined methods
303 * math_macrotable.C math_xiter.C support.C: add debug.h
305 * math_macro.h: remove debug.h, remove typedefs
307 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
310 * math_hash.C: change some defines to int const. change use of
311 LM_TC_NORMAL to LM_TC_VAR
313 * math_draw.C: delete file
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)
319 * math_cursor.C: move several previous inlined methods here
321 * math_bigopinset.h math_dotsinset.h math_funcinset.h
322 math_parinset.h math_spaceinset.h: add math_defs.h
324 * math_accentinset.h: add support.h and math_defs.h
326 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
328 * formula.h: remove unused func decl: OpenMathInset
330 * formula.C math_inset.h: get rid of math_defs.h
332 * array.h: switch to support.h instead of math_defs.h
334 * array.C: remove one include
336 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
338 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
340 * math_parser.C: include macrotable and macrotemplate
342 * math_macrotemplate.[Ch]: new files
344 * math_macrotable.[Ch]: new files
346 * math_macroarg.[Ch]: new files
348 * math_macro.C: move stuff to the new files.
350 * math_cursor.C: include math_macrotable.h
352 * macro_support.[Ch]: new files
354 * formulamacro.C: add more includes
356 * Makefile.am (libmathed_la_SOURCES): add new files.
358 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
360 * Makefile.am (libmathed_la_SOURCES): remove duplicate
365 * math_parinset.C: add a bunch of "using" directives.
368 * math_decorationinset.h:
370 * math_spaceinset.h: remove more couples of inline.
372 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
374 * math_xiter.h: remove a couple of "inline"
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
381 2001-02-12 André Pönitz <poenitz@htwm.de>
383 * math_macro.[hC]: replace MathMacroArgument[] with
384 std::vector<MathMacroArgument>
386 math_inset.C: replace int[] with std::vector<int>
388 * math_symbols.C: replace FL_OBJECTP[] with
389 std::vector<FL_OBJECT*>
391 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
393 * math_defs.h (struct MathedRowSt): make all private variables end
394 with '_', initialize in initializer list instead of in function
397 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
399 * formula.C (LocalDispatch): Change the default action of
400 break-line to create an align* environment instead of eqnarray*.
402 * math_inset.C (Metrics): Correct drawing of the multline
405 2001-02-12 André Pönitz <poenitz@htwm.de>
407 * array.[hC]: replace private variable maxsize_ with call to
409 * math_defs.h: replace int[] by std::vector<int> for
412 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
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
421 * math_iter.C + several file: changes because of the above.
423 * array.C: new file with the prev inline methods.
425 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
427 * Many files: add support for the align environment from amsmath.
429 2001-02-09 André Pönitz <poenitz@htwm.de>
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
436 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
438 * math_macro.C (draw): add .c_str() to .str() (useful when
439 compiling with lyxstring, but STL sstream).
442 2001-02-08 André Pönitz <poenitz@htwm.de>
444 * several files: get rid of reinterpret_cast.
446 2001-02-04 Allan Rae <rae@lyx.org>
448 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
449 just casting the variable.
451 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
453 * Many files: Add support for multline and alignat environments from
456 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
458 * math_symbols.C (math_insert_greek): Move cursor right when
459 unlocking the math inset.
461 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
463 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
465 * formula.C (LocalDispatch): Before inserting a label in an
466 eqnarray, move the cursor to the top level.
468 * math_iter.C (getLabel): Test if crow == 0.
470 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
472 * math_draw.C (Metrics): Use the correct GetString.