2 #ifndef MATH_SCRIPTINSET_H
3 #define MATH_SCRIPTINSET_H
5 #include "math_nestinset.h"
11 /** Inset for super- and subscripts
15 class MathScriptInset : public MathNestInset {
18 explicit MathScriptInset(bool up);
20 MathInset * clone() const;
22 void write(std::ostream &, bool fragile) const;
24 void metrics(MathStyles st) const;
26 void draw(Painter &, int x, int y) const;
28 MathScriptInset const * asScriptInset() const;
30 bool up() const { return up_; }
32 bool down() const { return !up_; }