]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Add \makeat switches to babel settings if necessary.
[lyx.git] / src / mathed / InsetMath.cpp
index a5cd28a2841f3770143f1dd39db85ac70e9c77c8..5507a868c9985e3e2a9432fbe2a3701437eec6e6 100644 (file)
@@ -27,6 +27,12 @@ using namespace std;
 
 namespace lyx {
 
+docstring InsetMath::name() const
+{
+       return from_utf8("Unknown");
+}
+
+
 MathData & InsetMath::cell(idx_type)
 {
        static MathData dummyCell(&buffer());
@@ -120,13 +126,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");
 }