#include "math_nestinset.h"
#include "LString.h"
-#ifdef __GNUG__
-#pragma interface
-#endif
/** A delimiter
- \author Alejandro Aguilar Sierra
+ * \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
*/
class MathDelimInset : public MathNestInset {
public:
///
- MathDelimInset(string const &, string const &);
+ MathDelimInset(string const & left, string const & right);
+ ///
+ MathDelimInset(string const & left, string const & right, MathArray const &);
+ ///
+ virtual std::auto_ptr<InsetBase> clone() const;
+ ///
+ MathDelimInset * asDelimInset() { return this; }
///
- MathInset * clone() const;
+ MathDelimInset const * asDelimInset() const { return this; }
+ /// is it (...)?
+ bool isParanthesis() const;
+ /// is it [...]?
+ bool isBrackets() const;
+ /// is it |...|?
+ bool isAbs() const;
///
- void draw(Painter &, int x, int y) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
///
- void write(MathWriteInfo & os) const;
+ void draw(PainterInfo &, int x, int y) const;
+
+ ///
+ void write(WriteStream & os) const;
/// write normalized content
- void writeNormal(std::ostream &) const;
+ void normalize(NormalStream &) const;
///
- void metrics(MathMetricsInfo const & st) const;
+ void maple(MapleStream &) const;
///
- bool isMatrix() const;
+ void maxima(MaximaStream &) const;
///
- void octavize(OctaveStream &) const;
+ void mathematica(MathematicaStream &) const;
///
- void maplize(MapleStream &) const;
-private:
+ void mathmlize(MathMLStream &) const;
///
- int dw() const;
+ void octave(OctaveStream &) const;
///
string left_;
///
string right_;
+private:
///
- static string latexName(string const & name);
+ mutable int dw_;
};
#endif