1 2001-05-02 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
3 * math_macrotemplate.h: do not use explicitely std::string, but
6 * math_macroarg.C: avoid bringing the whole std:: namespace in
7 global-land. When you do that, there is an ambiguity between
8 lyxstring and std::string (which may be defined at the same time).
10 * formula.C (HandleExtern): add .c_str() to .str() (useful when
13 2001-04-27 André Pönitz <poenitz@htwm.de>
15 * math_parser.C: fix \frac handling bug introduced on 04-24
16 * math_xiter.C: hotfix for merging "shared" insets
18 2001-04-25 André Pönitz <poenitz@htwm.de>
20 * math_*.[Ch]: WriteNormal
21 * formula.C: Support for new "math extern" command
23 2001-04-25 Lars Gullik Bjønnes <larsbj@birdstep.com>
25 * math_macrotable.C: include <iostream>
27 2001-04-24 André Pönitz <poenitz@htwm.de>
30 * math_macrotable.[Ch]:
31 * math_macroarg.[Ch]: restructuring of macro handling
34 2001-04-25 Angus Leeming <a.leeming@ic.ac.uk>
36 * array.h (operator<<):
37 * math_macro.h (dump, operator<<): added std:: qualifier to ostream.
39 * math_macrotable.C: added using std::make_pair directive.
40 (dump): added using std::cerr directive here as I guess that this is
43 2001-04-20 Allan Rae <rae@lyx.org>
45 * formula.C (LocalDispatch): fixed another #warning. Guess who.
47 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
49 * math_macrotemplate.h: inherit privately from noncopyable
51 * math_macro.C (Metrics): reindent, use unsigned int as loop var
52 (setArgumentIdx): change test to avoid unsigned warning
54 * formula.C (LocalDispatch): use LFUN_MESSAGE
56 2001-04-16 Allan Rae <rae@lyx.org>
58 * formula.C (Latex, getLabelList, LocalDispatch):
59 * math_parser.C (mathed_parse):
60 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
61 an unrecognised preprocessor directive. So ensure they're wrapped.
63 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
65 * formula.C (draw): adjust for cursor_visible
66 (ToggleInsetCursor): adjust for cursor_visible and constify asc
68 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
69 (HideInsetCursor): adjust for cursor_visible
70 (LocalDispatch): constify default_label and res
72 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
74 * math_rowst.C: add missing #include <config.h>.
76 2001-03-16 André Pönitz <poenitz@htwm.de>
80 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
82 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
90 * math_symbols.C: maths panel moved to GUII
92 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
94 * math_cursor.C: use lyxerr instead of cerr.
96 2001-03-15 André Pönitz <poenitz@htwm.de>
98 * math_cursor.C: fix bug (cursor was leaving two insets at a time
101 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
103 * math_macrotable.h: noncopyable is in namespace boost
104 * math_macrotemplate.h: ditto
106 * math_rowst.h: make MathedRowContainer::iterator public.
108 2001-03-15 André Pönitz <poenitz@htwm.de>
110 * math_parser.C: read '\nonumber' again (was broken)
112 * math_rowst.C: new file
114 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
116 * math_cursor.C: added using directive.
118 2001-03-15 André Pönitz <poenitz@htwm.de>
120 * math_rowst.h: Finally remove MathedRowSt
123 math_xiter.C: changed accordingly
125 2001-03-12 André Pönitz <poenitz@htwm.de>
127 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
128 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
130 2001-03-10 André Pönitz <poenitz@htwm.de>
133 math_matrixinset.C: move adjustVerticalSt to the only place where
134 it is used. Fix a small bug where the cached row structure and the
135 actual data get out of sync after the deletion of whole rows
137 2001-03-09 André Pönitz <poenitz@htwm.de>
139 * math_cursor.C: use std::vector<> in MathStackXIter
140 change selstk from a pointer to the "real thing"
142 * math_rowst.h: new MathedRowContainer::erase method
144 * math_xiter.C: use MathedRowContainer::erase
146 * math_parser.C: use MathedRowContainer::insert_after
148 2001-03-08 André Pönitz <poenitz@htwm.de>
150 * math_rowst.h: give MathedRowContainer an 'insert' method.
152 * math_xiter.C: new 'container()' method to encapsulated access to
153 the MathParInset's MathedRowContainer
155 * math_rowst.h: proper copy constructor and destructor for
158 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
159 automatically created by the compiler are ok now.
161 2001-03-06 André Pönitz <poenitz@htwm.de>
163 * array.[Ch]: factor out deep_copy,
164 remove third argument from raw_pointer_insert
166 * math_iter.[Ch]: remove unused function Clear()
168 * math_cursor.C: change signature of MathStackXIter:push()
171 * math_rowst.h: introduction of MathRowContainer
172 several files: corresponding changes
174 2001-03-04 André Pönitz <poenitz@htwm.de>
176 * math_macrotemplate.[Ch]:
177 math_macro.C: move update() functionality to the macro
179 * math_rowst.h: split MathedRowSt into "data" and "list"
181 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
183 * math_macrotemplate.C (update): use MathMacro::getArg, and
184 receive a const reference.
185 (getMacroPar): add an Assert
187 * math_macrotemplate.h: make MathMacro a friend, make update take
190 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
191 and store a MathMacroArgument in the vector
192 * math_macro.C: changes because of the above.
195 * math_parser.C (mathed_parse): plug potential leak
197 * math_iter.h: add comment on virtual destructor
199 * math_iter.C (Delete): make c const
201 * math_parinset.C (Metrics): cleanup indent. make one string const.
203 * math_inset.C (size): move out of line
206 * math_macroarg.h: remove default constructor
208 * math_macroarg.C: include Lsstream.h instead of debug.h
209 (MathMacroArgument): remove default constructor
210 (Write): add std:: on ostream arg
212 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
215 * formula.C: make DEBUG into lyxerr
217 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
219 * math_macrotemplate.h: make noncopyable, remove last arg to
220 constructor, remove flags_ add edit_
221 (flags): remove method
223 * math_macrotemplate.C (setArgument): delete method
224 (update): make idx const
225 (Metrics): use edit_, remove flags_
226 (draw): use edit_, remove flags_
227 (setEditMode): set edit_, remove flags_
228 (MathMacroTemplate): initialize edit_, remove flags_
230 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
231 shared_ptr, let constructor take a shared_ptr
233 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
235 (draw): remove unneded update, remove removed update of x,y
236 (GetXY): call tmplates GetMacroXY directly
237 (SetFocus): call Metrics() instead of update()
238 (Write): remove support for math macro environments, simplifications.
240 * math_macrotable.h: make class noncopyable, change getMacro to
241 createMacro, change vector to map store a
242 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
244 * math_macrotable.C: add pragma
245 (createMacro): change name from getMacro, use shared_ptr
246 (getTemplate): Use map lookup to get macro, return shared_ptr
247 (addTemplate): assert that m containse a valid pointer, use map[]
249 (builtinMacros): by using shared_ptr fix the mem leak, remove
250 commented out unsupported macros
252 * math_cursor.C: changes because of the above
253 * math_parser.C: changes because of the abobe
255 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
256 default arg on constructor.
257 * formulamacro.C: changes because of the above
259 * math_parinset.h: add pragma
260 (SetAlign): move inline out of class def
264 (setArgumentIdx): ditto
265 (setNextArgIdx): ditto
266 (getArgumentIdx): ditto
267 (getMaxArgumentIdx): ditto
272 * math_parinset.C: add pragma
273 (Write): change the else clause, lessen depth
275 * math_macroarg.h: small whitespace change
277 * array.C: include support/LOstream.h add using ostream and endl
279 * array.h (dump): add std:: on ostream
281 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
283 * math_macrotemplate.h: remove default arg on update
285 * math_macrotemplate.C (update): add assert and remove noop case.
287 * formulamacro.C (Read): add comment.
288 (ascent): remove noop call to MathMacroTemplate
293 * math_parser.C (mathed_parse): fix another potential problem by
294 passing a freestanding mathedarray.
296 * math_root.C (GetData): add const version
298 * math_parinset.C (~MathParInset): delete
299 (GetData): add const version
301 * math_matrixinset.C (MathMatrixInset): delete pointer version,
302 make it a proper copy constructor instead
304 (MathMatrixInset): remvoe default val for m and n
306 * math_macro.C (GetData): add const version
308 * math_fracinset.C (GetData): add const version
310 * math_cursor.C (SelCopy): make p1 and p2 const
311 (SelCut): make p1 and p2 const
313 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
314 (LyxCode): move inline out of class
318 * array.[Ch] (dump): method added for debugging purposes
320 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
321 mathed_parse when reading a matrix.
323 * math_spaceinset.[Ch]: add pragma, make variables private add
324 '_', change order of method definitions.
326 * math_root.h (~MathRootInset): delete
327 Change uroot_ to be a real object instead of a pointer
328 * math_root.C: changes because of the above
330 * math_macro.C (MathMacro(MathMacro*)): delete constructor
331 (MathMacro(MathMacro const &)): new copy constructor
333 * math_inset.h: delete constructor taking a pointer to MathedInset
334 (size, incSize): move inline method
336 * math_funcinset.h: add pragma, remove class vars ln and fname,
337 change protected to private, add '_' to priv vars.
338 (~MathFuncInset): remove
340 * math_fracinset.h: make MathParInset den_ a real object and not a
343 * math_fracinset.C (MathFracInset): clean up, move initalization
344 to initialization list
345 (~MathFracInset): remove
348 * math_draw.C: delete file
350 * math_dotsinset.[Ch]: add pragma
352 * math_bigopinset.h: make protected variables private add '_' to vars.
354 * math_bigopinset.C: move methods to follow class definition order
356 * math_accentinset.h (getAccentCode): move inline here
358 * math_accentinset.C (MathAccentInset): cleanup
361 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
363 * math_inset.[Ch] (MathedInset): remove method
365 * Makefile.am (libmathed_la_SOURCES): correct typo
367 * math_parinset.C (draw): move MathedXiter data(this) up. and
368 remove it two other places.
370 * math_macro.C (MathMacro): use array directly, don't use
371 setArgumentIdx and GetData
373 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
375 * math_macroarg.C (MathMacroArgument): delete
376 * math_macro.C (~MathMacro): delete
377 * math_macrotemplate.C (~MathMacroTemplate): delete
379 * math_decorationinset.[Ch]: add pragma
380 * math_deliminset.[Ch]: likewise
381 * math_fracinset.[Ch]: likewise
382 * math_macroarg.[Ch]: likewise
383 * math_macrotemplate.[Ch]: likewise
384 * math_matrixinset.[Ch]: likewise
386 * formulamacro.C (Read): set contents of tmacro_ to ar.
388 * formulamacro.h: add '_' to private variables.
389 * formalamacro.C: changes because of this.
391 2001-02-23 Juergen Vigna <jug@sad.it>
393 * formula.C (LocalDispatch): changed action to be a kb_action (as it
394 should be) and not an int.
396 * formulamacro.C (LocalDispatch): ditto.
398 2001-02-14 André Pönitz <poenitz@htwm.de>
400 * math_parinset.[Ch]: make array a real MathArray, not just a
403 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
405 * several files: subsequent changes
407 * math_cursor.C: make selarray a proper MathArray
409 * several files: Change "MathedArray *" to "MathedArray &"
412 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
414 * array.C (MathedArray): Fix compilation problem.
416 2001-02-14 André Pönitz <poenitz@htwm.de>
418 * array.[Ch]: "deep" copy constructor and assignment operator for
421 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
423 * math_iter.[Ch]: remove SetData
424 several files: subsequent changes
426 2001-02-14 André Pönitz <poenitz@htwm.de>
428 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
431 * math_iter.C: default-construct and resize array
433 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
435 * math_xiter.h: move ipush and ipop to public, add _ on private
436 variables, move protected var to private, remove friend.
438 * math_cursor.C (insertInset): rename method from Insert also
439 remove default arg val. Call the public methods of xiter instead
440 of private variables.
442 * changes to several files because of the above.
444 2001-02-14 André Pönitz <poenitz@htwm.de>
446 * math_iter.[Ch]: hide fcode_
448 * math_parinset.C: subsequent changes
451 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
453 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
456 * math_write.C: delete file
457 * math_delim.C: delete file
458 * marh_sqrtinset.h: delete file
460 * move funcs to more localized files, more general cleanup.
461 Constify several local vars. Doxygen changes. Formatting.
463 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
465 * support.C: add some consts
467 * matriz.C: clean up a bit.
468 (matmat): remove the for loop.
470 * several files: changes so that several friends can be removed
472 2001-02-14 André Pönitz <poenitz@htwm.de>
474 * formula.C: reformatting
478 math_xiter.[Ch]: remove unneeded members
480 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
484 * formula.C: remove cruft
486 * array.C (begin): new method
489 2001-02-14 André Pönitz <poenitz@htwm.de>
491 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
493 * math_cursor.C: reformatting
495 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
499 * math_matrixinset.C:
500 * math_macrotemplate.C:
505 * math_decorationinset.C:
507 * math_accentinset.C:
508 * math_sqrtinset.C: include LOstream.h and add using directive.
510 2001-02-14 André Pönitz <poenitz@htwm.de>
512 * math_iter.C: reformatting
514 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
516 * math_spaceinset.C (GetSpace): move here
518 * math_parinset.C: add debug.h, move several prev. inlined methods
521 * math_macrotable.C math_xiter.C support.C: add debug.h
523 * math_macro.h: remove debug.h, remove typedefs
525 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
528 * math_hash.C: change some defines to int const. change use of
529 LM_TC_NORMAL to LM_TC_VAR
531 * math_draw.C: delete file
533 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
534 forward decls. remove LM_TC_NORMAL, move inline methods to
535 support.C (and support.h)
537 * math_cursor.C: move several previous inlined methods here
539 * math_bigopinset.h math_dotsinset.h math_funcinset.h
540 math_parinset.h math_spaceinset.h: add math_defs.h
542 * math_accentinset.h: add support.h and math_defs.h
544 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
546 * formula.h: remove unused func decl: OpenMathInset
548 * formula.C math_inset.h: get rid of math_defs.h
550 * array.h: switch to support.h instead of math_defs.h
552 * array.C: remove one include
554 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
556 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
558 * math_parser.C: include macrotable and macrotemplate
560 * math_macrotemplate.[Ch]: new files
562 * math_macrotable.[Ch]: new files
564 * math_macroarg.[Ch]: new files
566 * math_macro.C: move stuff to the new files.
568 * math_cursor.C: include math_macrotable.h
570 * macro_support.[Ch]: new files
572 * formulamacro.C: add more includes
574 * Makefile.am (libmathed_la_SOURCES): add new files.
576 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
578 * Makefile.am (libmathed_la_SOURCES): remove duplicate
583 * math_parinset.C: add a bunch of "using" directives.
586 * math_decorationinset.h:
588 * math_spaceinset.h: remove more couples of inline.
590 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
592 * math_xiter.h: remove a couple of "inline"
594 * array.C (strange_copy): fix bug (hopefully)
595 * many files: add a lot of new files and move methods to the class
596 files they belong to. Only first attempt at cleanup more will
599 2001-02-12 André Pönitz <poenitz@htwm.de>
601 * math_macro.[hC]: replace MathMacroArgument[] with
602 std::vector<MathMacroArgument>
604 math_inset.C: replace int[] with std::vector<int>
606 * math_symbols.C: replace FL_OBJECTP[] with
607 std::vector<FL_OBJECT*>
609 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
611 * math_defs.h (struct MathedRowSt): make all private variables end
612 with '_', initialize in initializer list instead of in function
615 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
617 * formula.C (LocalDispatch): Change the default action of
618 break-line to create an align* environment instead of eqnarray*.
620 * math_inset.C (Metrics): Correct drawing of the multline
623 2001-02-12 André Pönitz <poenitz@htwm.de>
625 * array.[hC]: replace private variable maxsize_ with call to
627 * math_defs.h: replace int[] by std::vector<int> for
630 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
632 * array.h: made all variables private, removed friend, added new
633 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
634 non const operator[] added setter for last and getter for maxsize.
635 changed name from LyxArrayBase to MathedArray.
636 changed name of some methods to start with lowerchar.
637 moved inline methods to array.C
639 * math_iter.C + several file: changes because of the above.
641 * array.C: new file with the prev inline methods.
643 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
645 * Many files: add support for the align environment from amsmath.
647 2001-02-09 André Pönitz <poenitz@htwm.de>
649 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
650 * several files: subsequent changes
651 * math_iter.h: remove unused prototype
654 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
656 * math_macro.C (draw): add .c_str() to .str() (useful when
657 compiling with lyxstring, but STL sstream).
660 2001-02-08 André Pönitz <poenitz@htwm.de>
662 * several files: get rid of reinterpret_cast.
664 2001-02-04 Allan Rae <rae@lyx.org>
666 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
667 just casting the variable.
669 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
671 * Many files: Add support for multline and alignat environments from
674 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
676 * math_symbols.C (math_insert_greek): Move cursor right when
677 unlocking the math inset.
679 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
681 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
683 * formula.C (LocalDispatch): Before inserting a label in an
684 eqnarray, move the cursor to the top level.
686 * math_iter.C (getLabel): Test if crow == 0.
688 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
690 * math_draw.C (Metrics): Use the correct GetString.