]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.h
Do some caching of window title and related UI
[lyx.git] / src / mathed / InsetMathPhantom.h
index 09d352deac5bb58dab661d2dca27855a0242529f..63b8ea28de772844ef04f35b64132e74d3dcb258 100644 (file)
 
 #include "InsetMathNest.h"
 
+
+namespace lyx {
+
 class InsetMathPhantom : public InsetMathNest {
 public:
        ///
        enum Kind {
                phantom,
                vphantom,
-               hphantom
+               hphantom,
+               smash,
+               smasht,
+               smashb,
+               mathclap,
+               mathllap,
+               mathrlap
        };
        ///
-       explicit InsetMathPhantom(Kind);
+       explicit InsetMathPhantom(Buffer * buf, Kind);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
@@ -33,12 +42,26 @@ public:
        /// write normalized content
        void normalize(NormalStream & ns) const;
        ///
-       void infoize(std::ostream & os) 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<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        Kind kind_;
 };
 
+
+
+} // namespace lyx
 #endif