#ifndef MATH_DELIMINSET_H
#define MATH_DELIMINSET_H
-#include "math_parinset.h"
+#include "math_nestinset.h"
+#include "LString.h"
-/// A delimiter
-class MathDelimInset: public MathParInset {
+
+/** A delimiter
+ * \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
+*/
+
+class MathDelimInset : public MathNestInset {
public:
///
- MathDelimInset(int, int, short st = LM_ST_TEXT);
+ MathDelimInset(string const & left, string const & right);
+ ///
+ MathDelimInset(string const & left, string const & right, MathArray const &);
+ ///
+ MathInset * clone() const;
+ ///
+ MathDelimInset * asDelimInset() { return this; }
+ ///
+ MathDelimInset const * asDelimInset() const { return this; }
+ /// is it (...)?
+ bool isParanthesis() const;
+ /// is it [...]?
+ bool isBrackets() const;
+ /// is it |...|?
+ bool isAbs() const;
+ ///
+ void metrics(MathMetricsInfo & st) const;
+ ///
+ void draw(MathPainterInfo &, int x, int y) const;
+
+ ///
+ void write(WriteStream & os) const;
+ /// write normalized content
+ void normalize(NormalStream &) const;
///
- MathedInset * Clone();
+ void maple(MapleStream &) const;
///
- void draw(Painter &, int, int);
+ void maxima(MaximaStream &) const;
///
- void Write(std::ostream &, bool fragile);
+ void mathematica(MathematicaStream &) const;
///
- void Metrics();
-protected:
+ void mathmlize(MathMLStream &) const;
///
- int left;
+ void octave(OctaveStream &) const;
///
- int right;
+ string left_;
///
- int dw;
+ string right_;
+private:
///
- int dh;
+ int dw() const;
};
#endif