]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.h
Substack support for XHTML.
[lyx.git] / src / mathed / InsetMathComment.h
index 7bec2fce6b10a938de29a269dc2765eecd0d5083..fa33c630914ec1ff251cf02dbfabfb8126eb6bbe 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "InsetMathNest.h"
 
 
+namespace lyx {
+
 class latexkeys;
 
 /// Inset for end-of-line comments
 class InsetMathComment : public InsetMathNest {
 public:
        ///
-       InsetMathComment();
+       InsetMathComment(Buffer * buf);
        ///
-       explicit InsetMathComment(std::string const &);
+       explicit InsetMathComment(Buffer * buf, docstring const &);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -38,14 +40,21 @@ public:
        ///
        void maple(MapleStream &) const;
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathematica(MathematicaStream &) const {}
+       ///
+       void octave(OctaveStream &) const {}
+       ///
+       void mathmlize(MathStream &) const;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const;
        ///
-       void mathmlize(MathMLStream &) const;
+       void infoize(odocstream & os) const;
        ///
-       void infoize(std::ostream & os) const;
+       InsetCode lyxCode() const { return MATH_COMMENT_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
 };
+
+} // namespace lyx
+
 #endif