]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathExFunc.cpp
Fix drawing of empty boxes
[lyx.git] / src / mathed / InsetMathExFunc.cpp
index 173436eb612a7b031f1b2f862cab3cac734d297f..e4e1f10c2e2b8daa099bcb490185c58828f1a798 100644 (file)
@@ -13,7 +13,6 @@
 #include "InsetMathExFunc.h"
 
 #include "MathData.h"
-#include "MathExtern.h"
 #include "MathStream.h"
 #include "MathSupport.h"
 #include "MetricsInfo.h"
@@ -45,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_);
 }
 
 
@@ -123,10 +122,16 @@ void InsetMathExFunc::mathematica(MathematicaStream & os) const
 }
 
 
-docstring InsetMathExFunc::mathmlize(MathStream & os) const
+void InsetMathExFunc::mathmlize(MathStream & os) const
 {
        os << "<mi>" << name_ << "</mi><mo>&af;</mo>";
-       return lyx::mathmlize(cell(0), os);
+       os << cell(0);
+}
+
+
+void InsetMathExFunc::htmlize(HtmlStream & os) const
+{
+       os << name_ << cell(0);
 }