]> git.lyx.org Git - lyx.git/blobdiff - src/insets/Inset.h
Cleanup mouse/selection/context-menu interactions.
[lyx.git] / src / insets / Inset.h
index 1b50280be5ade37ae3d5d21b5c2c4b8888c2d89f..a5fe6e6b6b2aaa964010414e6c1898b997fb00eb 100644 (file)
@@ -322,6 +322,8 @@ public:
        virtual bool automaticInlineCompletion() const { return true; }
        /// Return true if the popup completion should be automatic.
        virtual bool automaticPopupCompletion() const { return true; }
+       /// Return true if the cursor should indicate a completion.
+       virtual bool showCompletionCursor() const { return true; }
        /// Returns completion suggestions at cursor position. Return an
        /// null pointer if no completion is a available or possible.
        /// The caller is responsible to free the returned object!
@@ -348,10 +350,10 @@ public:
        virtual bool useEmptyLayout() const { return forceEmptyLayout(); }
        /// if this inset has paragraphs should they be forced to use the
        /// empty layout?
-       virtual bool forceEmptyLayout() const { return false; }
+       virtual bool forceEmptyLayout(idx_type = 0) const { return false; }
        /// if this inset has paragraphs should the user be allowed to
        /// customize alignment, etc?
-       virtual bool allowParagraphCustomization(idx_type) const { return true; }
+       virtual bool allowParagraphCustomization(idx_type = 0) const { return true; }
        /// Is the width forced to some value?
        virtual bool hasFixedWidth() const { return false; }
 
@@ -381,6 +383,8 @@ public:
        /// is this equivalent to a space (which is BTW different from
        /// a line separator)?
        virtual bool isSpace() const { return false; }
+       /// is this an expandible space (rubber length)?
+       virtual bool isStretchableSpace() const { return false; }
 
        enum DisplayType {
                Inline = 0,