* 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.
*/
#define MATH_OVERSETINSET_H
-#include "InsetMathFracBase.h"
+#include "InsetMathFrac.h"
namespace lyx {
class InsetMathOverset : public InsetMathFracBase {
public:
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ explicit InsetMathOverset(Buffer * buf) : InsetMathFracBase(buf) {}
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- bool idxFirst(LCursor &) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- bool idxLast(LCursor &) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
///
- void write(WriteStream & os) const;
+ bool idxFirst(Cursor &) const override;
///
- void normalize(NormalStream &) const;
+ bool idxLast(Cursor &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void write(TeXMathStream & os) const override;
+ ///
+ void normalize(NormalStream &) const override;
+ ///
+ void mathmlize(MathMLStream &) const override;
+ ///
+ void htmlize(HtmlStream &) const override;
+ ///
+ void validate(LaTeXFeatures & features) const override;
+ ///
+ InsetCode lyxCode() const override { return MATH_OVERSET_CODE; }
+
private:
- virtual std::auto_ptr<InsetBase> doClone() const;
+ Inset * clone() const override;
};