- /// set the buffer we are viewing
- void setBuffer(Buffer * b);
- /// return the buffer being viewed
- Buffer * buffer() const;
-
- /// return the owning main view
- LyXView * owner() const;
-
- /// resize event has happened
- void resize();
-
- /// reload the contained buffer
- void reload();
- /// create a new buffer based on template
- void newFile(std::string const & fname, std::string const & tname,
- bool named = true);
- /// load a buffer into the view
- bool loadLyXFile(std::string const & name, bool tolastfiles = true);
-
- /** perform pending painting updates. \c fitcursor means first
- * to do a fitcursor, and to force an update if screen
- * position changes. \c forceupdate means to force an update
- * in any case.
- */
-
- void update(Update::flags flags = Update::FitCursor | Update::Force);
- /// move the screen to fit the cursor. Only to be called with
- /// good y coordinates (after a bv::metrics)
- bool fitCursor();
- /// reset the scrollbar to reflect current view position
- void updateScrollbar();
- /// return the Scrollbar Parameters
- ScrollbarParameters const & scrollbarParameters() const;
-
- /// FIXME
- bool available() const;
-
- /// 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);
- /// save bookmarks to .lyx/session
- void saveSavedPositions();