]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathEnv.h
New methods in LaTeXFeatures specifically for collection of CSS
[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(Buffer * buf, 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; }
40
41 private:
42         virtual Inset * clone() const;
43         /// name of that environment
44         docstring name_;
45 };
46
47
48 } // namespace lyx
49
50 #endif