3 * \file math_deliminset.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 "math_nestinset.h"
21 class MathDelimInset : public MathNestInset {
24 MathDelimInset(string const & left, string const & right);
26 MathDelimInset(string const & left, string const & right, MathArray const &);
28 virtual std::auto_ptr<InsetBase> clone() const;
30 MathDelimInset * asDelimInset() { return this; }
32 MathDelimInset const * asDelimInset() const { return this; }
34 bool isParanthesis() const;
36 bool isBrackets() const;
40 void metrics(MetricsInfo & mi, Dimension & dim) const;
42 void draw(PainterInfo &, int x, int y) const;
45 void write(WriteStream & os) const;
46 /// write normalized content
47 void normalize(NormalStream &) const;
49 void maple(MapleStream &) const;
51 void maxima(MaximaStream &) const;
53 void mathematica(MathematicaStream &) const;
55 void mathmlize(MathMLStream &) const;
57 void octave(OctaveStream &) const;