]> git.lyx.org Git - lyx.git/blob - src/mathed/math_envinset.h
New support for \begin{...}...\end{...} style environments
[lyx.git] / src / mathed / math_envinset.h
1 // -*- C++ -*-
2 #ifndef MATH_ENVINSET_H
3 #define MATH_ENVINSET_H
4
5 #include "math_nestinset.h"
6 #include "math_metricsinfo.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** Environtments á la \begin{something}...\end{something}
13     \author André Pönitz
14 */
15
16 class MathEnvInset : public MathNestInset {
17 public:
18         ///
19         MathEnvInset(string const & name_);
20         ///
21         MathInset * clone() const;
22         ///
23         void draw(MathPainterInfo &, int x, int y) const;
24         ///
25         void write(WriteStream & os) const;
26         /// write normalized content
27         void normalize(NormalStream & ns) const;
28         ///
29         void metrics(MathMetricsInfo & mi) const;
30         ///
31         void infoize(std::ostream & os) const;
32
33 private:
34         /// name of that environment
35         string name_;
36 };
37
38 #endif