]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.h
enable direct input of #1...#9; some whitespace changes
[lyx.git] / src / mathed / math_decorationinset.h
index 97b5b26681642385209ec9ac19bd1890b43fc442..a0ff67b805e545869f940762a12f8e891ada2d21 100644 (file)
@@ -22,11 +22,11 @@ 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;
 
@@ -35,6 +35,8 @@ private:
        bool upper() const;
        ///
        bool protect() const;
+       /// is it a wide decoration?
+       bool wide() const;
 
        ///
        string const name_;
@@ -42,5 +44,7 @@ private:
        mutable int dh_;
        /// vertical offset cache of deco
        mutable int dy_;
+       ///
+       mutable MathMetricsInfo size_;
 };
 #endif