]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Support for CrimsonPro
[lyx.git] / src / BufferView.h
index 40dd0d29c352a4496ef0b3301b2910fda1c67226..bb75c160c66e83b2e53c3d0736d449362ff1e2cc 100644 (file)
@@ -267,6 +267,12 @@ public:
        /// sets cursor.
        /// This is used when handling LFUN_MOUSE_PRESS.
        bool mouseSetCursor(Cursor & cur, bool select = false);
+       /// Set the cursor language from language code.
+       /* 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 setCursorLanguage(std::string const & code);
 
        /// sets the selection.
        /* When \c backwards == false, set anchor