]> git.lyx.org Git - lyx.git/blob - src/mathed/math_decorationinset.h
cosmetics
[lyx.git] / src / mathed / math_decorationinset.h
1 // -*- C++ -*-
2 #ifndef MATH_DECORATIONINSET_H
3 #define MATH_DECORATIONINSET_H
4
5 #include "math_inset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Decorations and accents over (below) a math object
12     \author Alejandro Aguilar Sierra
13  */
14 class MathDecorationInset : public MathInset {
15 public:
16         ///
17         MathDecorationInset(string const & name, int);
18         ///
19         MathInset * clone() const;
20         ///
21         void draw(Painter &, int, int);
22         ///
23         void write(std::ostream &, bool fragile) const;
24         ///
25         void metrics(MathStyles st);
26         ///
27         void writeNormal(std::ostream & os) const;
28 private:
29         ///
30         int deco_;
31         ///
32         bool upper_;
33         /// height of deco
34         int dh_;
35         /// vertical offset of deco
36         int dy_;
37 };
38 #endif