X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FBufferView.h;h=bb75c160c66e83b2e53c3d0736d449362ff1e2cc;hb=850c5a3d5545eb6cf76e3c94d1e534c3b74a86bd;hp=40dd0d29c352a4496ef0b3301b2910fda1c67226;hpb=e6b54ea4d2e28d55565699ded45da971278b23bf;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 40dd0d29c3..bb75c160c6 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -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