]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSize.h
Merge branch 'master' of git.lyx.org:lyx
[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 namespace lyx {
20
21
22 class latexkeys;
23
24 /// An inset for \scriptsize etc.
25 class InsetMathSize : public InsetMathNest {
26 public:
27         ///
28         explicit InsetMathSize(Buffer * buf, latexkeys const * l);
29         /// we write extra braces in any case...
30         bool extraBraces() const { return true; }
31         ///
32         void metrics(MetricsInfo & mi, Dimension & dim) const;
33         ///
34         void draw(PainterInfo &, int x, int y) const;
35
36         ///
37         void write(WriteStream & os) const;
38         ///
39         void normalize(NormalStream &) const;
40         ///
41         void infoize(odocstream & os) const;
42         ///
43         void mathmlize(MathStream &) const;
44         ///
45         void htmlize(HtmlStream &) const;
46         ///
47         void validate(LaTeXFeatures &) const;
48         ///
49         InsetCode lyxCode() const { return MATH_SIZE_CODE; }
50
51 private:
52         virtual Inset * clone() const;
53         ///
54         latexkeys const * key_;
55         ///
56         Styles const style_;
57 };
58
59
60
61 } // namespace lyx
62 #endif