]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
citation patch from Angus
[lyx.git] / src / BufferView.C
index 7891d1502bc036e70bfafa54503c35833a91210f..e244fb46b3605ecf6fb2eab451fe532f30a01f8d 100644 (file)
@@ -19,6 +19,7 @@
 #include "BufferView_pimpl.h"
 #include "lyxtext.h"
 #include "WorkArea.h"
+#include "lyxscreen.h"
 
 
 BufferView::BufferView(LyXView * o, int xpos, int ypos,
@@ -44,6 +45,18 @@ Buffer * BufferView::buffer() const
 }
 
 
+LyXScreen * BufferView::screen() const
+{
+       return pimpl_->screen_;
+}
+
+
+WorkArea * BufferView::workarea() const
+{
+       return pimpl_->workarea_;
+}
+
+
 LyXView * BufferView::owner() const
 {
        return pimpl_->owner_;
@@ -104,6 +117,13 @@ void BufferView::updateScrollbar()
 }
 
 
+Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y,
+                                 unsigned int button)
+{
+       return pimpl_->checkInsetHit(text, x, y, button);
+}
+
+
 void BufferView::redoCurrentBuffer()
 {
        pimpl_->redoCurrentBuffer();
@@ -178,14 +198,6 @@ void BufferView::workAreaExpose()
 }
 
 
-//  // Callback for cursor timer
-void BufferView::cursorToggleCB(void * ob)
-{
-       BufferView * view = static_cast<BufferView*>(ob);
-       view->pimpl_->cursorToggle();
-}
-
-
 void BufferView::cursorPrevious()
 {
        pimpl_->cursorPrevious();