]> git.lyx.org Git - features.git/blobdiff - src/insets/Inset.h
The most important change in this changeset is that InsetCollapsable::getLayout
[features.git] / src / insets / Inset.h
index 820102a257d54ce9cd740d901b041b1ffb8761d3..b130f6d8d5f5681a8f442909ec8e943685b60811 100644 (file)
@@ -205,12 +205,12 @@ public:
        virtual void cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const;
 
-       ///
-       virtual bool isFreeSpacing() const { return false; }
-       ///
-       virtual bool allowEmpty() const { return false; }
+       /// Allow multiple blanks
+       virtual bool isFreeSpacing() const { return getLayout().isFreeSpacing(); }
+       /// Don't eliminate empty paragraphs
+       virtual bool allowEmpty() const { return getLayout().isKeepEmpty(); }
        /// Force inset into LTR environment if surroundings are RTL?
-       virtual bool forceLTR() const { return false; }
+       virtual bool forceLTR() const { return getLayout().isForceLtr(); }
 
        /// Where should we go when we press the up or down cursor key?
        virtual bool idxUpDown(Cursor & cur, bool up) const;