]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
remove noload/don't typeset
[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 class MathFracInset : public MathFracbaseInset {
15 public:
16         ///
17         explicit MathFracInset(bool atop = false);
18         ///
19         MathInset * clone() const;
20         ///
21         void metrics(MathMetricsInfo & mi) const;
22         ///
23         void draw(MathPainterInfo &, int x, int y) const;
24         ///
25         void metricsT(TextMetricsInfo const & mi) const;
26         ///
27         void drawT(TextPainter &, int x, int y) const;
28         /// identifies FracInsets
29         MathFracInset * asFracInset();
30         /// identifies FracInsets
31         MathFracInset const * asFracInset() const;
32         ///
33         string name() const;
34
35         ///
36         void write(WriteStream & os) const;
37         ///
38         void maplize(MapleStream &) const;
39         ///
40         void mathematicize(MathematicaStream &) const;
41         ///
42         void octavize(OctaveStream &) const;
43         ///
44         void mathmlize(MathMLStream &) const;
45 public:
46         ///
47         const bool atop_;
48 };
49
50 #endif