Pure HTML output for math macros.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33941 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-03-30 00:18:24 +00:00
parent 9e34cf8186
commit b8550d11e8
2 changed files with 10 additions and 0 deletions

View File

@ -75,6 +75,8 @@ public:
///
void mathmlize(MathStream & ms) const { ms << mathMacro_.cell(idx_); }
///
void htmlize(HtmlStream & ms) const { ms << mathMacro_.cell(idx_); }
///
void draw(PainterInfo & pi, int x, int y) const {
if (mathMacro_.editMetrics(pi.base.bv)) {
// The only way a ArgumentProxy can appear is in a cell of the
@ -743,6 +745,12 @@ void MathMacro::mathmlize(MathStream & os) const
}
void MathMacro::htmlize(HtmlStream & os) const
{
os << expanded_.cell(0);
}
void MathMacro::octave(OctaveStream & os) const
{
lyx::octave(expanded_.cell(0), os);

View File

@ -73,6 +73,8 @@ public:
///
void mathmlize(MathStream &) const;
///
void htmlize(HtmlStream &) const;
///
void octave(OctaveStream &) const;
///
void infoize(odocstream &) const;