#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 &, string const &);
///
- MathedInset * Clone();
+ MathInset * clone() const;
///
- void draw(Painter &, int, int);
+ void draw(Painter &, int x, int y) const;
///
- void Write(std::ostream &, bool fragile);
+ void write(std::ostream &, bool fragile) const;
///
- void Metrics();
+ void metrics(MathStyles st) const;
private:
///
- int left_;
+ int dw() const;
///
- int right_;
+ string left_;
///
- int dw_;
+ string right_;
///
- int dh_;
+ static string latexName(string const & name);
};
#endif