namespace lyx {
InsetMathEnsureMath::InsetMathEnsureMath(Buffer * buf)
- : InsetMathNest(buf, 1)
+ : InsetMathGrid(buf, 1, 1)
{}
{
Changer dummy = mi.base.changeEnsureMath();
cell(0).metrics(mi, dim);
- metricsMarkers(mi, dim);
}
{
Changer dummy = pi.base.changeEnsureMath();
cell(0).draw(pi, x, y);
- drawMarkers(pi, x, y);
}
}
-void InsetMathEnsureMath::write(WriteStream & os) const
+void InsetMathEnsureMath::write(TeXMathStream & os) const
{
ModeSpecifier specifier(os, MATH_MODE);
os << "\\ensuremath{" << cell(0) << "}";
}
-void InsetMathEnsureMath::mathmlize(MathStream & os) const
+void InsetMathEnsureMath::mathmlize(MathMLStream & ms) const
{
- SetMode mathmode(os, false);
- os << MTag("mstyle", "class='math'")
+ SetMode mathmode(ms, false);
+ ms << MTag("mstyle", "class='math'")
<< cell(0)
<< ETag("mstyle");
}