4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_ENVINSET_H
13 #define MATH_ENVINSET_H
15 #include "InsetMathNest.h"
21 /// Environtments á la \begin{something}...\end{something}
22 class InsetMathEnv : public InsetMathNest {
25 InsetMathEnv(Buffer * buf, docstring const & name_);
27 void draw(PainterInfo &, int x, int y) const override;
29 void write(TeXMathStream & os) const override;
30 /// write normalized content
31 void normalize(NormalStream & ns) const override;
33 void metrics(MetricsInfo & mi, Dimension & dim) const override;
35 void infoize(odocstream & os) const override;
37 InsetCode lyxCode() const override { return MATH_ENV_CODE; }
40 Inset * clone() const override;
41 /// name of that environment