]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
some more changes
[lyx.git] / src / BufferView.h
index b65afe81638f13d23bd71624d02a8d3f3121bb1f..0c91f1c3808f2c21d70619f96105dc22d86186d7 100644 (file)
@@ -44,7 +44,7 @@ public:
                ///
                CHANGE = 4
        };
-                                           
+
        ///
        BufferView(LyXView * owner, int , int , int, int);
        ///
@@ -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();
        //
@@ -73,24 +75,22 @@ public:
        void updateScrollbar();
        ///
        Inset * checkInsetHit(LyXText *, int & x, int & y);
-       /// 
-       void redoCurrentBuffer();
        ///
-       int resizeCurrentBuffer();
+       void redoCurrentBuffer();
        ///
        void cursorPrevious(LyXText *);
        ///
        void cursorNext(LyXText *);
-       /// 
+       ///
        bool available() const;
        ///
        LyXView * owner() const;
        ///
        void beforeChange(LyXText *);
-        ///
-        void savePosition(unsigned int i);
-        ///
-        void restorePosition(unsigned int i);
+       ///
+       void savePosition(unsigned int i);
+       ///
+       void restorePosition(unsigned int i);
        ///
        bool isSavedPosition(unsigned int i);
        /** This holds the mapping between buffer paragraphs and screen rows.
@@ -108,7 +108,7 @@ public:
        ///
        UpdatableInset * theLockingInset() const;
        ///
-       void theLockingInset(UpdatableInset * inset); 
+       void theLockingInset(UpdatableInset * inset);
        ///
        void updateInset(Inset * inset, bool mark_dirty);
        ///
@@ -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);
        ///
@@ -184,23 +180,15 @@ public:
        void toggleToggle();
        ///
        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();
 
        ///
-       bool ChangeInsets(Inset::Code code, string const & from, 
+       bool ChangeInsets(Inset::Code code, string const & from,
                          string const & to);
        ///
        bool ChangeRefsIfUnique(string const & from, string const & to);