X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fcursor.h;h=557ceae7e12b8270190220e3b7f6afa1f136bb96;hb=e7f4618bcce770369cf46335c2c7f0164b4b8857;hp=31ac8f4b641c359777d56b76d65d297e36a252c4;hpb=37e164c6f9e792e51ceac0ad58885ee5b3758330;p=lyx.git diff --git a/src/cursor.h b/src/cursor.h index 31ac8f4b64..557ceae7e1 100644 --- a/src/cursor.h +++ b/src/cursor.h @@ -26,6 +26,7 @@ class BufferView; class FuncStatus; class FuncRequest; class LyXFont; +class Row; // these should go class InsetMathUnknown; @@ -90,7 +91,7 @@ public: // docstring selectionAsString(bool label) const; /// - std::string currentState(); + docstring currentState(); /// auto-correct mode bool autocorrect() const { return autocorrect_; } @@ -102,6 +103,8 @@ public: bool & macromode() { return macromode_; } /// returns x,y position void getPos(int & x, int & y) const; + /// the row in the paragraph we're in + Row const & textRow() const; // // common part @@ -289,7 +292,7 @@ public: /// display an error message void errorMessage(docstring const & msg) const; /// - std::string getPossibleLabel(); + docstring getPossibleLabel(); /// moves position somehow up or down bool goUpDown(bool up);