]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathDelim.cpp
Fix broken Apple speller interface
[features.git] / src / mathed / InsetMathDelim.cpp
index 11a47d139f4c30b153db5f6616c59a86f5140bc4..cd4f8aade5f3d8c080df31f8791ce1e28448d7f6 100644 (file)
@@ -74,7 +74,7 @@ void InsetMathDelim::validate(LaTeXFeatures & features) const
 }
 
 
-void InsetMathDelim::write(WriteStream & os) const
+void InsetMathDelim::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);
        os << "\\left" << convertDelimToLatexName(left_) << cell(0)
@@ -179,18 +179,17 @@ void InsetMathDelim::mathematica(MathematicaStream & os) const
 }
 
 
-void InsetMathDelim::mathmlize(MathStream & ms) const
+void InsetMathDelim::mathmlize(MathMLStream & ms) const
 {
-       ms << "<" << from_ascii(ms.namespacedTag("mo")) << " form='prefix' fence='true' stretchy='true' symmetric='true'>"
+       ms << MTag("mrow")
+          << MTagInline("mo", "form='prefix' fence='true' stretchy='true' symmetric='true'")
           << convertDelimToXMLEscape(left_, ms.xmlMode())
-          << "</" << from_ascii(ms.namespacedTag("mo")) << ">"
-          << "\n"
+          << ETagInline("mo")
           << cell(0)
-          << "\n"
-          << "<" << from_ascii(ms.namespacedTag("mo")) << " form='postfix' fence='true' stretchy='true' symmetric='true'>"
+          << MTagInline("mo", "form='postfix' fence='true' stretchy='true' symmetric='true'")
           << convertDelimToXMLEscape(right_, ms.xmlMode())
-          << "</" << from_ascii(ms.namespacedTag("mo")) << ">"
-          << "\n";
+          << ETagInline("mo")
+          << ETag("mrow");
 }