]> git.lyx.org Git - lyx.git/blob - src/mathed/math_fracinset.h
fix deletion of subscript if superscript is present and vice versa
[lyx.git] / src / mathed / math_fracinset.h
1 // -*- C++ -*-
2 #ifndef MATH_FRACINSET_H
3 #define MATH_FRACINSET_H
4
5 #include "math_nestinset.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 MathNestInset {
15 public:
16         ///
17         explicit MathFracInset(const string & name);
18         ///
19         MathInset * clone() const;
20         ///
21         void write(std::ostream &, bool fragile) const;
22         ///
23         void writeNormal(std::ostream &) const;
24         ///
25         void metrics(MathStyles st) const;
26         ///
27         void draw(Painter &, int x, int y) const;
28         ///
29         bool idxUp(int &, int &) const;
30         ///
31         bool idxDown(int &, int &) const;
32         ///
33         bool idxLeft(int &, int &) const;
34         ///
35         bool idxRight(int &, int &) const;
36         ///
37         bool idxFirstUp(int & idx, int & pos) const;
38         ///
39         bool idxFirstDown(int & idx, int & pos) const;
40         ///
41         bool idxLastUp(int & idx, int & pos) const;
42         ///
43         bool idxLastDown(int & idx, int & pos) const;
44 };
45
46 #endif