]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXArrow.h
Fix -Winconsistent-missing-override
[lyx.git] / src / mathed / InsetMathXArrow.h
index 70df8f365b698a8e9cfad34fb20a565bae5f717c..3e5c4846a95889e68149ed14b671f9bb99705469 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.
  */
@@ -12,7 +12,7 @@
 #ifndef MATH_XARROWINSET_H
 #define MATH_XARROWINSET_H
 
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
 
 
 namespace lyx {
@@ -22,20 +22,28 @@ namespace lyx {
 class InsetMathXArrow : public InsetMathFracBase {
 public:
        ///
-       explicit InsetMathXArrow(docstring const & name);
+       explicit InsetMathXArrow(Buffer * buf, docstring const & name);
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
        ///
-       void write(WriteStream & os) const;
+       void write(TeXMathStream & os) const override;
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void normalize(NormalStream & os) const;
+       void normalize(NormalStream & os) const override;
        ///
-       void validate(LaTeXFeatures & features) const;
+       void mathmlize(MathMLStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void validate(LaTeXFeatures & features) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_XARROW_CODE; }
+       ///
+       MathClass mathClass() const override { return MC_REL; }
 
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const override;
        ///
        bool upper() const;
        ///