]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Painter and scrollbar API patches
[lyx.git] / src / BufferView.h
index 72bbc4c1dc19458b49ba06c3b3e4cca159af5425..f994f582cd400c178bfb52301108c1218bbee4e6 100644 (file)
@@ -25,7 +25,7 @@ class LyXView;
 class LyXText;
 class TeXErrors;
 class Buffer;
-class LyXScreen;
+class LScreen;
 class Language;
 class Painter;
 class UpdatableInset;
@@ -52,9 +52,9 @@ public:
        ///
        Buffer * buffer() const;
        ///
-       Painter & painter();
+       Painter & painter() const;
        ///
-       LyXScreen * screen() const;
+       LScreen & screen() const;
        ///
        void buffer(Buffer * b);
        ///
@@ -118,10 +118,6 @@ public:
        ///
        void insetUnlock();
        ///
-       void insetSleep();
-       ///
-       void insetWakeup();
-       ///
        void replaceWord(string const & replacestring);
        ///
        void endOfSpellCheck();
@@ -189,12 +185,8 @@ public:
        bool focus() const;
        ///
        void focus(bool);
-       ///
-       bool active() const;
-       ///
-       bool belowMouse() const;
-       /// A callback for the slider in the scrollbar.
-       void scrollCB(double);
+       /// Scroll the view by a number of pixels
+       void scrollDocView(int);
 
        ///
        void setState();