]> git.lyx.org Git - lyx.git/blob - src/mathed/math_scriptinset.h
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_scriptinset.h
1 // -*- C++ -*-
2 #ifndef MATH_SCRIPTINSET_H
3 #define MATH_SCRIPTINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Inset for super- and subscripts
12     \author André Pönitz
13  */
14
15 class MathScriptInset : public MathNestInset {
16 public:
17         ///
18         explicit MathScriptInset(bool up);
19         ///
20         MathInset * clone() const;
21         ///
22         void write(std::ostream &, bool fragile) const;
23         ///
24         void metrics(MathStyles st) const;
25         ///
26         void draw(Painter &, int x, int y) const;
27         ///
28         MathScriptInset const * asScriptInset() const;
29         ///
30         bool up() const { return up_; }
31         ///
32         bool down() const { return !up_; }
33 private:
34         ///
35         bool up_;
36 };
37
38 #endif
39