]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathExFunc.cpp
Remove hardcoded values
[lyx.git] / src / mathed / InsetMathExFunc.cpp
index 61b3a43f165749e2435247433619a0f442cd3abb..e4e1f10c2e2b8daa099bcb490185c58828f1a798 100644 (file)
@@ -44,7 +44,7 @@ Inset * InsetMathExFunc::clone() const
 
 void InsetMathExFunc::metrics(MetricsInfo & mi, Dimension & dim) const
 {
-       mathed_string_dim(mi.base.font, name_, dim);
+       metricsStrRedBlack(mi, dim, name_);
 }
 
 
@@ -122,6 +122,19 @@ void InsetMathExFunc::mathematica(MathematicaStream & os) const
 }
 
 
+void InsetMathExFunc::mathmlize(MathStream & os) const
+{
+       os << "<mi>" << name_ << "</mi><mo>&af;</mo>";
+       os << cell(0);
+}
+
+
+void InsetMathExFunc::htmlize(HtmlStream & os) const
+{
+       os << name_ << cell(0);
+}
+
+
 void InsetMathExFunc::octave(OctaveStream & os) const
 {
        os << name_ << '(' << cell(0) << ')';