]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPhantom.h
This commit saves the need to check for lyx::use_gui in a number of places.
[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 class InsetMathPhantom : public InsetMathNest {
18 public:
19         ///
20         enum Kind {
21                 phantom,
22                 vphantom,
23                 hphantom
24         };
25         ///
26         explicit InsetMathPhantom(Kind);
27         ///
28         void metrics(MetricsInfo & mi, Dimension & dim) const;
29         ///
30         void draw(PainterInfo & pi, int x, int y) const;
31         ///
32         void write(WriteStream & os) const;
33         /// write normalized content
34         void normalize(NormalStream & ns) const;
35         ///
36         void infoize(std::ostream & os) const;
37 private:
38         ///
39         virtual std::auto_ptr<InsetBase> doClone() const;
40         ///
41         Kind kind_;
42 };
43
44 #endif