2001-02-28 Lars Gullik Bjønnes * math_spaceinset.[Ch]: add pragma, make variables private add '_', change order of method definitions. * math_root.h (~MathRootInset): delete Change uroot_ to be a real object instead of a pointer * math_root.C: changes because of the above * math_macro.C (MathMacro(MathMacro*)): delete constructor (MathMacro(MathMacro const &)): new copy constructor * math_inset.h: delete constructor taking a pointer to MathedInset (size, incSize): move inline method * math_funcinset.h: add pragma, remove class vars ln and fname, change protected to private, add '_' to priv vars. (~MathFuncInset): remove * math_fracinset.h: make MathParInset den_ a real object and not a pointer. * math_fracinset.C (MathFracInset): clean up, move initalization to initialization list (~MathFracInset): remove (Clone): remove leak * math_draw.C: delete file * math_dotsinset.[Ch]: add pragma * math_bigopinset.h: make protected variables private add '_' to vars. * math_bigopinset.C: move methods to follow class definition order * math_accentinset.h (getAccentCode): move inline here * math_accentinset.C (MathAccentInset): cleanup (draw): constify dw 2001-02-27 Lars Gullik Bjønnes * math_inset.[Ch] (MathedInset): remove method * Makefile.am (libmathed_la_SOURCES): correct typo * math_parinset.C (draw): move MathedXiter data(this) up. and remove it two other places. * math_macro.C (MathMacro): use array directly, don't use setArgumentIdx and GetData 2001-02-26 Lars Gullik Bjønnes * math_macroarg.C (MathMacroArgument): delete * math_macro.C (~MathMacro): delete * math_macrotemplate.C (~MathMacroTemplate): delete * math_decorationinset.[Ch]: add pragma * math_deliminset.[Ch]: likewise * math_fracinset.[Ch]: likewise * math_macroarg.[Ch]: likewise * math_macrotemplate.[Ch]: likewise * math_matrixinset.[Ch]: likewise * formulamacro.C (Read): set contents of tmacro_ to ar. * formulamacro.h: add '_' to private variables. * formalamacro.C: changes because of this. 2001-02-23 Juergen Vigna * formula.C (LocalDispatch): changed action to be a kb_action (as it should be) and not an int. * formulamacro.C (LocalDispatch): ditto. 2001-02-14 André Pönitz * math_parinset.[Ch]: make array a real MathArray, not just a pointer to one. * move MathIter::Copy(int, int) to MathArray::shrink(pos, pos) * several files: subsequent changes * math_cursor.C: make selarray a proper MathArray * several files: Change "MathedArray *" to "MathedArray &" 2001-02-19 Dekel Tsur * array.C (MathedArray): Fix compilation problem. 2001-02-14 André Pönitz * array.[Ch]: "deep" copy constructor and assignment operator for MathArray * math_iter.[Ch]: seperate Copy() from Copy(int, int) * math_iter.[Ch]: remove SetData several files: subsequent changes 2001-02-14 André Pönitz * array.[Ch]: remove constructor and enums ARRAY_MIN_SIZE and ARRAY_STEP * math_iter.C: default-construct and resize array 2001-02-17 Lars Gullik Bjønnes * math_xiter.h: move ipush and ipop to public, add _ on private variables, move protected var to private, remove friend. * math_cursor.C (insertInset): rename method from Insert also remove default arg val. Call the public methods of xiter instead of private variables. * changes to several files because of the above. 2001-02-14 André Pönitz * math_iter.[Ch]: hide fcode_ * math_xiter.C: * math_parinset.C: subsequent changes 2001-02-16 Lars Gullik Bjønnes * Makefile.am (libmathed_la_SOURCES): remove math_write.C, add math_utils.h * math_write.C: delete file * math_delim.C: delete file * marh_sqrtinset.h: delete file * move funcs to more localized files, more general cleanup. Constify several local vars. Doxygen changes. Formatting. 2001-02-15 Lars Gullik Bjønnes * support.C: add some consts * matriz.C: clean up a bit. (matmat): remove the for loop. * several files: changes so that several friends can be removed 2001-02-14 André Pönitz * formula.C: reformatting * math_cursor.[Ch]: math_iter.[Ch]: math_xiter.[Ch]: remove unneeded members 2001-02-14 Lars Gullik Bjønnes * math_parser.C: * math_panel.C: * formula.C: remove cruft * array.C (begin): new method (end): ditto 2001-02-14 André Pönitz * math_iter.[Ch]: remove 'insert', 'maxsize' and 'ARRAY_SIZE' * math_cursor.C: reformatting 2001-02-14 Jean-Marc Lasgouttes * math_spaceinset.C: * math_root.C: * math_matrixinset.C: * math_macrotemplate.C: * math_funcinset.C: * math_fracinset.C: * math_dotsinset.C: * math_deliminset.C: * math_decorationinset.C: * math_bigopinset.C: * math_accentinset.C: * math_sqrtinset.C: include LOstream.h and add using directive. 2001-02-14 André Pönitz * math_iter.C: reformatting 2001-02-13 Lars Gullik Bjønnes * math_spaceinset.C (GetSpace): move here * math_parinset.C: add debug.h, move several prev. inlined methods here. * math_macrotable.C math_xiter.C support.C: add debug.h * math_macro.h: remove debug.h, remove typedefs * math_macro.C: remove FORMS_H_LOCATION, and LString.h, remove extern decls. * math_hash.C: change some defines to int const. change use of LM_TC_NORMAL to LM_TC_VAR * math_draw.C: delete file * math_defs.h (MATH_DEFS): dont define byte here, remove unneded forward decls. remove LM_TC_NORMAL, move inline methods to support.C (and support.h) * math_cursor.C: move several previous inlined methods here * math_bigopinset.h math_dotsinset.h math_funcinset.h math_parinset.h math_spaceinset.h: add math_defs.h * math_accentinset.h: add support.h and math_defs.h * formulamacro.C math_cursor.C math_iter.h math_write.C: add support.h * formula.h: remove unused func decl: OpenMathInset * formula.C math_inset.h: get rid of math_defs.h * array.h: switch to support.h instead of math_defs.h * array.C: remove one include * Makefile.am (libmathed_la_SOURCES): remove math_draw.C * math_panel.C (deco_cb): move the sizeof/sizeof to a const int. * math_parser.C: include macrotable and macrotemplate * math_macrotemplate.[Ch]: new files * math_macrotable.[Ch]: new files * math_macroarg.[Ch]: new files * math_macro.C: move stuff to the new files. * math_cursor.C: include math_macrotable.h * macro_support.[Ch]: new files * formulamacro.C: add more includes * Makefile.am (libmathed_la_SOURCES): add new files. 2001-02-13 Jean-Marc Lasgouttes * Makefile.am (libmathed_la_SOURCES): remove duplicate math_sqrtinset. * support.C: * math_xiter.C: * math_parinset.C: add a bunch of "using" directives. * math_funcinset.h: * math_decorationinset.h: * math_bigopinset.h: * math_spaceinset.h: remove more couples of inline. 2001-02-13 Lars Gullik Bjønnes * math_xiter.h: remove a couple of "inline" * array.C (strange_copy): fix bug (hopefully) * many files: add a lot of new files and move methods to the class files they belong to. Only first attempt at cleanup more will follow. 2001-02-12 André Pönitz * math_macro.[hC]: replace MathMacroArgument[] with std::vector * math_defs.h: math_inset.C: replace int[] with std::vector * math_panel.h: * math_symbols.C: replace FL_OBJECTP[] with std::vector 2001-02-12 Lars Gullik Bjønnes * math_defs.h (struct MathedRowSt): make all private variables end with '_', initialize in initializer list instead of in function body. 2001-02-12 Dekel Tsur * formula.C (LocalDispatch): Change the default action of break-line to create an align* environment instead of eqnarray*. * math_inset.C (Metrics): Correct drawing of the multline environment. 2001-02-12 André Pönitz * array.[hC]: replace private variable maxsize_ with call to bf_.size() * math_defs.h: replace int[] by std::vector for MathedRowSt::widths 2001-02-09 Lars Gullik Bjønnes * array.h: made all variables private, removed friend, added new methods: raw_pointer_insert, raw_pointer_copy, strange_copy, added non const operator[] added setter for last and getter for maxsize. changed name from LyxArrayBase to MathedArray. changed name of some methods to start with lowerchar. moved inline methods to array.C * math_iter.C + several file: changes because of the above. * array.C: new file with the prev inline methods. 2001-02-10 Dekel Tsur * Many files: add support for the align environment from amsmath. 2001-02-09 André Pönitz * array.h: replace array buffer 'byte bf[]' by 'std::vector bf' * several files: subsequent changes * math_iter.h: remove unused prototype * array.h: ditto. 2001-02-08 Jean-Marc Lasgouttes * math_macro.C (draw): add .c_str() to .str() (useful when compiling with lyxstring, but STL sstream). (Metrics): ditto. 2001-02-08 André Pönitz * several files: get rid of reinterpret_cast. 2001-02-04 Allan Rae * math_parser.C (mathed_parse): I'm sure Lars has a better fix than just casting the variable. 2001-02-02 Dekel Tsur * Many files: Add support for multline and alignat environments from amsmath. 2001-02-02 Dekel Tsur * math_symbols.C (math_insert_greek): Move cursor right when unlocking the math inset. 2001-01-26 Dekel Tsur * math_parser.C (LexGetArg): Fix crash when loading corrupt files. * formula.C (LocalDispatch): Before inserting a label in an eqnarray, move the cursor to the top level. * math_iter.C (getLabel): Test if crow == 0. 2001-01-15 Dekel Tsur * math_draw.C (Metrics): Use the correct GetString.