1 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_macrotemplate.C (update): use MathMacro::getArg, and
4 receive a const reference.
5 (getMacroPar): add an Assert
7 * math_macrotemplate.h: make MathMacro a friend, make update take
10 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
11 and store a MathMacroArgument in the vector
12 * math_macro.C: changes because of the above.
15 * math_parser.C (mathed_parse): plug potential leak
17 * math_iter.h: add comment on virtual destructor
19 * math_iter.C (Delete): make c const
21 * math_parinset.C (Metrics): cleanup indent. make one string const.
23 * math_inset.C (size): move out of line
26 * math_macroarg.h: remove default constructor
28 * math_macroarg.C: include Lsstream.h instead of debug.h
29 (MathMacroArgument): remove default constructor
30 (Write): add std:: on ostream arg
32 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
35 * formula.C: make DEBUG into lyxerr
37 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
39 * math_macrotemplate.h: make noncopyable, remove last arg to
40 constructor, remove flags_ add edit_
41 (flags): remove method
43 * math_macrotemplate.C (setArgument): delete method
44 (update): make idx const
45 (Metrics): use edit_, remove flags_
46 (draw): use edit_, remove flags_
47 (setEditMode): set edit_, remove flags_
48 (MathMacroTemplate): initialize edit_, remove flags_
50 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
51 shared_ptr, let constructor take a shared_ptr
53 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
55 (draw): remove unneded update, remove removed update of x,y
56 (GetXY): call tmplates GetMacroXY directly
57 (SetFocus): call Metrics() instead of update()
58 (Write): remove support for math macro environments, simplifications.
60 * math_macrotable.h: make class noncopyable, change getMacro to
61 createMacro, change vector to map store a
62 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
64 * math_macrotable.C: add pragma
65 (createMacro): change name from getMacro, use shared_ptr
66 (getTemplate): Use map lookup to get macro, return shared_ptr
67 (addTemplate): assert that m containse a valid pointer, use map[]
69 (builtinMacros): by using shared_ptr fix the mem leak, remove
70 commented out unsupported macros
72 * math_cursor.C: changes because of the above
73 * math_parser.C: changes because of the abobe
75 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
76 default arg on constructor.
77 * formulamacro.C: changes because of the above
79 * math_parinset.h: add pragma
80 (SetAlign): move inline out of class def
84 (setArgumentIdx): ditto
85 (setNextArgIdx): ditto
86 (getArgumentIdx): ditto
87 (getMaxArgumentIdx): ditto
92 * math_parinset.C: add pragma
93 (Write): change the else clause, lessen depth
95 * math_macroarg.h: small whitespace change
97 * array.C: include support/LOstream.h add using ostream and endl
99 * array.h (dump): add std:: on ostream
101 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
103 * math_macrotemplate.h: remove default arg on update
105 * math_macrotemplate.C (update): add assert and remove noop case.
107 * formulamacro.C (Read): add comment.
108 (ascent): remove noop call to MathMacroTemplate
113 * math_parser.C (mathed_parse): fix another potential problem by
114 passing a freestanding mathedarray.
116 * math_root.C (GetData): add const version
118 * math_parinset.C (~MathParInset): delete
119 (GetData): add const version
121 * math_matrixinset.C (MathMatrixInset): delete pointer version,
122 make it a proper copy constructor instead
124 (MathMatrixInset): remvoe default val for m and n
126 * math_macro.C (GetData): add const version
128 * math_fracinset.C (GetData): add const version
130 * math_cursor.C (SelCopy): make p1 and p2 const
131 (SelCut): make p1 and p2 const
133 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
134 (LyxCode): move inline out of class
138 * array.[Ch] (dump): method added for debugging purposes
140 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
141 mathed_parse when reading a matrix.
143 * math_spaceinset.[Ch]: add pragma, make variables private add
144 '_', change order of method definitions.
146 * math_root.h (~MathRootInset): delete
147 Change uroot_ to be a real object instead of a pointer
148 * math_root.C: changes because of the above
150 * math_macro.C (MathMacro(MathMacro*)): delete constructor
151 (MathMacro(MathMacro const &)): new copy constructor
153 * math_inset.h: delete constructor taking a pointer to MathedInset
154 (size, incSize): move inline method
156 * math_funcinset.h: add pragma, remove class vars ln and fname,
157 change protected to private, add '_' to priv vars.
158 (~MathFuncInset): remove
160 * math_fracinset.h: make MathParInset den_ a real object and not a
163 * math_fracinset.C (MathFracInset): clean up, move initalization
164 to initialization list
165 (~MathFracInset): remove
168 * math_draw.C: delete file
170 * math_dotsinset.[Ch]: add pragma
172 * math_bigopinset.h: make protected variables private add '_' to vars.
174 * math_bigopinset.C: move methods to follow class definition order
176 * math_accentinset.h (getAccentCode): move inline here
178 * math_accentinset.C (MathAccentInset): cleanup
181 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
183 * math_inset.[Ch] (MathedInset): remove method
185 * Makefile.am (libmathed_la_SOURCES): correct typo
187 * math_parinset.C (draw): move MathedXiter data(this) up. and
188 remove it two other places.
190 * math_macro.C (MathMacro): use array directly, don't use
191 setArgumentIdx and GetData
193 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
195 * math_macroarg.C (MathMacroArgument): delete
196 * math_macro.C (~MathMacro): delete
197 * math_macrotemplate.C (~MathMacroTemplate): delete
199 * math_decorationinset.[Ch]: add pragma
200 * math_deliminset.[Ch]: likewise
201 * math_fracinset.[Ch]: likewise
202 * math_macroarg.[Ch]: likewise
203 * math_macrotemplate.[Ch]: likewise
204 * math_matrixinset.[Ch]: likewise
206 * formulamacro.C (Read): set contents of tmacro_ to ar.
208 * formulamacro.h: add '_' to private variables.
209 * formalamacro.C: changes because of this.
211 2001-02-23 Juergen Vigna <jug@sad.it>
213 * formula.C (LocalDispatch): changed action to be a kb_action (as it
214 should be) and not an int.
216 * formulamacro.C (LocalDispatch): ditto.
218 2001-02-14 André Pönitz <poenitz@htwm.de>
220 * math_parinset.[Ch]: make array a real MathArray, not just a
223 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
225 * several files: subsequent changes
227 * math_cursor.C: make selarray a proper MathArray
229 * several files: Change "MathedArray *" to "MathedArray &"
232 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
234 * array.C (MathedArray): Fix compilation problem.
236 2001-02-14 André Pönitz <poenitz@htwm.de>
238 * array.[Ch]: "deep" copy constructor and assignment operator for
241 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
243 * math_iter.[Ch]: remove SetData
244 several files: subsequent changes
246 2001-02-14 André Pönitz <poenitz@htwm.de>
248 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
251 * math_iter.C: default-construct and resize array
253 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
255 * math_xiter.h: move ipush and ipop to public, add _ on private
256 variables, move protected var to private, remove friend.
258 * math_cursor.C (insertInset): rename method from Insert also
259 remove default arg val. Call the public methods of xiter instead
260 of private variables.
262 * changes to several files because of the above.
264 2001-02-14 André Pönitz <poenitz@htwm.de>
266 * math_iter.[Ch]: hide fcode_
268 * math_parinset.C: subsequent changes
271 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
273 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
276 * math_write.C: delete file
277 * math_delim.C: delete file
278 * marh_sqrtinset.h: delete file
280 * move funcs to more localized files, more general cleanup.
281 Constify several local vars. Doxygen changes. Formatting.
283 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
285 * support.C: add some consts
287 * matriz.C: clean up a bit.
288 (matmat): remove the for loop.
290 * several files: changes so that several friends can be removed
292 2001-02-14 André Pönitz <poenitz@htwm.de>
294 * formula.C: reformatting
298 math_xiter.[Ch]: remove unneeded members
300 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
304 * formula.C: remove cruft
306 * array.C (begin): new method
309 2001-02-14 André Pönitz <poenitz@htwm.de>
311 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
313 * math_cursor.C: reformatting
315 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
319 * math_matrixinset.C:
320 * math_macrotemplate.C:
325 * math_decorationinset.C:
327 * math_accentinset.C:
328 * math_sqrtinset.C: include LOstream.h and add using directive.
330 2001-02-14 André Pönitz <poenitz@htwm.de>
332 * math_iter.C: reformatting
334 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
336 * math_spaceinset.C (GetSpace): move here
338 * math_parinset.C: add debug.h, move several prev. inlined methods
341 * math_macrotable.C math_xiter.C support.C: add debug.h
343 * math_macro.h: remove debug.h, remove typedefs
345 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
348 * math_hash.C: change some defines to int const. change use of
349 LM_TC_NORMAL to LM_TC_VAR
351 * math_draw.C: delete file
353 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
354 forward decls. remove LM_TC_NORMAL, move inline methods to
355 support.C (and support.h)
357 * math_cursor.C: move several previous inlined methods here
359 * math_bigopinset.h math_dotsinset.h math_funcinset.h
360 math_parinset.h math_spaceinset.h: add math_defs.h
362 * math_accentinset.h: add support.h and math_defs.h
364 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
366 * formula.h: remove unused func decl: OpenMathInset
368 * formula.C math_inset.h: get rid of math_defs.h
370 * array.h: switch to support.h instead of math_defs.h
372 * array.C: remove one include
374 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
376 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
378 * math_parser.C: include macrotable and macrotemplate
380 * math_macrotemplate.[Ch]: new files
382 * math_macrotable.[Ch]: new files
384 * math_macroarg.[Ch]: new files
386 * math_macro.C: move stuff to the new files.
388 * math_cursor.C: include math_macrotable.h
390 * macro_support.[Ch]: new files
392 * formulamacro.C: add more includes
394 * Makefile.am (libmathed_la_SOURCES): add new files.
396 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
398 * Makefile.am (libmathed_la_SOURCES): remove duplicate
403 * math_parinset.C: add a bunch of "using" directives.
406 * math_decorationinset.h:
408 * math_spaceinset.h: remove more couples of inline.
410 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
412 * math_xiter.h: remove a couple of "inline"
414 * array.C (strange_copy): fix bug (hopefully)
415 * many files: add a lot of new files and move methods to the class
416 files they belong to. Only first attempt at cleanup more will
419 2001-02-12 André Pönitz <poenitz@htwm.de>
421 * math_macro.[hC]: replace MathMacroArgument[] with
422 std::vector<MathMacroArgument>
424 math_inset.C: replace int[] with std::vector<int>
426 * math_symbols.C: replace FL_OBJECTP[] with
427 std::vector<FL_OBJECT*>
429 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
431 * math_defs.h (struct MathedRowSt): make all private variables end
432 with '_', initialize in initializer list instead of in function
435 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
437 * formula.C (LocalDispatch): Change the default action of
438 break-line to create an align* environment instead of eqnarray*.
440 * math_inset.C (Metrics): Correct drawing of the multline
443 2001-02-12 André Pönitz <poenitz@htwm.de>
445 * array.[hC]: replace private variable maxsize_ with call to
447 * math_defs.h: replace int[] by std::vector<int> for
450 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
452 * array.h: made all variables private, removed friend, added new
453 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
454 non const operator[] added setter for last and getter for maxsize.
455 changed name from LyxArrayBase to MathedArray.
456 changed name of some methods to start with lowerchar.
457 moved inline methods to array.C
459 * math_iter.C + several file: changes because of the above.
461 * array.C: new file with the prev inline methods.
463 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
465 * Many files: add support for the align environment from amsmath.
467 2001-02-09 André Pönitz <poenitz@htwm.de>
469 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
470 * several files: subsequent changes
471 * math_iter.h: remove unused prototype
474 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
476 * math_macro.C (draw): add .c_str() to .str() (useful when
477 compiling with lyxstring, but STL sstream).
480 2001-02-08 André Pönitz <poenitz@htwm.de>
482 * several files: get rid of reinterpret_cast.
484 2001-02-04 Allan Rae <rae@lyx.org>
486 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
487 just casting the variable.
489 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
491 * Many files: Add support for multline and alignat environments from
494 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
496 * math_symbols.C (math_insert_greek): Move cursor right when
497 unlocking the math inset.
499 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
501 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
503 * formula.C (LocalDispatch): Before inserting a label in an
504 eqnarray, move the cursor to the top level.
506 * math_iter.C (getLabel): Test if crow == 0.
508 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
510 * math_draw.C (Metrics): Use the correct GetString.