]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
A couple of minor bug fixes and cleanups
[lyx.git] / src / BufferView.h
index bb1a72c3a330f573bc66aff22155b87e2bd5b8b4..0c91f1c3808f2c21d70619f96105dc22d86186d7 100644 (file)
@@ -52,19 +52,21 @@ public:
        ///
        Buffer * buffer() const;
        ///
-       Painter & painter();
+       Painter & painter() const;
        ///
-       LyXScreen * screen() const;
+       LyXScreen & screen() const;
        ///
        void buffer(Buffer * b);
        ///
-       void resize(int, int, int, int);
-       ///
        void resize();
+       /**
+        * Repaint the pixmap. Used for when we don't want
+        * to go through the full update() logic, just a simple
+        * repaint of the whole screen.
+        */
+       void repaint();
        ///
-       void redraw();
-       ///
-       void fitCursor();
+       bool fitCursor();
        ///
        void update();
        //
@@ -76,8 +78,6 @@ public:
        ///
        void redoCurrentBuffer();
        ///
-       int resizeCurrentBuffer();
-       ///
        void cursorPrevious(LyXText *);
        ///
        void cursorNext(LyXText *);
@@ -118,10 +118,6 @@ public:
        ///
        void insetUnlock();
        ///
-       void insetSleep();
-       ///
-       void insetWakeup();
-       ///
        void replaceWord(string const & replacestring);
        ///
        void endOfSpellCheck();
@@ -169,7 +165,7 @@ public:
        ///
        void hideLockedInsetCursor();
        ///
-       void fitLockedInsetCursor(int x, int y, int asc, int desc);
+       bool fitLockedInsetCursor(int x, int y, int asc, int desc);
        ///
        int unlockInset(UpdatableInset * inset);
        ///
@@ -185,16 +181,8 @@ public:
        ///
        void center();
 
-       ///
-       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();