]> 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 d6c40d7e30343f3133c9d4abd830a871292099e8..943ca902635bad29b77f9e5d6d04dd6c97a643c6 100644 (file)
@@ -29,7 +29,7 @@ namespace lyx {
 
 MathData & InsetMath::cell(idx_type)
 {
-       static MathData dummyCell;
+       static MathData dummyCell(&buffer());
        LYXERR0("I don't have any cell");
        return dummyCell;
 }
@@ -122,8 +122,21 @@ 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);
+       os << ETag("mi");
+}
+
+
+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");
 }