3 * \file InsetMathBrace.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_BRACEINSET_H
13 #define MATH_BRACEINSET_H
15 #include "InsetMathNest.h"
22 class InsetMathBrace : public InsetMathNest {
25 explicit InsetMathBrace(Buffer * buf);
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; }
33 void metrics(MetricsInfo & mi, Dimension & dim) const override;
35 void draw(PainterInfo &, int x, int y) const override;
37 void write(TeXMathStream & os) const override;
38 /// write normalized content
39 void normalize(NormalStream & ns) const override;
41 void maple(MapleStream &) const override;
43 void mathematica(MathematicaStream &) const override;
45 void octave(OctaveStream &) const override;
47 void mathmlize(MathMLStream &) const override;
49 void htmlize(HtmlStream &) const override;
51 void infoize(odocstream & os) const override;
53 InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
55 Inset * clone() const override;