X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathEnv.h;h=9bc338d90482e4f16db20dde75fa334cf2b79a81;hb=cdc847fd304019a19425a0d5d9d42a556a937097;hp=23c9f8370690c3408ddfac4c7e043e5325deec0a;hpb=e89625ef28143545a511cdabc67dee8b7be1b216;p=lyx.git diff --git a/src/mathed/InsetMathEnv.h b/src/mathed/InsetMathEnv.h index 23c9f83706..9bc338d904 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. */ @@ -14,14 +14,15 @@ #include "InsetMathNest.h" -#include +namespace lyx { -/// Environtments á la \begin{something}...\end{something} + +/// Environtments á la \begin{something}...\end{something} class InsetMathEnv : public InsetMathNest { public: /// - InsetMathEnv(std::string const & name_); + InsetMathEnv(Buffer * buf, docstring const & name_); /// void draw(PainterInfo &, int x, int y) const; /// @@ -31,12 +32,17 @@ public: /// void metrics(MetricsInfo & mi, Dimension & dim) const; /// - void infoize(std::ostream & os) 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 - std::string name_; + docstring name_; }; + +} // namespace lyx + #endif