]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
Uniformize Inset construction (passing Buffer * everywhere). Lots of cleanup to do...
[lyx.git] / src / insets / Inset.h
index 10e1f4a28c940b68aa3c35fd11963db8f405da94..0623230148d4f086439a4d2c2dfc0094532caea3 100644 (file)
@@ -501,19 +501,12 @@ public:
        virtual ColorCode backgroundColor() const;
        ///
        virtual ColorCode labelColor() const;
-       ///
-       enum CollapseStatus {
-               Collapsed,
-               Open
-       };
-       ///
-       virtual void setStatus(Cursor &, CollapseStatus) {}
        //
        enum { TEXT_TO_INSET_OFFSET = 4 };
 
 protected:
        /// Constructors
-       Inset() : buffer_(0) {}
+       Inset(Buffer * buf) : buffer_(buf) {}
        Inset(Inset const &) : buffer_(0) {}
 
        /// replicate ourselves