X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathDiagram.h;h=95e16e278023b45460be946c2f2b90c41b17d022;hb=dc976c2b6f6e1f19ee4d884c12abafbdae9e5126;hp=7ab099cec3cd76b60abc42baa53cd20bd6ad9a27;hpb=65962da47b85682f20f1e060955e5cd9f3399c66;p=lyx.git diff --git a/src/mathed/InsetMathDiagram.h b/src/mathed/InsetMathDiagram.h index 7ab099cec3..95e16e2780 100644 --- a/src/mathed/InsetMathDiagram.h +++ b/src/mathed/InsetMathDiagram.h @@ -13,7 +13,6 @@ #ifndef MATH_DIAGRAM_H #define MATH_DIAGRAM_H -#include "Length.h" #include "InsetMathGrid.h" @@ -23,34 +22,34 @@ namespace lyx { class InsetMathDiagram : public InsetMathGrid { public: /// - InsetMathDiagram(Buffer * buf); + explicit InsetMathDiagram(Buffer * buf); /// - void metrics(MetricsInfo &, Dimension &) const; + void metrics(MetricsInfo &, Dimension &) const override; + /// + void draw(PainterInfo & pi, int x, int y) const override; /// InsetMathDiagram const * asDiagramInset() const { return this; } /// - virtual int colsep() const; + int colsep() const override; /// - virtual int rowsep() const; + int rowsep() const override; /// - void normalize(); - /// - void write(WriteStream & os) const; + void write(TeXMathStream & os) const override; /// - void infoize(odocstream & os) const; + void infoize(odocstream & os) const override; /// - void normalize(NormalStream &) const; + void normalize(NormalStream &) const override; /// - void maple(MapleStream &) const; + void maple(MapleStream &) const override; /// - void validate(LaTeXFeatures & features) const; + void validate(LaTeXFeatures & features) const override; /// - InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; } + InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; } private: /// - virtual Inset * clone() const; + Inset * clone() const override; };