2 2001-03-06 André Pönitz <poenitz@htwm.de>
3 * array.[Ch]: factor out deep_copy,
4 remove third argument from raw_pointer_insert
6 * mathiter.[Ch]: remove unused function Clear()
8 2001-03-04 André Pönitz <poenitz@htwm.de>
9 * math_macrotemplate.[Ch]:
10 math_macro.C: move update() functionality to the macro
12 * math_rowst.h: split MathedRowSt into "data" and "list"
14 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
16 * math_macrotemplate.C (update): use MathMacro::getArg, and
17 receive a const reference.
18 (getMacroPar): add an Assert
20 * math_macrotemplate.h: make MathMacro a friend, make update take
23 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
24 and store a MathMacroArgument in the vector
25 * math_macro.C: changes because of the above.
28 * math_parser.C (mathed_parse): plug potential leak
30 * math_iter.h: add comment on virtual destructor
32 * math_iter.C (Delete): make c const
34 * math_parinset.C (Metrics): cleanup indent. make one string const.
36 * math_inset.C (size): move out of line
39 * math_macroarg.h: remove default constructor
41 * math_macroarg.C: include Lsstream.h instead of debug.h
42 (MathMacroArgument): remove default constructor
43 (Write): add std:: on ostream arg
45 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
48 * formula.C: make DEBUG into lyxerr
50 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
52 * math_macrotemplate.h: make noncopyable, remove last arg to
53 constructor, remove flags_ add edit_
54 (flags): remove method
56 * math_macrotemplate.C (setArgument): delete method
57 (update): make idx const
58 (Metrics): use edit_, remove flags_
59 (draw): use edit_, remove flags_
60 (setEditMode): set edit_, remove flags_
61 (MathMacroTemplate): initialize edit_, remove flags_
63 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
64 shared_ptr, let constructor take a shared_ptr
66 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
68 (draw): remove unneded update, remove removed update of x,y
69 (GetXY): call tmplates GetMacroXY directly
70 (SetFocus): call Metrics() instead of update()
71 (Write): remove support for math macro environments, simplifications.
73 * math_macrotable.h: make class noncopyable, change getMacro to
74 createMacro, change vector to map store a
75 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
77 * math_macrotable.C: add pragma
78 (createMacro): change name from getMacro, use shared_ptr
79 (getTemplate): Use map lookup to get macro, return shared_ptr
80 (addTemplate): assert that m containse a valid pointer, use map[]
82 (builtinMacros): by using shared_ptr fix the mem leak, remove
83 commented out unsupported macros
85 * math_cursor.C: changes because of the above
86 * math_parser.C: changes because of the abobe
88 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
89 default arg on constructor.
90 * formulamacro.C: changes because of the above
92 * math_parinset.h: add pragma
93 (SetAlign): move inline out of class def
97 (setArgumentIdx): ditto
98 (setNextArgIdx): ditto
99 (getArgumentIdx): ditto
100 (getMaxArgumentIdx): ditto
105 * math_parinset.C: add pragma
106 (Write): change the else clause, lessen depth
108 * math_macroarg.h: small whitespace change
110 * array.C: include support/LOstream.h add using ostream and endl
112 * array.h (dump): add std:: on ostream
114 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
116 * math_macrotemplate.h: remove default arg on update
118 * math_macrotemplate.C (update): add assert and remove noop case.
120 * formulamacro.C (Read): add comment.
121 (ascent): remove noop call to MathMacroTemplate
126 * math_parser.C (mathed_parse): fix another potential problem by
127 passing a freestanding mathedarray.
129 * math_root.C (GetData): add const version
131 * math_parinset.C (~MathParInset): delete
132 (GetData): add const version
134 * math_matrixinset.C (MathMatrixInset): delete pointer version,
135 make it a proper copy constructor instead
137 (MathMatrixInset): remvoe default val for m and n
139 * math_macro.C (GetData): add const version
141 * math_fracinset.C (GetData): add const version
143 * math_cursor.C (SelCopy): make p1 and p2 const
144 (SelCut): make p1 and p2 const
146 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
147 (LyxCode): move inline out of class
151 * array.[Ch] (dump): method added for debugging purposes
153 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
154 mathed_parse when reading a matrix.
156 * math_spaceinset.[Ch]: add pragma, make variables private add
157 '_', change order of method definitions.
159 * math_root.h (~MathRootInset): delete
160 Change uroot_ to be a real object instead of a pointer
161 * math_root.C: changes because of the above
163 * math_macro.C (MathMacro(MathMacro*)): delete constructor
164 (MathMacro(MathMacro const &)): new copy constructor
166 * math_inset.h: delete constructor taking a pointer to MathedInset
167 (size, incSize): move inline method
169 * math_funcinset.h: add pragma, remove class vars ln and fname,
170 change protected to private, add '_' to priv vars.
171 (~MathFuncInset): remove
173 * math_fracinset.h: make MathParInset den_ a real object and not a
176 * math_fracinset.C (MathFracInset): clean up, move initalization
177 to initialization list
178 (~MathFracInset): remove
181 * math_draw.C: delete file
183 * math_dotsinset.[Ch]: add pragma
185 * math_bigopinset.h: make protected variables private add '_' to vars.
187 * math_bigopinset.C: move methods to follow class definition order
189 * math_accentinset.h (getAccentCode): move inline here
191 * math_accentinset.C (MathAccentInset): cleanup
194 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
196 * math_inset.[Ch] (MathedInset): remove method
198 * Makefile.am (libmathed_la_SOURCES): correct typo
200 * math_parinset.C (draw): move MathedXiter data(this) up. and
201 remove it two other places.
203 * math_macro.C (MathMacro): use array directly, don't use
204 setArgumentIdx and GetData
206 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
208 * math_macroarg.C (MathMacroArgument): delete
209 * math_macro.C (~MathMacro): delete
210 * math_macrotemplate.C (~MathMacroTemplate): delete
212 * math_decorationinset.[Ch]: add pragma
213 * math_deliminset.[Ch]: likewise
214 * math_fracinset.[Ch]: likewise
215 * math_macroarg.[Ch]: likewise
216 * math_macrotemplate.[Ch]: likewise
217 * math_matrixinset.[Ch]: likewise
219 * formulamacro.C (Read): set contents of tmacro_ to ar.
221 * formulamacro.h: add '_' to private variables.
222 * formalamacro.C: changes because of this.
224 2001-02-23 Juergen Vigna <jug@sad.it>
226 * formula.C (LocalDispatch): changed action to be a kb_action (as it
227 should be) and not an int.
229 * formulamacro.C (LocalDispatch): ditto.
231 2001-02-14 André Pönitz <poenitz@htwm.de>
233 * math_parinset.[Ch]: make array a real MathArray, not just a
236 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
238 * several files: subsequent changes
240 * math_cursor.C: make selarray a proper MathArray
242 * several files: Change "MathedArray *" to "MathedArray &"
245 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
247 * array.C (MathedArray): Fix compilation problem.
249 2001-02-14 André Pönitz <poenitz@htwm.de>
251 * array.[Ch]: "deep" copy constructor and assignment operator for
254 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
256 * math_iter.[Ch]: remove SetData
257 several files: subsequent changes
259 2001-02-14 André Pönitz <poenitz@htwm.de>
261 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
264 * math_iter.C: default-construct and resize array
266 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
268 * math_xiter.h: move ipush and ipop to public, add _ on private
269 variables, move protected var to private, remove friend.
271 * math_cursor.C (insertInset): rename method from Insert also
272 remove default arg val. Call the public methods of xiter instead
273 of private variables.
275 * changes to several files because of the above.
277 2001-02-14 André Pönitz <poenitz@htwm.de>
279 * math_iter.[Ch]: hide fcode_
281 * math_parinset.C: subsequent changes
284 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
286 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
289 * math_write.C: delete file
290 * math_delim.C: delete file
291 * marh_sqrtinset.h: delete file
293 * move funcs to more localized files, more general cleanup.
294 Constify several local vars. Doxygen changes. Formatting.
296 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
298 * support.C: add some consts
300 * matriz.C: clean up a bit.
301 (matmat): remove the for loop.
303 * several files: changes so that several friends can be removed
305 2001-02-14 André Pönitz <poenitz@htwm.de>
307 * formula.C: reformatting
311 math_xiter.[Ch]: remove unneeded members
313 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
317 * formula.C: remove cruft
319 * array.C (begin): new method
322 2001-02-14 André Pönitz <poenitz@htwm.de>
324 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
326 * math_cursor.C: reformatting
328 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
332 * math_matrixinset.C:
333 * math_macrotemplate.C:
338 * math_decorationinset.C:
340 * math_accentinset.C:
341 * math_sqrtinset.C: include LOstream.h and add using directive.
343 2001-02-14 André Pönitz <poenitz@htwm.de>
345 * math_iter.C: reformatting
347 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
349 * math_spaceinset.C (GetSpace): move here
351 * math_parinset.C: add debug.h, move several prev. inlined methods
354 * math_macrotable.C math_xiter.C support.C: add debug.h
356 * math_macro.h: remove debug.h, remove typedefs
358 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
361 * math_hash.C: change some defines to int const. change use of
362 LM_TC_NORMAL to LM_TC_VAR
364 * math_draw.C: delete file
366 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
367 forward decls. remove LM_TC_NORMAL, move inline methods to
368 support.C (and support.h)
370 * math_cursor.C: move several previous inlined methods here
372 * math_bigopinset.h math_dotsinset.h math_funcinset.h
373 math_parinset.h math_spaceinset.h: add math_defs.h
375 * math_accentinset.h: add support.h and math_defs.h
377 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
379 * formula.h: remove unused func decl: OpenMathInset
381 * formula.C math_inset.h: get rid of math_defs.h
383 * array.h: switch to support.h instead of math_defs.h
385 * array.C: remove one include
387 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
389 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
391 * math_parser.C: include macrotable and macrotemplate
393 * math_macrotemplate.[Ch]: new files
395 * math_macrotable.[Ch]: new files
397 * math_macroarg.[Ch]: new files
399 * math_macro.C: move stuff to the new files.
401 * math_cursor.C: include math_macrotable.h
403 * macro_support.[Ch]: new files
405 * formulamacro.C: add more includes
407 * Makefile.am (libmathed_la_SOURCES): add new files.
409 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
411 * Makefile.am (libmathed_la_SOURCES): remove duplicate
416 * math_parinset.C: add a bunch of "using" directives.
419 * math_decorationinset.h:
421 * math_spaceinset.h: remove more couples of inline.
423 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
425 * math_xiter.h: remove a couple of "inline"
427 * array.C (strange_copy): fix bug (hopefully)
428 * many files: add a lot of new files and move methods to the class
429 files they belong to. Only first attempt at cleanup more will
432 2001-02-12 André Pönitz <poenitz@htwm.de>
434 * math_macro.[hC]: replace MathMacroArgument[] with
435 std::vector<MathMacroArgument>
437 math_inset.C: replace int[] with std::vector<int>
439 * math_symbols.C: replace FL_OBJECTP[] with
440 std::vector<FL_OBJECT*>
442 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
444 * math_defs.h (struct MathedRowSt): make all private variables end
445 with '_', initialize in initializer list instead of in function
448 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
450 * formula.C (LocalDispatch): Change the default action of
451 break-line to create an align* environment instead of eqnarray*.
453 * math_inset.C (Metrics): Correct drawing of the multline
456 2001-02-12 André Pönitz <poenitz@htwm.de>
458 * array.[hC]: replace private variable maxsize_ with call to
460 * math_defs.h: replace int[] by std::vector<int> for
463 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
465 * array.h: made all variables private, removed friend, added new
466 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
467 non const operator[] added setter for last and getter for maxsize.
468 changed name from LyxArrayBase to MathedArray.
469 changed name of some methods to start with lowerchar.
470 moved inline methods to array.C
472 * math_iter.C + several file: changes because of the above.
474 * array.C: new file with the prev inline methods.
476 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
478 * Many files: add support for the align environment from amsmath.
480 2001-02-09 André Pönitz <poenitz@htwm.de>
482 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
483 * several files: subsequent changes
484 * math_iter.h: remove unused prototype
487 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
489 * math_macro.C (draw): add .c_str() to .str() (useful when
490 compiling with lyxstring, but STL sstream).
493 2001-02-08 André Pönitz <poenitz@htwm.de>
495 * several files: get rid of reinterpret_cast.
497 2001-02-04 Allan Rae <rae@lyx.org>
499 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
500 just casting the variable.
502 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
504 * Many files: Add support for multline and alignat environments from
507 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
509 * math_symbols.C (math_insert_greek): Move cursor right when
510 unlocking the math inset.
512 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
514 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
516 * formula.C (LocalDispatch): Before inserting a label in an
517 eqnarray, move the cursor to the top level.
519 * math_iter.C (getLabel): Test if crow == 0.
521 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
523 * math_draw.C (Metrics): Use the correct GetString.