+void InsetMathMakebox::infoize(odocstream & os) const
+{
+ os << (framebox_ ? "Framebox" : "Makebox")
+ << " (width: " << cell(0)
+ << " pos: " << cell(1) << ")";
+}
+
+
+void InsetMathMakebox::mathmlize(MathStream & ms) const
+{
+ // FIXME We could do something with the other arguments.
+ std::string const cssclass = framebox_ ? "framebox" : "makebox";
+ SetMode textmode(ms, true);
+ ms << MTag("mstyle", "class='" + cssclass + "'")
+ << cell(2)
+ << ETag("mstyle");
+}
+
+
+void InsetMathMakebox::htmlize(HtmlStream & ms) const
+{
+ // FIXME We could do something with the other arguments.
+ SetHTMLMode textmode(ms, true);
+ std::string const cssclass = framebox_ ? "framebox" : "makebox";
+ ms << MTag("span", "class='" + cssclass + "'")
+ << cell(2)
+ << ETag("span");
+}
+
+
+void InsetMathMakebox::validate(LaTeXFeatures & features) const
+{
+ // FIXME XHTML
+ // It'd be better to be able to get this from an InsetLayout, but at present
+ // InsetLayouts do not seem really to work for things that aren't InsetTexts.
+ if (features.runparams().math_flavor == OutputParams::MathAsMathML)
+ features.addCSSSnippet("mstyle.framebox { border: 1px solid black; }");
+ else if (features.runparams().math_flavor == OutputParams::MathAsHTML)
+ features.addCSSSnippet("span.framebox { border: 1px solid black; }");
+ InsetMathNest::validate(features);
+}
+