]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Seems boost also includes all std headers. Not including boost therefore produces...
[lyx.git] / src / mathed / InsetMath.cpp
index 0a9772c6769c3e7c1a243b6170aba64c49a13644..943ca902635bad29b77f9e5d6d04dd6c97a643c6 100644 (file)
@@ -122,6 +122,7 @@ void InsetMath::mathematica(MathematicaStream & os) const
 
 void InsetMath::mathmlize(MathStream & os) const
 {
+       os << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
        os << MTag("mi");
        NormalStream ns(os.os());
        normalize(ns);
@@ -129,6 +130,16 @@ void InsetMath::mathmlize(MathStream & os) const
 }
 
 
+void InsetMath::htmlize(HtmlStream & os) const
+{
+       os << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
+       os << MTag("span", "style='color: red;'");
+       NormalStream ns(os.os());
+       normalize(ns);
+       os << ETag("span");
+}
+
+
 HullType InsetMath::getType() const
 {
        return hullNone;