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"
22 class MathDelimInset : public MathNestInset {
25 MathDelimInset(std::string const & left, std::string const & right);
27 MathDelimInset(std::string const & left, std::string const & right, MathArray const &);
29 MathDelimInset * asDelimInset() { return this; }
31 MathDelimInset const * asDelimInset() const { return this; }
33 bool isParanthesis() const;
35 bool isBrackets() const;
39 void metrics(MetricsInfo & mi, Dimension & dim) const;
41 void draw(PainterInfo &, int x, int y) const;
44 void write(WriteStream & os) const;
45 /// write normalized content
46 void normalize(NormalStream &) const;
48 void maple(MapleStream &) const;
50 void maxima(MaximaStream &) const;
52 void mathematica(MathematicaStream &) const;
54 void mathmlize(MathMLStream &) const;
56 void octave(OctaveStream &) const;
62 virtual std::auto_ptr<InsetBase> doClone() const;