1 2001-03-08 André Pönitz <poenitz@htwm.de>
2 * math_rowst.h: give MathedRowContainer an 'insert' method.
4 * math_xiter.C: new 'container()' method to encapsulated access to
5 the MathParInset's MathedRowContainer
7 * math_rowst.h: proper copy constructor and destructor for
10 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
11 automatically created by the compiler are ok now.
13 2001-03-06 André Pönitz <poenitz@htwm.de>
14 * array.[Ch]: factor out deep_copy,
15 remove third argument from raw_pointer_insert
17 * math_iter.[Ch]: remove unused function Clear()
19 * math_cursor.C: change signature of MathStackXIter:push()
22 * math_rowst.h: introduction of MathRowContainer
23 several files: corresponding changes
25 2001-03-04 André Pönitz <poenitz@htwm.de>
26 * math_macrotemplate.[Ch]:
27 math_macro.C: move update() functionality to the macro
29 * math_rowst.h: split MathedRowSt into "data" and "list"
31 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
33 * math_macrotemplate.C (update): use MathMacro::getArg, and
34 receive a const reference.
35 (getMacroPar): add an Assert
37 * math_macrotemplate.h: make MathMacro a friend, make update take
40 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
41 and store a MathMacroArgument in the vector
42 * math_macro.C: changes because of the above.
45 * math_parser.C (mathed_parse): plug potential leak
47 * math_iter.h: add comment on virtual destructor
49 * math_iter.C (Delete): make c const
51 * math_parinset.C (Metrics): cleanup indent. make one string const.
53 * math_inset.C (size): move out of line
56 * math_macroarg.h: remove default constructor
58 * math_macroarg.C: include Lsstream.h instead of debug.h
59 (MathMacroArgument): remove default constructor
60 (Write): add std:: on ostream arg
62 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
65 * formula.C: make DEBUG into lyxerr
67 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
69 * math_macrotemplate.h: make noncopyable, remove last arg to
70 constructor, remove flags_ add edit_
71 (flags): remove method
73 * math_macrotemplate.C (setArgument): delete method
74 (update): make idx const
75 (Metrics): use edit_, remove flags_
76 (draw): use edit_, remove flags_
77 (setEditMode): set edit_, remove flags_
78 (MathMacroTemplate): initialize edit_, remove flags_
80 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
81 shared_ptr, let constructor take a shared_ptr
83 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
85 (draw): remove unneded update, remove removed update of x,y
86 (GetXY): call tmplates GetMacroXY directly
87 (SetFocus): call Metrics() instead of update()
88 (Write): remove support for math macro environments, simplifications.
90 * math_macrotable.h: make class noncopyable, change getMacro to
91 createMacro, change vector to map store a
92 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
94 * math_macrotable.C: add pragma
95 (createMacro): change name from getMacro, use shared_ptr
96 (getTemplate): Use map lookup to get macro, return shared_ptr
97 (addTemplate): assert that m containse a valid pointer, use map[]
99 (builtinMacros): by using shared_ptr fix the mem leak, remove
100 commented out unsupported macros
102 * math_cursor.C: changes because of the above
103 * math_parser.C: changes because of the abobe
105 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
106 default arg on constructor.
107 * formulamacro.C: changes because of the above
109 * math_parinset.h: add pragma
110 (SetAlign): move inline out of class def
114 (setArgumentIdx): ditto
115 (setNextArgIdx): ditto
116 (getArgumentIdx): ditto
117 (getMaxArgumentIdx): ditto
122 * math_parinset.C: add pragma
123 (Write): change the else clause, lessen depth
125 * math_macroarg.h: small whitespace change
127 * array.C: include support/LOstream.h add using ostream and endl
129 * array.h (dump): add std:: on ostream
131 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
133 * math_macrotemplate.h: remove default arg on update
135 * math_macrotemplate.C (update): add assert and remove noop case.
137 * formulamacro.C (Read): add comment.
138 (ascent): remove noop call to MathMacroTemplate
143 * math_parser.C (mathed_parse): fix another potential problem by
144 passing a freestanding mathedarray.
146 * math_root.C (GetData): add const version
148 * math_parinset.C (~MathParInset): delete
149 (GetData): add const version
151 * math_matrixinset.C (MathMatrixInset): delete pointer version,
152 make it a proper copy constructor instead
154 (MathMatrixInset): remvoe default val for m and n
156 * math_macro.C (GetData): add const version
158 * math_fracinset.C (GetData): add const version
160 * math_cursor.C (SelCopy): make p1 and p2 const
161 (SelCut): make p1 and p2 const
163 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
164 (LyxCode): move inline out of class
168 * array.[Ch] (dump): method added for debugging purposes
170 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
171 mathed_parse when reading a matrix.
173 * math_spaceinset.[Ch]: add pragma, make variables private add
174 '_', change order of method definitions.
176 * math_root.h (~MathRootInset): delete
177 Change uroot_ to be a real object instead of a pointer
178 * math_root.C: changes because of the above
180 * math_macro.C (MathMacro(MathMacro*)): delete constructor
181 (MathMacro(MathMacro const &)): new copy constructor
183 * math_inset.h: delete constructor taking a pointer to MathedInset
184 (size, incSize): move inline method
186 * math_funcinset.h: add pragma, remove class vars ln and fname,
187 change protected to private, add '_' to priv vars.
188 (~MathFuncInset): remove
190 * math_fracinset.h: make MathParInset den_ a real object and not a
193 * math_fracinset.C (MathFracInset): clean up, move initalization
194 to initialization list
195 (~MathFracInset): remove
198 * math_draw.C: delete file
200 * math_dotsinset.[Ch]: add pragma
202 * math_bigopinset.h: make protected variables private add '_' to vars.
204 * math_bigopinset.C: move methods to follow class definition order
206 * math_accentinset.h (getAccentCode): move inline here
208 * math_accentinset.C (MathAccentInset): cleanup
211 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
213 * math_inset.[Ch] (MathedInset): remove method
215 * Makefile.am (libmathed_la_SOURCES): correct typo
217 * math_parinset.C (draw): move MathedXiter data(this) up. and
218 remove it two other places.
220 * math_macro.C (MathMacro): use array directly, don't use
221 setArgumentIdx and GetData
223 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
225 * math_macroarg.C (MathMacroArgument): delete
226 * math_macro.C (~MathMacro): delete
227 * math_macrotemplate.C (~MathMacroTemplate): delete
229 * math_decorationinset.[Ch]: add pragma
230 * math_deliminset.[Ch]: likewise
231 * math_fracinset.[Ch]: likewise
232 * math_macroarg.[Ch]: likewise
233 * math_macrotemplate.[Ch]: likewise
234 * math_matrixinset.[Ch]: likewise
236 * formulamacro.C (Read): set contents of tmacro_ to ar.
238 * formulamacro.h: add '_' to private variables.
239 * formalamacro.C: changes because of this.
241 2001-02-23 Juergen Vigna <jug@sad.it>
243 * formula.C (LocalDispatch): changed action to be a kb_action (as it
244 should be) and not an int.
246 * formulamacro.C (LocalDispatch): ditto.
248 2001-02-14 André Pönitz <poenitz@htwm.de>
250 * math_parinset.[Ch]: make array a real MathArray, not just a
253 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
255 * several files: subsequent changes
257 * math_cursor.C: make selarray a proper MathArray
259 * several files: Change "MathedArray *" to "MathedArray &"
262 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
264 * array.C (MathedArray): Fix compilation problem.
266 2001-02-14 André Pönitz <poenitz@htwm.de>
268 * array.[Ch]: "deep" copy constructor and assignment operator for
271 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
273 * math_iter.[Ch]: remove SetData
274 several files: subsequent changes
276 2001-02-14 André Pönitz <poenitz@htwm.de>
278 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
281 * math_iter.C: default-construct and resize array
283 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
285 * math_xiter.h: move ipush and ipop to public, add _ on private
286 variables, move protected var to private, remove friend.
288 * math_cursor.C (insertInset): rename method from Insert also
289 remove default arg val. Call the public methods of xiter instead
290 of private variables.
292 * changes to several files because of the above.
294 2001-02-14 André Pönitz <poenitz@htwm.de>
296 * math_iter.[Ch]: hide fcode_
298 * math_parinset.C: subsequent changes
301 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
303 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
306 * math_write.C: delete file
307 * math_delim.C: delete file
308 * marh_sqrtinset.h: delete file
310 * move funcs to more localized files, more general cleanup.
311 Constify several local vars. Doxygen changes. Formatting.
313 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
315 * support.C: add some consts
317 * matriz.C: clean up a bit.
318 (matmat): remove the for loop.
320 * several files: changes so that several friends can be removed
322 2001-02-14 André Pönitz <poenitz@htwm.de>
324 * formula.C: reformatting
328 math_xiter.[Ch]: remove unneeded members
330 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
334 * formula.C: remove cruft
336 * array.C (begin): new method
339 2001-02-14 André Pönitz <poenitz@htwm.de>
341 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
343 * math_cursor.C: reformatting
345 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
349 * math_matrixinset.C:
350 * math_macrotemplate.C:
355 * math_decorationinset.C:
357 * math_accentinset.C:
358 * math_sqrtinset.C: include LOstream.h and add using directive.
360 2001-02-14 André Pönitz <poenitz@htwm.de>
362 * math_iter.C: reformatting
364 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
366 * math_spaceinset.C (GetSpace): move here
368 * math_parinset.C: add debug.h, move several prev. inlined methods
371 * math_macrotable.C math_xiter.C support.C: add debug.h
373 * math_macro.h: remove debug.h, remove typedefs
375 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
378 * math_hash.C: change some defines to int const. change use of
379 LM_TC_NORMAL to LM_TC_VAR
381 * math_draw.C: delete file
383 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
384 forward decls. remove LM_TC_NORMAL, move inline methods to
385 support.C (and support.h)
387 * math_cursor.C: move several previous inlined methods here
389 * math_bigopinset.h math_dotsinset.h math_funcinset.h
390 math_parinset.h math_spaceinset.h: add math_defs.h
392 * math_accentinset.h: add support.h and math_defs.h
394 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
396 * formula.h: remove unused func decl: OpenMathInset
398 * formula.C math_inset.h: get rid of math_defs.h
400 * array.h: switch to support.h instead of math_defs.h
402 * array.C: remove one include
404 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
406 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
408 * math_parser.C: include macrotable and macrotemplate
410 * math_macrotemplate.[Ch]: new files
412 * math_macrotable.[Ch]: new files
414 * math_macroarg.[Ch]: new files
416 * math_macro.C: move stuff to the new files.
418 * math_cursor.C: include math_macrotable.h
420 * macro_support.[Ch]: new files
422 * formulamacro.C: add more includes
424 * Makefile.am (libmathed_la_SOURCES): add new files.
426 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
428 * Makefile.am (libmathed_la_SOURCES): remove duplicate
433 * math_parinset.C: add a bunch of "using" directives.
436 * math_decorationinset.h:
438 * math_spaceinset.h: remove more couples of inline.
440 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
442 * math_xiter.h: remove a couple of "inline"
444 * array.C (strange_copy): fix bug (hopefully)
445 * many files: add a lot of new files and move methods to the class
446 files they belong to. Only first attempt at cleanup more will
449 2001-02-12 André Pönitz <poenitz@htwm.de>
451 * math_macro.[hC]: replace MathMacroArgument[] with
452 std::vector<MathMacroArgument>
454 math_inset.C: replace int[] with std::vector<int>
456 * math_symbols.C: replace FL_OBJECTP[] with
457 std::vector<FL_OBJECT*>
459 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
461 * math_defs.h (struct MathedRowSt): make all private variables end
462 with '_', initialize in initializer list instead of in function
465 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
467 * formula.C (LocalDispatch): Change the default action of
468 break-line to create an align* environment instead of eqnarray*.
470 * math_inset.C (Metrics): Correct drawing of the multline
473 2001-02-12 André Pönitz <poenitz@htwm.de>
475 * array.[hC]: replace private variable maxsize_ with call to
477 * math_defs.h: replace int[] by std::vector<int> for
480 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
482 * array.h: made all variables private, removed friend, added new
483 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
484 non const operator[] added setter for last and getter for maxsize.
485 changed name from LyxArrayBase to MathedArray.
486 changed name of some methods to start with lowerchar.
487 moved inline methods to array.C
489 * math_iter.C + several file: changes because of the above.
491 * array.C: new file with the prev inline methods.
493 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
495 * Many files: add support for the align environment from amsmath.
497 2001-02-09 André Pönitz <poenitz@htwm.de>
499 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
500 * several files: subsequent changes
501 * math_iter.h: remove unused prototype
504 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
506 * math_macro.C (draw): add .c_str() to .str() (useful when
507 compiling with lyxstring, but STL sstream).
510 2001-02-08 André Pönitz <poenitz@htwm.de>
512 * several files: get rid of reinterpret_cast.
514 2001-02-04 Allan Rae <rae@lyx.org>
516 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
517 just casting the variable.
519 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
521 * Many files: Add support for multline and alignat environments from
524 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
526 * math_symbols.C (math_insert_greek): Move cursor right when
527 unlocking the math inset.
529 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
531 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
533 * formula.C (LocalDispatch): Before inserting a label in an
534 eqnarray, move the cursor to the top level.
536 * math_iter.C (getLabel): Test if crow == 0.
538 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
540 * math_draw.C (Metrics): Use the correct GetString.