]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Darren's patch, reworked
[lyx.git] / src / BufferView.h
index 8d72e59c0c50569ef4bd798a69763499a30f5cb0..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);
        ///
@@ -78,8 +75,6 @@ public:
        ///
        void updateScrollbar();
        ///
-       Inset * checkInsetHit(LyXText *, int & x, int & y);
-       ///
        void redoCurrentBuffer();
        ///
        bool available() const;
@@ -170,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 +187,12 @@ public:
        void stuffClipboard(string const &) const;
        ///
        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:
        ///