]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Darren's patch, reworked
[lyx.git] / src / BufferView.h
index b775e4b434018b738f0fc889de45c2ddc052e370..afe153561e2c5bd3bff1619ab253189b29ec0a22 100644 (file)
@@ -30,7 +30,6 @@ class Language;
 class Painter;
 class UpdatableInset;
 class WordLangTuple;
-class WorkArea;
 
 ///
 class BufferView : boost::noncopyable {
@@ -57,8 +56,6 @@ public:
        Painter & painter() const;
        ///
        LyXScreen & screen() const;
-       /// return the work area for this bview
-       WorkArea & workarea() const;
        ///
        void buffer(Buffer * b);
        ///
@@ -168,8 +165,8 @@ public:
        void toggleToggle();
        ///
        void center();
-       ///
-       int scroll(long time);
+       /// scroll document by the given number of lines of default height
+       void scroll(int lines);
 
        /// Scroll the view by a number of pixels
        void scrollDocView(int);
@@ -192,6 +189,10 @@ public:
        bool dispatch(FuncRequest const & argument);
        /// height of a normal line in pixels (zoom factor considered)
        int defaultHeight() const;
+       /// 
+       void haveSelection(bool sel);
+       ///
+       int workHeight() const;
 
 private:
        ///