]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
More fixes to insettabular/text (and some missing features added).
[lyx.git] / src / BufferView.C
index 7891d1502bc036e70bfafa54503c35833a91210f..c2bd11863f67b973b734a24598ca01bc1460cdb6 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,
@@ -26,7 +27,6 @@ BufferView::BufferView(LyXView * o, int xpos, int ypos,
        : pimpl_(new Pimpl(this, o, xpos, ypos, width, height))
 {
        text = 0;
-       the_locking_inset = 0;
        inset_slept = false;
 }
 
@@ -44,6 +44,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_;
@@ -86,9 +98,9 @@ void BufferView::redraw()
 }
 
 
-void BufferView::fitCursor()
+void BufferView::fitCursor(LyXText * text)
 {
-       pimpl_->fitCursor();
+       pimpl_->fitCursor(text);
 }
 
 
@@ -104,6 +116,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();
@@ -122,6 +141,7 @@ void BufferView::gotoError()
 }
 
 
+#if 0
 void BufferView::enterView()
 {
        pimpl_->enterView();
@@ -176,25 +196,18 @@ void BufferView::workAreaExpose()
 {
        pimpl_->workAreaExpose();
 }
+#endif
 
 
-//  // Callback for cursor timer
-void BufferView::cursorToggleCB(void * ob)
-{
-       BufferView * view = static_cast<BufferView*>(ob);
-       view->pimpl_->cursorToggle();
-}
-
-
-void BufferView::cursorPrevious()
+void BufferView::cursorPrevious(LyXText * text)
 {
-       pimpl_->cursorPrevious();
+       pimpl_->cursorPrevious(text);
 }
 
 
-void BufferView::cursorNext()
+void BufferView::cursorNext(LyXText * text)
 {
-       pimpl_->cursorNext();
+       pimpl_->cursorNext(text);
 }