namespace lyx {
-InsetMathMBox::InsetMathMBox(Buffer const & buffer) : text_(buffer)
+InsetMathMBox::InsetMathMBox(Buffer * buffer) : InsetMath(buffer), text_(buffer)
{
text_.paragraphs().clear();
text_.paragraphs().push_back(Paragraph());
}
-InsetMathMBox::InsetMathMBox(Buffer const & buffer, Layout const & layout)
- : text_(buffer)
+InsetMathMBox::InsetMathMBox(Buffer * buffer, Layout const & layout)
+ : InsetMath(buffer), text_(buffer)
{
text_.paragraphs().clear();
text_.paragraphs().push_back(Paragraph());
} else {
ws << "\\mbox{\n";
ostringstream os;
- text_.text().write(buffer(), os);
+ text_.text().write(os);
ws.os() << from_utf8(os.str());
ws << "}";
}
}
+void InsetMathMBox::mathmlize(MathStream & ms) const
+{
+ SetMode textmode(ms, true, "class='mbox'");
+ ms << cell(0);
+}
+
+void InsetMathMBox::htmlize(HtmlStream & ms) const
+{
+ SetHTMLMode textmode(ms, true, "class='mbox'");
+ ms << cell(0);
+}
+
} // namespace lyx