]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.h
Fix bug #3294
[lyx.git] / src / mathed / InsetMathPhantom.h
index 3b5c6067da423a05d3ff42b3bacfb0364e1fbfed..63b8ea28de772844ef04f35b64132e74d3dcb258 100644 (file)
@@ -23,12 +23,18 @@ public:
        enum Kind {
                phantom,
                vphantom,
-               hphantom
+               hphantom,
+               smash,
+               smasht,
+               smashb,
+               mathclap,
+               mathllap,
+               mathrlap
        };
        ///
-       explicit InsetMathPhantom(Kind);
+       explicit InsetMathPhantom(Buffer * buf, Kind);
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
@@ -37,9 +43,20 @@ public:
        void normalize(NormalStream & ns) const;
        ///
        void infoize(odocstream & os) const;
+       ///
+       InsetCode lyxCode() const { return MATH_PHANTOM_CODE; }
+       /// Nothing for now
+       void mathmlize(MathStream &) const {}
+       /// Nothing for HTML
+       void htmlize(HtmlStream &) const {}
+       /// request "external features"
+       void validate(LaTeXFeatures & features) const;
+       /// Does the contents appear in LaTeX output?
+       bool visibleContents() const;
+
 private:
        ///
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        Kind kind_;
 };