1 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
3 * math_macroarg.h: remove default constructor
5 * math_macroarg.C: include Lsstream.h instead of debug.h
6 (MathMacroArgument): remove default constructor
7 (Write): add std:: on ostream arg
9 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
12 * formula.C: make DEBUG into lyxerr
14 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
16 * math_macrotemplate.h: make noncopyable, remove last arg to
17 constructor, remove flags_ add edit_
18 (flags): remove method
20 * math_macrotemplate.C (setArgument): delete method
21 (update): make idx const
22 (Metrics): use edit_, remove flags_
23 (draw): use edit_, remove flags_
24 (setEditMode): set edit_, remove flags_
25 (MathMacroTemplate): initialize edit_, remove flags_
27 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
28 shared_ptr, let constructor take a shared_ptr
30 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
32 (draw): remove unneded update, remove removed update of x,y
33 (GetXY): call tmplates GetMacroXY directly
34 (SetFocus): call Metrics() instead of update()
35 (Write): remove support for math macro environments, simplifications.
37 * math_macrotable.h: make class noncopyable, change getMacro to
38 createMacro, change vector to map store a
39 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
41 * math_macrotable.C: add pragma
42 (createMacro): change name from getMacro, use shared_ptr
43 (getTemplate): Use map lookup to get macro, return shared_ptr
44 (addTemplate): assert that m containse a valid pointer, use map[]
46 (builtinMacros): by using shared_ptr fix the mem leak, remove
47 commented out unsupported macros
49 * math_cursor.C: changes because of the above
50 * math_parser.C: changes because of the abobe
52 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
53 default arg on constructor.
54 * formulamacro.C: changes because of the above
56 * math_parinset.h: add pragma
57 (SetAlign): move inline out of class def
61 (setArgumentIdx): ditto
62 (setNextArgIdx): ditto
63 (getArgumentIdx): ditto
64 (getMaxArgumentIdx): ditto
69 * math_parinset.C: add pragma
70 (Write): change the else clause, lessen depth
72 * math_macroarg.h: small whitespace change
74 * array.C: include support/LOstream.h add using ostream and endl
76 * array.h (dump): add std:: on ostream
78 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
80 * math_macrotemplate.h: remove default arg on update
82 * math_macrotemplate.C (update): add assert and remove noop case.
84 * formulamacro.C (Read): add comment.
85 (ascent): remove noop call to MathMacroTemplate
90 * math_parser.C (mathed_parse): fix another potential problem by
91 passing a freestanding mathedarray.
93 * math_root.C (GetData): add const version
95 * math_parinset.C (~MathParInset): delete
96 (GetData): add const version
98 * math_matrixinset.C (MathMatrixInset): delete pointer version,
99 make it a proper copy constructor instead
101 (MathMatrixInset): remvoe default val for m and n
103 * math_macro.C (GetData): add const version
105 * math_fracinset.C (GetData): add const version
107 * math_cursor.C (SelCopy): make p1 and p2 const
108 (SelCut): make p1 and p2 const
110 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
111 (LyxCode): move inline out of class
115 * array.[Ch] (dump): method added for debugging purposes
117 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
118 mathed_parse when reading a matrix.
120 * math_spaceinset.[Ch]: add pragma, make variables private add
121 '_', change order of method definitions.
123 * math_root.h (~MathRootInset): delete
124 Change uroot_ to be a real object instead of a pointer
125 * math_root.C: changes because of the above
127 * math_macro.C (MathMacro(MathMacro*)): delete constructor
128 (MathMacro(MathMacro const &)): new copy constructor
130 * math_inset.h: delete constructor taking a pointer to MathedInset
131 (size, incSize): move inline method
133 * math_funcinset.h: add pragma, remove class vars ln and fname,
134 change protected to private, add '_' to priv vars.
135 (~MathFuncInset): remove
137 * math_fracinset.h: make MathParInset den_ a real object and not a
140 * math_fracinset.C (MathFracInset): clean up, move initalization
141 to initialization list
142 (~MathFracInset): remove
145 * math_draw.C: delete file
147 * math_dotsinset.[Ch]: add pragma
149 * math_bigopinset.h: make protected variables private add '_' to vars.
151 * math_bigopinset.C: move methods to follow class definition order
153 * math_accentinset.h (getAccentCode): move inline here
155 * math_accentinset.C (MathAccentInset): cleanup
158 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
160 * math_inset.[Ch] (MathedInset): remove method
162 * Makefile.am (libmathed_la_SOURCES): correct typo
164 * math_parinset.C (draw): move MathedXiter data(this) up. and
165 remove it two other places.
167 * math_macro.C (MathMacro): use array directly, don't use
168 setArgumentIdx and GetData
170 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
172 * math_macroarg.C (MathMacroArgument): delete
173 * math_macro.C (~MathMacro): delete
174 * math_macrotemplate.C (~MathMacroTemplate): delete
176 * math_decorationinset.[Ch]: add pragma
177 * math_deliminset.[Ch]: likewise
178 * math_fracinset.[Ch]: likewise
179 * math_macroarg.[Ch]: likewise
180 * math_macrotemplate.[Ch]: likewise
181 * math_matrixinset.[Ch]: likewise
183 * formulamacro.C (Read): set contents of tmacro_ to ar.
185 * formulamacro.h: add '_' to private variables.
186 * formalamacro.C: changes because of this.
188 2001-02-23 Juergen Vigna <jug@sad.it>
190 * formula.C (LocalDispatch): changed action to be a kb_action (as it
191 should be) and not an int.
193 * formulamacro.C (LocalDispatch): ditto.
195 2001-02-14 André Pönitz <poenitz@htwm.de>
197 * math_parinset.[Ch]: make array a real MathArray, not just a
200 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
202 * several files: subsequent changes
204 * math_cursor.C: make selarray a proper MathArray
206 * several files: Change "MathedArray *" to "MathedArray &"
209 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
211 * array.C (MathedArray): Fix compilation problem.
213 2001-02-14 André Pönitz <poenitz@htwm.de>
215 * array.[Ch]: "deep" copy constructor and assignment operator for
218 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
220 * math_iter.[Ch]: remove SetData
221 several files: subsequent changes
223 2001-02-14 André Pönitz <poenitz@htwm.de>
225 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
228 * math_iter.C: default-construct and resize array
230 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
232 * math_xiter.h: move ipush and ipop to public, add _ on private
233 variables, move protected var to private, remove friend.
235 * math_cursor.C (insertInset): rename method from Insert also
236 remove default arg val. Call the public methods of xiter instead
237 of private variables.
239 * changes to several files because of the above.
241 2001-02-14 André Pönitz <poenitz@htwm.de>
243 * math_iter.[Ch]: hide fcode_
245 * math_parinset.C: subsequent changes
248 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
250 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
253 * math_write.C: delete file
254 * math_delim.C: delete file
255 * marh_sqrtinset.h: delete file
257 * move funcs to more localized files, more general cleanup.
258 Constify several local vars. Doxygen changes. Formatting.
260 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
262 * support.C: add some consts
264 * matriz.C: clean up a bit.
265 (matmat): remove the for loop.
267 * several files: changes so that several friends can be removed
269 2001-02-14 André Pönitz <poenitz@htwm.de>
271 * formula.C: reformatting
275 math_xiter.[Ch]: remove unneeded members
277 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
281 * formula.C: remove cruft
283 * array.C (begin): new method
286 2001-02-14 André Pönitz <poenitz@htwm.de>
288 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
290 * math_cursor.C: reformatting
292 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
296 * math_matrixinset.C:
297 * math_macrotemplate.C:
302 * math_decorationinset.C:
304 * math_accentinset.C:
305 * math_sqrtinset.C: include LOstream.h and add using directive.
307 2001-02-14 André Pönitz <poenitz@htwm.de>
309 * math_iter.C: reformatting
311 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
313 * math_spaceinset.C (GetSpace): move here
315 * math_parinset.C: add debug.h, move several prev. inlined methods
318 * math_macrotable.C math_xiter.C support.C: add debug.h
320 * math_macro.h: remove debug.h, remove typedefs
322 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
325 * math_hash.C: change some defines to int const. change use of
326 LM_TC_NORMAL to LM_TC_VAR
328 * math_draw.C: delete file
330 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
331 forward decls. remove LM_TC_NORMAL, move inline methods to
332 support.C (and support.h)
334 * math_cursor.C: move several previous inlined methods here
336 * math_bigopinset.h math_dotsinset.h math_funcinset.h
337 math_parinset.h math_spaceinset.h: add math_defs.h
339 * math_accentinset.h: add support.h and math_defs.h
341 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
343 * formula.h: remove unused func decl: OpenMathInset
345 * formula.C math_inset.h: get rid of math_defs.h
347 * array.h: switch to support.h instead of math_defs.h
349 * array.C: remove one include
351 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
353 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
355 * math_parser.C: include macrotable and macrotemplate
357 * math_macrotemplate.[Ch]: new files
359 * math_macrotable.[Ch]: new files
361 * math_macroarg.[Ch]: new files
363 * math_macro.C: move stuff to the new files.
365 * math_cursor.C: include math_macrotable.h
367 * macro_support.[Ch]: new files
369 * formulamacro.C: add more includes
371 * Makefile.am (libmathed_la_SOURCES): add new files.
373 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
375 * Makefile.am (libmathed_la_SOURCES): remove duplicate
380 * math_parinset.C: add a bunch of "using" directives.
383 * math_decorationinset.h:
385 * math_spaceinset.h: remove more couples of inline.
387 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
389 * math_xiter.h: remove a couple of "inline"
391 * array.C (strange_copy): fix bug (hopefully)
392 * many files: add a lot of new files and move methods to the class
393 files they belong to. Only first attempt at cleanup more will
396 2001-02-12 André Pönitz <poenitz@htwm.de>
398 * math_macro.[hC]: replace MathMacroArgument[] with
399 std::vector<MathMacroArgument>
401 math_inset.C: replace int[] with std::vector<int>
403 * math_symbols.C: replace FL_OBJECTP[] with
404 std::vector<FL_OBJECT*>
406 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
408 * math_defs.h (struct MathedRowSt): make all private variables end
409 with '_', initialize in initializer list instead of in function
412 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
414 * formula.C (LocalDispatch): Change the default action of
415 break-line to create an align* environment instead of eqnarray*.
417 * math_inset.C (Metrics): Correct drawing of the multline
420 2001-02-12 André Pönitz <poenitz@htwm.de>
422 * array.[hC]: replace private variable maxsize_ with call to
424 * math_defs.h: replace int[] by std::vector<int> for
427 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
429 * array.h: made all variables private, removed friend, added new
430 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
431 non const operator[] added setter for last and getter for maxsize.
432 changed name from LyxArrayBase to MathedArray.
433 changed name of some methods to start with lowerchar.
434 moved inline methods to array.C
436 * math_iter.C + several file: changes because of the above.
438 * array.C: new file with the prev inline methods.
440 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
442 * Many files: add support for the align environment from amsmath.
444 2001-02-09 André Pönitz <poenitz@htwm.de>
446 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
447 * several files: subsequent changes
448 * math_iter.h: remove unused prototype
451 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
453 * math_macro.C (draw): add .c_str() to .str() (useful when
454 compiling with lyxstring, but STL sstream).
457 2001-02-08 André Pönitz <poenitz@htwm.de>
459 * several files: get rid of reinterpret_cast.
461 2001-02-04 Allan Rae <rae@lyx.org>
463 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
464 just casting the variable.
466 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
468 * Many files: Add support for multline and alignat environments from
471 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
473 * math_symbols.C (math_insert_greek): Move cursor right when
474 unlocking the math inset.
476 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
478 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
480 * formula.C (LocalDispatch): Before inserting a label in an
481 eqnarray, move the cursor to the top level.
483 * math_iter.C (getLabel): Test if crow == 0.
485 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
487 * math_draw.C (Metrics): Use the correct GetString.