]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
LyX Drinkers Union: patch 1
[lyx.git] / src / mathed / math_fracinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
4
5 #include "math_inset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Fraction like objects (frac, stackrel, binom)
12     \author Alejandro Aguilar Sierra
13  */
14 class MathFracInset : public MathInset {
15 public:
16         ///
17         explicit MathFracInset(short ot = LM_OT_FRAC);
18         ///
19         virtual MathInset * Clone() const;
20         ///
21         virtual void Write(std::ostream &, bool fragile) const;
22         ///
23         virtual void WriteNormal(std::ostream &) const;
24         ///
25         virtual void Metrics(MathStyles st);
26         ///
27         virtual void draw(Painter &, int x, int baseline);
28         ///
29         virtual bool idxUp(int &, int &) const;
30         ///
31         virtual bool idxDown(int &, int &) const;
32         ///
33         virtual bool idxLeft(int &, int &) const;
34         ///
35         virtual bool idxRight(int &, int &) const;
36 };
37
38 #endif