]> git.lyx.org Git - features.git/commitdiff
Pure HTML output for math macros.
authorRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 00:18:24 +0000 (00:18 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 30 Mar 2010 00:18:24 +0000 (00:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33941 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacro.cpp
src/mathed/MathMacro.h

index 7f1b6b9f8a1f42fb264dc55ce0be777f9ba91a01..3eedbee531f17d9f6cf115c61fcc0ec8060bbc84 100644 (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);
index b431a9a9a516c9344117d618cab328cd3ee6ae72..d267181dcad673e560c6f023667a958a07d36fe5 100644 (file)
@@ -73,6 +73,8 @@ public:
        ///
        void mathmlize(MathStream &) const;
        ///
+       void htmlize(HtmlStream &) const;
+       ///
        void octave(OctaveStream &) const;
        ///
        void infoize(odocstream &) const;