#ifndef MATH_DELIMINSET_H
#define MATH_DELIMINSET_H
-#include "math_parinset.h"
+#include "math_nestinset.h"
+#include "LString.h"
+
+#ifdef __GNUG__
+#pragma interface
+#endif
/** A delimiter
\author Alejandro Aguilar Sierra
*/
-class MathDelimInset : public MathParInset {
+
+class MathDelimInset : public MathNestInset {
public:
///
- MathDelimInset(int, int, short st = LM_ST_TEXT);
+ MathDelimInset(string const & left, string const & right);
///
- MathedInset * Clone();
+ MathInset * clone() const;
///
- void draw(Painter &, int, int);
+ MathDelimInset * asDelimInset() { return this; }
///
- void Write(std::ostream &, bool fragile);
+ MathDelimInset const * asDelimInset() const { return this; }
+ /// is it (...)?
+ bool isParanthesis() const;
+ /// is it [...]?
+ bool isBrackets() const;
+ /// is it |...|?
+ bool isAbs() const;
///
- void Metrics();
-private:
+ void metrics(MathMetricsInfo const & st) const;
+ ///
+ void draw(Painter &, int x, int y) const;
+
+ ///
+ void write(WriteStream & os) const;
+ /// write normalized content
+ void normalize(NormalStream &) const;
+ ///
+ void maplize(MapleStream &) const;
///
- int left_;
+ void mathmlize(MathMLStream &) const;
///
- int right_;
+ void octavize(OctaveStream &) const;
///
- int dw_;
+ string left_;
+ ///
+ string right_;
+private:
///
- int dh_;
+ int dw() const;
};
#endif