Give inset codes to all the math insets, so we get more information when
[lyx.git] / src / mathed / InsetMathEnv.h
blob035aa68e5c18469e61142f1e2e890a816d1948cb
1 // -*- C++ -*-
2 /**
3 * \file InsetMathEnv.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_ENVINSET_H
13 #define MATH_ENVINSET_H
15 #include "InsetMathNest.h"
17 #include <string>
20 namespace lyx {
23 /// Environtments á la \begin{something}...\end{something}
24 class InsetMathEnv : public InsetMathNest {
25 public:
26 ///
27 InsetMathEnv(docstring const & name_);
28 ///
29 void draw(PainterInfo &, int x, int y) const;
30 ///
31 void write(WriteStream & os) const;
32 /// write normalized content
33 void normalize(NormalStream & ns) const;
34 ///
35 void metrics(MetricsInfo & mi, Dimension & dim) const;
36 ///
37 void infoize(odocstream & os) const;
38 ///
39 InsetCode lyxCode() const { return MATH_ENV_CODE; }
41 private:
42 virtual Inset * clone() const;
43 /// name of that environment
44 docstring name_;
48 } // namespace lyx
50 #endif