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(
/// return the current change at the cursor.
Change const getCurrentChange() const;
- /// return the lyxtext we are using.
- LyXText * getLyXText();
-
- /// return the lyxtext we are using.
- LyXText const * getLyXText() const;
-
/// move cursor to the named label.
void gotoLabel(docstring const & label);
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_;
///