]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.h
updates to latexfeatures stuff; allow empty \document_path
[lyx.git] / src / mathed / math_decorationinset.h
index 58f74cca21a1e6721c02466496778ebfac5f4fcd..a0ff67b805e545869f940762a12f8e891ada2d21 100644 (file)
@@ -22,17 +22,21 @@ public:
        ///
        void draw(Painter &, int x, int y) const;
        ///
-       void write(std::ostream &, bool fragile) const;
+       void write(WriteStream & os) const;
        ///
-       void metrics(MathStyles st) const;
+       void metrics(MathMetricsInfo const & st) const;
        ///
-       void writeNormal(std::ostream & os) const;
+       void normalize(NormalStream & os) const;
+       ///
+       bool isScriptable() const;
 
 private:
        ///
        bool upper() const;
        ///
        bool protect() const;
+       /// is it a wide decoration?
+       bool wide() const;
 
        ///
        string const name_;
@@ -40,5 +44,7 @@ private:
        mutable int dh_;
        /// vertical offset cache of deco
        mutable int dy_;
+       ///
+       mutable MathMetricsInfo size_;
 };
 #endif