X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText.h;h=72f8b89902350ecbbc6efca746e98a8d0ff7b8c8;hb=fb12b282f1300123c7f4c7f10525c29cb598e1fe;hp=526fa2ee85a87b072190a17ab30ee9ac974a916b;hpb=cdbebdf0933d5acb9880b5fafa6584e4fcb7cfbb;p=lyx.git diff --git a/src/Text.h b/src/Text.h index 526fa2ee85..72f8b89902 100644 --- a/src/Text.h +++ b/src/Text.h @@ -128,7 +128,7 @@ public: Paragraph & getPar(pit_type pit) { return pars_[pit]; } // Returns the current font and depth as a message. /// FIXME: replace Cursor with DocIterator. - docstring currentState(Cursor & cur); + docstring currentState(Cursor const & cur) const; /** Find the word under \c from in the relative location * defined by \c word_location. @@ -193,6 +193,10 @@ public: bool cursorBackwardOneWord(Cursor & cur); /// bool cursorForwardOneWord(Cursor & cur); + /// + bool cursorVisLeftOneWord(Cursor & cur); + /// + bool cursorVisRightOneWord(Cursor & cur); /// Delete from cursor up to the end of the current or next word. void deleteWordForward(Cursor & cur); /// Delete from cursor to start of current or prior word. @@ -250,7 +254,7 @@ public: double spacing(Buffer const & buffer, Paragraph const & par) const; /// make a suggestion for a label /// FIXME: replace Cursor with DocIterator. - docstring getPossibleLabel(Cursor & cur) const; + docstring getPossibleLabel(Cursor const & cur) const; /// is this paragraph right-to-left? bool isRTL(Buffer const &, Paragraph const & par) const;