]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the...
[lyx.git] / src / BufferView.h
index 357e33e8cb9bfec0039f717ede69fb9cf693f278..181b71c14c0d03782d43b5270fb64473a5d81527 100644 (file)
@@ -113,8 +113,8 @@ public:
        ScrollbarParameters const & scrollbarParameters() const;
 
        /// Save the current position as bookmark.
-       /// if persistent=false, save to temp_bookmark
-       void saveBookmark(bool persistent);
+       /// if idx == 0, save to temp_bookmark
+       void saveBookmark(unsigned int idx);
        /// goto a specified position, try par_id first, and then par_pit
        /// return the par_pit and par_id of the new paragraph
        boost::tuple<pit_type, int> moveToPosition(
@@ -249,6 +249,15 @@ public:
 private:
        ///
        bool multiParSel();
+
+       /// Search recursively for the the innermost inset that covers (x, y) position.
+       /// \retval 0 if no inset is found.
+       InsetBase const * getCoveringInset(
+               LyXText const & text, //< The LyXText where we start searching.
+               int x, //< x-coordinate on screen
+               int y  //< y-coordinate on screen
+               );
+
        ///
        int width_;
        ///