]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathBig.cpp
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / mathed / InsetMathBig.cpp
index 5e89d4e79c720af3fe40c41bb64a8a58af9f30b0..0ddb6c8fe85b54fd5ae933d22ff5761b6f941b43 100644 (file)
@@ -64,7 +64,7 @@ Inset * InsetMathBig::clone() const
 }
 
 
-InsetMathBig::size_type InsetMathBig::size() const
+size_type InsetMathBig::size() const
 {
        // order: big Big bigg Bigg biggg Biggg
        //        0   1   2    3    4     5
@@ -120,7 +120,7 @@ void InsetMathBig::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-void InsetMathBig::write(WriteStream & os) const
+void InsetMathBig::write(TeXMathStream & os) const
 {
        MathEnsurer ensurer(os);
        os << '\\' << name_ << delim_;
@@ -135,12 +135,11 @@ void InsetMathBig::normalize(NormalStream & os) const
 }
 
 
-void InsetMathBig::mathmlize(MathStream & ms) const
+void InsetMathBig::mathmlize(MathMLStream & ms) const
 {
-       ms << "<" << from_ascii(ms.namespacedTag("mo"))
-          << " form='prefix' fence='true' stretchy='true' symmetric='true'>"
-          << convertDelimToXMLEscape(delim_)
-          << "</" << from_ascii(ms.namespacedTag("mo")) << ">";
+       ms << MTagInline("mo", "fence='true' stretchy='true' symmetric='true'")
+          << convertDelimToXMLEscape(delim_, ms.xmlMode())
+          << ETagInline("mo");
 }
 
 
@@ -154,7 +153,7 @@ void InsetMathBig::htmlize(HtmlStream & os) const
        default: name  = "big"; break;
        }
        os << MTag("span", "class='" + name + "symbol'")
-          << convertDelimToXMLEscape(delim_)
+          << convertDelimToXMLEscape(delim_, false)
           << ETag("span");
 }