From: Richard Heck Date: Fri, 1 Apr 2011 20:03:15 +0000 (+0000) Subject: More informative normalization for math macros. X-Git-Tag: 2.0.0~295 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75a7a2203d714e91ea564bd94681fc1c550708d6;p=lyx.git More informative normalization for math macros. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38188 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index d96dc31b44..0ad635342c 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -138,6 +138,15 @@ Inset * MathMacro::clone() const } +void MathMacro::normalize(NormalStream & os) const +{ + os << "[macro " << name(); + for (size_t i = 0; i < nargs(); ++i) + os << ' ' << cell(i); + os << ']'; +} + + docstring MathMacro::name() const { if (displayMode_ == DISPLAY_UNFOLDED) @@ -744,6 +753,8 @@ void MathMacro::maple(MapleStream & os) const void MathMacro::mathmlize(MathStream & os) const { + MathData const & data = expanded_.cell(0); + data.dump(); os << expanded_.cell(0); }