2 #ifndef MATH_SCRIPTINSET_H
3 #define MATH_SCRIPTINSET_H
5 #include "math_inset.h"
11 /** Inset for super- and subscripts
15 class MathScriptInset : public MathInset {
20 MathScriptInset(bool up, bool down);
22 MathInset * Clone() const;
24 void Write(std::ostream &, bool fragile) const;
26 void WriteNormal(std::ostream &) const;
28 void Metrics(MathStyles st);
30 void draw(Painter &, int x, int baseline);
32 bool idxUp(int & idx, int & pos) const;
34 bool idxDown(int & idx, int & pos) const;
36 bool idxLeft(int & idx, int & pos) const;
38 bool idxRight(int & idx, int & pos) const;
40 bool idxFirst(int & idx, int & pos) const;
42 bool idxFirstUp(int & idx, int & pos) const;
44 bool idxFirstDown(int & idx, int & pos) const;
46 bool idxLast(int & idx, int & pos) const;
48 bool idxLastUp(int & idx, int & pos) const;
50 bool idxLastDown(int & idx, int & pos) const;
60 bool isActive() const { return false; }
61 /// Identifies ScriptInsets
62 bool isScriptInset() const { return true; }
64 bool idxDelete(int idx);