]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathOverset.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathOverset.cpp
index 3d36218d631eeabe09c99ea380aef70e4a5f4a35..583ae85ddeb8f5f98b45fac3dc42327c04ef654f 100644 (file)
@@ -88,7 +88,7 @@ bool InsetMathOverset::idxLast(Cursor & cur) const
 }
 
 
-void InsetMathOverset::write(WriteStream & os) const
+void InsetMathOverset::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);
        if (os.fragile())
@@ -103,18 +103,20 @@ void InsetMathOverset::normalize(NormalStream & os) const
 }
 
 
-void InsetMathOverset::mathmlize(MathStream & ms) const
+void InsetMathOverset::mathmlize(MathMLStream & ms) const
 {
-       ms << "<mover accent='false'>" << cell(0) << cell(1) << "</mover>";
+       ms << "<" << from_ascii(ms.namespacedTag("mover")) << " accent='false'>"
+          << cell(0) << cell(1)
+          << "</" << from_ascii(ms.namespacedTag("mover")) << ">";
 }
 
 
 void InsetMathOverset::htmlize(HtmlStream & os) const
 {
        os << MTag("span", "class='overset'")
-                << MTag("span", "class='top'") << cell(1) << ETag("span")
-                << MTag("span") << cell(0) << ETag("span")
-                << ETag("span");
+          << MTag("span", "class='top'") << cell(1) << ETag("span")
+          << MTag("span") << cell(0) << ETag("span")
+          << ETag("span");
 }