]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBrace.h
f7c399a9c75b226af95d8f0c5adbcc989f75a840
[lyx.git] / src / mathed / InsetMathBrace.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathBrace.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_BRACEINSET_H
13 #define MATH_BRACEINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20
21 /// Extra nesting
22 class InsetMathBrace : public InsetMathNest {
23 public:
24         ///
25         InsetMathBrace();
26         ///
27         InsetMathBrace(MathArray const & ar);
28         /// we write extra braces in any case...
29         bool extraBraces() const { return true; }
30         ///
31         bool metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo &, int x, int y) const;
34         ///
35         void write(WriteStream & os) const;
36         /// write normalized content
37         void normalize(NormalStream & ns) const;
38         ///
39         void maple(MapleStream &) const;
40         ///
41         void mathematica(MathematicaStream &) const;
42         ///
43         void octave(OctaveStream &) const;
44         ///
45         void mathmlize(MathStream &) const;
46         ///
47         void infoize(odocstream & os) const;
48         
49         /// identifies brace insets
50         InsetMathBrace * asBraceInset() { return this; }
51         /// identifies brace insets
52         InsetMathBrace const * asBraceInset() const { return this; }
53 private:
54         virtual std::auto_ptr<InsetBase> doClone() const;
55 };
56
57
58 } // namespace lyx
59
60 #endif