]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
small up/down tweaking
[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  * Full author contact details are available in file CREDITS
15 */
16
17 class MathBraceInset : public MathNestInset {
18 public:
19         ///
20         MathBraceInset();
21         ///
22         MathBraceInset(MathArray const & ar);
23         ///
24         MathInset * clone() const;
25         /// we write extra braces in any case...
26         bool extraBraces() const { return true; }
27         ///
28         void metrics(MathMetricsInfo & mi) const;
29         ///
30         void draw(MathPainterInfo &, int x, int y) const;
31         ///
32         void write(WriteStream & os) const;
33         /// write normalized content
34         void normalize(NormalStream & ns) const;
35         ///
36         void maplize(MapleStream &) const;
37         ///
38         void mathematicize(MathematicaStream &) const;
39         ///
40         void octavize(OctaveStream &) const;
41         ///
42         void mathmlize(MathMLStream &) const;
43         ///
44         void infoize(std::ostream & os) const;
45
46 private:
47         /// width of brace character
48         mutable int wid_;
49 };
50
51 #endif