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"
23 /// Environtments á la \begin{something}...\end{something}
24 class InsetMathEnv
: public InsetMathNest
{
27 InsetMathEnv(Buffer
* buf
, docstring
const & name_
);
29 void draw(PainterInfo
&, int x
, int y
) const;
31 void write(WriteStream
& os
) const;
32 /// write normalized content
33 void normalize(NormalStream
& ns
) const;
35 void metrics(MetricsInfo
& mi
, Dimension
& dim
) const;
37 void infoize(odocstream
& os
) const;
39 InsetCode
lyxCode() const { return MATH_ENV_CODE
; }
42 virtual Inset
* clone() const;
43 /// name of that environment