]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.h
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / inset.h
index 3d75481725e43a59d8bf62c4bc12231027bda3c8..ece7a34e29bbc6c15c954a89b6bc9b10ddd1c097 100644 (file)
@@ -47,35 +47,23 @@ public:
        ///
        std::string const & getInsetName() const { return name_; }
        ///
-       void setOwner(UpdatableInset * inset) { owner_ = inset; }
-       ///
-       UpdatableInset * owner() const { return owner_; }
-       ///
        virtual void setBackgroundColor(LColor_color);
        ///
        LColor_color backgroundColor() const;
-       ///
-       int x() const { return xo_; }
-       ///
-       int y() const { return yo_; }
+       /// set x/y drawing position cache
+       void setPosCache(PainterInfo const &, int, int) const;
        /// returns the actual scroll-value
        virtual int scroll(bool recursive = true) const;
 
        ///
        bool forceDefaultParagraphs(InsetBase const * inset) const;
 protected:
-       ///
-       mutable int xo_;
-       ///
-       mutable int yo_;
        ///
        mutable int scx;
        ///
        mutable Dimension dim_;
 
 private:
-       ///
-       UpdatableInset * owner_;
        ///
        std::string name_;
        /** We store the LColor::color value as an int to get LColor.h out