]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
preview as preview can...
[lyx.git] / src / mathed / math_braceinset.h
1 // -*- C++ -*-
2 #ifndef MATH_BRACEINSET_H
3 #define MATH_BRACEINSET_H
4
5 #include "math_nestinset.h"
6 #include "math_metricsinfo.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** Extra nesting
13     \author André Pönitz
14 */
15
16 class MathBraceInset : public MathNestInset {
17 public:
18         ///
19         MathBraceInset();
20         ///
21         MathInset * clone() const;
22         ///
23         MathBraceInset * asBraceInset() { return this; }
24         ///
25         void draw(MathPainterInfo &, int x, int y) const;
26         ///
27         void write(WriteStream & os) const;
28         /// write normalized content
29         void normalize(NormalStream & ns) const;
30         ///
31         void metrics(MathMetricsInfo & mi) const;
32
33 private:
34         /// width of brace character
35         mutable int wid_;
36 };
37
38 #endif