- /// FIXME
- void redoCurrentBuffer();
-
- /// FIXME
- bool available() const;
-
- /// FIXME
- void beforeChange(LyXText *);
-
- /// Save the current position as bookmark i
- void savePosition(unsigned int i);
- /// Restore the position from bookmark i
- void restorePosition(unsigned int i);
- /// does the given bookmark have a saved position ?
- bool isSavedPosition(unsigned int i);
-
- /// return the current change at the cursor
- Change const getCurrentChange();
-
- /**
- * This holds the mapping between buffer paragraphs and screen rows.
- * This should be private...but not yet. (Lgb)
- */
- LyXText * text;
- /// return the lyxtext we are using
- LyXText * getLyXText() const;
-
- /// Return the current inset we are "locked" in
- UpdatableInset * theLockingInset() const;
- /// lock the given inset FIXME: return value ?
- bool lockInset(UpdatableInset * inset);
- /// unlock the given inset
- int unlockInset(UpdatableInset * inset);
- /// unlock the currently locked inset
- void insetUnlock();
-
- /// return the current encoding at the cursor
- Encoding const * getEncoding() const;
-
- /// return the parent language of the given inset
- Language const * getParentLanguage(InsetOld * inset) const;
-
- /// Select the "current" word
- void selectLastWord();
- /// replace the currently selected word
- void replaceWord(string const & replacestring);
- /// Update after spellcheck finishes
- void endOfSpellCheck();
- /// return the next word
- WordLangTuple const nextWord(float & value);
-
- /// move cursor to the named label
- void gotoLabel(string const & label);
-
- /// undo last action
- void undo();
- /// redo last action
- void redo();
-
- /// get the stored error list
- ErrorList const & getErrorList() const;
- /// show the error list to the user
- void showErrorList(string const &) const;
- /// set the cursor based on the given TeX source row
+ /// return the Scrollbar Parameters.
+ ScrollbarParameters const & scrollbarParameters() const;
+
+ /// Save the current position as bookmark.
+ /// if persistent=false, save to temp_bookmark
+ void saveBookmark(bool persistent);
+ /// goto a specified position.
+ void moveToPosition(
+ int par_id, ///< Paragraph ID, \sa Paragraph
+ pos_type par_pos ///< Position in the \c Paragraph
+ );
+ /// 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);
+
+ /// set the cursor based on the given TeX source row.