#include "MathStream.h"
#include "MathData.h"
+#include "MetricsInfo.h"
#include "LaTeXFeatures.h"
#include <ostream>
void InsetMathBoldSymbol::metrics(MetricsInfo & mi, Dimension & dim) const
{
+ Changer dummy = mi.base.changeEnsureMath();
//Changer dummy = mi.base.changeFontSet("mathbf");
cell(0).metrics(mi, dim);
- metricsMarkers(mi, dim);
++dim.wid; // for 'double stroke'
}
void InsetMathBoldSymbol::draw(PainterInfo & pi, int x, int y) const
{
+ Changer dummy = pi.base.changeEnsureMath();
//Changer dummy = pi.base.changeFontSet("mathbf");
+ cell(0).draw(pi, x, y);
cell(0).draw(pi, x + 1, y);
- cell(0).draw(pi, x + 2, y);
- drawMarkers(pi, x, y);
}
}
-void InsetMathBoldSymbol::mathmlize(MathStream & os) const
+void InsetMathBoldSymbol::mathmlize(MathStream & ms) const
{
- os << "<mstyle mathvariant='bold'>" << cell(0) << "</mstyle>";
+ ms << "<" << from_ascii(ms.namespacedTag("mstyle")) << " mathvariant='bold'>"
+ << cell(0)
+ << "</" << from_ascii(ms.namespacedTag("mstyle")) << ">";
}