diff --git a/src/mathed/InsetMathCancel.cpp b/src/mathed/InsetMathCancel.cpp index 13d5606bef..545e6f5d20 100644 --- a/src/mathed/InsetMathCancel.cpp +++ b/src/mathed/InsetMathCancel.cpp @@ -125,6 +125,27 @@ void InsetMathCancel::infoize(odocstream & os) const } } + +void InsetMathCancel::mathmlize(MathStream & os) const +{ + switch (kind_) { + case cancel: + os << MTag("menclose", "notation='updiagonalstrike'") << cell(0) << ETag("menclose"); + break; + case bcancel: + os << MTag("menclose", "notation='downdiagonalstrike'") << cell(0) << ETag("menclose"); + break; + case xcancel: + os << MTag("menclose", "notation='updiagonalstrike'") + << MTag("menclose", "notation='downdiagonalstrike'") + << cell(0) + << ETag("menclose") + << ETag("menclose"); + break; + } +} + + void InsetMathCancel::validate(LaTeXFeatures & features) const { InsetMathNest::validate(features); diff --git a/src/mathed/InsetMathCancel.h b/src/mathed/InsetMathCancel.h index b9ca16215c..1ee4062d24 100644 --- a/src/mathed/InsetMathCancel.h +++ b/src/mathed/InsetMathCancel.h @@ -39,8 +39,8 @@ public: void infoize(odocstream & os) const; /// InsetCode lyxCode() const { return MATH_CANCEL_CODE; } - /// Nothing for now - void mathmlize(MathStream &) const {} + /// + void mathmlize(MathStream &) const; /// Nothing for HTML void htmlize(HtmlStream &) const {} ///