]> git.lyx.org Git - features.git/commitdiff
Suppress XHTML output for math macros. (We used to get the default from
authorRichard Heck <rgheck@comcast.net>
Thu, 18 Mar 2010 22:19:34 +0000 (22:19 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 18 Mar 2010 22:19:34 +0000 (22:19 +0000)
Inset.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33795 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacroTemplate.cpp
src/mathed/MathMacroTemplate.h

index 62bb891251564332c7cf95f9bd155e2f5ce728a2..ec5c8a72907be703b438b69f57e3037455b8959d 100644 (file)
@@ -1233,6 +1233,11 @@ int MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) const
 }
 
 
+docstring MathMacroTemplate::xhtml(XHTMLStream &, OutputParams const &) const
+{
+       return docstring();
+}
+
 int MathMacroTemplate::plaintext(odocstream & os,
                                 OutputParams const &) const
 {
index f56ccb62074a4c49e315a00116c26debf64c5762..e93ceb46d0dfe0c4a85c79ebf17016485312e62a 100644 (file)
@@ -22,6 +22,9 @@
 
 namespace lyx {
 
+class OutputParams;
+class XHTMLStream;
+
 /// This class contains the macro definition.
 class MathMacroTemplate : public InsetMathNest {
 public:
@@ -50,6 +53,8 @@ public:
        /// Output LaTeX code, but assume that the macro is not definied yet
        /// if overwriteRedefinition is true
        int write(WriteStream & os, bool overwriteRedefinition) const;
+       /// Nothing happens. This is simply to suppress the default output.
+       docstring xhtml(XHTMLStream &, OutputParams const &) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
        ///