]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Painter and scrollbar API patches
[lyx.git] / src / BufferView.C
index 1e8a987d60337628d1e5f5823fc678dc5bdf32ff..6e169eb689415697184740fe1db272d1044852f5 100644 (file)
@@ -1,12 +1,11 @@
-/* This file is part of
- * ====================================================== 
- * 
- *           LyX, The Document Processor
- *        
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
+/**
+ * \file BufferView.C
+ * Copyright 1995-2002 the LyX Team
+ * Read the file COPYING
  *
- * ====================================================== */
+ * \author unknown
+ * \author John Levon <moz@compsoc.man.ac.uk>
+ */
 
 #include <config.h>
 
@@ -17,7 +16,8 @@
 #include "BufferView.h"
 #include "BufferView_pimpl.h"
 #include "lyxtext.h"
-#include "lyxscreen.h"
+#include "frontends/screen.h"
+#include "frontends/WorkArea.h"
 
 
 BufferView::BufferView(LyXView * o, int xpos, int ypos,
@@ -41,9 +41,9 @@ Buffer * BufferView::buffer() const
 }
 
 
-LyXScreen * BufferView::screen() const
+LScreen & BufferView::screen() const
 {
-       return pimpl_->screen_.get();
+       return pimpl_->screen();
 }
 
 
@@ -53,13 +53,7 @@ LyXView * BufferView::owner() const
 }
 
 
-void BufferView::pushIntoUpdateList(Inset * i)
-{
-       pimpl_->updatelist.push(i);
-}
-
-
-Painter & BufferView::painter() 
+Painter & BufferView::painter() const
 {
        return pimpl_->painter();
 }
@@ -89,9 +83,9 @@ void BufferView::redraw()
 }
 
 
-void BufferView::fitCursor()
+bool BufferView::fitCursor()
 {
-       pimpl_->fitCursor();
+       return pimpl_->fitCursor();
 }
 
 
@@ -107,9 +101,9 @@ void BufferView::updateScrollbar()
 }
 
 
-void BufferView::scrollCB(double value)
+void BufferView::scrollDocView(int value)
 {
-       pimpl_->scrollCB(value);
+       pimpl_->scrollDocView(value);
 }
 
 
@@ -185,18 +179,6 @@ void BufferView::setState()
 }
 
 
-void BufferView::insetSleep()
-{
-       pimpl_->insetSleep();
-}
-
-
-void BufferView::insetWakeup()
-{
-       pimpl_->insetWakeup();
-}
-
-
 void BufferView::insetUnlock()
 {
        pimpl_->insetUnlock();
@@ -205,31 +187,19 @@ void BufferView::insetUnlock()
 
 bool BufferView::focus() const
 {
-       return pimpl_->focus();
+       return pimpl_->focus();
 }
 
 
 void BufferView::focus(bool f)
 {
-       pimpl_->focus(f);
-}
-
-
-bool BufferView::active() const
-{
-       return pimpl_->active();
+       pimpl_->focus(f);
 }
 
 
 int BufferView::workWidth() const
 {
-    return pimpl_->workarea_.workWidth();
-}
-
-
-bool BufferView::belowMouse() const 
-{
-       return pimpl_->belowMouse();
+       return pimpl_->workarea().workWidth();
 }
 
 
@@ -257,7 +227,7 @@ void BufferView::toggleToggle()
 }
 
 
-void BufferView::center() 
+void BufferView::center()
 {
        pimpl_->center();
 }
@@ -271,7 +241,7 @@ void BufferView::pasteClipboard(bool asPara)
 
 string const BufferView::getClipboard() const
 {
-       return pimpl_->workarea_.getClipboard();
+       return pimpl_->workarea().getClipboard();
 }