]> 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 6b4a91e840dad7f7671e59854301639671d17aa1..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,12 +159,15 @@ 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:
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, 
+               EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
        ///
        Inset * editXY(Cursor & cur, int x, int y);
        ///