1 2001-04-17 Lars Gullik Bjønnes <larsbj@birdstep.com>
3 * math_macrotemplate.h: inherit privately from noncopyable
5 * math_macro.C (Metrics): reindent, use unsigned int as loop var
6 (setArgumentIdx): change test to avoid unsigned warning
8 * formula.C (LocalDispatch): use LFUN_MESSAGE
10 2001-04-16 Allan Rae <rae@lyx.org>
12 * formula.C (Latex, getLabelList, LocalDispatch):
13 * math_parser.C (mathed_parse):
14 * math_parinset.C (Write): #warning triggers an error on Sun CC 6.0 as
15 an unrecognised preprocessor directive. So ensure they're wrapped.
17 2001-04-04 Lars Gullik Bjønnes <larsbj@birdstep.com>
19 * formula.C (draw): adjust for cursor_visible
20 (ToggleInsetCursor): adjust for cursor_visible and constify asc
22 (ShowInsetCursor): adjust for cursor_visible and constify asc and desc
23 (HideInsetCursor): adjust for cursor_visible
24 (LocalDispatch): constify default_label and res
26 2001-03-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
28 * math_rowst.C: add missing #include <config.h>.
30 2001-03-16 André Pönitz <poenitz@htwm.de>
34 * math_rowst.[Ch]: move MathedRowContainer::row_ to the base
36 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
44 * math_symbols.C: maths panel moved to GUII
46 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
48 * math_cursor.C: use lyxerr instead of cerr.
50 2001-03-15 André Pönitz <poenitz@htwm.de>
52 * math_cursor.C: fix bug (cursor was leaving two insets at a time
55 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
57 * math_macrotable.h: noncopyable is in namespace boost
58 * math_macrotemplate.h: ditto
60 * math_rowst.h: make MathedRowContainer::iterator public.
62 2001-03-15 André Pönitz <poenitz@htwm.de>
64 * math_parser.C: read '\nonumber' again (was broken)
66 * math_rowst.C: new file
68 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
70 * math_cursor.C: added using directive.
72 2001-03-15 André Pönitz <poenitz@htwm.de>
74 * math_rowst.h: Finally remove MathedRowSt
77 math_xiter.C: changed accordingly
79 2001-03-12 André Pönitz <poenitz@htwm.de>
81 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
82 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
84 2001-03-10 André Pönitz <poenitz@htwm.de>
87 math_matrixinset.C: move adjustVerticalSt to the only place where
88 it is used. Fix a small bug where the cached row structure and the
89 actual data get out of sync after the deletion of whole rows
91 2001-03-09 André Pönitz <poenitz@htwm.de>
93 * math_cursor.C: use std::vector<> in MathStackXIter
94 change selstk from a pointer to the "real thing"
96 * math_rowst.h: new MathedRowContainer::erase method
98 * math_xiter.C: use MathedRowContainer::erase
100 * math_parser.C: use MathedRowContainer::insert_after
102 2001-03-08 André Pönitz <poenitz@htwm.de>
104 * math_rowst.h: give MathedRowContainer an 'insert' method.
106 * math_xiter.C: new 'container()' method to encapsulated access to
107 the MathParInset's MathedRowContainer
109 * math_rowst.h: proper copy constructor and destructor for
112 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
113 automatically created by the compiler are ok now.
115 2001-03-06 André Pönitz <poenitz@htwm.de>
117 * array.[Ch]: factor out deep_copy,
118 remove third argument from raw_pointer_insert
120 * math_iter.[Ch]: remove unused function Clear()
122 * math_cursor.C: change signature of MathStackXIter:push()
125 * math_rowst.h: introduction of MathRowContainer
126 several files: corresponding changes
128 2001-03-04 André Pönitz <poenitz@htwm.de>
130 * math_macrotemplate.[Ch]:
131 math_macro.C: move update() functionality to the macro
133 * math_rowst.h: split MathedRowSt into "data" and "list"
135 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
137 * math_macrotemplate.C (update): use MathMacro::getArg, and
138 receive a const reference.
139 (getMacroPar): add an Assert
141 * math_macrotemplate.h: make MathMacro a friend, make update take
144 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
145 and store a MathMacroArgument in the vector
146 * math_macro.C: changes because of the above.
149 * math_parser.C (mathed_parse): plug potential leak
151 * math_iter.h: add comment on virtual destructor
153 * math_iter.C (Delete): make c const
155 * math_parinset.C (Metrics): cleanup indent. make one string const.
157 * math_inset.C (size): move out of line
160 * math_macroarg.h: remove default constructor
162 * math_macroarg.C: include Lsstream.h instead of debug.h
163 (MathMacroArgument): remove default constructor
164 (Write): add std:: on ostream arg
166 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
169 * formula.C: make DEBUG into lyxerr
171 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
173 * math_macrotemplate.h: make noncopyable, remove last arg to
174 constructor, remove flags_ add edit_
175 (flags): remove method
177 * math_macrotemplate.C (setArgument): delete method
178 (update): make idx const
179 (Metrics): use edit_, remove flags_
180 (draw): use edit_, remove flags_
181 (setEditMode): set edit_, remove flags_
182 (MathMacroTemplate): initialize edit_, remove flags_
184 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
185 shared_ptr, let constructor take a shared_ptr
187 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
189 (draw): remove unneded update, remove removed update of x,y
190 (GetXY): call tmplates GetMacroXY directly
191 (SetFocus): call Metrics() instead of update()
192 (Write): remove support for math macro environments, simplifications.
194 * math_macrotable.h: make class noncopyable, change getMacro to
195 createMacro, change vector to map store a
196 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
198 * math_macrotable.C: add pragma
199 (createMacro): change name from getMacro, use shared_ptr
200 (getTemplate): Use map lookup to get macro, return shared_ptr
201 (addTemplate): assert that m containse a valid pointer, use map[]
203 (builtinMacros): by using shared_ptr fix the mem leak, remove
204 commented out unsupported macros
206 * math_cursor.C: changes because of the above
207 * math_parser.C: changes because of the abobe
209 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
210 default arg on constructor.
211 * formulamacro.C: changes because of the above
213 * math_parinset.h: add pragma
214 (SetAlign): move inline out of class def
218 (setArgumentIdx): ditto
219 (setNextArgIdx): ditto
220 (getArgumentIdx): ditto
221 (getMaxArgumentIdx): ditto
226 * math_parinset.C: add pragma
227 (Write): change the else clause, lessen depth
229 * math_macroarg.h: small whitespace change
231 * array.C: include support/LOstream.h add using ostream and endl
233 * array.h (dump): add std:: on ostream
235 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
237 * math_macrotemplate.h: remove default arg on update
239 * math_macrotemplate.C (update): add assert and remove noop case.
241 * formulamacro.C (Read): add comment.
242 (ascent): remove noop call to MathMacroTemplate
247 * math_parser.C (mathed_parse): fix another potential problem by
248 passing a freestanding mathedarray.
250 * math_root.C (GetData): add const version
252 * math_parinset.C (~MathParInset): delete
253 (GetData): add const version
255 * math_matrixinset.C (MathMatrixInset): delete pointer version,
256 make it a proper copy constructor instead
258 (MathMatrixInset): remvoe default val for m and n
260 * math_macro.C (GetData): add const version
262 * math_fracinset.C (GetData): add const version
264 * math_cursor.C (SelCopy): make p1 and p2 const
265 (SelCut): make p1 and p2 const
267 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
268 (LyxCode): move inline out of class
272 * array.[Ch] (dump): method added for debugging purposes
274 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
275 mathed_parse when reading a matrix.
277 * math_spaceinset.[Ch]: add pragma, make variables private add
278 '_', change order of method definitions.
280 * math_root.h (~MathRootInset): delete
281 Change uroot_ to be a real object instead of a pointer
282 * math_root.C: changes because of the above
284 * math_macro.C (MathMacro(MathMacro*)): delete constructor
285 (MathMacro(MathMacro const &)): new copy constructor
287 * math_inset.h: delete constructor taking a pointer to MathedInset
288 (size, incSize): move inline method
290 * math_funcinset.h: add pragma, remove class vars ln and fname,
291 change protected to private, add '_' to priv vars.
292 (~MathFuncInset): remove
294 * math_fracinset.h: make MathParInset den_ a real object and not a
297 * math_fracinset.C (MathFracInset): clean up, move initalization
298 to initialization list
299 (~MathFracInset): remove
302 * math_draw.C: delete file
304 * math_dotsinset.[Ch]: add pragma
306 * math_bigopinset.h: make protected variables private add '_' to vars.
308 * math_bigopinset.C: move methods to follow class definition order
310 * math_accentinset.h (getAccentCode): move inline here
312 * math_accentinset.C (MathAccentInset): cleanup
315 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
317 * math_inset.[Ch] (MathedInset): remove method
319 * Makefile.am (libmathed_la_SOURCES): correct typo
321 * math_parinset.C (draw): move MathedXiter data(this) up. and
322 remove it two other places.
324 * math_macro.C (MathMacro): use array directly, don't use
325 setArgumentIdx and GetData
327 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
329 * math_macroarg.C (MathMacroArgument): delete
330 * math_macro.C (~MathMacro): delete
331 * math_macrotemplate.C (~MathMacroTemplate): delete
333 * math_decorationinset.[Ch]: add pragma
334 * math_deliminset.[Ch]: likewise
335 * math_fracinset.[Ch]: likewise
336 * math_macroarg.[Ch]: likewise
337 * math_macrotemplate.[Ch]: likewise
338 * math_matrixinset.[Ch]: likewise
340 * formulamacro.C (Read): set contents of tmacro_ to ar.
342 * formulamacro.h: add '_' to private variables.
343 * formalamacro.C: changes because of this.
345 2001-02-23 Juergen Vigna <jug@sad.it>
347 * formula.C (LocalDispatch): changed action to be a kb_action (as it
348 should be) and not an int.
350 * formulamacro.C (LocalDispatch): ditto.
352 2001-02-14 André Pönitz <poenitz@htwm.de>
354 * math_parinset.[Ch]: make array a real MathArray, not just a
357 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
359 * several files: subsequent changes
361 * math_cursor.C: make selarray a proper MathArray
363 * several files: Change "MathedArray *" to "MathedArray &"
366 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
368 * array.C (MathedArray): Fix compilation problem.
370 2001-02-14 André Pönitz <poenitz@htwm.de>
372 * array.[Ch]: "deep" copy constructor and assignment operator for
375 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
377 * math_iter.[Ch]: remove SetData
378 several files: subsequent changes
380 2001-02-14 André Pönitz <poenitz@htwm.de>
382 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
385 * math_iter.C: default-construct and resize array
387 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
389 * math_xiter.h: move ipush and ipop to public, add _ on private
390 variables, move protected var to private, remove friend.
392 * math_cursor.C (insertInset): rename method from Insert also
393 remove default arg val. Call the public methods of xiter instead
394 of private variables.
396 * changes to several files because of the above.
398 2001-02-14 André Pönitz <poenitz@htwm.de>
400 * math_iter.[Ch]: hide fcode_
402 * math_parinset.C: subsequent changes
405 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
407 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
410 * math_write.C: delete file
411 * math_delim.C: delete file
412 * marh_sqrtinset.h: delete file
414 * move funcs to more localized files, more general cleanup.
415 Constify several local vars. Doxygen changes. Formatting.
417 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
419 * support.C: add some consts
421 * matriz.C: clean up a bit.
422 (matmat): remove the for loop.
424 * several files: changes so that several friends can be removed
426 2001-02-14 André Pönitz <poenitz@htwm.de>
428 * formula.C: reformatting
432 math_xiter.[Ch]: remove unneeded members
434 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
438 * formula.C: remove cruft
440 * array.C (begin): new method
443 2001-02-14 André Pönitz <poenitz@htwm.de>
445 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
447 * math_cursor.C: reformatting
449 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
453 * math_matrixinset.C:
454 * math_macrotemplate.C:
459 * math_decorationinset.C:
461 * math_accentinset.C:
462 * math_sqrtinset.C: include LOstream.h and add using directive.
464 2001-02-14 André Pönitz <poenitz@htwm.de>
466 * math_iter.C: reformatting
468 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
470 * math_spaceinset.C (GetSpace): move here
472 * math_parinset.C: add debug.h, move several prev. inlined methods
475 * math_macrotable.C math_xiter.C support.C: add debug.h
477 * math_macro.h: remove debug.h, remove typedefs
479 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
482 * math_hash.C: change some defines to int const. change use of
483 LM_TC_NORMAL to LM_TC_VAR
485 * math_draw.C: delete file
487 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
488 forward decls. remove LM_TC_NORMAL, move inline methods to
489 support.C (and support.h)
491 * math_cursor.C: move several previous inlined methods here
493 * math_bigopinset.h math_dotsinset.h math_funcinset.h
494 math_parinset.h math_spaceinset.h: add math_defs.h
496 * math_accentinset.h: add support.h and math_defs.h
498 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
500 * formula.h: remove unused func decl: OpenMathInset
502 * formula.C math_inset.h: get rid of math_defs.h
504 * array.h: switch to support.h instead of math_defs.h
506 * array.C: remove one include
508 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
510 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
512 * math_parser.C: include macrotable and macrotemplate
514 * math_macrotemplate.[Ch]: new files
516 * math_macrotable.[Ch]: new files
518 * math_macroarg.[Ch]: new files
520 * math_macro.C: move stuff to the new files.
522 * math_cursor.C: include math_macrotable.h
524 * macro_support.[Ch]: new files
526 * formulamacro.C: add more includes
528 * Makefile.am (libmathed_la_SOURCES): add new files.
530 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
532 * Makefile.am (libmathed_la_SOURCES): remove duplicate
537 * math_parinset.C: add a bunch of "using" directives.
540 * math_decorationinset.h:
542 * math_spaceinset.h: remove more couples of inline.
544 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
546 * math_xiter.h: remove a couple of "inline"
548 * array.C (strange_copy): fix bug (hopefully)
549 * many files: add a lot of new files and move methods to the class
550 files they belong to. Only first attempt at cleanup more will
553 2001-02-12 André Pönitz <poenitz@htwm.de>
555 * math_macro.[hC]: replace MathMacroArgument[] with
556 std::vector<MathMacroArgument>
558 math_inset.C: replace int[] with std::vector<int>
560 * math_symbols.C: replace FL_OBJECTP[] with
561 std::vector<FL_OBJECT*>
563 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
565 * math_defs.h (struct MathedRowSt): make all private variables end
566 with '_', initialize in initializer list instead of in function
569 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
571 * formula.C (LocalDispatch): Change the default action of
572 break-line to create an align* environment instead of eqnarray*.
574 * math_inset.C (Metrics): Correct drawing of the multline
577 2001-02-12 André Pönitz <poenitz@htwm.de>
579 * array.[hC]: replace private variable maxsize_ with call to
581 * math_defs.h: replace int[] by std::vector<int> for
584 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
586 * array.h: made all variables private, removed friend, added new
587 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
588 non const operator[] added setter for last and getter for maxsize.
589 changed name from LyxArrayBase to MathedArray.
590 changed name of some methods to start with lowerchar.
591 moved inline methods to array.C
593 * math_iter.C + several file: changes because of the above.
595 * array.C: new file with the prev inline methods.
597 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
599 * Many files: add support for the align environment from amsmath.
601 2001-02-09 André Pönitz <poenitz@htwm.de>
603 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
604 * several files: subsequent changes
605 * math_iter.h: remove unused prototype
608 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
610 * math_macro.C (draw): add .c_str() to .str() (useful when
611 compiling with lyxstring, but STL sstream).
614 2001-02-08 André Pönitz <poenitz@htwm.de>
616 * several files: get rid of reinterpret_cast.
618 2001-02-04 Allan Rae <rae@lyx.org>
620 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
621 just casting the variable.
623 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
625 * Many files: Add support for multline and alignat environments from
628 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
630 * math_symbols.C (math_insert_greek): Move cursor right when
631 unlocking the math inset.
633 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
635 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
637 * formula.C (LocalDispatch): Before inserting a label in an
638 eqnarray, move the cursor to the top level.
640 * math_iter.C (getLabel): Test if crow == 0.
642 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
644 * math_draw.C (Metrics): Use the correct GetString.