1 2001-03-06 André Pönitz <poenitz@htwm.de>
2 * array.[Ch]: factor out deep_copy,
3 remove third argument from raw_pointer_insert
5 * math_iter.[Ch]: remove unused function Clear()
7 * math_cursor.C: change signature of MathStackXIter:push()
10 * math_rowst.h: introduction of MathRowContainer
11 several files: corresponding changes
13 2001-03-04 André Pönitz <poenitz@htwm.de>
14 * math_macrotemplate.[Ch]:
15 math_macro.C: move update() functionality to the macro
17 * math_rowst.h: split MathedRowSt into "data" and "list"
19 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
21 * math_macrotemplate.C (update): use MathMacro::getArg, and
22 receive a const reference.
23 (getMacroPar): add an Assert
25 * math_macrotemplate.h: make MathMacro a friend, make update take
28 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
29 and store a MathMacroArgument in the vector
30 * math_macro.C: changes because of the above.
33 * math_parser.C (mathed_parse): plug potential leak
35 * math_iter.h: add comment on virtual destructor
37 * math_iter.C (Delete): make c const
39 * math_parinset.C (Metrics): cleanup indent. make one string const.
41 * math_inset.C (size): move out of line
44 * math_macroarg.h: remove default constructor
46 * math_macroarg.C: include Lsstream.h instead of debug.h
47 (MathMacroArgument): remove default constructor
48 (Write): add std:: on ostream arg
50 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
53 * formula.C: make DEBUG into lyxerr
55 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
57 * math_macrotemplate.h: make noncopyable, remove last arg to
58 constructor, remove flags_ add edit_
59 (flags): remove method
61 * math_macrotemplate.C (setArgument): delete method
62 (update): make idx const
63 (Metrics): use edit_, remove flags_
64 (draw): use edit_, remove flags_
65 (setEditMode): set edit_, remove flags_
66 (MathMacroTemplate): initialize edit_, remove flags_
68 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
69 shared_ptr, let constructor take a shared_ptr
71 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
73 (draw): remove unneded update, remove removed update of x,y
74 (GetXY): call tmplates GetMacroXY directly
75 (SetFocus): call Metrics() instead of update()
76 (Write): remove support for math macro environments, simplifications.
78 * math_macrotable.h: make class noncopyable, change getMacro to
79 createMacro, change vector to map store a
80 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
82 * math_macrotable.C: add pragma
83 (createMacro): change name from getMacro, use shared_ptr
84 (getTemplate): Use map lookup to get macro, return shared_ptr
85 (addTemplate): assert that m containse a valid pointer, use map[]
87 (builtinMacros): by using shared_ptr fix the mem leak, remove
88 commented out unsupported macros
90 * math_cursor.C: changes because of the above
91 * math_parser.C: changes because of the abobe
93 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
94 default arg on constructor.
95 * formulamacro.C: changes because of the above
97 * math_parinset.h: add pragma
98 (SetAlign): move inline out of class def
102 (setArgumentIdx): ditto
103 (setNextArgIdx): ditto
104 (getArgumentIdx): ditto
105 (getMaxArgumentIdx): ditto
110 * math_parinset.C: add pragma
111 (Write): change the else clause, lessen depth
113 * math_macroarg.h: small whitespace change
115 * array.C: include support/LOstream.h add using ostream and endl
117 * array.h (dump): add std:: on ostream
119 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
121 * math_macrotemplate.h: remove default arg on update
123 * math_macrotemplate.C (update): add assert and remove noop case.
125 * formulamacro.C (Read): add comment.
126 (ascent): remove noop call to MathMacroTemplate
131 * math_parser.C (mathed_parse): fix another potential problem by
132 passing a freestanding mathedarray.
134 * math_root.C (GetData): add const version
136 * math_parinset.C (~MathParInset): delete
137 (GetData): add const version
139 * math_matrixinset.C (MathMatrixInset): delete pointer version,
140 make it a proper copy constructor instead
142 (MathMatrixInset): remvoe default val for m and n
144 * math_macro.C (GetData): add const version
146 * math_fracinset.C (GetData): add const version
148 * math_cursor.C (SelCopy): make p1 and p2 const
149 (SelCut): make p1 and p2 const
151 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
152 (LyxCode): move inline out of class
156 * array.[Ch] (dump): method added for debugging purposes
158 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
159 mathed_parse when reading a matrix.
161 * math_spaceinset.[Ch]: add pragma, make variables private add
162 '_', change order of method definitions.
164 * math_root.h (~MathRootInset): delete
165 Change uroot_ to be a real object instead of a pointer
166 * math_root.C: changes because of the above
168 * math_macro.C (MathMacro(MathMacro*)): delete constructor
169 (MathMacro(MathMacro const &)): new copy constructor
171 * math_inset.h: delete constructor taking a pointer to MathedInset
172 (size, incSize): move inline method
174 * math_funcinset.h: add pragma, remove class vars ln and fname,
175 change protected to private, add '_' to priv vars.
176 (~MathFuncInset): remove
178 * math_fracinset.h: make MathParInset den_ a real object and not a
181 * math_fracinset.C (MathFracInset): clean up, move initalization
182 to initialization list
183 (~MathFracInset): remove
186 * math_draw.C: delete file
188 * math_dotsinset.[Ch]: add pragma
190 * math_bigopinset.h: make protected variables private add '_' to vars.
192 * math_bigopinset.C: move methods to follow class definition order
194 * math_accentinset.h (getAccentCode): move inline here
196 * math_accentinset.C (MathAccentInset): cleanup
199 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
201 * math_inset.[Ch] (MathedInset): remove method
203 * Makefile.am (libmathed_la_SOURCES): correct typo
205 * math_parinset.C (draw): move MathedXiter data(this) up. and
206 remove it two other places.
208 * math_macro.C (MathMacro): use array directly, don't use
209 setArgumentIdx and GetData
211 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
213 * math_macroarg.C (MathMacroArgument): delete
214 * math_macro.C (~MathMacro): delete
215 * math_macrotemplate.C (~MathMacroTemplate): delete
217 * math_decorationinset.[Ch]: add pragma
218 * math_deliminset.[Ch]: likewise
219 * math_fracinset.[Ch]: likewise
220 * math_macroarg.[Ch]: likewise
221 * math_macrotemplate.[Ch]: likewise
222 * math_matrixinset.[Ch]: likewise
224 * formulamacro.C (Read): set contents of tmacro_ to ar.
226 * formulamacro.h: add '_' to private variables.
227 * formalamacro.C: changes because of this.
229 2001-02-23 Juergen Vigna <jug@sad.it>
231 * formula.C (LocalDispatch): changed action to be a kb_action (as it
232 should be) and not an int.
234 * formulamacro.C (LocalDispatch): ditto.
236 2001-02-14 André Pönitz <poenitz@htwm.de>
238 * math_parinset.[Ch]: make array a real MathArray, not just a
241 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
243 * several files: subsequent changes
245 * math_cursor.C: make selarray a proper MathArray
247 * several files: Change "MathedArray *" to "MathedArray &"
250 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
252 * array.C (MathedArray): Fix compilation problem.
254 2001-02-14 André Pönitz <poenitz@htwm.de>
256 * array.[Ch]: "deep" copy constructor and assignment operator for
259 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
261 * math_iter.[Ch]: remove SetData
262 several files: subsequent changes
264 2001-02-14 André Pönitz <poenitz@htwm.de>
266 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
269 * math_iter.C: default-construct and resize array
271 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
273 * math_xiter.h: move ipush and ipop to public, add _ on private
274 variables, move protected var to private, remove friend.
276 * math_cursor.C (insertInset): rename method from Insert also
277 remove default arg val. Call the public methods of xiter instead
278 of private variables.
280 * changes to several files because of the above.
282 2001-02-14 André Pönitz <poenitz@htwm.de>
284 * math_iter.[Ch]: hide fcode_
286 * math_parinset.C: subsequent changes
289 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
291 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
294 * math_write.C: delete file
295 * math_delim.C: delete file
296 * marh_sqrtinset.h: delete file
298 * move funcs to more localized files, more general cleanup.
299 Constify several local vars. Doxygen changes. Formatting.
301 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
303 * support.C: add some consts
305 * matriz.C: clean up a bit.
306 (matmat): remove the for loop.
308 * several files: changes so that several friends can be removed
310 2001-02-14 André Pönitz <poenitz@htwm.de>
312 * formula.C: reformatting
316 math_xiter.[Ch]: remove unneeded members
318 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
322 * formula.C: remove cruft
324 * array.C (begin): new method
327 2001-02-14 André Pönitz <poenitz@htwm.de>
329 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
331 * math_cursor.C: reformatting
333 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
337 * math_matrixinset.C:
338 * math_macrotemplate.C:
343 * math_decorationinset.C:
345 * math_accentinset.C:
346 * math_sqrtinset.C: include LOstream.h and add using directive.
348 2001-02-14 André Pönitz <poenitz@htwm.de>
350 * math_iter.C: reformatting
352 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
354 * math_spaceinset.C (GetSpace): move here
356 * math_parinset.C: add debug.h, move several prev. inlined methods
359 * math_macrotable.C math_xiter.C support.C: add debug.h
361 * math_macro.h: remove debug.h, remove typedefs
363 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
366 * math_hash.C: change some defines to int const. change use of
367 LM_TC_NORMAL to LM_TC_VAR
369 * math_draw.C: delete file
371 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
372 forward decls. remove LM_TC_NORMAL, move inline methods to
373 support.C (and support.h)
375 * math_cursor.C: move several previous inlined methods here
377 * math_bigopinset.h math_dotsinset.h math_funcinset.h
378 math_parinset.h math_spaceinset.h: add math_defs.h
380 * math_accentinset.h: add support.h and math_defs.h
382 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
384 * formula.h: remove unused func decl: OpenMathInset
386 * formula.C math_inset.h: get rid of math_defs.h
388 * array.h: switch to support.h instead of math_defs.h
390 * array.C: remove one include
392 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
394 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
396 * math_parser.C: include macrotable and macrotemplate
398 * math_macrotemplate.[Ch]: new files
400 * math_macrotable.[Ch]: new files
402 * math_macroarg.[Ch]: new files
404 * math_macro.C: move stuff to the new files.
406 * math_cursor.C: include math_macrotable.h
408 * macro_support.[Ch]: new files
410 * formulamacro.C: add more includes
412 * Makefile.am (libmathed_la_SOURCES): add new files.
414 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
416 * Makefile.am (libmathed_la_SOURCES): remove duplicate
421 * math_parinset.C: add a bunch of "using" directives.
424 * math_decorationinset.h:
426 * math_spaceinset.h: remove more couples of inline.
428 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
430 * math_xiter.h: remove a couple of "inline"
432 * array.C (strange_copy): fix bug (hopefully)
433 * many files: add a lot of new files and move methods to the class
434 files they belong to. Only first attempt at cleanup more will
437 2001-02-12 André Pönitz <poenitz@htwm.de>
439 * math_macro.[hC]: replace MathMacroArgument[] with
440 std::vector<MathMacroArgument>
442 math_inset.C: replace int[] with std::vector<int>
444 * math_symbols.C: replace FL_OBJECTP[] with
445 std::vector<FL_OBJECT*>
447 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
449 * math_defs.h (struct MathedRowSt): make all private variables end
450 with '_', initialize in initializer list instead of in function
453 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
455 * formula.C (LocalDispatch): Change the default action of
456 break-line to create an align* environment instead of eqnarray*.
458 * math_inset.C (Metrics): Correct drawing of the multline
461 2001-02-12 André Pönitz <poenitz@htwm.de>
463 * array.[hC]: replace private variable maxsize_ with call to
465 * math_defs.h: replace int[] by std::vector<int> for
468 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
470 * array.h: made all variables private, removed friend, added new
471 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
472 non const operator[] added setter for last and getter for maxsize.
473 changed name from LyxArrayBase to MathedArray.
474 changed name of some methods to start with lowerchar.
475 moved inline methods to array.C
477 * math_iter.C + several file: changes because of the above.
479 * array.C: new file with the prev inline methods.
481 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
483 * Many files: add support for the align environment from amsmath.
485 2001-02-09 André Pönitz <poenitz@htwm.de>
487 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
488 * several files: subsequent changes
489 * math_iter.h: remove unused prototype
492 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
494 * math_macro.C (draw): add .c_str() to .str() (useful when
495 compiling with lyxstring, but STL sstream).
498 2001-02-08 André Pönitz <poenitz@htwm.de>
500 * several files: get rid of reinterpret_cast.
502 2001-02-04 Allan Rae <rae@lyx.org>
504 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
505 just casting the variable.
507 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
509 * Many files: Add support for multline and alignat environments from
512 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
514 * math_symbols.C (math_insert_greek): Move cursor right when
515 unlocking the math inset.
517 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
519 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
521 * formula.C (LocalDispatch): Before inserting a label in an
522 eqnarray, move the cursor to the top level.
524 * math_iter.C (getLabel): Test if crow == 0.
526 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
528 * math_draw.C (Metrics): Use the correct GetString.