]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathEnv.h
7d73a875d52edd735e93de9b1b462397c506776f
[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 #include <string>
18
19
20 namespace lyx {
21
22
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         bool metrics(MetricsInfo & mi, Dimension & dim) const;
36         ///
37         void infoize(odocstream & os) const;
38
39 private:
40         virtual std::auto_ptr<Inset> doClone() const;
41         /// name of that environment
42         docstring name_;
43 };
44
45
46 } // namespace lyx
47
48 #endif