]> git.lyx.org Git - lyx.git/blob - src/mathed/math_sizeinset.h
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_sizeinset.h
1 // -*- C++ -*-
2 /**
3  * \file math_sizeinset.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATHSIZEINSET_H
13 #define MATHSIZEINSET_H
14
15 #include "math_nestinset.h"
16 #include "metricsinfo.h"
17
18
19 class latexkeys;
20
21 /// An inset for \scriptsize etc.
22 class MathSizeInset : public MathNestInset {
23 public:
24         ///
25         explicit MathSizeInset(latexkeys const * l);
26         ///
27         virtual std::auto_ptr<InsetBase> clone() const;
28         /// we write extra braces in any case...
29         bool extraBraces() const { return true; }
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo &, int x, int y) const;
34
35         ///
36         void write(WriteStream & os) const;
37         ///
38         void normalize(NormalStream &) const;
39         ///
40         void infoize(std::ostream & os) const;
41
42 private:
43         ///
44         latexkeys const * key_;
45         ///
46         Styles const style_;
47 };
48
49 #endif