]> git.lyx.org Git - features.git/commitdiff
HTML output for InsetMathCancel.
authorRichard Heck <rgheck@comcast.net>
Mon, 6 Feb 2012 22:38:41 +0000 (22:38 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 6 Feb 2012 22:38:41 +0000 (22:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40711 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathCancel.cpp
src/mathed/InsetMathCancel.h

index 545e6f5d20019bb4ec2252c8eea0219a2314b4eb..f4618f259c10564a5e398fb9a5add8706b3fdbc2 100644 (file)
@@ -126,21 +126,35 @@ 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
 {
        switch (kind_) {
        case cancel:
-               os << MTag("menclose", "notation='updiagonalstrike'") << cell(0) << ETag("menclose"); 
+               os << MTag("menclose", "notation='updiagonalstrike'")
+                  << cell(0)
+                  << ETag("menclose"); 
                break;
        case bcancel:
-               os << MTag("menclose", "notation='downdiagonalstrike'") << cell(0) << ETag("menclose"); 
+               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"); 
+                  << ETag("menclose");
                break;
        }
 }
index 1ee4062d24ec6aa3fad69909ff26835cb24e6bf7..55febf318dd99b171fcb42a786d20f5dcecd86d9 100644 (file)
@@ -41,8 +41,8 @@ public:
        InsetCode lyxCode() const { return MATH_CANCEL_CODE; }
        ///
        void mathmlize(MathStream &) const;
-       /// Nothing for HTML
-       void htmlize(HtmlStream &) const {}
+       ///
+       void htmlize(HtmlStream &) const;
        ///
        void validate(LaTeXFeatures &) const;