X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.h;h=14b72072bc8100b2504a77c1ff883f2fbd65e3a1;hb=48b09463dd23e64fab605553a91542198e8361e4;hp=49922d4cc9ce321579ed55bdae781c459d24da0c;hpb=e24bf64c68102691fc76081de9fb57926b482726;p=lyx.git diff --git a/src/mathed/InsetMathEnv.h b/src/mathed/InsetMathEnv.h index 49922d4cc9..14b72072bc 100644 --- a/src/mathed/InsetMathEnv.h +++ b/src/mathed/InsetMathEnv.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. */ @@ -20,11 +20,11 @@ namespace lyx { -/// Environtments á la \begin{something}...\end{something} +/// Environtments á la \begin{something}...\end{something} class InsetMathEnv : public InsetMathNest { public: /// - InsetMathEnv(docstring const & name_); + InsetMathEnv(Buffer * buf, docstring const & name_); /// void draw(PainterInfo &, int x, int y) const; /// @@ -32,12 +32,14 @@ public: /// write normalized content void normalize(NormalStream & ns) const; /// - bool metrics(MetricsInfo & mi, Dimension & dim) const; + void metrics(MetricsInfo & mi, Dimension & dim) const; /// void infoize(odocstream & os) const; + /// + InsetCode lyxCode() const { return MATH_ENV_CODE; } private: - virtual std::auto_ptr doClone() const; + virtual Inset * clone() const; /// name of that environment docstring name_; };