#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;
}
}
+WorkArea & BufferView::workarea() const
+{
+ return pimpl_->workarea();
+}
+
+
LyXView * BufferView::owner() const
{
return pimpl_->owner_;
}
-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();
}
-void BufferView::pasteClipboard(bool asPara)
-{
- pimpl_->pasteClipboard(asPara);
-}
-
-
string const BufferView::getClipboard() const
{
return pimpl_->workarea().getClipboard();
{
return pimpl_->dispatch(ev);
}
+
+
+int BufferView::scroll(long time)
+{
+ return pimpl_->scroll(time);
+}