]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.h
the DocIterator stuff
[lyx.git] / src / mathed / math_charinset.h
index 0f4509bbd3addf4485d065d21f76da5e65c9eecf..76a1feab001a61fb5476971bf6ae88a0504ad211 100644 (file)
@@ -30,6 +30,9 @@ public:
        void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
        ///
        void drawT(TextPainter &, int x, int y) const;
+       ///
+       int width() const { return width_; }
+
        ///
        void write(WriteStream & os) const;
        ///
@@ -42,11 +45,11 @@ public:
        char getChar() const { return char_; }
        ///
        bool isRelOp() const;
-       ///
-       bool match(MathInset const *) const;
 
 private:
        /// the character
        char char_;
+       /// cached width
+       mutable int width_;
 };
 #endif