]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPhantom.h
Coding style
[lyx.git] / src / mathed / InsetMathPhantom.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathPhantom.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Georg Baum
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_PHANTOMINSET_H
13 #define MATH_PHANTOMINSET_H
14
15 #include "InsetMathNest.h"
16
17
18 namespace lyx {
19
20 class InsetMathPhantom : public InsetMathNest {
21 public:
22         ///
23         enum Kind {
24                 phantom,
25                 vphantom,
26                 hphantom
27         };
28         ///
29         explicit InsetMathPhantom(Kind);
30         ///
31         void metrics(MetricsInfo & mi, Dimension & dim) const;
32         ///
33         void draw(PainterInfo & pi, int x, int y) const;
34         ///
35         void write(WriteStream & os) const;
36         /// write normalized content
37         void normalize(NormalStream & ns) const;
38         ///
39         void infoize(odocstream & os) const;
40 private:
41         ///
42         virtual Inset * clone() const;
43         ///
44         Kind kind_;
45 };
46
47
48
49 } // namespace lyx
50 #endif