]> git.lyx.org Git - lyx.git/blob - src/mathed/math_braceinset.h
Fix event loop to no longer eat CPU
[lyx.git] / src / mathed / math_braceinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_braceinset.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 "math_nestinset.h"
16
17
18 /// Extra nesting
19 class MathBraceInset : public MathNestInset {
20 public:
21         ///
22         MathBraceInset();
23         ///
24         MathBraceInset(MathArray const & ar);
25         ///
26         MathBraceInset const * asBraceInset() const { return this; }
27         /// we write extra braces in any case...
28         bool extraBraces() const { return true; }
29         ///
30         void metrics(MetricsInfo & mi, Dimension & dim) const;
31         ///
32         void draw(PainterInfo &, int x, int y) const;
33         ///
34         void write(WriteStream & os) const;
35         /// write normalized content
36         void normalize(NormalStream & ns) const;
37         ///
38         void maple(MapleStream &) const;
39         ///
40         void mathematica(MathematicaStream &) const;
41         ///
42         void octave(OctaveStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45         ///
46         void infoize(std::ostream & os) const;
47 private:
48         virtual std::auto_ptr<InsetBase> doClone() const;
49 };
50
51 #endif