]> 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 fcf58544a72dd533997a7dcaec9c190e8c1167fa..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;
 
 
        ///
@@ -311,6 +315,10 @@ private:
        /// \return true if no further update is needed.
        bool singleParUpdate();
 
+       /// The minimal size of the document that is visible. Used
+       /// when it is allowed to scroll below the document.
+       int minVisiblePart();
+
        /// Search recursively for the the innermost inset that covers (x, y) position.
        /// \retval 0 if no inset is found.
        Inset const * getCoveringInset(