]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
fix "make dist" target
[lyx.git] / src / BufferView.C
index 0eca845aeb5e0e026bc3188abebf39ad6a8189b0..1c65105bf68ecd06256201ffe75e91af87ac3d99 100644 (file)
@@ -46,13 +46,7 @@ Buffer * BufferView::buffer() const
 
 LyXScreen * BufferView::screen() const
 {
-       return pimpl_->screen_;
-}
-
-
-WorkArea * BufferView::workarea() const
-{
-       return pimpl_->workarea_;
+       return pimpl_->screen_.get();
 }
 
 
@@ -233,7 +227,7 @@ bool BufferView::active() const
 
 int BufferView::workWidth() const
 {
-    return pimpl_->workarea_->workWidth();
+    return pimpl_->workarea_.workWidth();
 }
 
 
@@ -279,6 +273,12 @@ void BufferView::pasteClipboard(bool asPara)
 }
 
 
+string const BufferView::getClipboard() const
+{
+       return pimpl_->workarea_.getClipboard();
+}
+
+
 void BufferView::stuffClipboard(string const & stuff) const
 {
        pimpl_->stuffClipboard(stuff);
@@ -291,3 +291,8 @@ BufferView::UpdateCodes operator|(BufferView::UpdateCodes uc1,
        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);
+}