X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathComment.cpp;h=b8c157b2c2cff3e46d70f3b30399419af781eca4;hb=2de30c62f8d671a8c8d4d52a6a7310e2c5ca84de;hp=ebfba7a859918e35fc00b064334ebcd47c80a6ac;hpb=ff4460603e3888948b46f0ab5bfa69a862d538ad;p=lyx.git diff --git a/src/mathed/InsetMathComment.cpp b/src/mathed/InsetMathComment.cpp index ebfba7a859..b8c157b2c2 100644 --- a/src/mathed/InsetMathComment.cpp +++ b/src/mathed/InsetMathComment.cpp @@ -26,6 +26,13 @@ InsetMathComment::InsetMathComment(Buffer * buf) {} +InsetMathComment::InsetMathComment(MathData const & ar) + : InsetMathNest(const_cast(ar.buffer()), 1) +{ + cell(0) = ar; +} + + InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str) : InsetMathNest(buf, 1) { @@ -43,7 +50,7 @@ Inset * InsetMathComment::clone() const void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const { cell(0).metrics(mi, dim); - metricsMarkers(dim); + metricsMarkers(mi, dim); } @@ -78,17 +85,15 @@ void InsetMathComment::maple(MapleStream & os) const } -void InsetMathComment::mathematica(MathematicaStream &) const -{} - - -void InsetMathComment::octave(OctaveStream &) const -{} +void InsetMathComment::mathmlize(MathStream & os) const +{ + os << MTag("comment") << cell(0) << ETag("comment"); +} -void InsetMathComment::mathmlize(MathStream & os) const +void InsetMathComment::htmlize(HtmlStream & os) const { - os << MTag("comment") << cell(0) << cell(1) << ETag("comment"); + os << ""; }