From: Richard Heck Date: Tue, 30 Mar 2010 00:18:24 +0000 (+0000) Subject: Pure HTML output for math macros. X-Git-Tag: 2.0.0~3639 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b8550d11e836e857967a31250e6ca248b2d43f82;p=features.git Pure HTML output for math macros. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33941 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index 7f1b6b9f8a..3eedbee531 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -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); diff --git a/src/mathed/MathMacro.h b/src/mathed/MathMacro.h index b431a9a9a5..d267181dca 100644 --- a/src/mathed/MathMacro.h +++ b/src/mathed/MathMacro.h @@ -73,6 +73,8 @@ public: /// void mathmlize(MathStream &) const; /// + void htmlize(HtmlStream &) const; + /// void octave(OctaveStream &) const; /// void infoize(odocstream &) const;