X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=dbdd1569b8d577fbc9e5b44b5a8e92eddeca6268;hb=71623b88b2c613dd4ab826a9783a53e840bcd6e1;hp=f5f1322ce87554e5ee1993f0bf8ae66dc2062fed;hpb=ffacdd8b469071e34c27f93e6f5b95f7a960a694;p=features.git diff --git a/src/Cursor.h b/src/Cursor.h index f5f1322ce8..dbdd1569b8 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -232,10 +232,6 @@ public: // // common part // - /// move one step backwards - bool posBackward(); - /// move one step forward - bool posForward(); /// move visually one step to the right /** * @note: This method may move into an inset unless skip_inset == true. @@ -398,6 +394,11 @@ public: /// and after leaving the word the result is empty. DocIterator newWord() const { return new_word_; } + /// Return true if the next or previous inset has confirmDeletion depending + /// on the boolean before. If there is a selection, return true if at least + /// one inset in the selection has confirmDeletion. + bool confirmDeletion(bool before = false) const; + public: //private: @@ -454,9 +455,10 @@ public: /// void insert(MathData const &); /// return false for empty math insets - bool erase(); - /// return false for empty math insets - bool backspace(); + /// Use force to skip the confirmDeletion check. + bool erase(bool force = false); + bool backspace(bool force = false); + /// move the cursor up by sending an internal LFUN_UP /// return true if fullscreen update is needed bool up();