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