namespace lyx {
-InsetMathExFunc::InsetMathExFunc(docstring const & name)
- : InsetMathNest(1), name_(name)
+InsetMathExFunc::InsetMathExFunc(Buffer * buf, docstring const & name)
+ : InsetMathNest(buf, 1), name_(name)
{}
-InsetMathExFunc::InsetMathExFunc(docstring const & name, MathData const & ar)
- : InsetMathNest(1), name_(name)
+InsetMathExFunc::InsetMathExFunc(Buffer * buf, docstring const & name, MathData const & ar)
+ : InsetMathNest(buf, 1), name_(name)
{
cell(0) = ar;
}
void InsetMathExFunc::metrics(MetricsInfo & mi, Dimension & dim) const
{
- mathed_string_dim(mi.base.font, name_, dim);
+ metricsStrRedBlack(mi, dim, name_);
}
void InsetMathExFunc::mathmlize(MathStream & os) const
{
- ++os.tab(); os.cr(); os.os() << '<' << name_ << '>';
+ os << "<mi>" << name_ << "</mi><mo>⁡</mo>";
os << cell(0);
- os.cr(); --os.tab(); os.os() << "</" << name_ << '>';
+}
+
+
+void InsetMathExFunc::htmlize(HtmlStream & os) const
+{
+ os << name_ << cell(0);
}