]> 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 a5cd28a2841f3770143f1dd39db85ac70e9c77c8..943ca902635bad29b77f9e5d6d04dd6c97a643c6 100644 (file)
@@ -120,13 +120,23 @@ void InsetMath::mathematica(MathematicaStream & os) const
 }
 
 
-docstring InsetMath::mathmlize(MathStream & os) const
+void InsetMath::mathmlize(MathStream & os) const
 {
+       os << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
        os << MTag("mi");
        NormalStream ns(os.os());
        normalize(ns);
        os << ETag("mi");
-       return docstring();
+}
+
+
+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");
 }