]> git.lyx.org Git - lyx.git/blob - src/mathed/math_sizeinset.h
26a78b3ff2d8d104f68d2f78bb67129216c2de88
[lyx.git] / src / mathed / math_sizeinset.h
1 // -*- C++ -*-
2 #ifndef MATHSIZEINSET_H
3 #define MATHSIZEINSET_H
4
5 #include "math_inset.h"
6 #include "math_defs.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** An inset for \scriptsize etc
13     \author AndrĂ© Poenitz
14 */
15
16 class MathSizeInset : public MathInset {
17 public:
18         ///
19         explicit MathSizeInset(MathStyles st);
20         ///
21         virtual MathInset * clone() const;
22         ///
23         void metrics(MathStyles st);
24         ///
25         void draw(Painter &, int x, int baseline);
26         ///
27         void write(std::ostream &, bool fragile) const;
28         ///
29         void writeNormal(std::ostream &) const;
30
31 private:
32         ///
33         char const * verbose() const;
34         /// 
35         MathStyles style_;
36 };
37
38 #endif