]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathBrace.h
g-brief loads babel internally. So don't load it ourselves.
[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         explicit InsetMathBrace(Buffer * buf);
26         ///
27         explicit InsetMathBrace(MathData const & ar);
28         /// identifies brace insets
29         InsetMathBrace * asBraceInset() override { return this; }
30         /// identifies brace insets
31         InsetMathBrace const * asBraceInset() const override { return this; }
32         ///
33         void metrics(MetricsInfo & mi, Dimension & dim) const override;
34         ///
35         void draw(PainterInfo &, int x, int y) const override;
36         /// we inherit the mode
37         mode_type currentMode() const override { return current_mode_; }
38         ///
39         void write(TeXMathStream & os) const override;
40         /// write normalized content
41         void normalize(NormalStream & ns) const override;
42         ///
43         void maple(MapleStream &) const override;
44         ///
45         void mathematica(MathematicaStream &) const override;
46         ///
47         void octave(OctaveStream &) const override;
48         ///
49         void mathmlize(MathMLStream &) const override;
50         ///
51         void htmlize(HtmlStream &) const override;
52         ///
53         void infoize(odocstream & os) const override;
54         ///
55         InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
56 private:
57         Inset * clone() const override;
58         /// the inherited mode
59         mutable mode_type current_mode_;
60 };
61
62
63 } // namespace lyx
64
65 #endif