3 * \file InsetMathPhantom.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_PHANTOMINSET_H
13 #define MATH_PHANTOMINSET_H
15 #include "InsetMathNest.h"
20 class InsetMathPhantom : public InsetMathNest {
35 explicit InsetMathPhantom(Buffer * buf, Kind);
37 void metrics(MetricsInfo & mi, Dimension & dim) const override;
39 void draw(PainterInfo & pi, int x, int y) const override;
41 void write(TeXMathStream & os) const override;
42 /// write normalized content
43 void normalize(NormalStream & ns) const override;
45 void infoize(odocstream & os) const override;
47 InsetCode lyxCode() const override { return MATH_PHANTOM_CODE; }
49 void mathmlize(MathMLStream &) const override {}
51 void htmlize(HtmlStream &) const override {}
52 /// request "external features"
53 void validate(LaTeXFeatures & features) const override;
54 /// Does the contents appear in LaTeX output?
55 bool visibleContents() const;
59 Inset * clone() const override;