2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
5 #include "math_nestinset.h"
11 /** Fraction like objects (frac, stackrel, binom)
12 \author Alejandro Aguilar Sierra
14 class MathFracInset : public MathNestInset {
17 explicit MathFracInset(const string & name);
19 MathInset * clone() const;
21 void write(std::ostream &, bool fragile) const;
23 void writeNormal(std::ostream &) const;
25 void metrics(MathStyles st) const;
27 void draw(Painter &, int x, int y) const;
29 bool idxUp(int &, int &) const;
31 bool idxDown(int &, int &) const;
33 bool idxLeft(int &, int &) const;
35 bool idxRight(int &, int &) const;
37 bool idxFirstUp(int & idx, int & pos) const;
39 bool idxFirstDown(int & idx, int & pos) const;
41 bool idxLastUp(int & idx, int & pos) const;
43 bool idxLastDown(int & idx, int & pos) const;