X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathPhantom.h;h=63b8ea28de772844ef04f35b64132e74d3dcb258;hb=999831043e6da50b3095a2dfec7000d4209e586c;hp=3b5c6067da423a05d3ff42b3bacfb0364e1fbfed;hpb=32871c1284f15265f652ff01c438e539a7c8181f;p=lyx.git diff --git a/src/mathed/InsetMathPhantom.h b/src/mathed/InsetMathPhantom.h index 3b5c6067da..63b8ea28de 100644 --- a/src/mathed/InsetMathPhantom.h +++ b/src/mathed/InsetMathPhantom.h @@ -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 doClone() const; + virtual Inset * clone() const; /// Kind kind_; };