1 2001-03-13 John Levon <moz@compsoc.man.ac.uk>
9 * math_symbols.C: maths panel moved to GUII
11 2001-03-16 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
13 * math_cursor.C: use lyxerr instead of cerr.
15 2001-03-15 André Pönitz <poenitz@htwm.de>
17 * math_cursor.C: fix bug (cursor was leaving two insets at a time instead
20 2001-03-15 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
22 * math_macrotable.h: noncopyable is in namespace boost
23 * math_macrotemplate.h: ditto
25 * math_rowst.h: make MathedRowContainer::iterator public.
27 2001-03-15 André Pönitz <poenitz@htwm.de>
29 * math_parser.C: read '\nonumber' again (was broken)
31 * math_rowst.C: new file
33 2001-03-15 Angus Leeming <a.leeming@ic.ac.uk>
35 * math_cursor.C: added using directive.
37 2001-03-15 André Pönitz <poenitz@htwm.de>
39 * math_rowst.h: Finally remove MathedRowSt
42 math_xiter.C: changed accordingly
44 2001-03-12 André Pönitz <poenitz@htwm.de>
46 * math_rowst.h: replace MathedRowSt with MathedRowStruct,
47 more robust MathedRowSt::[gs]etTab (to get rid of the constructor arg)
49 2001-03-10 André Pönitz <poenitz@htwm.de>
52 math_matrixinset.C: move adjustVerticalSt to the only place where
53 it is used. Fix a small bug where the cached row structure and the
54 actual data get out of sync after the deletion of whole rows
56 2001-03-09 André Pönitz <poenitz@htwm.de>
58 * math_cursor.C: use std::vector<> in MathStackXIter
59 change selstk from a pointer to the "real thing"
61 * math_rowst.h: new MathedRowContainer::erase method
63 * math_xiter.C: use MathedRowContainer::erase
65 * math_parser.C: use MathedRowContainer::insert_after
67 2001-03-08 André Pönitz <poenitz@htwm.de>
69 * math_rowst.h: give MathedRowContainer an 'insert' method.
71 * math_xiter.C: new 'container()' method to encapsulated access to
72 the MathParInset's MathedRowContainer
74 * math_rowst.h: proper copy constructor and destructor for
77 * math_matrixinset.[hC]: remove copy constructr and destructor. Those
78 automatically created by the compiler are ok now.
80 2001-03-06 André Pönitz <poenitz@htwm.de>
82 * array.[Ch]: factor out deep_copy,
83 remove third argument from raw_pointer_insert
85 * math_iter.[Ch]: remove unused function Clear()
87 * math_cursor.C: change signature of MathStackXIter:push()
90 * math_rowst.h: introduction of MathRowContainer
91 several files: corresponding changes
93 2001-03-04 André Pönitz <poenitz@htwm.de>
95 * math_macrotemplate.[Ch]:
96 math_macro.C: move update() functionality to the macro
98 * math_rowst.h: split MathedRowSt into "data" and "list"
100 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
102 * math_macrotemplate.C (update): use MathMacro::getArg, and
103 receive a const reference.
104 (getMacroPar): add an Assert
106 * math_macrotemplate.h: make MathMacro a friend, make update take
109 * math_macro.[hC]: get rid of getRowSt, remove MacroArgumentBase
110 and store a MathMacroArgument in the vector
111 * math_macro.C: changes because of the above.
114 * math_parser.C (mathed_parse): plug potential leak
116 * math_iter.h: add comment on virtual destructor
118 * math_iter.C (Delete): make c const
120 * math_parinset.C (Metrics): cleanup indent. make one string const.
122 * math_inset.C (size): move out of line
125 * math_macroarg.h: remove default constructor
127 * math_macroarg.C: include Lsstream.h instead of debug.h
128 (MathMacroArgument): remove default constructor
129 (Write): add std:: on ostream arg
131 2001-02-23 John Levon <moz@compsoc.man.ac.uk>
134 * formula.C: make DEBUG into lyxerr
136 2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
138 * math_macrotemplate.h: make noncopyable, remove last arg to
139 constructor, remove flags_ add edit_
140 (flags): remove method
142 * math_macrotemplate.C (setArgument): delete method
143 (update): make idx const
144 (Metrics): use edit_, remove flags_
145 (draw): use edit_, remove flags_
146 (setEditMode): set edit_, remove flags_
147 (MathMacroTemplate): initialize edit_, remove flags_
149 * math_macro.h: remove x,y from MacroArgumentBase, make tmplate_ a
150 shared_ptr, let constructor take a shared_ptr
152 * math_macro.C (MathMacro): take shared_ptr as arg, remove double
154 (draw): remove unneded update, remove removed update of x,y
155 (GetXY): call tmplates GetMacroXY directly
156 (SetFocus): call Metrics() instead of update()
157 (Write): remove support for math macro environments, simplifications.
159 * math_macrotable.h: make class noncopyable, change getMacro to
160 createMacro, change vector to map store a
161 shared_ptr<MathMacroTemplate> in it., remove unneeded typedef
163 * math_macrotable.C: add pragma
164 (createMacro): change name from getMacro, use shared_ptr
165 (getTemplate): Use map lookup to get macro, return shared_ptr
166 (addTemplate): assert that m containse a valid pointer, use map[]
168 (builtinMacros): by using shared_ptr fix the mem leak, remove
169 commented out unsupported macros
171 * math_cursor.C: changes because of the above
172 * math_parser.C: changes because of the abobe
174 * formulamacro.h: change tmacro_ to be a shared_ptr, remove
175 default arg on constructor.
176 * formulamacro.C: changes because of the above
178 * math_parinset.h: add pragma
179 (SetAlign): move inline out of class def
183 (setArgumentIdx): ditto
184 (setNextArgIdx): ditto
185 (getArgumentIdx): ditto
186 (getMaxArgumentIdx): ditto
191 * math_parinset.C: add pragma
192 (Write): change the else clause, lessen depth
194 * math_macroarg.h: small whitespace change
196 * array.C: include support/LOstream.h add using ostream and endl
198 * array.h (dump): add std:: on ostream
200 2001-02-28 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
202 * math_macrotemplate.h: remove default arg on update
204 * math_macrotemplate.C (update): add assert and remove noop case.
206 * formulamacro.C (Read): add comment.
207 (ascent): remove noop call to MathMacroTemplate
212 * math_parser.C (mathed_parse): fix another potential problem by
213 passing a freestanding mathedarray.
215 * math_root.C (GetData): add const version
217 * math_parinset.C (~MathParInset): delete
218 (GetData): add const version
220 * math_matrixinset.C (MathMatrixInset): delete pointer version,
221 make it a proper copy constructor instead
223 (MathMatrixInset): remvoe default val for m and n
225 * math_macro.C (GetData): add const version
227 * math_fracinset.C (GetData): add const version
229 * math_cursor.C (SelCopy): make p1 and p2 const
230 (SelCut): make p1 and p2 const
232 * formula.h: add '_' on priv vars. Cnages in formula.C acc. to this
233 (LyxCode): move inline out of class
237 * array.[Ch] (dump): method added for debugging purposes
239 * math_parser.C (mathed_parse): pass a freestanding mathedarray to
240 mathed_parse when reading a matrix.
242 * math_spaceinset.[Ch]: add pragma, make variables private add
243 '_', change order of method definitions.
245 * math_root.h (~MathRootInset): delete
246 Change uroot_ to be a real object instead of a pointer
247 * math_root.C: changes because of the above
249 * math_macro.C (MathMacro(MathMacro*)): delete constructor
250 (MathMacro(MathMacro const &)): new copy constructor
252 * math_inset.h: delete constructor taking a pointer to MathedInset
253 (size, incSize): move inline method
255 * math_funcinset.h: add pragma, remove class vars ln and fname,
256 change protected to private, add '_' to priv vars.
257 (~MathFuncInset): remove
259 * math_fracinset.h: make MathParInset den_ a real object and not a
262 * math_fracinset.C (MathFracInset): clean up, move initalization
263 to initialization list
264 (~MathFracInset): remove
267 * math_draw.C: delete file
269 * math_dotsinset.[Ch]: add pragma
271 * math_bigopinset.h: make protected variables private add '_' to vars.
273 * math_bigopinset.C: move methods to follow class definition order
275 * math_accentinset.h (getAccentCode): move inline here
277 * math_accentinset.C (MathAccentInset): cleanup
280 2001-02-27 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
282 * math_inset.[Ch] (MathedInset): remove method
284 * Makefile.am (libmathed_la_SOURCES): correct typo
286 * math_parinset.C (draw): move MathedXiter data(this) up. and
287 remove it two other places.
289 * math_macro.C (MathMacro): use array directly, don't use
290 setArgumentIdx and GetData
292 2001-02-26 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
294 * math_macroarg.C (MathMacroArgument): delete
295 * math_macro.C (~MathMacro): delete
296 * math_macrotemplate.C (~MathMacroTemplate): delete
298 * math_decorationinset.[Ch]: add pragma
299 * math_deliminset.[Ch]: likewise
300 * math_fracinset.[Ch]: likewise
301 * math_macroarg.[Ch]: likewise
302 * math_macrotemplate.[Ch]: likewise
303 * math_matrixinset.[Ch]: likewise
305 * formulamacro.C (Read): set contents of tmacro_ to ar.
307 * formulamacro.h: add '_' to private variables.
308 * formalamacro.C: changes because of this.
310 2001-02-23 Juergen Vigna <jug@sad.it>
312 * formula.C (LocalDispatch): changed action to be a kb_action (as it
313 should be) and not an int.
315 * formulamacro.C (LocalDispatch): ditto.
317 2001-02-14 André Pönitz <poenitz@htwm.de>
319 * math_parinset.[Ch]: make array a real MathArray, not just a
322 * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos)
324 * several files: subsequent changes
326 * math_cursor.C: make selarray a proper MathArray
328 * several files: Change "MathedArray *" to "MathedArray &"
331 2001-02-19 Dekel Tsur <dekelts@tau.ac.il>
333 * array.C (MathedArray): Fix compilation problem.
335 2001-02-14 André Pönitz <poenitz@htwm.de>
337 * array.[Ch]: "deep" copy constructor and assignment operator for
340 * math_iter.[Ch]: seperate Copy() from Copy(int, int)
342 * math_iter.[Ch]: remove SetData
343 several files: subsequent changes
345 2001-02-14 André Pönitz <poenitz@htwm.de>
347 * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and
350 * math_iter.C: default-construct and resize array
352 2001-02-17 Lars Gullik Bjønnes <larsbj@lyx.org>
354 * math_xiter.h: move ipush and ipop to public, add _ on private
355 variables, move protected var to private, remove friend.
357 * math_cursor.C (insertInset): rename method from Insert also
358 remove default arg val. Call the public methods of xiter instead
359 of private variables.
361 * changes to several files because of the above.
363 2001-02-14 André Pönitz <poenitz@htwm.de>
365 * math_iter.[Ch]: hide fcode_
367 * math_parinset.C: subsequent changes
370 2001-02-16 Lars Gullik Bjønnes <larsbj@lyx.org>
372 * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add
375 * math_write.C: delete file
376 * math_delim.C: delete file
377 * marh_sqrtinset.h: delete file
379 * move funcs to more localized files, more general cleanup.
380 Constify several local vars. Doxygen changes. Formatting.
382 2001-02-15 Lars Gullik Bjønnes <larsbj@lyx.org>
384 * support.C: add some consts
386 * matriz.C: clean up a bit.
387 (matmat): remove the for loop.
389 * several files: changes so that several friends can be removed
391 2001-02-14 André Pönitz <poenitz@htwm.de>
393 * formula.C: reformatting
397 math_xiter.[Ch]: remove unneeded members
399 2001-02-14 Lars Gullik Bjønnes <larsbj@lyx.org>
403 * formula.C: remove cruft
405 * array.C (begin): new method
408 2001-02-14 André Pönitz <poenitz@htwm.de>
410 * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE'
412 * math_cursor.C: reformatting
414 2001-02-14 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
418 * math_matrixinset.C:
419 * math_macrotemplate.C:
424 * math_decorationinset.C:
426 * math_accentinset.C:
427 * math_sqrtinset.C: include LOstream.h and add using directive.
429 2001-02-14 André Pönitz <poenitz@htwm.de>
431 * math_iter.C: reformatting
433 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
435 * math_spaceinset.C (GetSpace): move here
437 * math_parinset.C: add debug.h, move several prev. inlined methods
440 * math_macrotable.C math_xiter.C support.C: add debug.h
442 * math_macro.h: remove debug.h, remove typedefs
444 * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove
447 * math_hash.C: change some defines to int const. change use of
448 LM_TC_NORMAL to LM_TC_VAR
450 * math_draw.C: delete file
452 * math_defs.h (MATH_DEFS): dont define byte here, remove unneded
453 forward decls. remove LM_TC_NORMAL, move inline methods to
454 support.C (and support.h)
456 * math_cursor.C: move several previous inlined methods here
458 * math_bigopinset.h math_dotsinset.h math_funcinset.h
459 math_parinset.h math_spaceinset.h: add math_defs.h
461 * math_accentinset.h: add support.h and math_defs.h
463 * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h
465 * formula.h: remove unused func decl: OpenMathInset
467 * formula.C math_inset.h: get rid of math_defs.h
469 * array.h: switch to support.h instead of math_defs.h
471 * array.C: remove one include
473 * Makefile.am (libmathed_la_SOURCES): remove math_draw.C
475 * math_panel.C (deco_cb): move the sizeof/sizeof to a const int.
477 * math_parser.C: include macrotable and macrotemplate
479 * math_macrotemplate.[Ch]: new files
481 * math_macrotable.[Ch]: new files
483 * math_macroarg.[Ch]: new files
485 * math_macro.C: move stuff to the new files.
487 * math_cursor.C: include math_macrotable.h
489 * macro_support.[Ch]: new files
491 * formulamacro.C: add more includes
493 * Makefile.am (libmathed_la_SOURCES): add new files.
495 2001-02-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
497 * Makefile.am (libmathed_la_SOURCES): remove duplicate
502 * math_parinset.C: add a bunch of "using" directives.
505 * math_decorationinset.h:
507 * math_spaceinset.h: remove more couples of inline.
509 2001-02-13 Lars Gullik Bjønnes <larsbj@lyx.org>
511 * math_xiter.h: remove a couple of "inline"
513 * array.C (strange_copy): fix bug (hopefully)
514 * many files: add a lot of new files and move methods to the class
515 files they belong to. Only first attempt at cleanup more will
518 2001-02-12 André Pönitz <poenitz@htwm.de>
520 * math_macro.[hC]: replace MathMacroArgument[] with
521 std::vector<MathMacroArgument>
523 math_inset.C: replace int[] with std::vector<int>
525 * math_symbols.C: replace FL_OBJECTP[] with
526 std::vector<FL_OBJECT*>
528 2001-02-12 Lars Gullik Bjønnes <larsbj@lyx.org>
530 * math_defs.h (struct MathedRowSt): make all private variables end
531 with '_', initialize in initializer list instead of in function
534 2001-02-12 Dekel Tsur <dekelts@tau.ac.il>
536 * formula.C (LocalDispatch): Change the default action of
537 break-line to create an align* environment instead of eqnarray*.
539 * math_inset.C (Metrics): Correct drawing of the multline
542 2001-02-12 André Pönitz <poenitz@htwm.de>
544 * array.[hC]: replace private variable maxsize_ with call to
546 * math_defs.h: replace int[] by std::vector<int> for
549 2001-02-09 Lars Gullik Bjønnes <larsbj@lyx.org>
551 * array.h: made all variables private, removed friend, added new
552 methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added
553 non const operator[] added setter for last and getter for maxsize.
554 changed name from LyxArrayBase to MathedArray.
555 changed name of some methods to start with lowerchar.
556 moved inline methods to array.C
558 * math_iter.C + several file: changes because of the above.
560 * array.C: new file with the prev inline methods.
562 2001-02-10 Dekel Tsur <dekelts@tau.ac.il>
564 * Many files: add support for the align environment from amsmath.
566 2001-02-09 André Pönitz <poenitz@htwm.de>
568 * array.h: replace array buffer 'byte bf[]' by 'std::vector<byte> bf'
569 * several files: subsequent changes
570 * math_iter.h: remove unused prototype
573 2001-02-08 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
575 * math_macro.C (draw): add .c_str() to .str() (useful when
576 compiling with lyxstring, but STL sstream).
579 2001-02-08 André Pönitz <poenitz@htwm.de>
581 * several files: get rid of reinterpret_cast.
583 2001-02-04 Allan Rae <rae@lyx.org>
585 * math_parser.C (mathed_parse): I'm sure Lars has a better fix than
586 just casting the variable.
588 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
590 * Many files: Add support for multline and alignat environments from
593 2001-02-02 Dekel Tsur <dekelts@tau.ac.il>
595 * math_symbols.C (math_insert_greek): Move cursor right when
596 unlocking the math inset.
598 2001-01-26 Dekel Tsur <dekelts@tau.ac.il>
600 * math_parser.C (LexGetArg): Fix crash when loading corrupt files.
602 * formula.C (LocalDispatch): Before inserting a label in an
603 eqnarray, move the cursor to the top level.
605 * math_iter.C (getLabel): Test if crow == 0.
607 2001-01-15 Dekel Tsur <dekelts@tau.ac.il>
609 * math_draw.C (Metrics): Use the correct GetString.