X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.C;h=01cfc41d8eef8fbf3e737869f29d0133340a3e2b;hb=e94889a041628203c50b66b9a4add63210de6928;hp=31e01b155bae53be96e9146e4d8f931687d0ee63;hpb=282f86fbb1ec7a877cdd05f25edbf468ae06595d;p=lyx.git diff --git a/src/BufferView.C b/src/BufferView.C index 31e01b155b..01cfc41d8e 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -188,6 +188,10 @@ bool BufferView::isSavedPosition(unsigned int i) return pimpl_->isSavedPosition(i); } +void BufferView::saveSavedPositions() +{ + return pimpl_->saveSavedPositions(); +} void BufferView::switchKeyMap() { @@ -231,6 +235,36 @@ bool BufferView::dispatch(FuncRequest const & ev) } +void BufferView::selectionRequested() +{ + pimpl_->selectionRequested(); +} + + +void BufferView::selectionLost() +{ + pimpl_->selectionLost(); +} + + +void BufferView::workAreaResize() +{ + pimpl_->workAreaResize(); +} + + +void BufferView::workAreaKeyPress(LyXKeySymPtr key, key_modifier::state state) +{ + pimpl_->workAreaKeyPress(key, state); +} + + +bool BufferView::workAreaDispatch(FuncRequest const & ev) +{ + return pimpl_->workAreaDispatch(ev); +} + + void BufferView::scroll(int lines) { pimpl_->scroll(lines); @@ -332,6 +366,26 @@ void BufferView::setCursor(DocIterator const & dit) } +void BufferView::mouseSetCursor(LCursor & cur) +{ + BOOST_ASSERT(&cur.bv() == this); + + // Has the cursor just left the inset? + if (&cursor().inset() != &cur.inset()) + cursor().inset().notifyCursorLeaves(cursor()); + + // do the dEPM magic if needed + if (cursor().inTexted()) + cursor().text()->deleteEmptyParagraphMechanism(cur, cursor()); + + cursor() = cur; + cursor().clearSelection(); + cursor().setTargetX(); + finishUndo(); + +} + + void BufferView::putSelectionAt(DocIterator const & cur, int length, bool backwards) { @@ -349,6 +403,18 @@ void BufferView::putSelectionAt(DocIterator const & cur, } +bool const BufferView::repaintAll() const +{ + return pimpl_->repaintAll(); +} + + +void const BufferView::repaintAll(bool r) const +{ + pimpl_->repaintAll(r); +} + + LCursor & BufferView::cursor() { return pimpl_->cursor_;