]> git.lyx.org Git - lyx.git/blob - src/mathed/math_accentinset.h
mathed34.diff
[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 MathedInset {
11 public:
12         ///
13         MathAccentInset(byte, MathedTextCodes, int, short st = LM_ST_TEXT);
14         ///
15         MathAccentInset(MathedInset *, int, short st = LM_ST_TEXT);
16         ///
17         ~MathAccentInset();
18         ///
19         MathedInset * Clone();
20         ///
21         void draw(Painter &, int, int);
22         ///
23         void Write(std::ostream &, bool fragile);
24         ///
25         void Metrics();
26         ///
27         int getAccentCode() const { return code; }
28         
29 protected:
30         ///
31         byte c;
32         ///
33         MathedTextCodes fn;
34         ///
35         int code;
36         ///
37         MathedInset * inset;
38         ///
39         int dh, dy;
40 };
41 #endif