]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
partial framebox support
[lyx.git] / src / BufferView.C
index 2548967b6c30bf216b1e5d4e5e0d90a7e972cca2..53e1ffd55cfcd67d5f1e1096f905767b406834d9 100644 (file)
 #include "lyxtext.h"
 #include "frontends/screen.h"
 #include "frontends/WorkArea.h"
+#include "frontends/LyXView.h"
 
 
-BufferView::BufferView(LyXView * o, int xpos, int ypos,
+BufferView::BufferView(LyXView * owner, int xpos, int ypos,
                       int width, int height)
-       : pimpl_(new Pimpl(this, o, xpos, ypos, width, height))
+       : pimpl_(new Pimpl(this, owner, xpos, ypos, width, height))
 {
        text = 0;
 }
@@ -47,6 +48,12 @@ LyXScreen & BufferView::screen() const
 }
 
 
+WorkArea & BufferView::workarea() const
+{
+       return pimpl_->workarea();
+}
+
+
 LyXView * BufferView::owner() const
 {
        return pimpl_->owner_;
@@ -103,30 +110,12 @@ void BufferView::scrollDocView(int value)
 }
 
 
-Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y)
-{
-       return pimpl_->checkInsetHit(text, x, y);
-}
-
-
 void BufferView::redoCurrentBuffer()
 {
        pimpl_->redoCurrentBuffer();
 }
 
 
-void BufferView::cursorPrevious(LyXText * text)
-{
-       pimpl_->cursorPrevious(text);
-}
-
-
-void BufferView::cursorNext(LyXText * text)
-{
-       pimpl_->cursorNext(text);
-}
-
-
 bool BufferView::available() const
 {
        return pimpl_->available();
@@ -211,12 +200,6 @@ void BufferView::center()
 }
 
 
-void BufferView::pasteClipboard(bool asPara)
-{
-       pimpl_->pasteClipboard(asPara);
-}
-
-
 string const BufferView::getClipboard() const
 {
        return pimpl_->workarea().getClipboard();
@@ -236,7 +219,14 @@ BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1,
                (static_cast<int>(uc1) | static_cast<int>(uc2));
 }
 
-bool BufferView::dispatch(kb_action action, string const & argument)
+
+bool BufferView::dispatch(FuncRequest const & ev)
+{
+       return pimpl_->dispatch(ev);
+}
+
+
+int BufferView::scroll(long time)
 {
-       return pimpl_->dispatch(action, argument);
+       return pimpl_->scroll(time);
 }