X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnsureMath.cpp;h=7f82345efd8627299f8a6ccf2e36a74ac0437b97;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=1897781aa6707a64c4152e49323b1e0c26f089ea;hpb=eadc55b8b38a489202e2e168521578dae119fd59;p=lyx.git diff --git a/src/mathed/InsetMathEnsureMath.cpp b/src/mathed/InsetMathEnsureMath.cpp index 1897781aa6..7f82345efd 100644 --- a/src/mathed/InsetMathEnsureMath.cpp +++ b/src/mathed/InsetMathEnsureMath.cpp @@ -26,7 +26,7 @@ namespace lyx { InsetMathEnsureMath::InsetMathEnsureMath(Buffer * buf) - : InsetMathNest(buf, 1) + : InsetMathGrid(buf, 1, 1) {} @@ -40,7 +40,6 @@ void InsetMathEnsureMath::metrics(MetricsInfo & mi, Dimension & dim) const { Changer dummy = mi.base.changeEnsureMath(); cell(0).metrics(mi, dim); - metricsMarkers(mi, dim); } @@ -48,7 +47,6 @@ void InsetMathEnsureMath::draw(PainterInfo & pi, int x, int y) const { Changer dummy = pi.base.changeEnsureMath(); cell(0).draw(pi, x, y); - drawMarkers(pi, x, y); } @@ -64,17 +62,17 @@ void InsetMathEnsureMath::drawT(TextPainter & pain, int x, int y) const } -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"); }