2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
5 #include "math_parinset.h"
11 /** Fraction like objects (frac, stackrel, binom)
12 \author Alejandro Aguilar Sierra
14 class MathFracInset : public MathParInset {
17 MathFracInset(short ot = LM_OT_FRAC);
19 MathedInset * Clone();
21 void draw(Painter &, int x, int baseline);
23 void Write(std::ostream &, bool fragile);
27 /** This does the same that SetData(MathedArray const &) but for both
28 numerator and denominator at once.
30 void SetData(MathedArray const &, MathedArray const &);
32 void setData(MathedArray const &);
34 void GetXY(int & x, int & y) const;
36 void SetFocus(int, int);
38 bool Inside(int, int);
40 MathedArray & GetData();
42 bool setArgumentIdx(int i); // was bool Up/down(void);
44 int getArgumentIdx() const;
46 int getMaxArgumentIdx() const;
66 int MathFracInset::getArgumentIdx() const
73 int MathFracInset::getMaxArgumentIdx() const