1 2001-05-31 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * array.C: bring memmove into main namespace if necessary
5 2001-05-31 Lars Gullik Bjønnes <larsbj@birdstep.com>
7 * math_parser.C (yylex): use contains instead of strchr
8 (parse_align): remove last arg, change to take string const & as
10 (mathed_parse): use string for ar2 and ar, adjust
12 * math_decorationinset.C (Write): use compare instead of strcmp
14 * formula.C (LocalDispatch): change arg2 to string, adjust for this
15 (LocalDispatch): add std::
16 (LocalDispatch): use contains instead of strchr
18 * array.C (move): add std::
20 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
22 * matriz.C: add using directives when needed for C functions
23 declared in std:: namespace.
25 * math_macrotemplate.h: do not use explicitely std::string, but
28 * math_macroarg.C: avoid bringing the whole std:: namespace in
29 global-land. When you do that, there is an ambiguity between
30 lyxstring and std::string (which may be defined at the same time).
32 * formula.C (HandleExtern): add .c_str() to .str() (useful when
35 2001-04-27 André Pönitz <poenitz@htwm.de>
37 * math_parser.C: fix \frac handling bug introduced on 04-24
38 * math_xiter.C: hotfix for merging "shared" insets
40 2001-04-25 André Pönitz <poenitz@htwm.de>
42 * math_*.[Ch]: WriteNormal
43 * formula.C: Support for new "math extern" command
45 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
47 * math_macrotable.C: include <iostream>
49 2001-04-24 André Pönitz <poenitz@htwm.de>
52 * math_macrotable.[Ch]:
53 * math_macroarg.[Ch]: restructuring of macro handling
56 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
58 * array.h (operator<<):
59 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
61 * math_macrotable.C: added using std::make_pair directive.
62 (dump): added using std::cerr directive here as I guess that this is
65 2001-04-20 Allan Rae <rae@lyx.org>
67 * formula.C (LocalDispatch): fixed another #warning. Guess who.
69 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
71 * math_macrotemplate.h: inherit privately from noncopyable
73 * math_macro.C (Metrics): reindent, use unsigned int as loop var
74 (setArgumentIdx): change test to avoid unsigned warning
76 * formula.C (LocalDispatch): use LFUN_MESSAGE
78 2001-04-16 Allan Rae <rae@lyx.org>
80 * formula.C (Latex, getLabelList, LocalDispatch):
81 * math_parser.C (mathed_parse):
82 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
83 an unrecognised preprocessor directive. So ensure they're wrapped.
85 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
87 * formula.C (draw): adjust for cursor_visible
88 (ToggleInsetCursor): adjust for cursor_visible and constify asc
90 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
91 (HideInsetCursor): adjust for cursor_visible
92 (LocalDispatch): constify default_label and res
94 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
96 * math_rowst.C: add missing #include <config.h>.
98 2001-03-16 André Pönitz <poenitz@htwm.de>
100 * math_matrixinset.h:
101 * math_parinset.[Ch]:
102 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
104 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
112 * math_symbols.C: maths panel moved to GUII
114 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
116 * math_cursor.C: use lyxerr instead of cerr.
118 2001-03-15 André Pönitz <poenitz@htwm.de>
120 * math_cursor.C: fix bug (cursor was leaving two insets at a time
123 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
125 * math_macrotable.h: noncopyable is in namespace boost
126 * math_macrotemplate.h: ditto
128 * math_rowst.h: make MathedRowContainer::iterator public.
130 2001-03-15 André Pönitz <poenitz@htwm.de>
132 * math_parser.C: read '\nonumber' again (was broken)
134 * math_rowst.C: new file
136 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
138 * math_cursor.C: added using directive.
140 2001-03-15 André Pönitz <poenitz@htwm.de>
142 * math_rowst.h: Finally remove MathedRowSt
145 math_xiter.C: changed accordingly
147 2001-03-12 André Pönitz <poenitz@htwm.de>
149 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
150 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
152 2001-03-10 André Pönitz <poenitz@htwm.de>
155 math_matrixinset.C: move adjustVerticalSt to the only place where
156 it is used. Fix a small bug where the cached row structure and the
157 actual data get out of sync after the deletion of whole rows
159 2001-03-09 André Pönitz <poenitz@htwm.de>
161 * math_cursor.C: use std::vector<> in MathStackXIter
162 change selstk from a pointer to the "real thing"
164 * math_rowst.h: new MathedRowContainer::erase method
166 * math_xiter.C: use MathedRowContainer::erase
168 * math_parser.C: use MathedRowContainer::insert_after
170 2001-03-08 André Pönitz <poenitz@htwm.de>
172 * math_rowst.h: give MathedRowContainer an 'insert' method.
174 * math_xiter.C: new 'container()' method to encapsulated access to
175 the MathParInset's MathedRowContainer
177 * math_rowst.h: proper copy constructor and destructor for
180 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
181 automatically created by the compiler are ok now.
183 2001-03-06 André Pönitz <poenitz@htwm.de>
185 * array.[Ch]: factor out deep_copy,
186 remove third argument from raw_pointer_insert
188 * math_iter.[Ch]: remove unused function Clear()
190 * math_cursor.C: change signature of MathStackXIter:push()
193 * math_rowst.h: introduction of MathRowContainer
194 several files: corresponding changes
196 2001-03-04 André Pönitz <poenitz@htwm.de>
198 * math_macrotemplate.[Ch]:
199 math_macro.C: move update() functionality to the macro
201 * math_rowst.h: split MathedRowSt into "data" and "list"
203 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
205 * math_macrotemplate.C (update): use MathMacro::getArg, and
206 receive a const reference.
207 (getMacroPar): add an Assert
209 * math_macrotemplate.h: make MathMacro a friend, make update take
212 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
213 and store a MathMacroArgument in the vector
214 * math_macro.C: changes because of the above.
217 * math_parser.C (mathed_parse): plug potential leak
219 * math_iter.h: add comment on virtual destructor
221 * math_iter.C (Delete): make c const
223 * math_parinset.C (Metrics): cleanup indent. make one string const.
225 * math_inset.C (size): move out of line
228 * math_macroarg.h: remove default constructor
230 * math_macroarg.C: include Lsstream.h instead of debug.h
231 (MathMacroArgument): remove default constructor
232 (Write): add std:: on ostream arg
234 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
237 * formula.C: make DEBUG into lyxerr
239 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
241 * math_macrotemplate.h: make noncopyable, remove last arg to
242 constructor, remove flags_ add edit_
243 (flags): remove method
245 * math_macrotemplate.C (setArgument): delete method
246 (update): make idx const
247 (Metrics): use edit_, remove flags_
248 (draw): use edit_, remove flags_
249 (setEditMode): set edit_, remove flags_
250 (MathMacroTemplate): initialize edit_, remove flags_
252 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
253 shared_ptr, let constructor take a shared_ptr
255 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
257 (draw): remove unneded update, remove removed update of x,y
258 (GetXY): call tmplates GetMacroXY directly
259 (SetFocus): call Metrics() instead of update()
260 (Write): remove support for math macro environments, simplifications.
262 * math_macrotable.h: make class noncopyable, change getMacro to
263 createMacro, change vector to map store a
264 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
266 * math_macrotable.C: add pragma
267 (createMacro): change name from getMacro, use shared_ptr
268 (getTemplate): Use map lookup to get macro, return shared_ptr
269 (addTemplate): assert that m containse a valid pointer, use map[]
271 (builtinMacros): by using shared_ptr fix the mem leak, remove
272 commented out unsupported macros
274 * math_cursor.C: changes because of the above
275 * math_parser.C: changes because of the abobe
277 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
278 default arg on constructor.
279 * formulamacro.C: changes because of the above
281 * math_parinset.h: add pragma
282 (SetAlign): move inline out of class def
286 (setArgumentIdx): ditto
287 (setNextArgIdx): ditto
288 (getArgumentIdx): ditto
289 (getMaxArgumentIdx): ditto
294 * math_parinset.C: add pragma
295 (Write): change the else clause, lessen depth
297 * math_macroarg.h: small whitespace change
299 * array.C: include support/LOstream.h add using ostream and endl
301 * array.h (dump): add std:: on ostream
303 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
305 * math_macrotemplate.h: remove default arg on update
307 * math_macrotemplate.C (update): add assert and remove noop case.
309 * formulamacro.C (Read): add comment.
310 (ascent): remove noop call to MathMacroTemplate
315 * math_parser.C (mathed_parse): fix another potential problem by
316 passing a freestanding mathedarray.
318 * math_root.C (GetData): add const version
320 * math_parinset.C (~MathParInset): delete
321 (GetData): add const version
323 * math_matrixinset.C (MathMatrixInset): delete pointer version,
324 make it a proper copy constructor instead
326 (MathMatrixInset): remvoe default val for m and n
328 * math_macro.C (GetData): add const version
330 * math_fracinset.C (GetData): add const version
332 * math_cursor.C (SelCopy): make p1 and p2 const
333 (SelCut): make p1 and p2 const
335 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
336 (LyxCode): move inline out of class
340 * array.[Ch] (dump): method added for debugging purposes
342 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
343 mathed_parse when reading a matrix.
345 * math_spaceinset.[Ch]: add pragma, make variables private add
346 '_', change order of method definitions.
348 * math_root.h (~MathRootInset): delete
349 Change uroot_ to be a real object instead of a pointer
350 * math_root.C: changes because of the above
352 * math_macro.C (MathMacro(MathMacro*)): delete constructor
353 (MathMacro(MathMacro const &)): new copy constructor
355 * math_inset.h: delete constructor taking a pointer to MathedInset
356 (size, incSize): move inline method
358 * math_funcinset.h: add pragma, remove class vars ln and fname,
359 change protected to private, add '_' to priv vars.
360 (~MathFuncInset): remove
362 * math_fracinset.h: make MathParInset den_ a real object and not a
365 * math_fracinset.C (MathFracInset): clean up, move initalization
366 to initialization list
367 (~MathFracInset): remove
370 * math_draw.C: delete file
372 * math_dotsinset.[Ch]: add pragma
374 * math_bigopinset.h: make protected variables private add '_' to vars.
376 * math_bigopinset.C: move methods to follow class definition order
378 * math_accentinset.h (getAccentCode): move inline here
380 * math_accentinset.C (MathAccentInset): cleanup
383 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
385 * math_inset.[Ch] (MathedInset): remove method
387 * Makefile.am (libmathed_la_SOURCES): correct typo
389 * math_parinset.C (draw): move MathedXiter data(this) up. and
390 remove it two other places.
392 * math_macro.C (MathMacro): use array directly, don't use
393 setArgumentIdx and GetData
395 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
397 * math_macroarg.C (MathMacroArgument): delete
398 * math_macro.C (~MathMacro): delete
399 * math_macrotemplate.C (~MathMacroTemplate): delete
401 * math_decorationinset.[Ch]: add pragma
402 * math_deliminset.[Ch]: likewise
403 * math_fracinset.[Ch]: likewise
404 * math_macroarg.[Ch]: likewise
405 * math_macrotemplate.[Ch]: likewise
406 * math_matrixinset.[Ch]: likewise
408 * formulamacro.C (Read): set contents of tmacro_ to ar.
410 * formulamacro.h: add '_' to private variables.
411 * formalamacro.C: changes because of this.
413 2001-02-23 Juergen Vigna <jug@sad.it>
415 * formula.C (LocalDispatch): changed action to be a kb_action (as it
416 should be) and not an int.
418 * formulamacro.C (LocalDispatch): ditto.
420 2001-02-14 André Pönitz <poenitz@htwm.de>
422 * math_parinset.[Ch]: make array a real MathArray, not just a
425 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
427 * several files: subsequent changes
429 * math_cursor.C: make selarray a proper MathArray
431 * several files: Change "MathedArray *" to "MathedArray &"
434 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
436 * array.C (MathedArray): Fix compilation problem.
438 2001-02-14 André Pönitz <poenitz@htwm.de>
440 * array.[Ch]: "deep" copy constructor and assignment operator for
443 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
445 * math_iter.[Ch]: remove SetData
446 several files: subsequent changes
448 2001-02-14 André Pönitz <poenitz@htwm.de>
450 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
453 * math_iter.C: default-construct and resize array
455 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
457 * math_xiter.h: move ipush and ipop to public, add _ on private
458 variables, move protected var to private, remove friend.
460 * math_cursor.C (insertInset): rename method from Insert also
461 remove default arg val. Call the public methods of xiter instead
462 of private variables.
464 * changes to several files because of the above.
466 2001-02-14 André Pönitz <poenitz@htwm.de>
468 * math_iter.[Ch]: hide fcode_
470 * math_parinset.C: subsequent changes
473 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
475 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
478 * math_write.C: delete file
479 * math_delim.C: delete file
480 * marh_sqrtinset.h: delete file
482 * move funcs to more localized files, more general cleanup.
483 Constify several local vars. Doxygen changes. Formatting.
485 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
487 * support.C: add some consts
489 * matriz.C: clean up a bit.
490 (matmat): remove the for loop.
492 * several files: changes so that several friends can be removed
494 2001-02-14 André Pönitz <poenitz@htwm.de>
496 * formula.C: reformatting
500 math_xiter.[Ch]: remove unneeded members
502 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
506 * formula.C: remove cruft
508 * array.C (begin): new method
511 2001-02-14 André Pönitz <poenitz@htwm.de>
513 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
515 * math_cursor.C: reformatting
517 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
521 * math_matrixinset.C:
522 * math_macrotemplate.C:
527 * math_decorationinset.C:
529 * math_accentinset.C:
530 * math_sqrtinset.C: include LOstream.h and add using directive.
532 2001-02-14 André Pönitz <poenitz@htwm.de>
534 * math_iter.C: reformatting
536 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
538 * math_spaceinset.C (GetSpace): move here
540 * math_parinset.C: add debug.h, move several prev. inlined methods
543 * math_macrotable.C math_xiter.C support.C: add debug.h
545 * math_macro.h: remove debug.h, remove typedefs
547 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
550 * math_hash.C: change some defines to int const. change use of
551 LM_TC_NORMAL to LM_TC_VAR
553 * math_draw.C: delete file
555 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
556 forward decls. remove LM_TC_NORMAL, move inline methods to
557 support.C (and support.h)
559 * math_cursor.C: move several previous inlined methods here
561 * math_bigopinset.h math_dotsinset.h math_funcinset.h
562 math_parinset.h math_spaceinset.h: add math_defs.h
564 * math_accentinset.h: add support.h and math_defs.h
566 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
568 * formula.h: remove unused func decl: OpenMathInset
570 * formula.C math_inset.h: get rid of math_defs.h
572 * array.h: switch to support.h instead of math_defs.h
574 * array.C: remove one include
576 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
578 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
580 * math_parser.C: include macrotable and macrotemplate
582 * math_macrotemplate.[Ch]: new files
584 * math_macrotable.[Ch]: new files
586 * math_macroarg.[Ch]: new files
588 * math_macro.C: move stuff to the new files.
590 * math_cursor.C: include math_macrotable.h
592 * macro_support.[Ch]: new files
594 * formulamacro.C: add more includes
596 * Makefile.am (libmathed_la_SOURCES): add new files.
598 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
600 * Makefile.am (libmathed_la_SOURCES): remove duplicate
605 * math_parinset.C: add a bunch of "using" directives.
608 * math_decorationinset.h:
610 * math_spaceinset.h: remove more couples of inline.
612 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
614 * math_xiter.h: remove a couple of "inline"
616 * array.C (strange_copy): fix bug (hopefully)
617 * many files: add a lot of new files and move methods to the class
618 files they belong to. Only first attempt at cleanup more will
621 2001-02-12 André Pönitz <poenitz@htwm.de>
623 * math_macro.[hC]: replace MathMacroArgument[] with
624 std::vector<MathMacroArgument>
626 math_inset.C: replace int[] with std::vector<int>
628 * math_symbols.C: replace FL_OBJECTP[] with
629 std::vector<FL_OBJECT*>
631 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
633 * math_defs.h (struct MathedRowSt): make all private variables end
634 with '_', initialize in initializer list instead of in function
637 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
639 * formula.C (LocalDispatch): Change the default action of
640 break-line to create an align* environment instead of eqnarray*.
642 * math_inset.C (Metrics): Correct drawing of the multline
645 2001-02-12 André Pönitz <poenitz@htwm.de>
647 * array.[hC]: replace private variable maxsize_ with call to
649 * math_defs.h: replace int[] by std::vector<int> for
652 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
654 * array.h: made all variables private, removed friend, added new
655 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
656 non const operator[] added setter for last and getter for maxsize.
657 changed name from LyxArrayBase to MathedArray.
658 changed name of some methods to start with lowerchar.
659 moved inline methods to array.C
661 * math_iter.C + several file: changes because of the above.
663 * array.C: new file with the prev inline methods.
665 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
667 * Many files: add support for the align environment from amsmath.
669 2001-02-09 André Pönitz <poenitz@htwm.de>
671 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
672 * several files: subsequent changes
673 * math_iter.h: remove unused prototype
676 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
678 * math_macro.C (draw): add .c_str() to .str() (useful when
679 compiling with lyxstring, but STL sstream).
682 2001-02-08 André Pönitz <poenitz@htwm.de>
684 * several files: get rid of reinterpret_cast.
686 2001-02-04 Allan Rae <rae@lyx.org>
688 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
689 just casting the variable.
691 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
693 * Many files: Add support for multline and alignat environments from
696 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
698 * math_symbols.C (math_insert_greek): Move cursor right when
699 unlocking the math inset.
701 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
703 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
705 * formula.C (LocalDispatch): Before inserting a label in an
706 eqnarray, move the cursor to the top level.
708 * math_iter.C (getLabel): Test if crow == 0.
710 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
712 * math_draw.C (Metrics): Use the correct GetString.