3 * \file InsetMathDelim.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
10 * Full author contact details are available in file CREDITS.
13 #ifndef MATH_DELIMINSET_H
14 #define MATH_DELIMINSET_H
16 #include "InsetMathNest.h"
23 /// A delimiter like '{' or '(' or '<'
24 class InsetMathDelim : public InsetMathNest {
27 InsetMathDelim(docstring const & left, docstring const & right);
29 InsetMathDelim(docstring const & left, docstring const & right, MathData const &);
31 InsetMathDelim * asDelimInset() { return this; }
33 InsetMathDelim const * asDelimInset() const { return this; }
35 bool isParenthesis() const;
37 bool isBrackets() const;
41 mode_type currentMode() const { return MATH_MODE; }
43 void metrics(MetricsInfo & mi, Dimension & dim) const;
45 void draw(PainterInfo &, int x, int y) const;
48 void write(WriteStream & os) const;
49 /// write normalized content
50 void normalize(NormalStream &) const;
52 void maple(MapleStream &) const;
54 void maxima(MaximaStream &) const;
56 void mathematica(MathematicaStream &) const;
58 void mathmlize(MathStream &) const;
60 void octave(OctaveStream &) const;
66 virtual Inset * clone() const;