]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathUnderset.h
Revert "DocBook: make openParTag/closeTag use paragraphs instead of layouts."
[lyx.git] / src / mathed / InsetMathUnderset.h
index c195eb10b6987e3cf8ddb35f18e15e16dd00922e..565f0d5cc4fc4ce20fc695b5bb89b6b278fe50f8 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.
  */
@@ -13,7 +13,7 @@
 #define MATH_UNDERSETINSET_H
 
 
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
 
 
 namespace lyx {
@@ -22,23 +22,30 @@ namespace lyx {
 class InsetMathUnderset : public InsetMathFracBase {
 public:
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       explicit InsetMathUnderset(Buffer * buf) : InsetMathFracBase(buf) {}
        ///
-       void draw(PainterInfo & pi, int x, int y) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
-       bool idxFirst(Cursor & cur) const;
+       void draw(PainterInfo & pi, int x, int y) const;
        ///
-       bool idxLast(Cursor & cur) const;
+       bool idxFirst(Cursor &) const;
        ///
-       bool idxUpDown(Cursor & cur, bool up) const;
+       bool idxLast(Cursor &) const;
        ///
        void write(WriteStream & ws) const;
        ///
        void normalize(NormalStream & ns) const;
        ///
+       void mathmlize(MathStream &) const;
+       ///
+       void htmlize(HtmlStream &) const;
+       ///
        void validate(LaTeXFeatures & features) const;
+       ///
+       InsetCode lyxCode() const { return MATH_UNDERSET_CODE; }
+
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
 };