]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.h
Account for kerning when positioning scripts in the MathFontOld and
[lyx.git] / src / cursor.h
index 1f22fc07d9edd152746e4d41ac3ecb31dec67d80..557ceae7e12b8270190220e3b7f6afa1f136bb96 100644 (file)
@@ -26,6 +26,7 @@ class BufferView;
 class FuncStatus;
 class FuncRequest;
 class LyXFont;
+class Row;
 
 // these should go
 class InsetMathUnknown;
@@ -86,11 +87,11 @@ public:
        /// access start of selection
        DocIterator selectionEnd() const;
        ///
-       void selHandle(bool selecting);
+       bool selHandle(bool selecting);
        //
        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
@@ -158,8 +161,8 @@ public:
        void undispatched();
        /// the event was already dispatched
        void dispatched();
-       /// call update() when done
-       void needsUpdate();
+       /// Set which update should be done
+       void updateFlags(Update::flags f);
        /**
         * don't call update() when done
         *
@@ -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);