]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnsureMath.h
Revert "Fix a number of signedness warnings"
[lyx.git] / src / mathed / InsetMathEnsureMath.h
index 0acc7a5fdb1cee9f50ae63062fb9a5089f152c38..ac491aff752046ca205664be00ae00d0f0036809 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
  * \author Enrico Forestieri
  *
  * Full author contact details are available in file CREDITS.
@@ -22,23 +22,31 @@ namespace lyx {
 /// Inset for ensuring math mode
 class InsetMathEnsureMath : public InsetMathNest {
 public:
-       InsetMathEnsureMath();
+       explicit InsetMathEnsureMath(Buffer * buf);
        ///
-       mode_type currentMode() const { return MATH_MODE; }
+       mode_type currentMode() const override { return MATH_MODE; }
        ///
-       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 infoize(odocstream & os) const;
+       void mathmlize(MathStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void infoize(odocstream & os) const override;
+       ///
+       void validate(LaTeXFeatures & features) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_ENSUREMATH_CODE; }
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
 };