///
InsetMathClass(Buffer * buf, MathClass);
///
- docstring name() const;
+ docstring name() const override;
///
- MathClass mathClass() const { return math_class_; }
+ MathClass mathClass() const override { return math_class_; }
///
- 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 infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_CLASS_CODE; }
+ InsetCode lyxCode() const override { return MATH_CLASS_CODE; }
+ ///
+ InsetMathClass * asClassInset() { return this; }
+ ///
+ InsetMathClass const * asClassInset() const override { return this; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
MathClass math_class_;
};