]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
more cosmetics
[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
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Extra nesting
12     \author André Pönitz
13 */
14
15 class MathBraceInset : public MathNestInset {
16 public:
17         ///
18         MathBraceInset();
19         ///
20         MathInset * clone() const;
21         /// we write extra braces in any case...
22         bool extraBraces() const { return true; }
23         ///
24         void draw(MathPainterInfo &, int x, int y) const;
25         ///
26         void write(WriteStream & os) const;
27         /// write normalized content
28         void normalize(NormalStream & ns) const;
29         ///
30         void metrics(MathMetricsInfo & mi) const;
31         ///
32         void infoize(std::ostream & os) const;
33
34 private:
35         /// width of brace character
36         mutable int wid_;
37 };
38
39 #endif