From 75a7a2203d714e91ea564bd94681fc1c550708d6 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 1 Apr 2011 20:03:15 +0000 Subject: [PATCH] More informative normalization for math macros. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38188 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacro.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); } -- 2.39.2