]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathSize.h
use bald pointers in clone()
[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(latexkeys const * l);
29         /// we write extra braces in any case...
30         bool extraBraces() const { return true; }
31         ///
32         bool 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 private:
43         virtual Inset * clone() const;
44         ///
45         latexkeys const * key_;
46         ///
47         Styles const style_;
48 };
49
50
51
52 } // namespace lyx
53 #endif