]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Fix crash when running lyx -dbg insets -e ...
[lyx.git] / src / BufferView.C
index 1baf3d769b1da8184528e04db95f2da85175e323..4caf746d9521d7ed8ba3cd41aae0ae0818339e50 100644 (file)
@@ -1,11 +1,10 @@
-// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  * 
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -27,7 +26,6 @@ BufferView::BufferView(LyXView * o, int xpos, int ypos,
        : pimpl_(new Pimpl(this, o, xpos, ypos, width, height))
 {
        text = 0;
-       inset_slept = false;
 }
 
 
@@ -50,12 +48,6 @@ LyXScreen * BufferView::screen() const
 }
 
 
-WorkArea * BufferView::workarea() const
-{
-       return &pimpl_->workarea_;
-}
-
-
 LyXView * BufferView::owner() const
 {
        return pimpl_->owner_;
@@ -279,6 +271,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);