X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.C;h=68a19e76b251f04324946ce3636f14c56c201d4e;hb=98c966c64594611e469313314abd1e59524adb4a;hp=1baf3d769b1da8184528e04db95f2da85175e323;hpb=c9b653fc80d318a1a2360abae7ef4014429b6415;p=lyx.git diff --git a/src/BufferView.C b/src/BufferView.C index 1baf3d769b..68a19e76b2 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -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. * * ====================================================== */ @@ -18,7 +17,6 @@ #include "BufferView.h" #include "BufferView_pimpl.h" #include "lyxtext.h" -#include "WorkArea.h" #include "lyxscreen.h" @@ -27,7 +25,6 @@ BufferView::BufferView(LyXView * o, int xpos, int ypos, : pimpl_(new Pimpl(this, o, xpos, ypos, width, height)) { text = 0; - inset_slept = false; } @@ -50,25 +47,13 @@ LyXScreen * BufferView::screen() const } -WorkArea * BufferView::workarea() const -{ - return &pimpl_->workarea_; -} - - LyXView * BufferView::owner() const { return pimpl_->owner_; } -void BufferView::pushIntoUpdateList(Inset * i) -{ - pimpl_->updatelist.push(i); -} - - -Painter & BufferView::painter() +Painter & BufferView::painter() { return pimpl_->painter(); } @@ -98,9 +83,9 @@ void BufferView::redraw() } -void BufferView::fitCursor(LyXText * text) +bool BufferView::fitCursor() { - pimpl_->fitCursor(text); + return pimpl_->fitCursor(); } @@ -122,10 +107,9 @@ void BufferView::scrollCB(double value) } -Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y, - unsigned int button) +Inset * BufferView::checkInsetHit(LyXText * text, int & x, int & y) { - return pimpl_->checkInsetHit(text, x, y, button); + return pimpl_->checkInsetHit(text, x, y); } @@ -215,19 +199,19 @@ void BufferView::insetUnlock() bool BufferView::focus() const { - return pimpl_->focus(); + return pimpl_->focus(); } void BufferView::focus(bool f) { - pimpl_->focus(f); + pimpl_->focus(f); } bool BufferView::active() const { - return pimpl_->active(); + return pimpl_->active(); } @@ -237,7 +221,7 @@ int BufferView::workWidth() const } -bool BufferView::belowMouse() const +bool BufferView::belowMouse() const { return pimpl_->belowMouse(); } @@ -267,7 +251,7 @@ void BufferView::toggleToggle() } -void BufferView::center() +void BufferView::center() { pimpl_->center(); } @@ -279,6 +263,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);