1 2001-04-20 Allan Rae <rae@lyx.org>
3 * formula.C (LocalDispatch): fixed another #warning. Guess who.
5 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
7 * math_macrotemplate.h: inherit privately from noncopyable
9 * math_macro.C (Metrics): reindent, use unsigned int as loop var
10 (setArgumentIdx): change test to avoid unsigned warning
12 * formula.C (LocalDispatch): use LFUN_MESSAGE
14 2001-04-16 Allan Rae <rae@lyx.org>
16 * formula.C (Latex, getLabelList, LocalDispatch):
17 * math_parser.C (mathed_parse):
18 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
19 an unrecognised preprocessor directive. So ensure they're wrapped.
21 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
23 * formula.C (draw): adjust for cursor_visible
24 (ToggleInsetCursor): adjust for cursor_visible and constify asc
26 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
27 (HideInsetCursor): adjust for cursor_visible
28 (LocalDispatch): constify default_label and res
30 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
32 * math_rowst.C: add missing #include <config.h>.
34 2001-03-16 André Pönitz <poenitz@htwm.de>
38 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
40 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
48 * math_symbols.C: maths panel moved to GUII
50 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
52 * math_cursor.C: use lyxerr instead of cerr.
54 2001-03-15 André Pönitz <poenitz@htwm.de>
56 * math_cursor.C: fix bug (cursor was leaving two insets at a time
59 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
61 * math_macrotable.h: noncopyable is in namespace boost
62 * math_macrotemplate.h: ditto
64 * math_rowst.h: make MathedRowContainer::iterator public.
66 2001-03-15 André Pönitz <poenitz@htwm.de>
68 * math_parser.C: read '\nonumber' again (was broken)
70 * math_rowst.C: new file
72 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
74 * math_cursor.C: added using directive.
76 2001-03-15 André Pönitz <poenitz@htwm.de>
78 * math_rowst.h: Finally remove MathedRowSt
81 math_xiter.C: changed accordingly
83 2001-03-12 André Pönitz <poenitz@htwm.de>
85 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
86 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
88 2001-03-10 André Pönitz <poenitz@htwm.de>
91 math_matrixinset.C: move adjustVerticalSt to the only place where
92 it is used. Fix a small bug where the cached row structure and the
93 actual data get out of sync after the deletion of whole rows
95 2001-03-09 André Pönitz <poenitz@htwm.de>
97 * math_cursor.C: use std::vector<> in MathStackXIter
98 change selstk from a pointer to the "real thing"
100 * math_rowst.h: new MathedRowContainer::erase method
102 * math_xiter.C: use MathedRowContainer::erase
104 * math_parser.C: use MathedRowContainer::insert_after
106 2001-03-08 André Pönitz <poenitz@htwm.de>
108 * math_rowst.h: give MathedRowContainer an 'insert' method.
110 * math_xiter.C: new 'container()' method to encapsulated access to
111 the MathParInset's MathedRowContainer
113 * math_rowst.h: proper copy constructor and destructor for
116 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
117 automatically created by the compiler are ok now.
119 2001-03-06 André Pönitz <poenitz@htwm.de>
121 * array.[Ch]: factor out deep_copy,
122 remove third argument from raw_pointer_insert
124 * math_iter.[Ch]: remove unused function Clear()
126 * math_cursor.C: change signature of MathStackXIter:push()
129 * math_rowst.h: introduction of MathRowContainer
130 several files: corresponding changes
132 2001-03-04 André Pönitz <poenitz@htwm.de>
134 * math_macrotemplate.[Ch]:
135 math_macro.C: move update() functionality to the macro
137 * math_rowst.h: split MathedRowSt into "data" and "list"
139 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
141 * math_macrotemplate.C (update): use MathMacro::getArg, and
142 receive a const reference.
143 (getMacroPar): add an Assert
145 * math_macrotemplate.h: make MathMacro a friend, make update take
148 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
149 and store a MathMacroArgument in the vector
150 * math_macro.C: changes because of the above.
153 * math_parser.C (mathed_parse): plug potential leak
155 * math_iter.h: add comment on virtual destructor
157 * math_iter.C (Delete): make c const
159 * math_parinset.C (Metrics): cleanup indent. make one string const.
161 * math_inset.C (size): move out of line
164 * math_macroarg.h: remove default constructor
166 * math_macroarg.C: include Lsstream.h instead of debug.h
167 (MathMacroArgument): remove default constructor
168 (Write): add std:: on ostream arg
170 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
173 * formula.C: make DEBUG into lyxerr
175 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
177 * math_macrotemplate.h: make noncopyable, remove last arg to
178 constructor, remove flags_ add edit_
179 (flags): remove method
181 * math_macrotemplate.C (setArgument): delete method
182 (update): make idx const
183 (Metrics): use edit_, remove flags_
184 (draw): use edit_, remove flags_
185 (setEditMode): set edit_, remove flags_
186 (MathMacroTemplate): initialize edit_, remove flags_
188 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
189 shared_ptr, let constructor take a shared_ptr
191 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
193 (draw): remove unneded update, remove removed update of x,y
194 (GetXY): call tmplates GetMacroXY directly
195 (SetFocus): call Metrics() instead of update()
196 (Write): remove support for math macro environments, simplifications.
198 * math_macrotable.h: make class noncopyable, change getMacro to
199 createMacro, change vector to map store a
200 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
202 * math_macrotable.C: add pragma
203 (createMacro): change name from getMacro, use shared_ptr
204 (getTemplate): Use map lookup to get macro, return shared_ptr
205 (addTemplate): assert that m containse a valid pointer, use map[]
207 (builtinMacros): by using shared_ptr fix the mem leak, remove
208 commented out unsupported macros
210 * math_cursor.C: changes because of the above
211 * math_parser.C: changes because of the abobe
213 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
214 default arg on constructor.
215 * formulamacro.C: changes because of the above
217 * math_parinset.h: add pragma
218 (SetAlign): move inline out of class def
222 (setArgumentIdx): ditto
223 (setNextArgIdx): ditto
224 (getArgumentIdx): ditto
225 (getMaxArgumentIdx): ditto
230 * math_parinset.C: add pragma
231 (Write): change the else clause, lessen depth
233 * math_macroarg.h: small whitespace change
235 * array.C: include support/LOstream.h add using ostream and endl
237 * array.h (dump): add std:: on ostream
239 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
241 * math_macrotemplate.h: remove default arg on update
243 * math_macrotemplate.C (update): add assert and remove noop case.
245 * formulamacro.C (Read): add comment.
246 (ascent): remove noop call to MathMacroTemplate
251 * math_parser.C (mathed_parse): fix another potential problem by
252 passing a freestanding mathedarray.
254 * math_root.C (GetData): add const version
256 * math_parinset.C (~MathParInset): delete
257 (GetData): add const version
259 * math_matrixinset.C (MathMatrixInset): delete pointer version,
260 make it a proper copy constructor instead
262 (MathMatrixInset): remvoe default val for m and n
264 * math_macro.C (GetData): add const version
266 * math_fracinset.C (GetData): add const version
268 * math_cursor.C (SelCopy): make p1 and p2 const
269 (SelCut): make p1 and p2 const
271 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
272 (LyxCode): move inline out of class
276 * array.[Ch] (dump): method added for debugging purposes
278 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
279 mathed_parse when reading a matrix.
281 * math_spaceinset.[Ch]: add pragma, make variables private add
282 '_', change order of method definitions.
284 * math_root.h (~MathRootInset): delete
285 Change uroot_ to be a real object instead of a pointer
286 * math_root.C: changes because of the above
288 * math_macro.C (MathMacro(MathMacro*)): delete constructor
289 (MathMacro(MathMacro const &)): new copy constructor
291 * math_inset.h: delete constructor taking a pointer to MathedInset
292 (size, incSize): move inline method
294 * math_funcinset.h: add pragma, remove class vars ln and fname,
295 change protected to private, add '_' to priv vars.
296 (~MathFuncInset): remove
298 * math_fracinset.h: make MathParInset den_ a real object and not a
301 * math_fracinset.C (MathFracInset): clean up, move initalization
302 to initialization list
303 (~MathFracInset): remove
306 * math_draw.C: delete file
308 * math_dotsinset.[Ch]: add pragma
310 * math_bigopinset.h: make protected variables private add '_' to vars.
312 * math_bigopinset.C: move methods to follow class definition order
314 * math_accentinset.h (getAccentCode): move inline here
316 * math_accentinset.C (MathAccentInset): cleanup
319 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
321 * math_inset.[Ch] (MathedInset): remove method
323 * Makefile.am (libmathed_la_SOURCES): correct typo
325 * math_parinset.C (draw): move MathedXiter data(this) up. and
326 remove it two other places.
328 * math_macro.C (MathMacro): use array directly, don't use
329 setArgumentIdx and GetData
331 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
333 * math_macroarg.C (MathMacroArgument): delete
334 * math_macro.C (~MathMacro): delete
335 * math_macrotemplate.C (~MathMacroTemplate): delete
337 * math_decorationinset.[Ch]: add pragma
338 * math_deliminset.[Ch]: likewise
339 * math_fracinset.[Ch]: likewise
340 * math_macroarg.[Ch]: likewise
341 * math_macrotemplate.[Ch]: likewise
342 * math_matrixinset.[Ch]: likewise
344 * formulamacro.C (Read): set contents of tmacro_ to ar.
346 * formulamacro.h: add '_' to private variables.
347 * formalamacro.C: changes because of this.
349 2001-02-23 Juergen Vigna <jug@sad.it>
351 * formula.C (LocalDispatch): changed action to be a kb_action (as it
352 should be) and not an int.
354 * formulamacro.C (LocalDispatch): ditto.
356 2001-02-14 André Pönitz <poenitz@htwm.de>
358 * math_parinset.[Ch]: make array a real MathArray, not just a
361 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
363 * several files: subsequent changes
365 * math_cursor.C: make selarray a proper MathArray
367 * several files: Change "MathedArray *" to "MathedArray &"
370 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
372 * array.C (MathedArray): Fix compilation problem.
374 2001-02-14 André Pönitz <poenitz@htwm.de>
376 * array.[Ch]: "deep" copy constructor and assignment operator for
379 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
381 * math_iter.[Ch]: remove SetData
382 several files: subsequent changes
384 2001-02-14 André Pönitz <poenitz@htwm.de>
386 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
389 * math_iter.C: default-construct and resize array
391 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
393 * math_xiter.h: move ipush and ipop to public, add _ on private
394 variables, move protected var to private, remove friend.
396 * math_cursor.C (insertInset): rename method from Insert also
397 remove default arg val. Call the public methods of xiter instead
398 of private variables.
400 * changes to several files because of the above.
402 2001-02-14 André Pönitz <poenitz@htwm.de>
404 * math_iter.[Ch]: hide fcode_
406 * math_parinset.C: subsequent changes
409 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
411 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
414 * math_write.C: delete file
415 * math_delim.C: delete file
416 * marh_sqrtinset.h: delete file
418 * move funcs to more localized files, more general cleanup.
419 Constify several local vars. Doxygen changes. Formatting.
421 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
423 * support.C: add some consts
425 * matriz.C: clean up a bit.
426 (matmat): remove the for loop.
428 * several files: changes so that several friends can be removed
430 2001-02-14 André Pönitz <poenitz@htwm.de>
432 * formula.C: reformatting
436 math_xiter.[Ch]: remove unneeded members
438 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
442 * formula.C: remove cruft
444 * array.C (begin): new method
447 2001-02-14 André Pönitz <poenitz@htwm.de>
449 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
451 * math_cursor.C: reformatting
453 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
457 * math_matrixinset.C:
458 * math_macrotemplate.C:
463 * math_decorationinset.C:
465 * math_accentinset.C:
466 * math_sqrtinset.C: include LOstream.h and add using directive.
468 2001-02-14 André Pönitz <poenitz@htwm.de>
470 * math_iter.C: reformatting
472 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
474 * math_spaceinset.C (GetSpace): move here
476 * math_parinset.C: add debug.h, move several prev. inlined methods
479 * math_macrotable.C math_xiter.C support.C: add debug.h
481 * math_macro.h: remove debug.h, remove typedefs
483 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
486 * math_hash.C: change some defines to int const. change use of
487 LM_TC_NORMAL to LM_TC_VAR
489 * math_draw.C: delete file
491 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
492 forward decls. remove LM_TC_NORMAL, move inline methods to
493 support.C (and support.h)
495 * math_cursor.C: move several previous inlined methods here
497 * math_bigopinset.h math_dotsinset.h math_funcinset.h
498 math_parinset.h math_spaceinset.h: add math_defs.h
500 * math_accentinset.h: add support.h and math_defs.h
502 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
504 * formula.h: remove unused func decl: OpenMathInset
506 * formula.C math_inset.h: get rid of math_defs.h
508 * array.h: switch to support.h instead of math_defs.h
510 * array.C: remove one include
512 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
514 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
516 * math_parser.C: include macrotable and macrotemplate
518 * math_macrotemplate.[Ch]: new files
520 * math_macrotable.[Ch]: new files
522 * math_macroarg.[Ch]: new files
524 * math_macro.C: move stuff to the new files.
526 * math_cursor.C: include math_macrotable.h
528 * macro_support.[Ch]: new files
530 * formulamacro.C: add more includes
532 * Makefile.am (libmathed_la_SOURCES): add new files.
534 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
536 * Makefile.am (libmathed_la_SOURCES): remove duplicate
541 * math_parinset.C: add a bunch of "using" directives.
544 * math_decorationinset.h:
546 * math_spaceinset.h: remove more couples of inline.
548 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
550 * math_xiter.h: remove a couple of "inline"
552 * array.C (strange_copy): fix bug (hopefully)
553 * many files: add a lot of new files and move methods to the class
554 files they belong to. Only first attempt at cleanup more will
557 2001-02-12 André Pönitz <poenitz@htwm.de>
559 * math_macro.[hC]: replace MathMacroArgument[] with
560 std::vector<MathMacroArgument>
562 math_inset.C: replace int[] with std::vector<int>
564 * math_symbols.C: replace FL_OBJECTP[] with
565 std::vector<FL_OBJECT*>
567 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
569 * math_defs.h (struct MathedRowSt): make all private variables end
570 with '_', initialize in initializer list instead of in function
573 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
575 * formula.C (LocalDispatch): Change the default action of
576 break-line to create an align* environment instead of eqnarray*.
578 * math_inset.C (Metrics): Correct drawing of the multline
581 2001-02-12 André Pönitz <poenitz@htwm.de>
583 * array.[hC]: replace private variable maxsize_ with call to
585 * math_defs.h: replace int[] by std::vector<int> for
588 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
590 * array.h: made all variables private, removed friend, added new
591 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
592 non const operator[] added setter for last and getter for maxsize.
593 changed name from LyxArrayBase to MathedArray.
594 changed name of some methods to start with lowerchar.
595 moved inline methods to array.C
597 * math_iter.C + several file: changes because of the above.
599 * array.C: new file with the prev inline methods.
601 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
603 * Many files: add support for the align environment from amsmath.
605 2001-02-09 André Pönitz <poenitz@htwm.de>
607 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
608 * several files: subsequent changes
609 * math_iter.h: remove unused prototype
612 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
614 * math_macro.C (draw): add .c_str() to .str() (useful when
615 compiling with lyxstring, but STL sstream).
618 2001-02-08 André Pönitz <poenitz@htwm.de>
620 * several files: get rid of reinterpret_cast.
622 2001-02-04 Allan Rae <rae@lyx.org>
624 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
625 just casting the variable.
627 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
629 * Many files: Add support for multline and alignat environments from
632 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
634 * math_symbols.C (math_insert_greek): Move cursor right when
635 unlocking the math inset.
637 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
639 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
641 * formula.C (LocalDispatch): Before inserting a label in an
642 eqnarray, move the cursor to the top level.
644 * math_iter.C (getLabel): Test if crow == 0.
646 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
648 * math_draw.C (Metrics): Use the correct GetString.