]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
Remove mixed_content from output parameters.
[lyx.git] / src / mathed / math_fracinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_fracinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Alejandro Aguilar Sierra
8  * \author André Pönitz
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef MATH_FRACINSET_H
14 #define MATH_FRACINSET_H
15
16 #include "math_fracbase.h"
17
18
19 /// Fraction like objects (frac, binom)
20 class MathFracInset : public MathFracbaseInset {
21 public:
22         ///
23         explicit MathFracInset(bool atop = false);
24         ///
25         virtual std::auto_ptr<InsetBase> clone() const;
26         ///
27         void metrics(MetricsInfo & mi, Dimension & dim) const;
28         ///
29         void draw(PainterInfo &, int x, int y) const;
30         ///
31         void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
32         ///
33         void drawT(TextPainter &, int x, int y) const;
34         /// identifies FracInsets
35         MathFracInset * asFracInset();
36         /// identifies FracInsets
37         MathFracInset const * asFracInset() const;
38         ///
39         std::string name() const;
40
41         ///
42         void write(WriteStream & os) const;
43         ///
44         void maple(MapleStream &) const;
45         ///
46         void mathematica(MathematicaStream &) const;
47         ///
48         void octave(OctaveStream &) const;
49         ///
50         void mathmlize(MathMLStream &) const;
51 public:
52         ///
53         const bool atop_;
54 };
55
56 #endif