]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathComment.h
index 340d64ee75c1aa9d5ee74fcd5677395ecebd84db..0134f6cfa970e9f80089345d339b1213351c4741 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.
  */
 
 namespace lyx {
 
-class latexkeys;
-
 /// Inset for end-of-line comments
 class InsetMathComment : public InsetMathNest {
 public:
        ///
-       InsetMathComment();
+       explicit InsetMathComment(Buffer * buf);
+       ///
+       explicit InsetMathComment(MathData const & ar);
        ///
-       explicit InsetMathComment(docstring const &);
+       InsetMathComment(Buffer * buf, docstring const &);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+       void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
        ///
-       void drawT(TextPainter & pi, int x, int y) const;
+       void drawT(TextPainter & pi, int x, int y) const override;
 
        ///
-       void write(WriteStream & os) const;
+       void write(WriteStream & 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(MathStream &) const override;
        ///
-       void octave(OctaveStream &) const;
+       void htmlize(HtmlStream &) const override;
        ///
-       void mathmlize(MathStream &) const;
+       void infoize(odocstream & os) const override;
        ///
-       void infoize(odocstream & os) const;
+       InsetCode lyxCode() const override { return MATH_COMMENT_CODE; }
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
 };
 
 } // namespace lyx