1 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
3 * math_macrotable.C: include <iostream>
5 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
7 * array.h (operator<<):
8 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
10 * math_macrotable.C: added using std::make_pair directive.
11 (dump): added using std::cerr directive here as I guess that this is
14 2001-04-20 Allan Rae <rae@lyx.org>
16 * formula.C (LocalDispatch): fixed another #warning. Guess who.
18 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
20 * math_macrotemplate.h: inherit privately from noncopyable
22 * math_macro.C (Metrics): reindent, use unsigned int as loop var
23 (setArgumentIdx): change test to avoid unsigned warning
25 * formula.C (LocalDispatch): use LFUN_MESSAGE
27 2001-04-16 Allan Rae <rae@lyx.org>
29 * formula.C (Latex, getLabelList, LocalDispatch):
30 * math_parser.C (mathed_parse):
31 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
32 an unrecognised preprocessor directive. So ensure they're wrapped.
34 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
36 * formula.C (draw): adjust for cursor_visible
37 (ToggleInsetCursor): adjust for cursor_visible and constify asc
39 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
40 (HideInsetCursor): adjust for cursor_visible
41 (LocalDispatch): constify default_label and res
43 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
45 * math_rowst.C: add missing #include <config.h>.
47 2001-03-16 André Pönitz <poenitz@htwm.de>
51 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
53 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
61 * math_symbols.C: maths panel moved to GUII
63 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
65 * math_cursor.C: use lyxerr instead of cerr.
67 2001-03-15 André Pönitz <poenitz@htwm.de>
69 * math_cursor.C: fix bug (cursor was leaving two insets at a time
72 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
74 * math_macrotable.h: noncopyable is in namespace boost
75 * math_macrotemplate.h: ditto
77 * math_rowst.h: make MathedRowContainer::iterator public.
79 2001-03-15 André Pönitz <poenitz@htwm.de>
81 * math_parser.C: read '\nonumber' again (was broken)
83 * math_rowst.C: new file
85 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
87 * math_cursor.C: added using directive.
89 2001-03-15 André Pönitz <poenitz@htwm.de>
91 * math_rowst.h: Finally remove MathedRowSt
94 math_xiter.C: changed accordingly
96 2001-03-12 André Pönitz <poenitz@htwm.de>
98 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
99 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
101 2001-03-10 André Pönitz <poenitz@htwm.de>
104 math_matrixinset.C: move adjustVerticalSt to the only place where
105 it is used. Fix a small bug where the cached row structure and the
106 actual data get out of sync after the deletion of whole rows
108 2001-03-09 André Pönitz <poenitz@htwm.de>
110 * math_cursor.C: use std::vector<> in MathStackXIter
111 change selstk from a pointer to the "real thing"
113 * math_rowst.h: new MathedRowContainer::erase method
115 * math_xiter.C: use MathedRowContainer::erase
117 * math_parser.C: use MathedRowContainer::insert_after
119 2001-03-08 André Pönitz <poenitz@htwm.de>
121 * math_rowst.h: give MathedRowContainer an 'insert' method.
123 * math_xiter.C: new 'container()' method to encapsulated access to
124 the MathParInset's MathedRowContainer
126 * math_rowst.h: proper copy constructor and destructor for
129 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
130 automatically created by the compiler are ok now.
132 2001-03-06 André Pönitz <poenitz@htwm.de>
134 * array.[Ch]: factor out deep_copy,
135 remove third argument from raw_pointer_insert
137 * math_iter.[Ch]: remove unused function Clear()
139 * math_cursor.C: change signature of MathStackXIter:push()
142 * math_rowst.h: introduction of MathRowContainer
143 several files: corresponding changes
145 2001-03-04 André Pönitz <poenitz@htwm.de>
147 * math_macrotemplate.[Ch]:
148 math_macro.C: move update() functionality to the macro
150 * math_rowst.h: split MathedRowSt into "data" and "list"
152 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
154 * math_macrotemplate.C (update): use MathMacro::getArg, and
155 receive a const reference.
156 (getMacroPar): add an Assert
158 * math_macrotemplate.h: make MathMacro a friend, make update take
161 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
162 and store a MathMacroArgument in the vector
163 * math_macro.C: changes because of the above.
166 * math_parser.C (mathed_parse): plug potential leak
168 * math_iter.h: add comment on virtual destructor
170 * math_iter.C (Delete): make c const
172 * math_parinset.C (Metrics): cleanup indent. make one string const.
174 * math_inset.C (size): move out of line
177 * math_macroarg.h: remove default constructor
179 * math_macroarg.C: include Lsstream.h instead of debug.h
180 (MathMacroArgument): remove default constructor
181 (Write): add std:: on ostream arg
183 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
186 * formula.C: make DEBUG into lyxerr
188 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
190 * math_macrotemplate.h: make noncopyable, remove last arg to
191 constructor, remove flags_ add edit_
192 (flags): remove method
194 * math_macrotemplate.C (setArgument): delete method
195 (update): make idx const
196 (Metrics): use edit_, remove flags_
197 (draw): use edit_, remove flags_
198 (setEditMode): set edit_, remove flags_
199 (MathMacroTemplate): initialize edit_, remove flags_
201 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
202 shared_ptr, let constructor take a shared_ptr
204 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
206 (draw): remove unneded update, remove removed update of x,y
207 (GetXY): call tmplates GetMacroXY directly
208 (SetFocus): call Metrics() instead of update()
209 (Write): remove support for math macro environments, simplifications.
211 * math_macrotable.h: make class noncopyable, change getMacro to
212 createMacro, change vector to map store a
213 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
215 * math_macrotable.C: add pragma
216 (createMacro): change name from getMacro, use shared_ptr
217 (getTemplate): Use map lookup to get macro, return shared_ptr
218 (addTemplate): assert that m containse a valid pointer, use map[]
220 (builtinMacros): by using shared_ptr fix the mem leak, remove
221 commented out unsupported macros
223 * math_cursor.C: changes because of the above
224 * math_parser.C: changes because of the abobe
226 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
227 default arg on constructor.
228 * formulamacro.C: changes because of the above
230 * math_parinset.h: add pragma
231 (SetAlign): move inline out of class def
235 (setArgumentIdx): ditto
236 (setNextArgIdx): ditto
237 (getArgumentIdx): ditto
238 (getMaxArgumentIdx): ditto
243 * math_parinset.C: add pragma
244 (Write): change the else clause, lessen depth
246 * math_macroarg.h: small whitespace change
248 * array.C: include support/LOstream.h add using ostream and endl
250 * array.h (dump): add std:: on ostream
252 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
254 * math_macrotemplate.h: remove default arg on update
256 * math_macrotemplate.C (update): add assert and remove noop case.
258 * formulamacro.C (Read): add comment.
259 (ascent): remove noop call to MathMacroTemplate
264 * math_parser.C (mathed_parse): fix another potential problem by
265 passing a freestanding mathedarray.
267 * math_root.C (GetData): add const version
269 * math_parinset.C (~MathParInset): delete
270 (GetData): add const version
272 * math_matrixinset.C (MathMatrixInset): delete pointer version,
273 make it a proper copy constructor instead
275 (MathMatrixInset): remvoe default val for m and n
277 * math_macro.C (GetData): add const version
279 * math_fracinset.C (GetData): add const version
281 * math_cursor.C (SelCopy): make p1 and p2 const
282 (SelCut): make p1 and p2 const
284 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
285 (LyxCode): move inline out of class
289 * array.[Ch] (dump): method added for debugging purposes
291 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
292 mathed_parse when reading a matrix.
294 * math_spaceinset.[Ch]: add pragma, make variables private add
295 '_', change order of method definitions.
297 * math_root.h (~MathRootInset): delete
298 Change uroot_ to be a real object instead of a pointer
299 * math_root.C: changes because of the above
301 * math_macro.C (MathMacro(MathMacro*)): delete constructor
302 (MathMacro(MathMacro const &)): new copy constructor
304 * math_inset.h: delete constructor taking a pointer to MathedInset
305 (size, incSize): move inline method
307 * math_funcinset.h: add pragma, remove class vars ln and fname,
308 change protected to private, add '_' to priv vars.
309 (~MathFuncInset): remove
311 * math_fracinset.h: make MathParInset den_ a real object and not a
314 * math_fracinset.C (MathFracInset): clean up, move initalization
315 to initialization list
316 (~MathFracInset): remove
319 * math_draw.C: delete file
321 * math_dotsinset.[Ch]: add pragma
323 * math_bigopinset.h: make protected variables private add '_' to vars.
325 * math_bigopinset.C: move methods to follow class definition order
327 * math_accentinset.h (getAccentCode): move inline here
329 * math_accentinset.C (MathAccentInset): cleanup
332 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
334 * math_inset.[Ch] (MathedInset): remove method
336 * Makefile.am (libmathed_la_SOURCES): correct typo
338 * math_parinset.C (draw): move MathedXiter data(this) up. and
339 remove it two other places.
341 * math_macro.C (MathMacro): use array directly, don't use
342 setArgumentIdx and GetData
344 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
346 * math_macroarg.C (MathMacroArgument): delete
347 * math_macro.C (~MathMacro): delete
348 * math_macrotemplate.C (~MathMacroTemplate): delete
350 * math_decorationinset.[Ch]: add pragma
351 * math_deliminset.[Ch]: likewise
352 * math_fracinset.[Ch]: likewise
353 * math_macroarg.[Ch]: likewise
354 * math_macrotemplate.[Ch]: likewise
355 * math_matrixinset.[Ch]: likewise
357 * formulamacro.C (Read): set contents of tmacro_ to ar.
359 * formulamacro.h: add '_' to private variables.
360 * formalamacro.C: changes because of this.
362 2001-02-23 Juergen Vigna <jug@sad.it>
364 * formula.C (LocalDispatch): changed action to be a kb_action (as it
365 should be) and not an int.
367 * formulamacro.C (LocalDispatch): ditto.
369 2001-02-14 André Pönitz <poenitz@htwm.de>
371 * math_parinset.[Ch]: make array a real MathArray, not just a
374 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
376 * several files: subsequent changes
378 * math_cursor.C: make selarray a proper MathArray
380 * several files: Change "MathedArray *" to "MathedArray &"
383 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
385 * array.C (MathedArray): Fix compilation problem.
387 2001-02-14 André Pönitz <poenitz@htwm.de>
389 * array.[Ch]: "deep" copy constructor and assignment operator for
392 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
394 * math_iter.[Ch]: remove SetData
395 several files: subsequent changes
397 2001-02-14 André Pönitz <poenitz@htwm.de>
399 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
402 * math_iter.C: default-construct and resize array
404 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
406 * math_xiter.h: move ipush and ipop to public, add _ on private
407 variables, move protected var to private, remove friend.
409 * math_cursor.C (insertInset): rename method from Insert also
410 remove default arg val. Call the public methods of xiter instead
411 of private variables.
413 * changes to several files because of the above.
415 2001-02-14 André Pönitz <poenitz@htwm.de>
417 * math_iter.[Ch]: hide fcode_
419 * math_parinset.C: subsequent changes
422 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
424 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
427 * math_write.C: delete file
428 * math_delim.C: delete file
429 * marh_sqrtinset.h: delete file
431 * move funcs to more localized files, more general cleanup.
432 Constify several local vars. Doxygen changes. Formatting.
434 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
436 * support.C: add some consts
438 * matriz.C: clean up a bit.
439 (matmat): remove the for loop.
441 * several files: changes so that several friends can be removed
443 2001-02-14 André Pönitz <poenitz@htwm.de>
445 * formula.C: reformatting
449 math_xiter.[Ch]: remove unneeded members
451 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
455 * formula.C: remove cruft
457 * array.C (begin): new method
460 2001-02-14 André Pönitz <poenitz@htwm.de>
462 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
464 * math_cursor.C: reformatting
466 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
470 * math_matrixinset.C:
471 * math_macrotemplate.C:
476 * math_decorationinset.C:
478 * math_accentinset.C:
479 * math_sqrtinset.C: include LOstream.h and add using directive.
481 2001-02-14 André Pönitz <poenitz@htwm.de>
483 * math_iter.C: reformatting
485 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
487 * math_spaceinset.C (GetSpace): move here
489 * math_parinset.C: add debug.h, move several prev. inlined methods
492 * math_macrotable.C math_xiter.C support.C: add debug.h
494 * math_macro.h: remove debug.h, remove typedefs
496 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
499 * math_hash.C: change some defines to int const. change use of
500 LM_TC_NORMAL to LM_TC_VAR
502 * math_draw.C: delete file
504 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
505 forward decls. remove LM_TC_NORMAL, move inline methods to
506 support.C (and support.h)
508 * math_cursor.C: move several previous inlined methods here
510 * math_bigopinset.h math_dotsinset.h math_funcinset.h
511 math_parinset.h math_spaceinset.h: add math_defs.h
513 * math_accentinset.h: add support.h and math_defs.h
515 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
517 * formula.h: remove unused func decl: OpenMathInset
519 * formula.C math_inset.h: get rid of math_defs.h
521 * array.h: switch to support.h instead of math_defs.h
523 * array.C: remove one include
525 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
527 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
529 * math_parser.C: include macrotable and macrotemplate
531 * math_macrotemplate.[Ch]: new files
533 * math_macrotable.[Ch]: new files
535 * math_macroarg.[Ch]: new files
537 * math_macro.C: move stuff to the new files.
539 * math_cursor.C: include math_macrotable.h
541 * macro_support.[Ch]: new files
543 * formulamacro.C: add more includes
545 * Makefile.am (libmathed_la_SOURCES): add new files.
547 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
549 * Makefile.am (libmathed_la_SOURCES): remove duplicate
554 * math_parinset.C: add a bunch of "using" directives.
557 * math_decorationinset.h:
559 * math_spaceinset.h: remove more couples of inline.
561 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
563 * math_xiter.h: remove a couple of "inline"
565 * array.C (strange_copy): fix bug (hopefully)
566 * many files: add a lot of new files and move methods to the class
567 files they belong to. Only first attempt at cleanup more will
570 2001-02-12 André Pönitz <poenitz@htwm.de>
572 * math_macro.[hC]: replace MathMacroArgument[] with
573 std::vector<MathMacroArgument>
575 math_inset.C: replace int[] with std::vector<int>
577 * math_symbols.C: replace FL_OBJECTP[] with
578 std::vector<FL_OBJECT*>
580 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
582 * math_defs.h (struct MathedRowSt): make all private variables end
583 with '_', initialize in initializer list instead of in function
586 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
588 * formula.C (LocalDispatch): Change the default action of
589 break-line to create an align* environment instead of eqnarray*.
591 * math_inset.C (Metrics): Correct drawing of the multline
594 2001-02-12 André Pönitz <poenitz@htwm.de>
596 * array.[hC]: replace private variable maxsize_ with call to
598 * math_defs.h: replace int[] by std::vector<int> for
601 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
603 * array.h: made all variables private, removed friend, added new
604 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
605 non const operator[] added setter for last and getter for maxsize.
606 changed name from LyxArrayBase to MathedArray.
607 changed name of some methods to start with lowerchar.
608 moved inline methods to array.C
610 * math_iter.C + several file: changes because of the above.
612 * array.C: new file with the prev inline methods.
614 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
616 * Many files: add support for the align environment from amsmath.
618 2001-02-09 André Pönitz <poenitz@htwm.de>
620 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
621 * several files: subsequent changes
622 * math_iter.h: remove unused prototype
625 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
627 * math_macro.C (draw): add .c_str() to .str() (useful when
628 compiling with lyxstring, but STL sstream).
631 2001-02-08 André Pönitz <poenitz@htwm.de>
633 * several files: get rid of reinterpret_cast.
635 2001-02-04 Allan Rae <rae@lyx.org>
637 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
638 just casting the variable.
640 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
642 * Many files: Add support for multline and alignat environments from
645 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
647 * math_symbols.C (math_insert_greek): Move cursor right when
648 unlocking the math inset.
650 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
652 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
654 * formula.C (LocalDispatch): Before inserting a label in an
655 eqnarray, move the cursor to the top level.
657 * math_iter.C (getLabel): Test if crow == 0.
659 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
661 * math_draw.C (Metrics): Use the correct GetString.