X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.C;h=1e7db9e20b2b39d0dc69d57a2001c3ae1c6820ac;hb=3eea90dbbc24f9dafc6c0a42d5b14fe213dbcd6a;hp=99474cf9d804111bcc72c274028dfac75e5bd51f;hpb=4d2e93a02eeb591aba7982f9871f13bca93fd40e;p=lyx.git diff --git a/src/BufferView.C b/src/BufferView.C index 99474cf9d8..1e7db9e20b 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -46,13 +46,13 @@ Buffer * BufferView::buffer() const LyXScreen * BufferView::screen() const { - return pimpl_->screen_; + return pimpl_->screen_.get(); } WorkArea * BufferView::workarea() const { - return pimpl_->workarea_; + return &pimpl_->workarea_; } @@ -116,6 +116,12 @@ void BufferView::updateScrollbar() } +void BufferView::scrollCB(double value) +{ + pimpl_->scrollCB(value); +} + + Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y, unsigned int button) { @@ -227,7 +233,7 @@ bool BufferView::active() const int BufferView::workWidth() const { - return pimpl_->workarea_->workWidth(); + return pimpl_->workarea_.workWidth(); } @@ -285,3 +291,8 @@ BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1, return static_cast (static_cast(uc1) | static_cast(uc2)); } + +bool BufferView::Dispatch(kb_action action, string const & argument) +{ + return pimpl_->Dispatch(action, argument); +}