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);
25 void WriteNormal(std::ostream &);
29 /** This does the same that SetData(MathedArray const &) but for both
30 numerator and denominator at once.
32 void SetData(MathedArray const &, MathedArray const &);
34 void setData(MathedArray const &);
36 void GetXY(int & x, int & y) const;
38 void SetFocus(int, int);
40 bool Inside(int, int);
42 MathedArray & GetData();
44 MathedArray const & GetData() const;
46 bool setArgumentIdx(int i); // was bool Up/down(void);
48 int getArgumentIdx() const;
50 int getMaxArgumentIdx() const;