#ifndef MATH_SCRIPTINSET_H
#define MATH_SCRIPTINSET_H
-#include "math_inset.h"
+#include "math_nestinset.h"
#ifdef __GNUG__
#pragma interface
\author André Pönitz
*/
-class MathScriptInset : public MathInset {
+class MathScriptInset : public MathNestInset {
public:
///
- MathScriptInset();
+ explicit MathScriptInset(bool up);
///
- MathScriptInset(bool up, bool down);
+ MathInset * clone() const;
///
- MathInset * Clone() const;
+ void write(std::ostream &, bool fragile) const;
///
- void Write(std::ostream &, bool fragile) const;
+ void metrics(MathStyles st) const;
///
- void WriteNormal(std::ostream &) const;
+ void draw(Painter &, int x, int y) const;
///
- void Metrics(MathStyles st);
+ MathScriptInset const * asScriptInset() const;
///
- void draw(Painter &, int x, int baseline);
+ bool up() const { return up_; }
///
- bool idxUp(int & idx, int & pos) const;
- ///
- bool idxDown(int & idx, int & pos) const;
- ///
- bool idxLeft(int & idx, int & pos) const;
- ///
- bool idxRight(int & idx, int & pos) const;
- ///
- bool idxFirst(int & idx, int & pos) const;
- ///
- bool idxLast(int & idx, int & pos) const;
- ///
- bool up() const;
- ///
- bool down() const;
- ///
- void up(bool);
- ///
- void down(bool);
+ bool down() const { return !up_; }
private:
///
bool up_;
- ///
- bool down_;
};
#endif
+