X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPar.h;h=0a178f439642951f2c6a46bde0a247f286c27b2c;hb=02e82157ec583c3900e359de86be79fac6512387;hp=e66e2da79fa2a3b36ee5620503643f1ced77b2b8;hpb=ed858d73e57ce7aa89e38c1bc4d799362edb0227;p=lyx.git diff --git a/src/mathed/InsetMathPar.h b/src/mathed/InsetMathPar.h index e66e2da79f..0a178f4396 100644 --- a/src/mathed/InsetMathPar.h +++ b/src/mathed/InsetMathPar.h @@ -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. */ @@ -21,19 +21,22 @@ namespace lyx { class InsetMathPar : public InsetMathHull { public: /// - InsetMathPar() {} + InsetMathPar(Buffer * buf) : InsetMathHull(buf) {} /// - InsetMathPar(MathData const & ar); + InsetMathPar(Buffer * buf, MathData const & ar); /// mode_type currentMode() const { return TEXT_MODE; } /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void draw(PainterInfo &, int x, int y) const; /// void infoize(odocstream & os) const; /// void write(WriteStream & os) const; + /// + InsetCode lyxCode() const { return MATH_PAR_CODE; } + private: /// virtual Inset * clone() const;