1 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * matriz.C: add using directives when needed for C functions
4 declared in std:: namespace.
6 * math_macrotemplate.h: do not use explicitely std::string, but
9 * math_macroarg.C: avoid bringing the whole std:: namespace in
10 global-land. When you do that, there is an ambiguity between
11 lyxstring and std::string (which may be defined at the same time).
13 * formula.C (HandleExtern): add .c_str() to .str() (useful when
16 2001-04-27 André Pönitz <poenitz@htwm.de>
18 * math_parser.C: fix \frac handling bug introduced on 04-24
19 * math_xiter.C: hotfix for merging "shared" insets
21 2001-04-25 André Pönitz <poenitz@htwm.de>
23 * math_*.[Ch]: WriteNormal
24 * formula.C: Support for new "math extern" command
26 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
28 * math_macrotable.C: include <iostream>
30 2001-04-24 André Pönitz <poenitz@htwm.de>
33 * math_macrotable.[Ch]:
34 * math_macroarg.[Ch]: restructuring of macro handling
37 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
39 * array.h (operator<<):
40 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
42 * math_macrotable.C: added using std::make_pair directive.
43 (dump): added using std::cerr directive here as I guess that this is
46 2001-04-20 Allan Rae <rae@lyx.org>
48 * formula.C (LocalDispatch): fixed another #warning. Guess who.
50 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
52 * math_macrotemplate.h: inherit privately from noncopyable
54 * math_macro.C (Metrics): reindent, use unsigned int as loop var
55 (setArgumentIdx): change test to avoid unsigned warning
57 * formula.C (LocalDispatch): use LFUN_MESSAGE
59 2001-04-16 Allan Rae <rae@lyx.org>
61 * formula.C (Latex, getLabelList, LocalDispatch):
62 * math_parser.C (mathed_parse):
63 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
64 an unrecognised preprocessor directive. So ensure they're wrapped.
66 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
68 * formula.C (draw): adjust for cursor_visible
69 (ToggleInsetCursor): adjust for cursor_visible and constify asc
71 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
72 (HideInsetCursor): adjust for cursor_visible
73 (LocalDispatch): constify default_label and res
75 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
77 * math_rowst.C: add missing #include <config.h>.
79 2001-03-16 André Pönitz <poenitz@htwm.de>
83 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
85 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
93 * math_symbols.C: maths panel moved to GUII
95 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
97 * math_cursor.C: use lyxerr instead of cerr.
99 2001-03-15 André Pönitz <poenitz@htwm.de>
101 * math_cursor.C: fix bug (cursor was leaving two insets at a time
104 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
106 * math_macrotable.h: noncopyable is in namespace boost
107 * math_macrotemplate.h: ditto
109 * math_rowst.h: make MathedRowContainer::iterator public.
111 2001-03-15 André Pönitz <poenitz@htwm.de>
113 * math_parser.C: read '\nonumber' again (was broken)
115 * math_rowst.C: new file
117 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
119 * math_cursor.C: added using directive.
121 2001-03-15 André Pönitz <poenitz@htwm.de>
123 * math_rowst.h: Finally remove MathedRowSt
126 math_xiter.C: changed accordingly
128 2001-03-12 André Pönitz <poenitz@htwm.de>
130 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
131 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
133 2001-03-10 André Pönitz <poenitz@htwm.de>
136 math_matrixinset.C: move adjustVerticalSt to the only place where
137 it is used. Fix a small bug where the cached row structure and the
138 actual data get out of sync after the deletion of whole rows
140 2001-03-09 André Pönitz <poenitz@htwm.de>
142 * math_cursor.C: use std::vector<> in MathStackXIter
143 change selstk from a pointer to the "real thing"
145 * math_rowst.h: new MathedRowContainer::erase method
147 * math_xiter.C: use MathedRowContainer::erase
149 * math_parser.C: use MathedRowContainer::insert_after
151 2001-03-08 André Pönitz <poenitz@htwm.de>
153 * math_rowst.h: give MathedRowContainer an 'insert' method.
155 * math_xiter.C: new 'container()' method to encapsulated access to
156 the MathParInset's MathedRowContainer
158 * math_rowst.h: proper copy constructor and destructor for
161 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
162 automatically created by the compiler are ok now.
164 2001-03-06 André Pönitz <poenitz@htwm.de>
166 * array.[Ch]: factor out deep_copy,
167 remove third argument from raw_pointer_insert
169 * math_iter.[Ch]: remove unused function Clear()
171 * math_cursor.C: change signature of MathStackXIter:push()
174 * math_rowst.h: introduction of MathRowContainer
175 several files: corresponding changes
177 2001-03-04 André Pönitz <poenitz@htwm.de>
179 * math_macrotemplate.[Ch]:
180 math_macro.C: move update() functionality to the macro
182 * math_rowst.h: split MathedRowSt into "data" and "list"
184 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
186 * math_macrotemplate.C (update): use MathMacro::getArg, and
187 receive a const reference.
188 (getMacroPar): add an Assert
190 * math_macrotemplate.h: make MathMacro a friend, make update take
193 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
194 and store a MathMacroArgument in the vector
195 * math_macro.C: changes because of the above.
198 * math_parser.C (mathed_parse): plug potential leak
200 * math_iter.h: add comment on virtual destructor
202 * math_iter.C (Delete): make c const
204 * math_parinset.C (Metrics): cleanup indent. make one string const.
206 * math_inset.C (size): move out of line
209 * math_macroarg.h: remove default constructor
211 * math_macroarg.C: include Lsstream.h instead of debug.h
212 (MathMacroArgument): remove default constructor
213 (Write): add std:: on ostream arg
215 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
218 * formula.C: make DEBUG into lyxerr
220 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
222 * math_macrotemplate.h: make noncopyable, remove last arg to
223 constructor, remove flags_ add edit_
224 (flags): remove method
226 * math_macrotemplate.C (setArgument): delete method
227 (update): make idx const
228 (Metrics): use edit_, remove flags_
229 (draw): use edit_, remove flags_
230 (setEditMode): set edit_, remove flags_
231 (MathMacroTemplate): initialize edit_, remove flags_
233 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
234 shared_ptr, let constructor take a shared_ptr
236 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
238 (draw): remove unneded update, remove removed update of x,y
239 (GetXY): call tmplates GetMacroXY directly
240 (SetFocus): call Metrics() instead of update()
241 (Write): remove support for math macro environments, simplifications.
243 * math_macrotable.h: make class noncopyable, change getMacro to
244 createMacro, change vector to map store a
245 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
247 * math_macrotable.C: add pragma
248 (createMacro): change name from getMacro, use shared_ptr
249 (getTemplate): Use map lookup to get macro, return shared_ptr
250 (addTemplate): assert that m containse a valid pointer, use map[]
252 (builtinMacros): by using shared_ptr fix the mem leak, remove
253 commented out unsupported macros
255 * math_cursor.C: changes because of the above
256 * math_parser.C: changes because of the abobe
258 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
259 default arg on constructor.
260 * formulamacro.C: changes because of the above
262 * math_parinset.h: add pragma
263 (SetAlign): move inline out of class def
267 (setArgumentIdx): ditto
268 (setNextArgIdx): ditto
269 (getArgumentIdx): ditto
270 (getMaxArgumentIdx): ditto
275 * math_parinset.C: add pragma
276 (Write): change the else clause, lessen depth
278 * math_macroarg.h: small whitespace change
280 * array.C: include support/LOstream.h add using ostream and endl
282 * array.h (dump): add std:: on ostream
284 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
286 * math_macrotemplate.h: remove default arg on update
288 * math_macrotemplate.C (update): add assert and remove noop case.
290 * formulamacro.C (Read): add comment.
291 (ascent): remove noop call to MathMacroTemplate
296 * math_parser.C (mathed_parse): fix another potential problem by
297 passing a freestanding mathedarray.
299 * math_root.C (GetData): add const version
301 * math_parinset.C (~MathParInset): delete
302 (GetData): add const version
304 * math_matrixinset.C (MathMatrixInset): delete pointer version,
305 make it a proper copy constructor instead
307 (MathMatrixInset): remvoe default val for m and n
309 * math_macro.C (GetData): add const version
311 * math_fracinset.C (GetData): add const version
313 * math_cursor.C (SelCopy): make p1 and p2 const
314 (SelCut): make p1 and p2 const
316 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
317 (LyxCode): move inline out of class
321 * array.[Ch] (dump): method added for debugging purposes
323 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
324 mathed_parse when reading a matrix.
326 * math_spaceinset.[Ch]: add pragma, make variables private add
327 '_', change order of method definitions.
329 * math_root.h (~MathRootInset): delete
330 Change uroot_ to be a real object instead of a pointer
331 * math_root.C: changes because of the above
333 * math_macro.C (MathMacro(MathMacro*)): delete constructor
334 (MathMacro(MathMacro const &)): new copy constructor
336 * math_inset.h: delete constructor taking a pointer to MathedInset
337 (size, incSize): move inline method
339 * math_funcinset.h: add pragma, remove class vars ln and fname,
340 change protected to private, add '_' to priv vars.
341 (~MathFuncInset): remove
343 * math_fracinset.h: make MathParInset den_ a real object and not a
346 * math_fracinset.C (MathFracInset): clean up, move initalization
347 to initialization list
348 (~MathFracInset): remove
351 * math_draw.C: delete file
353 * math_dotsinset.[Ch]: add pragma
355 * math_bigopinset.h: make protected variables private add '_' to vars.
357 * math_bigopinset.C: move methods to follow class definition order
359 * math_accentinset.h (getAccentCode): move inline here
361 * math_accentinset.C (MathAccentInset): cleanup
364 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
366 * math_inset.[Ch] (MathedInset): remove method
368 * Makefile.am (libmathed_la_SOURCES): correct typo
370 * math_parinset.C (draw): move MathedXiter data(this) up. and
371 remove it two other places.
373 * math_macro.C (MathMacro): use array directly, don't use
374 setArgumentIdx and GetData
376 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
378 * math_macroarg.C (MathMacroArgument): delete
379 * math_macro.C (~MathMacro): delete
380 * math_macrotemplate.C (~MathMacroTemplate): delete
382 * math_decorationinset.[Ch]: add pragma
383 * math_deliminset.[Ch]: likewise
384 * math_fracinset.[Ch]: likewise
385 * math_macroarg.[Ch]: likewise
386 * math_macrotemplate.[Ch]: likewise
387 * math_matrixinset.[Ch]: likewise
389 * formulamacro.C (Read): set contents of tmacro_ to ar.
391 * formulamacro.h: add '_' to private variables.
392 * formalamacro.C: changes because of this.
394 2001-02-23 Juergen Vigna <jug@sad.it>
396 * formula.C (LocalDispatch): changed action to be a kb_action (as it
397 should be) and not an int.
399 * formulamacro.C (LocalDispatch): ditto.
401 2001-02-14 André Pönitz <poenitz@htwm.de>
403 * math_parinset.[Ch]: make array a real MathArray, not just a
406 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
408 * several files: subsequent changes
410 * math_cursor.C: make selarray a proper MathArray
412 * several files: Change "MathedArray *" to "MathedArray &"
415 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
417 * array.C (MathedArray): Fix compilation problem.
419 2001-02-14 André Pönitz <poenitz@htwm.de>
421 * array.[Ch]: "deep" copy constructor and assignment operator for
424 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
426 * math_iter.[Ch]: remove SetData
427 several files: subsequent changes
429 2001-02-14 André Pönitz <poenitz@htwm.de>
431 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
434 * math_iter.C: default-construct and resize array
436 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
438 * math_xiter.h: move ipush and ipop to public, add _ on private
439 variables, move protected var to private, remove friend.
441 * math_cursor.C (insertInset): rename method from Insert also
442 remove default arg val. Call the public methods of xiter instead
443 of private variables.
445 * changes to several files because of the above.
447 2001-02-14 André Pönitz <poenitz@htwm.de>
449 * math_iter.[Ch]: hide fcode_
451 * math_parinset.C: subsequent changes
454 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
456 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
459 * math_write.C: delete file
460 * math_delim.C: delete file
461 * marh_sqrtinset.h: delete file
463 * move funcs to more localized files, more general cleanup.
464 Constify several local vars. Doxygen changes. Formatting.
466 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
468 * support.C: add some consts
470 * matriz.C: clean up a bit.
471 (matmat): remove the for loop.
473 * several files: changes so that several friends can be removed
475 2001-02-14 André Pönitz <poenitz@htwm.de>
477 * formula.C: reformatting
481 math_xiter.[Ch]: remove unneeded members
483 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
487 * formula.C: remove cruft
489 * array.C (begin): new method
492 2001-02-14 André Pönitz <poenitz@htwm.de>
494 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
496 * math_cursor.C: reformatting
498 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
502 * math_matrixinset.C:
503 * math_macrotemplate.C:
508 * math_decorationinset.C:
510 * math_accentinset.C:
511 * math_sqrtinset.C: include LOstream.h and add using directive.
513 2001-02-14 André Pönitz <poenitz@htwm.de>
515 * math_iter.C: reformatting
517 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
519 * math_spaceinset.C (GetSpace): move here
521 * math_parinset.C: add debug.h, move several prev. inlined methods
524 * math_macrotable.C math_xiter.C support.C: add debug.h
526 * math_macro.h: remove debug.h, remove typedefs
528 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
531 * math_hash.C: change some defines to int const. change use of
532 LM_TC_NORMAL to LM_TC_VAR
534 * math_draw.C: delete file
536 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
537 forward decls. remove LM_TC_NORMAL, move inline methods to
538 support.C (and support.h)
540 * math_cursor.C: move several previous inlined methods here
542 * math_bigopinset.h math_dotsinset.h math_funcinset.h
543 math_parinset.h math_spaceinset.h: add math_defs.h
545 * math_accentinset.h: add support.h and math_defs.h
547 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
549 * formula.h: remove unused func decl: OpenMathInset
551 * formula.C math_inset.h: get rid of math_defs.h
553 * array.h: switch to support.h instead of math_defs.h
555 * array.C: remove one include
557 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
559 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
561 * math_parser.C: include macrotable and macrotemplate
563 * math_macrotemplate.[Ch]: new files
565 * math_macrotable.[Ch]: new files
567 * math_macroarg.[Ch]: new files
569 * math_macro.C: move stuff to the new files.
571 * math_cursor.C: include math_macrotable.h
573 * macro_support.[Ch]: new files
575 * formulamacro.C: add more includes
577 * Makefile.am (libmathed_la_SOURCES): add new files.
579 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
581 * Makefile.am (libmathed_la_SOURCES): remove duplicate
586 * math_parinset.C: add a bunch of "using" directives.
589 * math_decorationinset.h:
591 * math_spaceinset.h: remove more couples of inline.
593 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
595 * math_xiter.h: remove a couple of "inline"
597 * array.C (strange_copy): fix bug (hopefully)
598 * many files: add a lot of new files and move methods to the class
599 files they belong to. Only first attempt at cleanup more will
602 2001-02-12 André Pönitz <poenitz@htwm.de>
604 * math_macro.[hC]: replace MathMacroArgument[] with
605 std::vector<MathMacroArgument>
607 math_inset.C: replace int[] with std::vector<int>
609 * math_symbols.C: replace FL_OBJECTP[] with
610 std::vector<FL_OBJECT*>
612 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
614 * math_defs.h (struct MathedRowSt): make all private variables end
615 with '_', initialize in initializer list instead of in function
618 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
620 * formula.C (LocalDispatch): Change the default action of
621 break-line to create an align* environment instead of eqnarray*.
623 * math_inset.C (Metrics): Correct drawing of the multline
626 2001-02-12 André Pönitz <poenitz@htwm.de>
628 * array.[hC]: replace private variable maxsize_ with call to
630 * math_defs.h: replace int[] by std::vector<int> for
633 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
635 * array.h: made all variables private, removed friend, added new
636 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
637 non const operator[] added setter for last and getter for maxsize.
638 changed name from LyxArrayBase to MathedArray.
639 changed name of some methods to start with lowerchar.
640 moved inline methods to array.C
642 * math_iter.C + several file: changes because of the above.
644 * array.C: new file with the prev inline methods.
646 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
648 * Many files: add support for the align environment from amsmath.
650 2001-02-09 André Pönitz <poenitz@htwm.de>
652 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
653 * several files: subsequent changes
654 * math_iter.h: remove unused prototype
657 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
659 * math_macro.C (draw): add .c_str() to .str() (useful when
660 compiling with lyxstring, but STL sstream).
663 2001-02-08 André Pönitz <poenitz@htwm.de>
665 * several files: get rid of reinterpret_cast.
667 2001-02-04 Allan Rae <rae@lyx.org>
669 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
670 just casting the variable.
672 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
674 * Many files: Add support for multline and alignat environments from
677 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
679 * math_symbols.C (math_insert_greek): Move cursor right when
680 unlocking the math inset.
682 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
684 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
686 * formula.C (LocalDispatch): Before inserting a label in an
687 eqnarray, move the cursor to the top level.
689 * math_iter.C (getLabel): Test if crow == 0.
691 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
693 * math_draw.C (Metrics): Use the correct GetString.