-// -*- 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.
*
* ====================================================== */
#include "BufferView.h"
#include "BufferView_pimpl.h"
#include "lyxtext.h"
-#include "WorkArea.h"
#include "lyxscreen.h"
: pimpl_(new Pimpl(this, o, xpos, ypos, width, height))
{
text = 0;
- inset_slept = false;
}
}
-WorkArea * BufferView::workarea() const
-{
- return &pimpl_->workarea_;
-}
-
-
LyXView * BufferView::owner() const
{
return pimpl_->owner_;
}
-void BufferView::fitCursor(LyXText * text)
+void BufferView::fitCursor()
{
- pimpl_->fitCursor(text);
+ pimpl_->fitCursor();
}
}
+string const BufferView::getClipboard() const
+{
+ return pimpl_->workarea_.getClipboard();
+}
+
+
void BufferView::stuffClipboard(string const & stuff) const
{
pimpl_->stuffClipboard(stuff);
bool BufferView::Dispatch(kb_action action, string const & argument)
{
- return pimpl_->Dispatch(action, argument);
+ return pimpl_->Dispatch(action, argument);
}