]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
more robust lable parsing, convenience contructor for braceinset
[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         MathBraceInset(MathArray const & ar);
21         ///
22         MathInset * clone() const;
23         /// we write extra braces in any case...
24         bool extraBraces() const { return true; }
25         ///
26         void draw(MathPainterInfo &, int x, int y) const;
27         ///
28         void write(WriteStream & os) const;
29         /// write normalized content
30         void normalize(NormalStream & ns) const;
31         ///
32         void metrics(MathMetricsInfo & mi) const;
33         ///
34         void infoize(std::ostream & os) const;
35
36 private:
37         /// width of brace character
38         mutable int wid_;
39 };
40
41 #endif