]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.h
Fixes to various bug-reports.
[features.git] / src / insets / inset.h
index 70e5a31888d5ccaab3c0afddae6a8bcca04eccd7..b359e85bdb2ef82dcac7a1dd65d66f250eb48c3f 100644 (file)
@@ -284,6 +284,9 @@ public:
        /// check if the font of the char we want inserting is correct
        /// and modify it if it is not.
        virtual bool checkInsertChar(LyXFont &);
+       /// we need this here because collapsed insets are only EDITABLE
+       virtual void setFont(BufferView *, LyXFont const &,
+                         bool toggleall = false, bool selectall = false);
 protected:
        ///
        mutable int top_x;
@@ -409,9 +412,6 @@ public:
        virtual void draw(BufferView *, LyXFont const &,
                          int baseline, float & x, bool cleared) const;
        ///
-       virtual void setFont(BufferView *, LyXFont const &,
-                         bool toggleall = false, bool selectall = false);
-       ///
        virtual bool insertInset(BufferView *, Inset *) { return false; }
        ///
        virtual UpdatableInset * getLockingInset() const {
@@ -446,7 +446,7 @@ public:
        ///
        virtual bool showInsetDialog(BufferView *) const { return false; }
        ///
-       virtual void nodraw(bool b) {
+       virtual void nodraw(bool b) const {
                block_drawing_ = b;
        }
        ///
@@ -490,6 +490,6 @@ private:
        ///
        mutable bool cursor_visible_;
        ///
-       bool block_drawing_;
+       mutable bool block_drawing_;
 };
 #endif