]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathPhantom.h
Remove years forgotten files.
[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                 smash,
28                 mathclap,
29                 mathllap,
30                 mathrlap
31         };
32         ///
33         explicit InsetMathPhantom(Buffer * buf, Kind);
34         ///
35         void metrics(MetricsInfo & mi, Dimension & dim) const;
36         ///
37         void draw(PainterInfo & pi, int x, int y) const;
38         ///
39         void write(WriteStream & os) const;
40         /// write normalized content
41         void normalize(NormalStream & ns) const;
42         ///
43         void infoize(odocstream & os) const;
44         ///
45         InsetCode lyxCode() const { return MATH_PHANTOM_CODE; }
46         /// Nothing for now
47         void mathmlize(MathStream &) const {}
48         /// Nothing for HTML
49         void htmlize(HtmlStream &) const {}
50         /// request "external features"
51         void validate(LaTeXFeatures & features) const;
52         /// Does the contents appear in LaTeX output?
53         bool visibleContents() const;
54
55 private:
56         ///
57         virtual Inset * clone() const;
58         ///
59         Kind kind_;
60 };
61
62
63
64 } // namespace lyx
65 #endif