InsetMathCancel: add MathML output

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40710 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2012-02-06 17:35:29 +00:00
parent d6246362e6
commit cf4e6ddad9
2 changed files with 23 additions and 2 deletions

View File

@ -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 void InsetMathCancel::validate(LaTeXFeatures & features) const
{ {
InsetMathNest::validate(features); InsetMathNest::validate(features);

View File

@ -39,8 +39,8 @@ public:
void infoize(odocstream & os) const; void infoize(odocstream & os) const;
/// ///
InsetCode lyxCode() const { return MATH_CANCEL_CODE; } InsetCode lyxCode() const { return MATH_CANCEL_CODE; }
/// Nothing for now ///
void mathmlize(MathStream &) const {} void mathmlize(MathStream &) const;
/// Nothing for HTML /// Nothing for HTML
void htmlize(HtmlStream &) const {} void htmlize(HtmlStream &) const {}
/// ///