]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
updates to latexfeatures stuff; allow empty \document_path
[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         void draw(Painter &, int x, int y) const;
24         ///
25         void write(WriteStream & os) const;
26         /// write normalized content
27         void normalize(NormalStream &) const;
28         ///
29         void metrics(MathMetricsInfo const & st) const;
30
31 private:
32         /// width of brace character
33         mutable int wid_;
34         ///
35         MathMetricsInfo mi_;
36 };
37
38 #endif