]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
Replace the hardcoded TEXT_TO_INSET_OFFSET by tunable values
[lyx.git] / src / Cursor.h
index 35d2fc97680dcfc9989c50a29f18f3ed13a9c2c5..ba353b6cb8ad247d14fb52004d7d74ad6d45498b 100644 (file)
@@ -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;
        ///
@@ -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();
 
        /**