]> git.lyx.org Git - lyx.git/commitdiff
More informative normalization for math macros.
authorRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 20:03:15 +0000 (20:03 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 1 Apr 2011 20:03:15 +0000 (20:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38188 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacro.cpp

index d96dc31b449623fbe62f5cd3352523d6b25f860b..0ad635342ca70c329ecbe450ac8fb33f50c28586 100644 (file)
@@ -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);
 }