]> git.lyx.org Git - lyx.git/blob - src/mathed/math_accentinset.h
Small bugfixes and cosmetic changes
[lyx.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         MathAccentInset(byte, MathTextCodes, int);
14         ///
15         MathAccentInset(MathInset *, int);
16         ///
17         ~MathAccentInset();
18         ///
19         MathInset *  clone() const;
20         ///
21         void draw(Painter &, int, int);
22         ///
23         void Write(std::ostream &, bool fragile) const;
24         ///
25         void WriteNormal(std::ostream &) const;
26         ///
27         void Metrics(MathStyles st);
28         ///
29         int getAccentCode() const;
30         ///
31         bool isAccentInset() const { return true; }
32 protected:
33         ///
34         byte c;
35         ///
36         MathTextCodes fn;
37         ///
38         int code;
39         ///
40         MathInset * inset;
41         ///
42         int dh, dy;
43 };
44
45 #endif