]> git.lyx.org Git - features.git/blob - src/mathed/math_accentinset.h
split super/subscript handling in new base class MathUpDownInset and
[features.git] / src / mathed / math_accentinset.h
1 // -*- C++ -*-
2 #ifndef MATH_ACCENTINSET_H
3 #define MATH_ACCENTINSET_H
4
5 #include "math_inset.h"
6 #include "mathed/support.h"
7 #include "math_defs.h"
8
9 /// Accents
10 class MathAccentInset : public MathInset {
11 public:
12         ///
13         explicit MathAccentInset(int);
14         ///
15         MathInset * clone() const;
16         ///
17         void draw(Painter &, int, int);
18         ///
19         void Write(std::ostream &, bool fragile) const;
20         ///
21         void WriteNormal(std::ostream &) const;
22         ///
23         void Metrics(MathStyles st, int asc = 0, int des = 0);
24         ///
25         int getAccentCode() const;
26         ///
27         bool isAccentInset() const { return true; }
28 private:
29         ///
30         int code;
31         ///
32         int dh;
33         ///
34         int dy;
35 };
36
37 #endif