X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.h;h=fc4daeb93b7a7f3b0619fd4a2573e20f565a3c3a;hb=da67bde61af6dfecef7a237b72b878fe30638a81;hp=35d2fc97680dcfc9989c50a29f18f3ed13a9c2c5;hpb=3519be2292f44cfbc450f83fa84616b72f8871f2;p=lyx.git diff --git a/src/Cursor.h b/src/Cursor.h index 35d2fc9768..fc4daeb93b 100644 --- a/src/Cursor.h +++ b/src/Cursor.h @@ -154,7 +154,8 @@ public: DocIterator selectionEnd() const; /// - docstring selectionAsString(bool with_label) const; + docstring selectionAsString(bool const with_label, + bool const skipdelete = false) const; /// get some interesting description of top position void info(odocstream & os, bool devel_mode) const; /// @@ -189,7 +190,7 @@ public: /// containing the cursor void recordUndo(UndoKind kind = ATOMIC_UNDO) const; /// Convenience: prepare undo for the inset containing the cursor - void recordUndoInset(Inset const * inset = 0) const; + void recordUndoInset(Inset const * inset = nullptr) const; /// Convenience: prepare undo for the whole buffer void recordUndoFullBuffer() const; /// Convenience: prepare undo for buffer parameters @@ -279,7 +280,13 @@ public: /// get the resut of the last dispatch DispatchResult const & result() const; - /// + /// Set the cursor language from current input method language + /* Considers first exact math with the codes used in the document, + * then approximate match among the same list, and finally exact + * or partial match with the whole list of languages. + */ + void setLanguageFromInput(); + /// Set the current font of the cursor from its location. void setCurrentFont(); /**