1 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_iter.h: add comment on virtual destructor
5 * math_iter.C (Delete): make c const
7 * math_parinset.C (Metrics): cleanup indent. make one string const.
9 * math_inset.C (size): move out of line
12 * math_macroarg.h: remove default constructor
14 * math_macroarg.C: include Lsstream.h instead of debug.h
15 (MathMacroArgument): remove default constructor
16 (Write): add std:: on ostream arg
18 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
21 * formula.C: make DEBUG into lyxerr
23 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
25 * math_macrotemplate.h: make noncopyable, remove last arg to
26 constructor, remove flags_ add edit_
27 (flags): remove method
29 * math_macrotemplate.C (setArgument): delete method
30 (update): make idx const
31 (Metrics): use edit_, remove flags_
32 (draw): use edit_, remove flags_
33 (setEditMode): set edit_, remove flags_
34 (MathMacroTemplate): initialize edit_, remove flags_
36 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
37 shared_ptr, let constructor take a shared_ptr
39 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
41 (draw): remove unneded update, remove removed update of x,y
42 (GetXY): call tmplates GetMacroXY directly
43 (SetFocus): call Metrics() instead of update()
44 (Write): remove support for math macro environments, simplifications.
46 * math_macrotable.h: make class noncopyable, change getMacro to
47 createMacro, change vector to map store a
48 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
50 * math_macrotable.C: add pragma
51 (createMacro): change name from getMacro, use shared_ptr
52 (getTemplate): Use map lookup to get macro, return shared_ptr
53 (addTemplate): assert that m containse a valid pointer, use map[]
55 (builtinMacros): by using shared_ptr fix the mem leak, remove
56 commented out unsupported macros
58 * math_cursor.C: changes because of the above
59 * math_parser.C: changes because of the abobe
61 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
62 default arg on constructor.
63 * formulamacro.C: changes because of the above
65 * math_parinset.h: add pragma
66 (SetAlign): move inline out of class def
70 (setArgumentIdx): ditto
71 (setNextArgIdx): ditto
72 (getArgumentIdx): ditto
73 (getMaxArgumentIdx): ditto
78 * math_parinset.C: add pragma
79 (Write): change the else clause, lessen depth
81 * math_macroarg.h: small whitespace change
83 * array.C: include support/LOstream.h add using ostream and endl
85 * array.h (dump): add std:: on ostream
87 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
89 * math_macrotemplate.h: remove default arg on update
91 * math_macrotemplate.C (update): add assert and remove noop case.
93 * formulamacro.C (Read): add comment.
94 (ascent): remove noop call to MathMacroTemplate
99 * math_parser.C (mathed_parse): fix another potential problem by
100 passing a freestanding mathedarray.
102 * math_root.C (GetData): add const version
104 * math_parinset.C (~MathParInset): delete
105 (GetData): add const version
107 * math_matrixinset.C (MathMatrixInset): delete pointer version,
108 make it a proper copy constructor instead
110 (MathMatrixInset): remvoe default val for m and n
112 * math_macro.C (GetData): add const version
114 * math_fracinset.C (GetData): add const version
116 * math_cursor.C (SelCopy): make p1 and p2 const
117 (SelCut): make p1 and p2 const
119 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
120 (LyxCode): move inline out of class
124 * array.[Ch] (dump): method added for debugging purposes
126 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
127 mathed_parse when reading a matrix.
129 * math_spaceinset.[Ch]: add pragma, make variables private add
130 '_', change order of method definitions.
132 * math_root.h (~MathRootInset): delete
133 Change uroot_ to be a real object instead of a pointer
134 * math_root.C: changes because of the above
136 * math_macro.C (MathMacro(MathMacro*)): delete constructor
137 (MathMacro(MathMacro const &)): new copy constructor
139 * math_inset.h: delete constructor taking a pointer to MathedInset
140 (size, incSize): move inline method
142 * math_funcinset.h: add pragma, remove class vars ln and fname,
143 change protected to private, add '_' to priv vars.
144 (~MathFuncInset): remove
146 * math_fracinset.h: make MathParInset den_ a real object and not a
149 * math_fracinset.C (MathFracInset): clean up, move initalization
150 to initialization list
151 (~MathFracInset): remove
154 * math_draw.C: delete file
156 * math_dotsinset.[Ch]: add pragma
158 * math_bigopinset.h: make protected variables private add '_' to vars.
160 * math_bigopinset.C: move methods to follow class definition order
162 * math_accentinset.h (getAccentCode): move inline here
164 * math_accentinset.C (MathAccentInset): cleanup
167 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
169 * math_inset.[Ch] (MathedInset): remove method
171 * Makefile.am (libmathed_la_SOURCES): correct typo
173 * math_parinset.C (draw): move MathedXiter data(this) up. and
174 remove it two other places.
176 * math_macro.C (MathMacro): use array directly, don't use
177 setArgumentIdx and GetData
179 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
181 * math_macroarg.C (MathMacroArgument): delete
182 * math_macro.C (~MathMacro): delete
183 * math_macrotemplate.C (~MathMacroTemplate): delete
185 * math_decorationinset.[Ch]: add pragma
186 * math_deliminset.[Ch]: likewise
187 * math_fracinset.[Ch]: likewise
188 * math_macroarg.[Ch]: likewise
189 * math_macrotemplate.[Ch]: likewise
190 * math_matrixinset.[Ch]: likewise
192 * formulamacro.C (Read): set contents of tmacro_ to ar.
194 * formulamacro.h: add '_' to private variables.
195 * formalamacro.C: changes because of this.
197 2001-02-23 Juergen Vigna <jug@sad.it>
199 * formula.C (LocalDispatch): changed action to be a kb_action (as it
200 should be) and not an int.
202 * formulamacro.C (LocalDispatch): ditto.
204 2001-02-14 André Pönitz <poenitz@htwm.de>
206 * math_parinset.[Ch]: make array a real MathArray, not just a
209 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
211 * several files: subsequent changes
213 * math_cursor.C: make selarray a proper MathArray
215 * several files: Change "MathedArray *" to "MathedArray &"
218 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
220 * array.C (MathedArray): Fix compilation problem.
222 2001-02-14 André Pönitz <poenitz@htwm.de>
224 * array.[Ch]: "deep" copy constructor and assignment operator for
227 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
229 * math_iter.[Ch]: remove SetData
230 several files: subsequent changes
232 2001-02-14 André Pönitz <poenitz@htwm.de>
234 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
237 * math_iter.C: default-construct and resize array
239 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
241 * math_xiter.h: move ipush and ipop to public, add _ on private
242 variables, move protected var to private, remove friend.
244 * math_cursor.C (insertInset): rename method from Insert also
245 remove default arg val. Call the public methods of xiter instead
246 of private variables.
248 * changes to several files because of the above.
250 2001-02-14 André Pönitz <poenitz@htwm.de>
252 * math_iter.[Ch]: hide fcode_
254 * math_parinset.C: subsequent changes
257 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
259 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
262 * math_write.C: delete file
263 * math_delim.C: delete file
264 * marh_sqrtinset.h: delete file
266 * move funcs to more localized files, more general cleanup.
267 Constify several local vars. Doxygen changes. Formatting.
269 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
271 * support.C: add some consts
273 * matriz.C: clean up a bit.
274 (matmat): remove the for loop.
276 * several files: changes so that several friends can be removed
278 2001-02-14 André Pönitz <poenitz@htwm.de>
280 * formula.C: reformatting
284 math_xiter.[Ch]: remove unneeded members
286 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
290 * formula.C: remove cruft
292 * array.C (begin): new method
295 2001-02-14 André Pönitz <poenitz@htwm.de>
297 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
299 * math_cursor.C: reformatting
301 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
305 * math_matrixinset.C:
306 * math_macrotemplate.C:
311 * math_decorationinset.C:
313 * math_accentinset.C:
314 * math_sqrtinset.C: include LOstream.h and add using directive.
316 2001-02-14 André Pönitz <poenitz@htwm.de>
318 * math_iter.C: reformatting
320 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
322 * math_spaceinset.C (GetSpace): move here
324 * math_parinset.C: add debug.h, move several prev. inlined methods
327 * math_macrotable.C math_xiter.C support.C: add debug.h
329 * math_macro.h: remove debug.h, remove typedefs
331 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
334 * math_hash.C: change some defines to int const. change use of
335 LM_TC_NORMAL to LM_TC_VAR
337 * math_draw.C: delete file
339 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
340 forward decls. remove LM_TC_NORMAL, move inline methods to
341 support.C (and support.h)
343 * math_cursor.C: move several previous inlined methods here
345 * math_bigopinset.h math_dotsinset.h math_funcinset.h
346 math_parinset.h math_spaceinset.h: add math_defs.h
348 * math_accentinset.h: add support.h and math_defs.h
350 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
352 * formula.h: remove unused func decl: OpenMathInset
354 * formula.C math_inset.h: get rid of math_defs.h
356 * array.h: switch to support.h instead of math_defs.h
358 * array.C: remove one include
360 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
362 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
364 * math_parser.C: include macrotable and macrotemplate
366 * math_macrotemplate.[Ch]: new files
368 * math_macrotable.[Ch]: new files
370 * math_macroarg.[Ch]: new files
372 * math_macro.C: move stuff to the new files.
374 * math_cursor.C: include math_macrotable.h
376 * macro_support.[Ch]: new files
378 * formulamacro.C: add more includes
380 * Makefile.am (libmathed_la_SOURCES): add new files.
382 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
384 * Makefile.am (libmathed_la_SOURCES): remove duplicate
389 * math_parinset.C: add a bunch of "using" directives.
392 * math_decorationinset.h:
394 * math_spaceinset.h: remove more couples of inline.
396 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
398 * math_xiter.h: remove a couple of "inline"
400 * array.C (strange_copy): fix bug (hopefully)
401 * many files: add a lot of new files and move methods to the class
402 files they belong to. Only first attempt at cleanup more will
405 2001-02-12 André Pönitz <poenitz@htwm.de>
407 * math_macro.[hC]: replace MathMacroArgument[] with
408 std::vector<MathMacroArgument>
410 math_inset.C: replace int[] with std::vector<int>
412 * math_symbols.C: replace FL_OBJECTP[] with
413 std::vector<FL_OBJECT*>
415 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
417 * math_defs.h (struct MathedRowSt): make all private variables end
418 with '_', initialize in initializer list instead of in function
421 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
423 * formula.C (LocalDispatch): Change the default action of
424 break-line to create an align* environment instead of eqnarray*.
426 * math_inset.C (Metrics): Correct drawing of the multline
429 2001-02-12 André Pönitz <poenitz@htwm.de>
431 * array.[hC]: replace private variable maxsize_ with call to
433 * math_defs.h: replace int[] by std::vector<int> for
436 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
438 * array.h: made all variables private, removed friend, added new
439 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
440 non const operator[] added setter for last and getter for maxsize.
441 changed name from LyxArrayBase to MathedArray.
442 changed name of some methods to start with lowerchar.
443 moved inline methods to array.C
445 * math_iter.C + several file: changes because of the above.
447 * array.C: new file with the prev inline methods.
449 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
451 * Many files: add support for the align environment from amsmath.
453 2001-02-09 André Pönitz <poenitz@htwm.de>
455 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
456 * several files: subsequent changes
457 * math_iter.h: remove unused prototype
460 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
462 * math_macro.C (draw): add .c_str() to .str() (useful when
463 compiling with lyxstring, but STL sstream).
466 2001-02-08 André Pönitz <poenitz@htwm.de>
468 * several files: get rid of reinterpret_cast.
470 2001-02-04 Allan Rae <rae@lyx.org>
472 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
473 just casting the variable.
475 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
477 * Many files: Add support for multline and alignat environments from
480 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
482 * math_symbols.C (math_insert_greek): Move cursor right when
483 unlocking the math inset.
485 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
487 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
489 * formula.C (LocalDispatch): Before inserting a label in an
490 eqnarray, move the cursor to the top level.
492 * math_iter.C (getLabel): Test if crow == 0.
494 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
496 * math_draw.C (Metrics): Use the correct GetString.