]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
lib/lyx2lyx/lyx_1_5.py: fix revert of listings insets
[features.git] / src / insets / Inset.h
index 3eb44fedaa63a9eb3e93ac1ce8c7ce1984e867e5..1601ddb42ed9d66b97edc6270381d48780d7e2f8 100644 (file)
@@ -192,6 +192,9 @@ public:
        /// is called when the mouse enter or leave this inset
        /// return true if this inset needs repaint
        virtual bool setMouseHover(bool) { return false; }
+       /// tells an inset to redraw background
+       virtual void setRedrawBackground(bool rd) const { redraw_background_ = rd; }
+       bool redrawBackground() const { return redraw_background_; }
 
        /// request "external features"
        virtual void validate(LaTeXFeatures &) const {}
@@ -489,6 +492,8 @@ private:
         *  of the header file.
         */
        int background_color_;
+
+       mutable bool redraw_background_;
 };