X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=bb789e3a4c516263dc8a7de1afdf9962e543c66a;hb=2455bc258f3b62c29ec4a41cb88070ff8518e842;hp=073880d9eba60c0c66a6f715cb3aaa4fc37c0e0c;hpb=8527a089035813a56a2963df56503216bff0eb04;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index 073880d9eb..bb789e3a4c 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -122,6 +122,22 @@ public: 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. + * @note: This method may move into a new paragraph. + * @note: This method may move out of the current slice. + * @return: true if moved, false if not moved + */ + bool posVisRight(bool skip_inset = false); + /// move visually one step to the left + /** + * @note: This method may move into an inset unless skip_inset == true. + * @note: This method may move into a new paragraph. + * @note: This method may move out of the current slice. + * @return: true if moved, false if not moved + */ + bool posVisLeft(bool skip_inset = false); /// move visually to next/previous row /** * Assuming we were to keep moving left (right) from the current cursor @@ -236,7 +252,7 @@ public: /// Convenience: prepare undo for the whole buffer void recordUndoFullDocument(); - /// Convenience: prepare undo for the selected paragraphs + /// Convenience: prepare undo for the selected paragraphs or cells void recordUndoSelection(); ///