1 #ifndef MATH_FRACINSET_H
2 #define MATH_FRACINSET_H
4 #include "math_parinset.h"
6 /// Fraction like objects (frac, stackrel, binom)
7 class MathFracInset: public MathParInset {
10 MathFracInset(short ot = LM_OT_FRAC);
14 MathedInset * Clone();
16 void draw(Painter &, int x, int baseline);
18 void Write(std::ostream &, bool fragile);
22 /** This does the same that SetData(MathedArray*) but for both
23 numerator and denominator at once.
25 void SetData(MathedArray *, MathedArray *);
27 void SetData(MathedArray *);
29 void GetXY(int & x, int & y) const;
31 void SetFocus(int, int);
33 bool Inside(int, int);
35 MathedArray * GetData();
37 bool setArgumentIdx(int i); // was bool Up/down(void);
39 int getArgumentIdx() const { return idx; }
41 int getMaxArgumentIdx() const { return 1; }