]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSize.h
rename mathed/math_xinset into mathed/InsetMathX
[lyx.git] / src / mathed / InsetMathSize.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathSize.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 "InsetMathNest.h"
16 #include "metricsinfo.h"
17
18
19 class latexkeys;
20
21 /// An inset for \scriptsize etc.
22 class InsetMathSize : public InsetMathNest {
23 public:
24         ///
25         explicit InsetMathSize(latexkeys const * l);
26         /// we write extra braces in any case...
27         bool extraBraces() const { return true; }
28         ///
29         void metrics(MetricsInfo & mi, Dimension & dim) const;
30         ///
31         void draw(PainterInfo &, 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 private:
40         virtual std::auto_ptr<InsetBase> doClone() const;
41         ///
42         latexkeys const * key_;
43         ///
44         Styles const style_;
45 };
46
47 #endif