]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
small up/down tweaking
[lyx.git] / src / mathed / math_fracinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
4
5 #include "math_fracbase.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Fraction like objects (frac, binom)
12  *  \author Alejandro Aguilar Sierra
13  *
14  * Full author contact details are available in file CREDITS
15  */
16 class MathFracInset : public MathFracbaseInset {
17 public:
18         ///
19         explicit MathFracInset(bool atop = false);
20         ///
21         MathInset * clone() const;
22         ///
23         void metrics(MathMetricsInfo & mi) const;
24         ///
25         void draw(MathPainterInfo &, int x, int y) const;
26         ///
27         void metricsT(TextMetricsInfo const & mi) const;
28         ///
29         void drawT(TextPainter &, int x, int y) const;
30         /// identifies FracInsets
31         MathFracInset * asFracInset();
32         /// identifies FracInsets
33         MathFracInset const * asFracInset() const;
34         ///
35         string name() const;
36
37         ///
38         void write(WriteStream & os) const;
39         ///
40         void maplize(MapleStream &) const;
41         ///
42         void mathematicize(MathematicaStream &) const;
43         ///
44         void octavize(OctaveStream &) const;
45         ///
46         void mathmlize(MathMLStream &) const;
47 public:
48         ///
49         const bool atop_;
50 };
51
52 #endif