]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCollapsable.h
Fix bug 4037 and related problems. The patch has been cleaned up a bit
[lyx.git] / src / insets / InsetCollapsable.h
index 26e29f7749a78c5cd88f77cfc9d580fe96cf90ce..71dba1731524fd9987c0143da0bafa7750a5a3d1 100644 (file)
@@ -62,6 +62,8 @@ public:
        /// to name()
        void setLayout(TextClassPtr tc);
        ///
+       virtual bool useEmptyLayout() { return true; }
+       ///
        void read(Buffer const &, Lexer &);
        ///
        void write(Buffer const &, std::ostream &) const;
@@ -157,6 +159,8 @@ public:
        virtual bool allowEmpty() const { return layout_->keepempty; }
        /// Force inset into LTR environment if surroundings are RTL?
        virtual bool forceLTR() const { return layout_->forceltr; }
+       ///
+       virtual bool useEmptyLayout() const { return true; }
 
 protected:
        ///