]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathStackrel.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathStackrel.h
index 8d9cfc006f85cab901b630fd409b7d634876d159..e7d6787ac6c9ce6aa4beee07d468c99635f627cf 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.
  */
 #ifndef MATH_STACKRELINSET_H
 #define MATH_STACKRELINSET_H
 
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
 
 
-/** Stackrel objects
- *  \author André Pönitz
- *
- * Full author contact details are available in file CREDITS.
- */
+namespace lyx {
+
 class InsetMathStackrel : public InsetMathFracBase {
 public:
        ///
-       InsetMathStackrel();
+       InsetMathStackrel(Buffer * buf, bool sub);
        ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
+       bool idxUpDown(Cursor &, bool up) const override;
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
-
+       bool idxFirst(Cursor &) const override;
+       ///
+       bool idxLast(Cursor &) const override;
+       ///
+       MathClass mathClass() const override;
        ///
-       void write(WriteStream & os) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
-       void normalize(NormalStream &) const;
+       void draw(PainterInfo & pi, int x, int y) const override;
+       ///
+       void write(TeXMathStream & os) const override;
+       ///
+       void normalize(NormalStream &) const override;
+       ///
+       void mathmlize(MathMLStream &) const override;
+       ///
+       void htmlize(HtmlStream &) const override;
+       ///
+       void validate(LaTeXFeatures &) const override;
+       ///
+       InsetCode lyxCode() const override { return MATH_STACKREL_CODE; }
+
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const override;
 };
 
+} // namespace lyx
 #endif