1 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_inset.C (size): move out of line
6 * math_macroarg.h: remove default constructor
8 * math_macroarg.C: include Lsstream.h instead of debug.h
9 (MathMacroArgument): remove default constructor
10 (Write): add std:: on ostream arg
12 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
15 * formula.C: make DEBUG into lyxerr
17 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
19 * math_macrotemplate.h: make noncopyable, remove last arg to
20 constructor, remove flags_ add edit_
21 (flags): remove method
23 * math_macrotemplate.C (setArgument): delete method
24 (update): make idx const
25 (Metrics): use edit_, remove flags_
26 (draw): use edit_, remove flags_
27 (setEditMode): set edit_, remove flags_
28 (MathMacroTemplate): initialize edit_, remove flags_
30 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
31 shared_ptr, let constructor take a shared_ptr
33 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
35 (draw): remove unneded update, remove removed update of x,y
36 (GetXY): call tmplates GetMacroXY directly
37 (SetFocus): call Metrics() instead of update()
38 (Write): remove support for math macro environments, simplifications.
40 * math_macrotable.h: make class noncopyable, change getMacro to
41 createMacro, change vector to map store a
42 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
44 * math_macrotable.C: add pragma
45 (createMacro): change name from getMacro, use shared_ptr
46 (getTemplate): Use map lookup to get macro, return shared_ptr
47 (addTemplate): assert that m containse a valid pointer, use map[]
49 (builtinMacros): by using shared_ptr fix the mem leak, remove
50 commented out unsupported macros
52 * math_cursor.C: changes because of the above
53 * math_parser.C: changes because of the abobe
55 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
56 default arg on constructor.
57 * formulamacro.C: changes because of the above
59 * math_parinset.h: add pragma
60 (SetAlign): move inline out of class def
64 (setArgumentIdx): ditto
65 (setNextArgIdx): ditto
66 (getArgumentIdx): ditto
67 (getMaxArgumentIdx): ditto
72 * math_parinset.C: add pragma
73 (Write): change the else clause, lessen depth
75 * math_macroarg.h: small whitespace change
77 * array.C: include support/LOstream.h add using ostream and endl
79 * array.h (dump): add std:: on ostream
81 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
83 * math_macrotemplate.h: remove default arg on update
85 * math_macrotemplate.C (update): add assert and remove noop case.
87 * formulamacro.C (Read): add comment.
88 (ascent): remove noop call to MathMacroTemplate
93 * math_parser.C (mathed_parse): fix another potential problem by
94 passing a freestanding mathedarray.
96 * math_root.C (GetData): add const version
98 * math_parinset.C (~MathParInset): delete
99 (GetData): add const version
101 * math_matrixinset.C (MathMatrixInset): delete pointer version,
102 make it a proper copy constructor instead
104 (MathMatrixInset): remvoe default val for m and n
106 * math_macro.C (GetData): add const version
108 * math_fracinset.C (GetData): add const version
110 * math_cursor.C (SelCopy): make p1 and p2 const
111 (SelCut): make p1 and p2 const
113 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
114 (LyxCode): move inline out of class
118 * array.[Ch] (dump): method added for debugging purposes
120 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
121 mathed_parse when reading a matrix.
123 * math_spaceinset.[Ch]: add pragma, make variables private add
124 '_', change order of method definitions.
126 * math_root.h (~MathRootInset): delete
127 Change uroot_ to be a real object instead of a pointer
128 * math_root.C: changes because of the above
130 * math_macro.C (MathMacro(MathMacro*)): delete constructor
131 (MathMacro(MathMacro const &)): new copy constructor
133 * math_inset.h: delete constructor taking a pointer to MathedInset
134 (size, incSize): move inline method
136 * math_funcinset.h: add pragma, remove class vars ln and fname,
137 change protected to private, add '_' to priv vars.
138 (~MathFuncInset): remove
140 * math_fracinset.h: make MathParInset den_ a real object and not a
143 * math_fracinset.C (MathFracInset): clean up, move initalization
144 to initialization list
145 (~MathFracInset): remove
148 * math_draw.C: delete file
150 * math_dotsinset.[Ch]: add pragma
152 * math_bigopinset.h: make protected variables private add '_' to vars.
154 * math_bigopinset.C: move methods to follow class definition order
156 * math_accentinset.h (getAccentCode): move inline here
158 * math_accentinset.C (MathAccentInset): cleanup
161 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
163 * math_inset.[Ch] (MathedInset): remove method
165 * Makefile.am (libmathed_la_SOURCES): correct typo
167 * math_parinset.C (draw): move MathedXiter data(this) up. and
168 remove it two other places.
170 * math_macro.C (MathMacro): use array directly, don't use
171 setArgumentIdx and GetData
173 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
175 * math_macroarg.C (MathMacroArgument): delete
176 * math_macro.C (~MathMacro): delete
177 * math_macrotemplate.C (~MathMacroTemplate): delete
179 * math_decorationinset.[Ch]: add pragma
180 * math_deliminset.[Ch]: likewise
181 * math_fracinset.[Ch]: likewise
182 * math_macroarg.[Ch]: likewise
183 * math_macrotemplate.[Ch]: likewise
184 * math_matrixinset.[Ch]: likewise
186 * formulamacro.C (Read): set contents of tmacro_ to ar.
188 * formulamacro.h: add '_' to private variables.
189 * formalamacro.C: changes because of this.
191 2001-02-23 Juergen Vigna <jug@sad.it>
193 * formula.C (LocalDispatch): changed action to be a kb_action (as it
194 should be) and not an int.
196 * formulamacro.C (LocalDispatch): ditto.
198 2001-02-14 André Pönitz <poenitz@htwm.de>
200 * math_parinset.[Ch]: make array a real MathArray, not just a
203 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
205 * several files: subsequent changes
207 * math_cursor.C: make selarray a proper MathArray
209 * several files: Change "MathedArray *" to "MathedArray &"
212 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
214 * array.C (MathedArray): Fix compilation problem.
216 2001-02-14 André Pönitz <poenitz@htwm.de>
218 * array.[Ch]: "deep" copy constructor and assignment operator for
221 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
223 * math_iter.[Ch]: remove SetData
224 several files: subsequent changes
226 2001-02-14 André Pönitz <poenitz@htwm.de>
228 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
231 * math_iter.C: default-construct and resize array
233 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
235 * math_xiter.h: move ipush and ipop to public, add _ on private
236 variables, move protected var to private, remove friend.
238 * math_cursor.C (insertInset): rename method from Insert also
239 remove default arg val. Call the public methods of xiter instead
240 of private variables.
242 * changes to several files because of the above.
244 2001-02-14 André Pönitz <poenitz@htwm.de>
246 * math_iter.[Ch]: hide fcode_
248 * math_parinset.C: subsequent changes
251 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
253 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
256 * math_write.C: delete file
257 * math_delim.C: delete file
258 * marh_sqrtinset.h: delete file
260 * move funcs to more localized files, more general cleanup.
261 Constify several local vars. Doxygen changes. Formatting.
263 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
265 * support.C: add some consts
267 * matriz.C: clean up a bit.
268 (matmat): remove the for loop.
270 * several files: changes so that several friends can be removed
272 2001-02-14 André Pönitz <poenitz@htwm.de>
274 * formula.C: reformatting
278 math_xiter.[Ch]: remove unneeded members
280 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
284 * formula.C: remove cruft
286 * array.C (begin): new method
289 2001-02-14 André Pönitz <poenitz@htwm.de>
291 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
293 * math_cursor.C: reformatting
295 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
299 * math_matrixinset.C:
300 * math_macrotemplate.C:
305 * math_decorationinset.C:
307 * math_accentinset.C:
308 * math_sqrtinset.C: include LOstream.h and add using directive.
310 2001-02-14 André Pönitz <poenitz@htwm.de>
312 * math_iter.C: reformatting
314 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
316 * math_spaceinset.C (GetSpace): move here
318 * math_parinset.C: add debug.h, move several prev. inlined methods
321 * math_macrotable.C math_xiter.C support.C: add debug.h
323 * math_macro.h: remove debug.h, remove typedefs
325 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
328 * math_hash.C: change some defines to int const. change use of
329 LM_TC_NORMAL to LM_TC_VAR
331 * math_draw.C: delete file
333 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
334 forward decls. remove LM_TC_NORMAL, move inline methods to
335 support.C (and support.h)
337 * math_cursor.C: move several previous inlined methods here
339 * math_bigopinset.h math_dotsinset.h math_funcinset.h
340 math_parinset.h math_spaceinset.h: add math_defs.h
342 * math_accentinset.h: add support.h and math_defs.h
344 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
346 * formula.h: remove unused func decl: OpenMathInset
348 * formula.C math_inset.h: get rid of math_defs.h
350 * array.h: switch to support.h instead of math_defs.h
352 * array.C: remove one include
354 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
356 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
358 * math_parser.C: include macrotable and macrotemplate
360 * math_macrotemplate.[Ch]: new files
362 * math_macrotable.[Ch]: new files
364 * math_macroarg.[Ch]: new files
366 * math_macro.C: move stuff to the new files.
368 * math_cursor.C: include math_macrotable.h
370 * macro_support.[Ch]: new files
372 * formulamacro.C: add more includes
374 * Makefile.am (libmathed_la_SOURCES): add new files.
376 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
378 * Makefile.am (libmathed_la_SOURCES): remove duplicate
383 * math_parinset.C: add a bunch of "using" directives.
386 * math_decorationinset.h:
388 * math_spaceinset.h: remove more couples of inline.
390 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
392 * math_xiter.h: remove a couple of "inline"
394 * array.C (strange_copy): fix bug (hopefully)
395 * many files: add a lot of new files and move methods to the class
396 files they belong to. Only first attempt at cleanup more will
399 2001-02-12 André Pönitz <poenitz@htwm.de>
401 * math_macro.[hC]: replace MathMacroArgument[] with
402 std::vector<MathMacroArgument>
404 math_inset.C: replace int[] with std::vector<int>
406 * math_symbols.C: replace FL_OBJECTP[] with
407 std::vector<FL_OBJECT*>
409 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
411 * math_defs.h (struct MathedRowSt): make all private variables end
412 with '_', initialize in initializer list instead of in function
415 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
417 * formula.C (LocalDispatch): Change the default action of
418 break-line to create an align* environment instead of eqnarray*.
420 * math_inset.C (Metrics): Correct drawing of the multline
423 2001-02-12 André Pönitz <poenitz@htwm.de>
425 * array.[hC]: replace private variable maxsize_ with call to
427 * math_defs.h: replace int[] by std::vector<int> for
430 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
432 * array.h: made all variables private, removed friend, added new
433 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
434 non const operator[] added setter for last and getter for maxsize.
435 changed name from LyxArrayBase to MathedArray.
436 changed name of some methods to start with lowerchar.
437 moved inline methods to array.C
439 * math_iter.C + several file: changes because of the above.
441 * array.C: new file with the prev inline methods.
443 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
445 * Many files: add support for the align environment from amsmath.
447 2001-02-09 André Pönitz <poenitz@htwm.de>
449 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
450 * several files: subsequent changes
451 * math_iter.h: remove unused prototype
454 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
456 * math_macro.C (draw): add .c_str() to .str() (useful when
457 compiling with lyxstring, but STL sstream).
460 2001-02-08 André Pönitz <poenitz@htwm.de>
462 * several files: get rid of reinterpret_cast.
464 2001-02-04 Allan Rae <rae@lyx.org>
466 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
467 just casting the variable.
469 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
471 * Many files: Add support for multline and alignat environments from
474 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
476 * math_symbols.C (math_insert_greek): Move cursor right when
477 unlocking the math inset.
479 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
481 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
483 * formula.C (LocalDispatch): Before inserting a label in an
484 eqnarray, move the cursor to the top level.
486 * math_iter.C (getLabel): Test if crow == 0.
488 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
490 * math_draw.C (Metrics): Use the correct GetString.