]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Look for mathed xpms. Doesn't do anything yet due to lack of workable XPMs
[lyx.git] / src / BufferView.C
index 475720d1f20f77c7ea39b20dea2d9bfa33ae8a5c..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();
@@ -241,3 +224,9 @@ bool BufferView::dispatch(FuncRequest const & ev)
 {
        return pimpl_->dispatch(ev);
 }
+
+
+int BufferView::scroll(long time)
+{
+       return pimpl_->scroll(time);
+}