1 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
4 * formula.C: make DEBUG into lyxerr
6 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
8 * math_macrotemplate.h: make noncopyable, remove last arg to
9 constructor, remove flags_ add edit_
10 (flags): remove method
12 * math_macrotemplate.C (setArgument): delete method
13 (update): make idx const
14 (Metrics): use edit_, remove flags_
15 (draw): use edit_, remove flags_
16 (setEditMode): set edit_, remove flags_
17 (MathMacroTemplate): initialize edit_, remove flags_
19 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
20 shared_ptr, let constructor take a shared_ptr
22 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
24 (draw): remove unneded update, remove removed update of x,y
25 (GetXY): call tmplates GetMacroXY directly
26 (SetFocus): call Metrics() instead of update()
27 (Write): remove support for math macro environments, simplifications.
29 * math_macrotable.h: make class noncopyable, change getMacro to
30 createMacro, change vector to map store a
31 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
33 * math_macrotable.C: add pragma
34 (createMacro): change name from getMacro, use shared_ptr
35 (getTemplate): Use map lookup to get macro, return shared_ptr
36 (addTemplate): assert that m containse a valid pointer, use map[]
38 (builtinMacros): by using shared_ptr fix the mem leak, remove
39 commented out unsupported macros
41 * math_cursor.C: changes because of the above
42 * math_parser.C: changes because of the abobe
44 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
45 default arg on constructor.
46 * formulamacro.C: changes because of the above
48 * math_parinset.h: add pragma
49 (SetAlign): move inline out of class def
53 (setArgumentIdx): ditto
54 (setNextArgIdx): ditto
55 (getArgumentIdx): ditto
56 (getMaxArgumentIdx): ditto
61 * math_parinset.C: add pragma
62 (Write): change the else clause, lessen depth
64 * math_macroarg.h: small whitespace change
66 * array.C: include support/LOstream.h add using ostream and endl
68 * array.h (dump): add std:: on ostream
70 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
72 * math_macrotemplate.h: remove default arg on update
74 * math_macrotemplate.C (update): add assert and remove noop case.
76 * formulamacro.C (Read): add comment.
77 (ascent): remove noop call to MathMacroTemplate
82 * math_parser.C (mathed_parse): fix another potential problem by
83 passing a freestanding mathedarray.
85 * math_root.C (GetData): add const version
87 * math_parinset.C (~MathParInset): delete
88 (GetData): add const version
90 * math_matrixinset.C (MathMatrixInset): delete pointer version,
91 make it a proper copy constructor instead
93 (MathMatrixInset): remvoe default val for m and n
95 * math_macro.C (GetData): add const version
97 * math_fracinset.C (GetData): add const version
99 * math_cursor.C (SelCopy): make p1 and p2 const
100 (SelCut): make p1 and p2 const
102 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
103 (LyxCode): move inline out of class
107 * array.[Ch] (dump): method added for debugging purposes
109 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
110 mathed_parse when reading a matrix.
112 * math_spaceinset.[Ch]: add pragma, make variables private add
113 '_', change order of method definitions.
115 * math_root.h (~MathRootInset): delete
116 Change uroot_ to be a real object instead of a pointer
117 * math_root.C: changes because of the above
119 * math_macro.C (MathMacro(MathMacro*)): delete constructor
120 (MathMacro(MathMacro const &)): new copy constructor
122 * math_inset.h: delete constructor taking a pointer to MathedInset
123 (size, incSize): move inline method
125 * math_funcinset.h: add pragma, remove class vars ln and fname,
126 change protected to private, add '_' to priv vars.
127 (~MathFuncInset): remove
129 * math_fracinset.h: make MathParInset den_ a real object and not a
132 * math_fracinset.C (MathFracInset): clean up, move initalization
133 to initialization list
134 (~MathFracInset): remove
137 * math_draw.C: delete file
139 * math_dotsinset.[Ch]: add pragma
141 * math_bigopinset.h: make protected variables private add '_' to vars.
143 * math_bigopinset.C: move methods to follow class definition order
145 * math_accentinset.h (getAccentCode): move inline here
147 * math_accentinset.C (MathAccentInset): cleanup
150 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
152 * math_inset.[Ch] (MathedInset): remove method
154 * Makefile.am (libmathed_la_SOURCES): correct typo
156 * math_parinset.C (draw): move MathedXiter data(this) up. and
157 remove it two other places.
159 * math_macro.C (MathMacro): use array directly, don't use
160 setArgumentIdx and GetData
162 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
164 * math_macroarg.C (MathMacroArgument): delete
165 * math_macro.C (~MathMacro): delete
166 * math_macrotemplate.C (~MathMacroTemplate): delete
168 * math_decorationinset.[Ch]: add pragma
169 * math_deliminset.[Ch]: likewise
170 * math_fracinset.[Ch]: likewise
171 * math_macroarg.[Ch]: likewise
172 * math_macrotemplate.[Ch]: likewise
173 * math_matrixinset.[Ch]: likewise
175 * formulamacro.C (Read): set contents of tmacro_ to ar.
177 * formulamacro.h: add '_' to private variables.
178 * formalamacro.C: changes because of this.
180 2001-02-23 Juergen Vigna <jug@sad.it>
182 * formula.C (LocalDispatch): changed action to be a kb_action (as it
183 should be) and not an int.
185 * formulamacro.C (LocalDispatch): ditto.
187 2001-02-14 André Pönitz <poenitz@htwm.de>
189 * math_parinset.[Ch]: make array a real MathArray, not just a
192 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
194 * several files: subsequent changes
196 * math_cursor.C: make selarray a proper MathArray
198 * several files: Change "MathedArray *" to "MathedArray &"
201 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
203 * array.C (MathedArray): Fix compilation problem.
205 2001-02-14 André Pönitz <poenitz@htwm.de>
207 * array.[Ch]: "deep" copy constructor and assignment operator for
210 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
212 * math_iter.[Ch]: remove SetData
213 several files: subsequent changes
215 2001-02-14 André Pönitz <poenitz@htwm.de>
217 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
220 * math_iter.C: default-construct and resize array
222 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
224 * math_xiter.h: move ipush and ipop to public, add _ on private
225 variables, move protected var to private, remove friend.
227 * math_cursor.C (insertInset): rename method from Insert also
228 remove default arg val. Call the public methods of xiter instead
229 of private variables.
231 * changes to several files because of the above.
233 2001-02-14 André Pönitz <poenitz@htwm.de>
235 * math_iter.[Ch]: hide fcode_
237 * math_parinset.C: subsequent changes
240 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
242 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
245 * math_write.C: delete file
246 * math_delim.C: delete file
247 * marh_sqrtinset.h: delete file
249 * move funcs to more localized files, more general cleanup.
250 Constify several local vars. Doxygen changes. Formatting.
252 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
254 * support.C: add some consts
256 * matriz.C: clean up a bit.
257 (matmat): remove the for loop.
259 * several files: changes so that several friends can be removed
261 2001-02-14 André Pönitz <poenitz@htwm.de>
263 * formula.C: reformatting
267 math_xiter.[Ch]: remove unneeded members
269 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
273 * formula.C: remove cruft
275 * array.C (begin): new method
278 2001-02-14 André Pönitz <poenitz@htwm.de>
280 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
282 * math_cursor.C: reformatting
284 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
288 * math_matrixinset.C:
289 * math_macrotemplate.C:
294 * math_decorationinset.C:
296 * math_accentinset.C:
297 * math_sqrtinset.C: include LOstream.h and add using directive.
299 2001-02-14 André Pönitz <poenitz@htwm.de>
301 * math_iter.C: reformatting
303 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
305 * math_spaceinset.C (GetSpace): move here
307 * math_parinset.C: add debug.h, move several prev. inlined methods
310 * math_macrotable.C math_xiter.C support.C: add debug.h
312 * math_macro.h: remove debug.h, remove typedefs
314 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
317 * math_hash.C: change some defines to int const. change use of
318 LM_TC_NORMAL to LM_TC_VAR
320 * math_draw.C: delete file
322 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
323 forward decls. remove LM_TC_NORMAL, move inline methods to
324 support.C (and support.h)
326 * math_cursor.C: move several previous inlined methods here
328 * math_bigopinset.h math_dotsinset.h math_funcinset.h
329 math_parinset.h math_spaceinset.h: add math_defs.h
331 * math_accentinset.h: add support.h and math_defs.h
333 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
335 * formula.h: remove unused func decl: OpenMathInset
337 * formula.C math_inset.h: get rid of math_defs.h
339 * array.h: switch to support.h instead of math_defs.h
341 * array.C: remove one include
343 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
345 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
347 * math_parser.C: include macrotable and macrotemplate
349 * math_macrotemplate.[Ch]: new files
351 * math_macrotable.[Ch]: new files
353 * math_macroarg.[Ch]: new files
355 * math_macro.C: move stuff to the new files.
357 * math_cursor.C: include math_macrotable.h
359 * macro_support.[Ch]: new files
361 * formulamacro.C: add more includes
363 * Makefile.am (libmathed_la_SOURCES): add new files.
365 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
367 * Makefile.am (libmathed_la_SOURCES): remove duplicate
372 * math_parinset.C: add a bunch of "using" directives.
375 * math_decorationinset.h:
377 * math_spaceinset.h: remove more couples of inline.
379 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
381 * math_xiter.h: remove a couple of "inline"
383 * array.C (strange_copy): fix bug (hopefully)
384 * many files: add a lot of new files and move methods to the class
385 files they belong to. Only first attempt at cleanup more will
388 2001-02-12 André Pönitz <poenitz@htwm.de>
390 * math_macro.[hC]: replace MathMacroArgument[] with
391 std::vector<MathMacroArgument>
393 math_inset.C: replace int[] with std::vector<int>
395 * math_symbols.C: replace FL_OBJECTP[] with
396 std::vector<FL_OBJECT*>
398 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
400 * math_defs.h (struct MathedRowSt): make all private variables end
401 with '_', initialize in initializer list instead of in function
404 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
406 * formula.C (LocalDispatch): Change the default action of
407 break-line to create an align* environment instead of eqnarray*.
409 * math_inset.C (Metrics): Correct drawing of the multline
412 2001-02-12 André Pönitz <poenitz@htwm.de>
414 * array.[hC]: replace private variable maxsize_ with call to
416 * math_defs.h: replace int[] by std::vector<int> for
419 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
421 * array.h: made all variables private, removed friend, added new
422 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
423 non const operator[] added setter for last and getter for maxsize.
424 changed name from LyxArrayBase to MathedArray.
425 changed name of some methods to start with lowerchar.
426 moved inline methods to array.C
428 * math_iter.C + several file: changes because of the above.
430 * array.C: new file with the prev inline methods.
432 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
434 * Many files: add support for the align environment from amsmath.
436 2001-02-09 André Pönitz <poenitz@htwm.de>
438 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
439 * several files: subsequent changes
440 * math_iter.h: remove unused prototype
443 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
445 * math_macro.C (draw): add .c_str() to .str() (useful when
446 compiling with lyxstring, but STL sstream).
449 2001-02-08 André Pönitz <poenitz@htwm.de>
451 * several files: get rid of reinterpret_cast.
453 2001-02-04 Allan Rae <rae@lyx.org>
455 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
456 just casting the variable.
458 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
460 * Many files: Add support for multline and alignat environments from
463 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
465 * math_symbols.C (math_insert_greek): Move cursor right when
466 unlocking the math inset.
468 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
470 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
472 * formula.C (LocalDispatch): Before inserting a label in an
473 eqnarray, move the cursor to the top level.
475 * math_iter.C (getLabel): Test if crow == 0.
477 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
479 * math_draw.C (Metrics): Use the correct GetString.