More informative normalization for math macros.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38188 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-04-01 20:03:15 +00:00
parent f22a3988b3
commit 75a7a2203d

View 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);
}