]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.h
Fix bug #12772
[lyx.git] / src / mathed / InsetMathComment.h
index 7bec2fce6b10a938de29a269dc2765eecd0d5083..30e8cc4de4504446ddf3fe1d1c20b7de171dbe49 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"
 
 
-class latexkeys;
+namespace lyx {
 
 /// Inset for end-of-line comments
 class InsetMathComment : public InsetMathNest {
 public:
        ///
-       InsetMathComment();
+       explicit InsetMathComment(Buffer * buf);
        ///
-       explicit InsetMathComment(std::string const &);
+       explicit InsetMathComment(MathData const & ar);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       InsetMathComment(Buffer * buf, docstring const &);
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void drawT(TextPainter & pi, int x, int y) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
+       ///
+       void drawT(TextPainter & pi, int x, int y) const override;
 
        ///
-       void write(WriteStream & os) const;
+       void write(TeXMathStream & os) const override;
+       ///
+       void maple(MapleStream &) const override;
+       ///
+       void mathematica(MathematicaStream &) const override {}
        ///
-       void maple(MapleStream &) const;
+       void octave(OctaveStream &) const override {}
        ///
-       void mathematica(MathematicaStream &) const;
+       void mathmlize(MathMLStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void mathmlize(MathMLStream &) const;
+       void infoize(odocstream & os) const override;
        ///
-       void infoize(std::ostream & os) const;
+       InsetCode lyxCode() const override { return MATH_COMMENT_CODE; }
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };
+
+} // namespace lyx
+
 #endif