1 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
3 * formula.C (draw): adjust for cursor_visible
4 (ToggleInsetCursor): adjust for cursor_visible and constify asc
6 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
7 (HideInsetCursor): adjust for cursor_visible
8 (LocalDispatch): constify default_label and res
10 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
12 * math_rowst.C: add missing #include <config.h>.
14 2001-03-16 André Pönitz <poenitz@htwm.de>
18 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
20 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
28 * math_symbols.C: maths panel moved to GUII
30 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
32 * math_cursor.C: use lyxerr instead of cerr.
34 2001-03-15 André Pönitz <poenitz@htwm.de>
36 * math_cursor.C: fix bug (cursor was leaving two insets at a time
39 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
41 * math_macrotable.h: noncopyable is in namespace boost
42 * math_macrotemplate.h: ditto
44 * math_rowst.h: make MathedRowContainer::iterator public.
46 2001-03-15 André Pönitz <poenitz@htwm.de>
48 * math_parser.C: read '\nonumber' again (was broken)
50 * math_rowst.C: new file
52 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
54 * math_cursor.C: added using directive.
56 2001-03-15 André Pönitz <poenitz@htwm.de>
58 * math_rowst.h: Finally remove MathedRowSt
61 math_xiter.C: changed accordingly
63 2001-03-12 André Pönitz <poenitz@htwm.de>
65 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
66 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
68 2001-03-10 André Pönitz <poenitz@htwm.de>
71 math_matrixinset.C: move adjustVerticalSt to the only place where
72 it is used. Fix a small bug where the cached row structure and the
73 actual data get out of sync after the deletion of whole rows
75 2001-03-09 André Pönitz <poenitz@htwm.de>
77 * math_cursor.C: use std::vector<> in MathStackXIter
78 change selstk from a pointer to the "real thing"
80 * math_rowst.h: new MathedRowContainer::erase method
82 * math_xiter.C: use MathedRowContainer::erase
84 * math_parser.C: use MathedRowContainer::insert_after
86 2001-03-08 André Pönitz <poenitz@htwm.de>
88 * math_rowst.h: give MathedRowContainer an 'insert' method.
90 * math_xiter.C: new 'container()' method to encapsulated access to
91 the MathParInset's MathedRowContainer
93 * math_rowst.h: proper copy constructor and destructor for
96 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
97 automatically created by the compiler are ok now.
99 2001-03-06 André Pönitz <poenitz@htwm.de>
101 * array.[Ch]: factor out deep_copy,
102 remove third argument from raw_pointer_insert
104 * math_iter.[Ch]: remove unused function Clear()
106 * math_cursor.C: change signature of MathStackXIter:push()
109 * math_rowst.h: introduction of MathRowContainer
110 several files: corresponding changes
112 2001-03-04 André Pönitz <poenitz@htwm.de>
114 * math_macrotemplate.[Ch]:
115 math_macro.C: move update() functionality to the macro
117 * math_rowst.h: split MathedRowSt into "data" and "list"
119 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
121 * math_macrotemplate.C (update): use MathMacro::getArg, and
122 receive a const reference.
123 (getMacroPar): add an Assert
125 * math_macrotemplate.h: make MathMacro a friend, make update take
128 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
129 and store a MathMacroArgument in the vector
130 * math_macro.C: changes because of the above.
133 * math_parser.C (mathed_parse): plug potential leak
135 * math_iter.h: add comment on virtual destructor
137 * math_iter.C (Delete): make c const
139 * math_parinset.C (Metrics): cleanup indent. make one string const.
141 * math_inset.C (size): move out of line
144 * math_macroarg.h: remove default constructor
146 * math_macroarg.C: include Lsstream.h instead of debug.h
147 (MathMacroArgument): remove default constructor
148 (Write): add std:: on ostream arg
150 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
153 * formula.C: make DEBUG into lyxerr
155 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
157 * math_macrotemplate.h: make noncopyable, remove last arg to
158 constructor, remove flags_ add edit_
159 (flags): remove method
161 * math_macrotemplate.C (setArgument): delete method
162 (update): make idx const
163 (Metrics): use edit_, remove flags_
164 (draw): use edit_, remove flags_
165 (setEditMode): set edit_, remove flags_
166 (MathMacroTemplate): initialize edit_, remove flags_
168 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
169 shared_ptr, let constructor take a shared_ptr
171 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
173 (draw): remove unneded update, remove removed update of x,y
174 (GetXY): call tmplates GetMacroXY directly
175 (SetFocus): call Metrics() instead of update()
176 (Write): remove support for math macro environments, simplifications.
178 * math_macrotable.h: make class noncopyable, change getMacro to
179 createMacro, change vector to map store a
180 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
182 * math_macrotable.C: add pragma
183 (createMacro): change name from getMacro, use shared_ptr
184 (getTemplate): Use map lookup to get macro, return shared_ptr
185 (addTemplate): assert that m containse a valid pointer, use map[]
187 (builtinMacros): by using shared_ptr fix the mem leak, remove
188 commented out unsupported macros
190 * math_cursor.C: changes because of the above
191 * math_parser.C: changes because of the abobe
193 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
194 default arg on constructor.
195 * formulamacro.C: changes because of the above
197 * math_parinset.h: add pragma
198 (SetAlign): move inline out of class def
202 (setArgumentIdx): ditto
203 (setNextArgIdx): ditto
204 (getArgumentIdx): ditto
205 (getMaxArgumentIdx): ditto
210 * math_parinset.C: add pragma
211 (Write): change the else clause, lessen depth
213 * math_macroarg.h: small whitespace change
215 * array.C: include support/LOstream.h add using ostream and endl
217 * array.h (dump): add std:: on ostream
219 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
221 * math_macrotemplate.h: remove default arg on update
223 * math_macrotemplate.C (update): add assert and remove noop case.
225 * formulamacro.C (Read): add comment.
226 (ascent): remove noop call to MathMacroTemplate
231 * math_parser.C (mathed_parse): fix another potential problem by
232 passing a freestanding mathedarray.
234 * math_root.C (GetData): add const version
236 * math_parinset.C (~MathParInset): delete
237 (GetData): add const version
239 * math_matrixinset.C (MathMatrixInset): delete pointer version,
240 make it a proper copy constructor instead
242 (MathMatrixInset): remvoe default val for m and n
244 * math_macro.C (GetData): add const version
246 * math_fracinset.C (GetData): add const version
248 * math_cursor.C (SelCopy): make p1 and p2 const
249 (SelCut): make p1 and p2 const
251 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
252 (LyxCode): move inline out of class
256 * array.[Ch] (dump): method added for debugging purposes
258 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
259 mathed_parse when reading a matrix.
261 * math_spaceinset.[Ch]: add pragma, make variables private add
262 '_', change order of method definitions.
264 * math_root.h (~MathRootInset): delete
265 Change uroot_ to be a real object instead of a pointer
266 * math_root.C: changes because of the above
268 * math_macro.C (MathMacro(MathMacro*)): delete constructor
269 (MathMacro(MathMacro const &)): new copy constructor
271 * math_inset.h: delete constructor taking a pointer to MathedInset
272 (size, incSize): move inline method
274 * math_funcinset.h: add pragma, remove class vars ln and fname,
275 change protected to private, add '_' to priv vars.
276 (~MathFuncInset): remove
278 * math_fracinset.h: make MathParInset den_ a real object and not a
281 * math_fracinset.C (MathFracInset): clean up, move initalization
282 to initialization list
283 (~MathFracInset): remove
286 * math_draw.C: delete file
288 * math_dotsinset.[Ch]: add pragma
290 * math_bigopinset.h: make protected variables private add '_' to vars.
292 * math_bigopinset.C: move methods to follow class definition order
294 * math_accentinset.h (getAccentCode): move inline here
296 * math_accentinset.C (MathAccentInset): cleanup
299 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
301 * math_inset.[Ch] (MathedInset): remove method
303 * Makefile.am (libmathed_la_SOURCES): correct typo
305 * math_parinset.C (draw): move MathedXiter data(this) up. and
306 remove it two other places.
308 * math_macro.C (MathMacro): use array directly, don't use
309 setArgumentIdx and GetData
311 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
313 * math_macroarg.C (MathMacroArgument): delete
314 * math_macro.C (~MathMacro): delete
315 * math_macrotemplate.C (~MathMacroTemplate): delete
317 * math_decorationinset.[Ch]: add pragma
318 * math_deliminset.[Ch]: likewise
319 * math_fracinset.[Ch]: likewise
320 * math_macroarg.[Ch]: likewise
321 * math_macrotemplate.[Ch]: likewise
322 * math_matrixinset.[Ch]: likewise
324 * formulamacro.C (Read): set contents of tmacro_ to ar.
326 * formulamacro.h: add '_' to private variables.
327 * formalamacro.C: changes because of this.
329 2001-02-23 Juergen Vigna <jug@sad.it>
331 * formula.C (LocalDispatch): changed action to be a kb_action (as it
332 should be) and not an int.
334 * formulamacro.C (LocalDispatch): ditto.
336 2001-02-14 André Pönitz <poenitz@htwm.de>
338 * math_parinset.[Ch]: make array a real MathArray, not just a
341 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
343 * several files: subsequent changes
345 * math_cursor.C: make selarray a proper MathArray
347 * several files: Change "MathedArray *" to "MathedArray &"
350 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
352 * array.C (MathedArray): Fix compilation problem.
354 2001-02-14 André Pönitz <poenitz@htwm.de>
356 * array.[Ch]: "deep" copy constructor and assignment operator for
359 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
361 * math_iter.[Ch]: remove SetData
362 several files: subsequent changes
364 2001-02-14 André Pönitz <poenitz@htwm.de>
366 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
369 * math_iter.C: default-construct and resize array
371 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
373 * math_xiter.h: move ipush and ipop to public, add _ on private
374 variables, move protected var to private, remove friend.
376 * math_cursor.C (insertInset): rename method from Insert also
377 remove default arg val. Call the public methods of xiter instead
378 of private variables.
380 * changes to several files because of the above.
382 2001-02-14 André Pönitz <poenitz@htwm.de>
384 * math_iter.[Ch]: hide fcode_
386 * math_parinset.C: subsequent changes
389 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
391 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
394 * math_write.C: delete file
395 * math_delim.C: delete file
396 * marh_sqrtinset.h: delete file
398 * move funcs to more localized files, more general cleanup.
399 Constify several local vars. Doxygen changes. Formatting.
401 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
403 * support.C: add some consts
405 * matriz.C: clean up a bit.
406 (matmat): remove the for loop.
408 * several files: changes so that several friends can be removed
410 2001-02-14 André Pönitz <poenitz@htwm.de>
412 * formula.C: reformatting
416 math_xiter.[Ch]: remove unneeded members
418 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
422 * formula.C: remove cruft
424 * array.C (begin): new method
427 2001-02-14 André Pönitz <poenitz@htwm.de>
429 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
431 * math_cursor.C: reformatting
433 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
437 * math_matrixinset.C:
438 * math_macrotemplate.C:
443 * math_decorationinset.C:
445 * math_accentinset.C:
446 * math_sqrtinset.C: include LOstream.h and add using directive.
448 2001-02-14 André Pönitz <poenitz@htwm.de>
450 * math_iter.C: reformatting
452 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
454 * math_spaceinset.C (GetSpace): move here
456 * math_parinset.C: add debug.h, move several prev. inlined methods
459 * math_macrotable.C math_xiter.C support.C: add debug.h
461 * math_macro.h: remove debug.h, remove typedefs
463 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
466 * math_hash.C: change some defines to int const. change use of
467 LM_TC_NORMAL to LM_TC_VAR
469 * math_draw.C: delete file
471 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
472 forward decls. remove LM_TC_NORMAL, move inline methods to
473 support.C (and support.h)
475 * math_cursor.C: move several previous inlined methods here
477 * math_bigopinset.h math_dotsinset.h math_funcinset.h
478 math_parinset.h math_spaceinset.h: add math_defs.h
480 * math_accentinset.h: add support.h and math_defs.h
482 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
484 * formula.h: remove unused func decl: OpenMathInset
486 * formula.C math_inset.h: get rid of math_defs.h
488 * array.h: switch to support.h instead of math_defs.h
490 * array.C: remove one include
492 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
494 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
496 * math_parser.C: include macrotable and macrotemplate
498 * math_macrotemplate.[Ch]: new files
500 * math_macrotable.[Ch]: new files
502 * math_macroarg.[Ch]: new files
504 * math_macro.C: move stuff to the new files.
506 * math_cursor.C: include math_macrotable.h
508 * macro_support.[Ch]: new files
510 * formulamacro.C: add more includes
512 * Makefile.am (libmathed_la_SOURCES): add new files.
514 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
516 * Makefile.am (libmathed_la_SOURCES): remove duplicate
521 * math_parinset.C: add a bunch of "using" directives.
524 * math_decorationinset.h:
526 * math_spaceinset.h: remove more couples of inline.
528 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
530 * math_xiter.h: remove a couple of "inline"
532 * array.C (strange_copy): fix bug (hopefully)
533 * many files: add a lot of new files and move methods to the class
534 files they belong to. Only first attempt at cleanup more will
537 2001-02-12 André Pönitz <poenitz@htwm.de>
539 * math_macro.[hC]: replace MathMacroArgument[] with
540 std::vector<MathMacroArgument>
542 math_inset.C: replace int[] with std::vector<int>
544 * math_symbols.C: replace FL_OBJECTP[] with
545 std::vector<FL_OBJECT*>
547 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
549 * math_defs.h (struct MathedRowSt): make all private variables end
550 with '_', initialize in initializer list instead of in function
553 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
555 * formula.C (LocalDispatch): Change the default action of
556 break-line to create an align* environment instead of eqnarray*.
558 * math_inset.C (Metrics): Correct drawing of the multline
561 2001-02-12 André Pönitz <poenitz@htwm.de>
563 * array.[hC]: replace private variable maxsize_ with call to
565 * math_defs.h: replace int[] by std::vector<int> for
568 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
570 * array.h: made all variables private, removed friend, added new
571 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
572 non const operator[] added setter for last and getter for maxsize.
573 changed name from LyxArrayBase to MathedArray.
574 changed name of some methods to start with lowerchar.
575 moved inline methods to array.C
577 * math_iter.C + several file: changes because of the above.
579 * array.C: new file with the prev inline methods.
581 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
583 * Many files: add support for the align environment from amsmath.
585 2001-02-09 André Pönitz <poenitz@htwm.de>
587 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
588 * several files: subsequent changes
589 * math_iter.h: remove unused prototype
592 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
594 * math_macro.C (draw): add .c_str() to .str() (useful when
595 compiling with lyxstring, but STL sstream).
598 2001-02-08 André Pönitz <poenitz@htwm.de>
600 * several files: get rid of reinterpret_cast.
602 2001-02-04 Allan Rae <rae@lyx.org>
604 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
605 just casting the variable.
607 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
609 * Many files: Add support for multline and alignat environments from
612 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
614 * math_symbols.C (math_insert_greek): Move cursor right when
615 unlocking the math inset.
617 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
619 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
621 * formula.C (LocalDispatch): Before inserting a label in an
622 eqnarray, move the cursor to the top level.
624 * math_iter.C (getLabel): Test if crow == 0.
626 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
628 * math_draw.C (Metrics): Use the correct GetString.