]> git.lyx.org Git - lyx.git/commit
Introduce hooks to encapsulate macro code of MathRow
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Feb 2017 14:20:06 +0000 (15:20 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Feb 2017 14:20:06 +0000 (15:20 +0100)
commit6c13af3f298a96c5564684b83c52989473b020ce
tree797c1aec9ea189cc369680a9eae6f328b190a710
parentf86dacc2927e23468d4f72b29ab7d770c295cfb2
Introduce hooks to encapsulate macro code of MathRow

New hooks (before|after)(Metrics|Draw) are run by the MathRow code
as needed. They are actually also used internally by the MathMacro
code.

The gain is that most traces of explicit macro handling (and
the MathRow::Element::macro member) have been removed from MathRw.cpp.

The next step will be to extend the tokenizing process to allow for
linearizing insets other than macros.
src/mathed/InsetMath.h
src/mathed/MathMacro.cpp
src/mathed/MathMacro.h
src/mathed/MathRow.cpp
src/mathed/MathRow.h