]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathEnv.h
g-brief loads babel internally. So don't load it ourselves.
[lyx.git] / src / mathed / InsetMathEnv.h
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.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_ENVINSET_H
13 #define MATH_ENVINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20
21 /// Environtments á la \begin{something}...\end{something}
22 class InsetMathEnv : public InsetMathNest {
23 public:
24         ///
25         InsetMathEnv(Buffer * buf, docstring const & name_);
26         ///
27         void draw(PainterInfo &, int x, int y) const override;
28         ///
29         void write(TeXMathStream & os) const override;
30         /// write normalized content
31         void normalize(NormalStream & ns) const override;
32         ///
33         void metrics(MetricsInfo & mi, Dimension & dim) const override;
34         ///
35         void infoize(odocstream & os) const override;
36         ///
37         InsetCode lyxCode() const override { return MATH_ENV_CODE; }
38
39 private:
40         Inset * clone() const override;
41         /// name of that environment
42         docstring name_;
43 };
44
45
46 } // namespace lyx
47
48 #endif