mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
HTML output for InsetMathCancel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40711 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cf4e6ddad9
commit
23832ce191
@ -126,14 +126,28 @@ void InsetMathCancel::infoize(odocstream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// unfortunately, we do not have many options here, so we have to treat
|
||||||
|
// them all the same way.
|
||||||
|
void InsetMathCancel::htmlize(HtmlStream & os) const
|
||||||
|
{
|
||||||
|
os << MTag("span", "style='text-decoration: line-through;'")
|
||||||
|
<< cell(0)
|
||||||
|
<< ETag("span");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void InsetMathCancel::mathmlize(MathStream & os) const
|
void InsetMathCancel::mathmlize(MathStream & os) const
|
||||||
{
|
{
|
||||||
switch (kind_) {
|
switch (kind_) {
|
||||||
case cancel:
|
case cancel:
|
||||||
os << MTag("menclose", "notation='updiagonalstrike'") << cell(0) << ETag("menclose");
|
os << MTag("menclose", "notation='updiagonalstrike'")
|
||||||
|
<< cell(0)
|
||||||
|
<< ETag("menclose");
|
||||||
break;
|
break;
|
||||||
case bcancel:
|
case bcancel:
|
||||||
os << MTag("menclose", "notation='downdiagonalstrike'") << cell(0) << ETag("menclose");
|
os << MTag("menclose", "notation='downdiagonalstrike'")
|
||||||
|
<< cell(0)
|
||||||
|
<< ETag("menclose");
|
||||||
break;
|
break;
|
||||||
case xcancel:
|
case xcancel:
|
||||||
os << MTag("menclose", "notation='updiagonalstrike'")
|
os << MTag("menclose", "notation='updiagonalstrike'")
|
||||||
|
@ -41,8 +41,8 @@ public:
|
|||||||
InsetCode lyxCode() const { return MATH_CANCEL_CODE; }
|
InsetCode lyxCode() const { return MATH_CANCEL_CODE; }
|
||||||
///
|
///
|
||||||
void mathmlize(MathStream &) const;
|
void mathmlize(MathStream &) const;
|
||||||
/// Nothing for HTML
|
///
|
||||||
void htmlize(HtmlStream &) const {}
|
void htmlize(HtmlStream &) const;
|
||||||
///
|
///
|
||||||
void validate(LaTeXFeatures &) const;
|
void validate(LaTeXFeatures &) const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user