]> git.lyx.org Git - lyx.git/blob - src/mathed/math_sizeinset.h
small up/down tweaking
[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_metricsinfo.h"
7
8 #ifdef __GNUG__
9 #pragma interface
10 #endif
11
12 /** An inset for \scriptsize etc
13  *  \author André Pönitz
14  *
15  * Full author contact details are available in file CREDITS
16 */
17
18 class latexkeys;
19
20 class MathSizeInset : public MathNestInset {
21 public:
22         ///
23         explicit MathSizeInset(latexkeys const * l);
24         ///
25         MathInset * clone() const;
26         /// we write extra braces in any case...
27         bool extraBraces() const { return true; }
28         ///
29         void metrics(MathMetricsInfo & st) const;
30         ///
31         void draw(MathPainterInfo &, int x, int y) const;
32
33         ///
34         void write(WriteStream & os) const;
35         ///
36         void normalize(NormalStream &) const;
37         ///
38         void infoize(std::ostream & os) const;
39
40 private:
41         ///
42         latexkeys const * key_;
43         ///
44         MathStyles const style_;
45 };
46
47 #endif