LyXScreen * BufferView::screen() const
{
- return pimpl_->screen_;
+ return pimpl_->screen_.get();
}
WorkArea * BufferView::workarea() const
{
- return pimpl_->workarea_;
+ return &pimpl_->workarea_;
}
}
+void BufferView::scrollCB(double value)
+{
+ pimpl_->scrollCB(value);
+}
+
+
Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y,
unsigned int button)
{
}
-void BufferView::gotoError()
-{
- pimpl_->gotoError();
-}
-
-
-void BufferView::enterView()
-{
- pimpl_->enterView();
-}
-
-
-void BufferView::leaveView()
+void BufferView::cursorPrevious(LyXText * text)
{
- pimpl_->leaveView();
-}
-
-
-// Callback for scrollbar slider
-void BufferView::scrollCB(double value)
-{
- pimpl_->scrollCB(value);
+ pimpl_->cursorPrevious(text);
}
-void BufferView::workAreaMotionNotify(int x, int y, unsigned int state)
+void BufferView::cursorNext(LyXText * text)
{
- pimpl_->workAreaMotionNotify(x, y, state);
-}
-
-
-/// Single-click on work area
-void BufferView::workAreaButtonPress(int xpos, int ypos, unsigned int button)
-{
- pimpl_->workAreaButtonPress(xpos, ypos, button);
-}
-
-
-void BufferView::doubleClick(int x, int y, unsigned int button)
-{
- pimpl_->doubleClick(x, y, button);
-}
-
-
-void BufferView::tripleClick(int x, int y, unsigned int button)
-{
- pimpl_->tripleClick(x, y, button);
-}
-
-
-void BufferView::workAreaButtonRelease(int x, int y, unsigned int button)
-{
- pimpl_->workAreaButtonRelease(x, y, button);
-}
-
-
-void BufferView::workAreaExpose()
-{
- pimpl_->workAreaExpose();
-}
-
-
-void BufferView::cursorPrevious()
-{
- pimpl_->cursorPrevious();
-}
-
-
-void BufferView::cursorNext()
-{
- pimpl_->cursorNext();
+ pimpl_->cursorNext(text);
}
}
-void BufferView::beforeChange()
+void BufferView::beforeChange(LyXText * text)
{
- pimpl_->beforeChange();
+ pimpl_->beforeChange(text);
}
-void BufferView::savePosition()
+void BufferView::savePosition(unsigned int i)
{
- pimpl_->savePosition();
+ pimpl_->savePosition(i);
}
-void BufferView::restorePosition()
+void BufferView::restorePosition(unsigned int i)
{
- pimpl_->restorePosition();
+ pimpl_->restorePosition(i);
}
-bool BufferView::NoSavedPositions()
+bool BufferView::isSavedPosition(unsigned int i)
{
- return pimpl_->NoSavedPositions();
+ return pimpl_->isSavedPosition(i);
}
-void BufferView::update(UpdateCodes f)
+void BufferView::update(LyXText * text, UpdateCodes f)
{
- pimpl_->update(f);
+ pimpl_->update(text, f);
}
int BufferView::workWidth() const
{
- return pimpl_->workarea_->workWidth();
+ return pimpl_->workarea_.workWidth();
}
return static_cast<BufferView::UpdateCodes>
(static_cast<int>(uc1) | static_cast<int>(uc2));
}
+
+bool BufferView::Dispatch(kb_action action, string const & argument)
+{
+ return pimpl_->Dispatch(action, argument);
+}