]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
redraw fix 1.
[lyx.git] / src / BufferView.C
index 3f13e556c2bf7e299d05c056f8e732e9d937320f..d9d6e37774f8d42d76914d441c697f46f911a643 100644 (file)
@@ -1,12 +1,11 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file BufferView.C
+ * Copyright 1995-2002 the LyX Team
+ * Read the file COPYING
  *
- *           LyX, The Document Processor
- *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * \author unknown
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
 
 #include <config.h>
 
@@ -42,9 +41,9 @@ Buffer * BufferView::buffer() const
 }
 
 
-LyXScreen * BufferView::screen() const
+LyXScreen & BufferView::screen() const
 {
-       return pimpl_->screen_.get();
+       return pimpl_->screen();
 }
 
 
@@ -54,7 +53,7 @@ LyXView * BufferView::owner() const
 }
 
 
-Painter & BufferView::painter()
+Painter & BufferView::painter() const
 {
        return pimpl_->painter();
 }
@@ -66,21 +65,15 @@ void BufferView::buffer(Buffer * b)
 }
 
 
-void BufferView::resize(int xpos, int ypos, int width, int height)
-{
-       pimpl_->resize(xpos, ypos, width, height);
-}
-
-
 void BufferView::resize()
 {
-       pimpl_->resize();
+       pimpl_->resizeCurrentBuffer();
 }
 
 
-void BufferView::redraw()
+void BufferView::repaint()
 {
-       pimpl_->redraw();
+       pimpl_->repaint();
 }
 
 
@@ -102,9 +95,9 @@ void BufferView::updateScrollbar()
 }
 
 
-void BufferView::scrollCB(double value)
+void BufferView::scrollDocView(int value)
 {
-       pimpl_->scrollCB(value);
+       pimpl_->scrollDocView(value);
 }
 
 
@@ -120,12 +113,6 @@ void BufferView::redoCurrentBuffer()
 }
 
 
-int BufferView::resizeCurrentBuffer()
-{
-       return pimpl_->resizeCurrentBuffer();
-}
-
-
 void BufferView::cursorPrevious(LyXText * text)
 {
        pimpl_->cursorPrevious(text);
@@ -179,19 +166,6 @@ void BufferView::setState()
        pimpl_->setState();
 }
 
-#if 0
-void BufferView::insetSleep()
-{
-       pimpl_->insetSleep();
-}
-
-
-void BufferView::insetWakeup()
-{
-       pimpl_->insetWakeup();
-}
-#endif
-
 
 void BufferView::insetUnlock()
 {
@@ -199,18 +173,6 @@ void BufferView::insetUnlock()
 }
 
 
-bool BufferView::focus() const
-{
-       return pimpl_->focus();
-}
-
-
-void BufferView::focus(bool f)
-{
-       pimpl_->focus(f);
-}
-
-
 int BufferView::workWidth() const
 {
        return pimpl_->workarea().workWidth();