]> git.lyx.org Git - lyx.git/blob - src/mathed/math_sizeinset.h
oh well
[lyx.git] / src / mathed / math_sizeinset.h
1 // -*- C++ -*-
2 #ifndef MATHSIZEINSET_H
3 #define MATHSIZEINSET_H
4
5 #include "math_nestinset.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é Pönitz
14 */
15
16 class latexkeys;
17
18 class MathSizeInset : public MathNestInset {
19 public:
20         ///
21         explicit MathSizeInset(latexkeys const * l);
22         ///
23         MathInset * clone() const;
24         ///
25         void metrics(MathMetricsInfo const & st) const;
26         ///
27         void draw(Painter &, int x, int y) const;
28         ///
29         bool needsBraces() const { return false; }
30
31         ///
32         void write(WriteStream & os) const;
33         ///
34         void normalize(NormalStream &) const;
35
36 private:
37         ///
38         latexkeys const * key_;
39 };
40
41 #endif