]> git.lyx.org Git - lyx.git/blob - src/mathed/math_envinset.h
Jean-Marc's fix for wrong descent
[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
9 /** Environtments á la \begin{something}...\end{something}
10  *  \author André Pönitz
11  *
12  * Full author contact details are available in file CREDITS
13 */
14
15 class MathEnvInset : public MathNestInset {
16 public:
17         ///
18         MathEnvInset(string const & name_);
19         ///
20         MathInset * clone() const;
21         ///
22         void draw(MathPainterInfo &, int x, int y) const;
23         ///
24         void write(WriteStream & os) const;
25         /// write normalized content
26         void normalize(NormalStream & ns) const;
27         ///
28         void metrics(MathMetricsInfo & mi) const;
29         ///
30         void infoize(std::ostream & os) const;
31
32 private:
33         /// name of that environment
34         string name_;
35 };
36
37 #endif