]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
introduce namespace lyx::support
[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
8 /** Fraction like objects (frac, binom)
9  *  \author Alejandro Aguilar Sierra
10  *
11  * Full author contact details are available in file CREDITS
12  */
13 class MathFracInset : public MathFracbaseInset {
14 public:
15         ///
16         explicit MathFracInset(bool atop = false);
17         ///
18         InsetBase * clone() const;
19         ///
20         void metrics(MetricsInfo & mi, Dimension & dim) const;
21         ///
22         void draw(PainterInfo &, int x, int y) const;
23         ///
24         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
25         ///
26         void drawT(TextPainter &, int x, int y) const;
27         /// identifies FracInsets
28         MathFracInset * asFracInset();
29         /// identifies FracInsets
30         MathFracInset const * asFracInset() const;
31         ///
32         string name() const;
33
34         ///
35         void write(WriteStream & os) const;
36         ///
37         void maple(MapleStream &) const;
38         ///
39         void mathematica(MathematicaStream &) const;
40         ///
41         void octave(OctaveStream &) const;
42         ///
43         void mathmlize(MathMLStream &) const;
44 public:
45         ///
46         const bool atop_;
47 };
48
49 #endif