#ifndef MATH_DELIMINSET_H
#define MATH_DELIMINSET_H
-#include "math_inset.h"
+#include "math_nestinset.h"
+#include "LString.h"
#ifdef __GNUG__
#pragma interface
/** A delimiter
\author Alejandro Aguilar Sierra
*/
-class MathDelimInset : public MathInset {
+
+class MathDelimInset : public MathNestInset {
public:
///
- MathDelimInset(int, int);
+ MathDelimInset(string const &, string const &);
///
- MathInset * Clone() const;
+ MathInset * clone() const;
///
- void draw(Painter &, int, int);
+ void draw(Painter &, int x, int y) const;
///
- void Write(std::ostream &, bool fragile) const;
+ void write(std::ostream &, bool fragile) const;
///
- void Metrics(MathStyles st);
+ void metrics(MathStyles st) const;
private:
+ ///
int dw() const;
///
- int left_;
+ string left_;
+ ///
+ string right_;
///
- int right_;
+ static string latexName(string const & name);
};
#endif