]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix the placement of the cursor when right-clicking on an inset inside a branch inset.
[lyx.git] / src / BufferView.h
index 0105275eae1713218550af1e1aace7e7c08ef470..6c2b53fcb6a0ec820171acb0009885ab45d88571 100644 (file)
@@ -195,8 +195,8 @@ public:
        /// translate and insert a character, using the correct keymap.
        void translateAndInsert(char_type c, Text * t, Cursor & cur);
 
-       /// return true for events that will handle.
-       FuncStatus getStatus(FuncRequest const & cmd);
+       /// \return true if we've made a decision
+       bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
        /// execute the given function.
        /// \return true if the function has been processed.
        bool dispatch(FuncRequest const & argument);
@@ -261,6 +261,10 @@ public:
        Point getPos(DocIterator const & dit, bool boundary) const;
        /// is the paragraph of the cursor visible ?
        bool paragraphVisible(DocIterator const & dit) const;
+       /// is the cursor currently visible in the view
+       bool cursorInView(Point const & p, int h) const;
+       /// get the position and height of the cursor
+       void cursorPosAndHeight(Point & p, int & h) const;
 
 
        ///