2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
5 #include "math_fracbase.h"
11 /** Fraction like objects (frac, binom)
12 * \author Alejandro Aguilar Sierra
14 * Full author contact details are available in file CREDITS
16 class MathFracInset : public MathFracbaseInset {
19 explicit MathFracInset(bool atop = false);
21 MathInset * clone() const;
23 void metrics(MathMetricsInfo & mi) const;
25 void draw(MathPainterInfo &, int x, int y) const;
27 void metricsT(TextMetricsInfo const & mi) const;
29 void drawT(TextPainter &, int x, int y) const;
30 /// identifies FracInsets
31 MathFracInset * asFracInset();
32 /// identifies FracInsets
33 MathFracInset const * asFracInset() const;
38 void write(WriteStream & os) const;
40 void maplize(MapleStream &) const;
42 void mathematicize(MathematicaStream &) const;
44 void octavize(OctaveStream &) const;
46 void mathmlize(MathMLStream &) const;