]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.h
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / screen.h
index d0d3dc741e4f455fbd76a4ea5e70419e2f07aac9..e229864525d47d123314f42c31de7bc67a70077a 100644 (file)
 #ifndef SCREEN_H
 #define SCREEN_H
 
+
 class LyXText;
 class CursorSlice;
 class WorkArea;
 class BufferView;
+class ViewMetricsInfo;
+
 
 /**
  * LyXScreen - document rendering management
@@ -37,16 +40,10 @@ public:
        virtual ~LyXScreen();
 
        /// redraw the screen, without using existing pixmap
-       virtual void redraw(BufferView & bv);
+       virtual void redraw(BufferView & bv, ViewMetricsInfo const & vi);
 
-       /**
-        * fitCursor - fit the cursor onto the work area
-        * @param bv the bufferview
-        * @return true if a change was necessary
-        *
-        * Scrolls the screen so that the cursor is visible
-        */
-       virtual bool fitCursor(BufferView *);
+       /// grey out (no buffer)
+       void greyOut();
 
        /// hide the visible cursor, if it is visible
        void hideCursor();
@@ -81,14 +78,14 @@ protected:
        virtual void removeCursor() = 0;
 
 private:
-       /// grey out (no buffer)
-       void greyOut();
+       ///
+       void checkAndGreyOut();
+
+       ///
+       bool greyed_out_;
 
        /// is the cursor currently displayed
        bool cursor_visible_;
-
-       /// is the screen displaying text or the splash screen?
-       bool greyed_out_;
 };
 
 #endif // SCREEN_H