2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
5 #include "math_fracbase.h"
8 /** Fraction like objects (frac, binom)
9 * \author Alejandro Aguilar Sierra
11 * Full author contact details are available in file CREDITS
13 class MathFracInset : public MathFracbaseInset {
16 explicit MathFracInset(bool atop = false);
18 MathInset * clone() const;
20 void metrics(MetricsInfo & mi) const;
22 void draw(PainterInfo &, int x, int y) const;
24 void metricsT(TextMetricsInfo const & mi) const;
26 void drawT(TextPainter &, int x, int y) const;
27 /// identifies FracInsets
28 MathFracInset * asFracInset();
29 /// identifies FracInsets
30 MathFracInset const * asFracInset() const;
35 void write(WriteStream & os) const;
37 void maple(MapleStream &) const;
39 void mathematica(MathematicaStream &) const;
41 void octave(OctaveStream &) const;
43 void mathmlize(MathMLStream &) const;