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