1 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
3 * math_parser.C (yylex): use contains instead of strchr
4 (parse_align): remove last arg, change to take string const & as
6 (mathed_parse): use string for ar2 and ar, adjust
8 * math_decorationinset.C (Write): use compare instead of strcmp
10 * formula.C (LocalDispatch): change arg2 to string, adjust for this
11 (LocalDispatch): add std::
12 (LocalDispatch): use contains instead of strchr
14 * array.C (move): add std::
16 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
18 * matriz.C: add using directives when needed for C functions
19 declared in std:: namespace.
21 * math_macrotemplate.h: do not use explicitely std::string, but
24 * math_macroarg.C: avoid bringing the whole std:: namespace in
25 global-land. When you do that, there is an ambiguity between
26 lyxstring and std::string (which may be defined at the same time).
28 * formula.C (HandleExtern): add .c_str() to .str() (useful when
31 2001-04-27 André Pönitz <poenitz@htwm.de>
33 * math_parser.C: fix \frac handling bug introduced on 04-24
34 * math_xiter.C: hotfix for merging "shared" insets
36 2001-04-25 André Pönitz <poenitz@htwm.de>
38 * math_*.[Ch]: WriteNormal
39 * formula.C: Support for new "math extern" command
41 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
43 * math_macrotable.C: include <iostream>
45 2001-04-24 André Pönitz <poenitz@htwm.de>
48 * math_macrotable.[Ch]:
49 * math_macroarg.[Ch]: restructuring of macro handling
52 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
54 * array.h (operator<<):
55 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
57 * math_macrotable.C: added using std::make_pair directive.
58 (dump): added using std::cerr directive here as I guess that this is
61 2001-04-20 Allan Rae <rae@lyx.org>
63 * formula.C (LocalDispatch): fixed another #warning. Guess who.
65 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
67 * math_macrotemplate.h: inherit privately from noncopyable
69 * math_macro.C (Metrics): reindent, use unsigned int as loop var
70 (setArgumentIdx): change test to avoid unsigned warning
72 * formula.C (LocalDispatch): use LFUN_MESSAGE
74 2001-04-16 Allan Rae <rae@lyx.org>
76 * formula.C (Latex, getLabelList, LocalDispatch):
77 * math_parser.C (mathed_parse):
78 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
79 an unrecognised preprocessor directive. So ensure they're wrapped.
81 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
83 * formula.C (draw): adjust for cursor_visible
84 (ToggleInsetCursor): adjust for cursor_visible and constify asc
86 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
87 (HideInsetCursor): adjust for cursor_visible
88 (LocalDispatch): constify default_label and res
90 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
92 * math_rowst.C: add missing #include <config.h>.
94 2001-03-16 André Pönitz <poenitz@htwm.de>
98 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
100 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
108 * math_symbols.C: maths panel moved to GUII
110 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
112 * math_cursor.C: use lyxerr instead of cerr.
114 2001-03-15 André Pönitz <poenitz@htwm.de>
116 * math_cursor.C: fix bug (cursor was leaving two insets at a time
119 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
121 * math_macrotable.h: noncopyable is in namespace boost
122 * math_macrotemplate.h: ditto
124 * math_rowst.h: make MathedRowContainer::iterator public.
126 2001-03-15 André Pönitz <poenitz@htwm.de>
128 * math_parser.C: read '\nonumber' again (was broken)
130 * math_rowst.C: new file
132 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
134 * math_cursor.C: added using directive.
136 2001-03-15 André Pönitz <poenitz@htwm.de>
138 * math_rowst.h: Finally remove MathedRowSt
141 math_xiter.C: changed accordingly
143 2001-03-12 André Pönitz <poenitz@htwm.de>
145 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
146 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
148 2001-03-10 André Pönitz <poenitz@htwm.de>
151 math_matrixinset.C: move adjustVerticalSt to the only place where
152 it is used. Fix a small bug where the cached row structure and the
153 actual data get out of sync after the deletion of whole rows
155 2001-03-09 André Pönitz <poenitz@htwm.de>
157 * math_cursor.C: use std::vector<> in MathStackXIter
158 change selstk from a pointer to the "real thing"
160 * math_rowst.h: new MathedRowContainer::erase method
162 * math_xiter.C: use MathedRowContainer::erase
164 * math_parser.C: use MathedRowContainer::insert_after
166 2001-03-08 André Pönitz <poenitz@htwm.de>
168 * math_rowst.h: give MathedRowContainer an 'insert' method.
170 * math_xiter.C: new 'container()' method to encapsulated access to
171 the MathParInset's MathedRowContainer
173 * math_rowst.h: proper copy constructor and destructor for
176 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
177 automatically created by the compiler are ok now.
179 2001-03-06 André Pönitz <poenitz@htwm.de>
181 * array.[Ch]: factor out deep_copy,
182 remove third argument from raw_pointer_insert
184 * math_iter.[Ch]: remove unused function Clear()
186 * math_cursor.C: change signature of MathStackXIter:push()
189 * math_rowst.h: introduction of MathRowContainer
190 several files: corresponding changes
192 2001-03-04 André Pönitz <poenitz@htwm.de>
194 * math_macrotemplate.[Ch]:
195 math_macro.C: move update() functionality to the macro
197 * math_rowst.h: split MathedRowSt into "data" and "list"
199 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
201 * math_macrotemplate.C (update): use MathMacro::getArg, and
202 receive a const reference.
203 (getMacroPar): add an Assert
205 * math_macrotemplate.h: make MathMacro a friend, make update take
208 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
209 and store a MathMacroArgument in the vector
210 * math_macro.C: changes because of the above.
213 * math_parser.C (mathed_parse): plug potential leak
215 * math_iter.h: add comment on virtual destructor
217 * math_iter.C (Delete): make c const
219 * math_parinset.C (Metrics): cleanup indent. make one string const.
221 * math_inset.C (size): move out of line
224 * math_macroarg.h: remove default constructor
226 * math_macroarg.C: include Lsstream.h instead of debug.h
227 (MathMacroArgument): remove default constructor
228 (Write): add std:: on ostream arg
230 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
233 * formula.C: make DEBUG into lyxerr
235 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
237 * math_macrotemplate.h: make noncopyable, remove last arg to
238 constructor, remove flags_ add edit_
239 (flags): remove method
241 * math_macrotemplate.C (setArgument): delete method
242 (update): make idx const
243 (Metrics): use edit_, remove flags_
244 (draw): use edit_, remove flags_
245 (setEditMode): set edit_, remove flags_
246 (MathMacroTemplate): initialize edit_, remove flags_
248 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
249 shared_ptr, let constructor take a shared_ptr
251 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
253 (draw): remove unneded update, remove removed update of x,y
254 (GetXY): call tmplates GetMacroXY directly
255 (SetFocus): call Metrics() instead of update()
256 (Write): remove support for math macro environments, simplifications.
258 * math_macrotable.h: make class noncopyable, change getMacro to
259 createMacro, change vector to map store a
260 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
262 * math_macrotable.C: add pragma
263 (createMacro): change name from getMacro, use shared_ptr
264 (getTemplate): Use map lookup to get macro, return shared_ptr
265 (addTemplate): assert that m containse a valid pointer, use map[]
267 (builtinMacros): by using shared_ptr fix the mem leak, remove
268 commented out unsupported macros
270 * math_cursor.C: changes because of the above
271 * math_parser.C: changes because of the abobe
273 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
274 default arg on constructor.
275 * formulamacro.C: changes because of the above
277 * math_parinset.h: add pragma
278 (SetAlign): move inline out of class def
282 (setArgumentIdx): ditto
283 (setNextArgIdx): ditto
284 (getArgumentIdx): ditto
285 (getMaxArgumentIdx): ditto
290 * math_parinset.C: add pragma
291 (Write): change the else clause, lessen depth
293 * math_macroarg.h: small whitespace change
295 * array.C: include support/LOstream.h add using ostream and endl
297 * array.h (dump): add std:: on ostream
299 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
301 * math_macrotemplate.h: remove default arg on update
303 * math_macrotemplate.C (update): add assert and remove noop case.
305 * formulamacro.C (Read): add comment.
306 (ascent): remove noop call to MathMacroTemplate
311 * math_parser.C (mathed_parse): fix another potential problem by
312 passing a freestanding mathedarray.
314 * math_root.C (GetData): add const version
316 * math_parinset.C (~MathParInset): delete
317 (GetData): add const version
319 * math_matrixinset.C (MathMatrixInset): delete pointer version,
320 make it a proper copy constructor instead
322 (MathMatrixInset): remvoe default val for m and n
324 * math_macro.C (GetData): add const version
326 * math_fracinset.C (GetData): add const version
328 * math_cursor.C (SelCopy): make p1 and p2 const
329 (SelCut): make p1 and p2 const
331 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
332 (LyxCode): move inline out of class
336 * array.[Ch] (dump): method added for debugging purposes
338 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
339 mathed_parse when reading a matrix.
341 * math_spaceinset.[Ch]: add pragma, make variables private add
342 '_', change order of method definitions.
344 * math_root.h (~MathRootInset): delete
345 Change uroot_ to be a real object instead of a pointer
346 * math_root.C: changes because of the above
348 * math_macro.C (MathMacro(MathMacro*)): delete constructor
349 (MathMacro(MathMacro const &)): new copy constructor
351 * math_inset.h: delete constructor taking a pointer to MathedInset
352 (size, incSize): move inline method
354 * math_funcinset.h: add pragma, remove class vars ln and fname,
355 change protected to private, add '_' to priv vars.
356 (~MathFuncInset): remove
358 * math_fracinset.h: make MathParInset den_ a real object and not a
361 * math_fracinset.C (MathFracInset): clean up, move initalization
362 to initialization list
363 (~MathFracInset): remove
366 * math_draw.C: delete file
368 * math_dotsinset.[Ch]: add pragma
370 * math_bigopinset.h: make protected variables private add '_' to vars.
372 * math_bigopinset.C: move methods to follow class definition order
374 * math_accentinset.h (getAccentCode): move inline here
376 * math_accentinset.C (MathAccentInset): cleanup
379 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
381 * math_inset.[Ch] (MathedInset): remove method
383 * Makefile.am (libmathed_la_SOURCES): correct typo
385 * math_parinset.C (draw): move MathedXiter data(this) up. and
386 remove it two other places.
388 * math_macro.C (MathMacro): use array directly, don't use
389 setArgumentIdx and GetData
391 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
393 * math_macroarg.C (MathMacroArgument): delete
394 * math_macro.C (~MathMacro): delete
395 * math_macrotemplate.C (~MathMacroTemplate): delete
397 * math_decorationinset.[Ch]: add pragma
398 * math_deliminset.[Ch]: likewise
399 * math_fracinset.[Ch]: likewise
400 * math_macroarg.[Ch]: likewise
401 * math_macrotemplate.[Ch]: likewise
402 * math_matrixinset.[Ch]: likewise
404 * formulamacro.C (Read): set contents of tmacro_ to ar.
406 * formulamacro.h: add '_' to private variables.
407 * formalamacro.C: changes because of this.
409 2001-02-23 Juergen Vigna <jug@sad.it>
411 * formula.C (LocalDispatch): changed action to be a kb_action (as it
412 should be) and not an int.
414 * formulamacro.C (LocalDispatch): ditto.
416 2001-02-14 André Pönitz <poenitz@htwm.de>
418 * math_parinset.[Ch]: make array a real MathArray, not just a
421 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
423 * several files: subsequent changes
425 * math_cursor.C: make selarray a proper MathArray
427 * several files: Change "MathedArray *" to "MathedArray &"
430 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
432 * array.C (MathedArray): Fix compilation problem.
434 2001-02-14 André Pönitz <poenitz@htwm.de>
436 * array.[Ch]: "deep" copy constructor and assignment operator for
439 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
441 * math_iter.[Ch]: remove SetData
442 several files: subsequent changes
444 2001-02-14 André Pönitz <poenitz@htwm.de>
446 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
449 * math_iter.C: default-construct and resize array
451 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
453 * math_xiter.h: move ipush and ipop to public, add _ on private
454 variables, move protected var to private, remove friend.
456 * math_cursor.C (insertInset): rename method from Insert also
457 remove default arg val. Call the public methods of xiter instead
458 of private variables.
460 * changes to several files because of the above.
462 2001-02-14 André Pönitz <poenitz@htwm.de>
464 * math_iter.[Ch]: hide fcode_
466 * math_parinset.C: subsequent changes
469 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
471 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
474 * math_write.C: delete file
475 * math_delim.C: delete file
476 * marh_sqrtinset.h: delete file
478 * move funcs to more localized files, more general cleanup.
479 Constify several local vars. Doxygen changes. Formatting.
481 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
483 * support.C: add some consts
485 * matriz.C: clean up a bit.
486 (matmat): remove the for loop.
488 * several files: changes so that several friends can be removed
490 2001-02-14 André Pönitz <poenitz@htwm.de>
492 * formula.C: reformatting
496 math_xiter.[Ch]: remove unneeded members
498 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
502 * formula.C: remove cruft
504 * array.C (begin): new method
507 2001-02-14 André Pönitz <poenitz@htwm.de>
509 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
511 * math_cursor.C: reformatting
513 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
517 * math_matrixinset.C:
518 * math_macrotemplate.C:
523 * math_decorationinset.C:
525 * math_accentinset.C:
526 * math_sqrtinset.C: include LOstream.h and add using directive.
528 2001-02-14 André Pönitz <poenitz@htwm.de>
530 * math_iter.C: reformatting
532 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
534 * math_spaceinset.C (GetSpace): move here
536 * math_parinset.C: add debug.h, move several prev. inlined methods
539 * math_macrotable.C math_xiter.C support.C: add debug.h
541 * math_macro.h: remove debug.h, remove typedefs
543 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
546 * math_hash.C: change some defines to int const. change use of
547 LM_TC_NORMAL to LM_TC_VAR
549 * math_draw.C: delete file
551 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
552 forward decls. remove LM_TC_NORMAL, move inline methods to
553 support.C (and support.h)
555 * math_cursor.C: move several previous inlined methods here
557 * math_bigopinset.h math_dotsinset.h math_funcinset.h
558 math_parinset.h math_spaceinset.h: add math_defs.h
560 * math_accentinset.h: add support.h and math_defs.h
562 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
564 * formula.h: remove unused func decl: OpenMathInset
566 * formula.C math_inset.h: get rid of math_defs.h
568 * array.h: switch to support.h instead of math_defs.h
570 * array.C: remove one include
572 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
574 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
576 * math_parser.C: include macrotable and macrotemplate
578 * math_macrotemplate.[Ch]: new files
580 * math_macrotable.[Ch]: new files
582 * math_macroarg.[Ch]: new files
584 * math_macro.C: move stuff to the new files.
586 * math_cursor.C: include math_macrotable.h
588 * macro_support.[Ch]: new files
590 * formulamacro.C: add more includes
592 * Makefile.am (libmathed_la_SOURCES): add new files.
594 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
596 * Makefile.am (libmathed_la_SOURCES): remove duplicate
601 * math_parinset.C: add a bunch of "using" directives.
604 * math_decorationinset.h:
606 * math_spaceinset.h: remove more couples of inline.
608 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
610 * math_xiter.h: remove a couple of "inline"
612 * array.C (strange_copy): fix bug (hopefully)
613 * many files: add a lot of new files and move methods to the class
614 files they belong to. Only first attempt at cleanup more will
617 2001-02-12 André Pönitz <poenitz@htwm.de>
619 * math_macro.[hC]: replace MathMacroArgument[] with
620 std::vector<MathMacroArgument>
622 math_inset.C: replace int[] with std::vector<int>
624 * math_symbols.C: replace FL_OBJECTP[] with
625 std::vector<FL_OBJECT*>
627 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
629 * math_defs.h (struct MathedRowSt): make all private variables end
630 with '_', initialize in initializer list instead of in function
633 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
635 * formula.C (LocalDispatch): Change the default action of
636 break-line to create an align* environment instead of eqnarray*.
638 * math_inset.C (Metrics): Correct drawing of the multline
641 2001-02-12 André Pönitz <poenitz@htwm.de>
643 * array.[hC]: replace private variable maxsize_ with call to
645 * math_defs.h: replace int[] by std::vector<int> for
648 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
650 * array.h: made all variables private, removed friend, added new
651 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
652 non const operator[] added setter for last and getter for maxsize.
653 changed name from LyxArrayBase to MathedArray.
654 changed name of some methods to start with lowerchar.
655 moved inline methods to array.C
657 * math_iter.C + several file: changes because of the above.
659 * array.C: new file with the prev inline methods.
661 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
663 * Many files: add support for the align environment from amsmath.
665 2001-02-09 André Pönitz <poenitz@htwm.de>
667 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
668 * several files: subsequent changes
669 * math_iter.h: remove unused prototype
672 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
674 * math_macro.C (draw): add .c_str() to .str() (useful when
675 compiling with lyxstring, but STL sstream).
678 2001-02-08 André Pönitz <poenitz@htwm.de>
680 * several files: get rid of reinterpret_cast.
682 2001-02-04 Allan Rae <rae@lyx.org>
684 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
685 just casting the variable.
687 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
689 * Many files: Add support for multline and alignat environments from
692 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
694 * math_symbols.C (math_insert_greek): Move cursor right when
695 unlocking the math inset.
697 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
699 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
701 * formula.C (LocalDispatch): Before inserting a label in an
702 eqnarray, move the cursor to the top level.
704 * math_iter.C (getLabel): Test if crow == 0.
706 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
708 * math_draw.C (Metrics): Use the correct GetString.