X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.C;h=8a7bee84b17775a0551cb9843ed534cf10371ba5;hb=5eb1059f506d5db92d85e93057e752422e014ec2;hp=4df23aa3e6a6d17e23d426e9d51dbf174f9e1050;hpb=2e57f2ff0ae7cd4a6efbf634ffe6d2f4379d9cfc;p=lyx.git diff --git a/src/BufferView.C b/src/BufferView.C index 4df23aa3e6..8a7bee84b1 100644 --- a/src/BufferView.C +++ b/src/BufferView.C @@ -40,7 +40,6 @@ #include "support/FileInfo.h" #include "support/filetools.h" -#include "support/lyxfunctional.h" // equal_1st_in_pair #include "support/types.h" #include "support/lyxalgo.h" // lyx_count @@ -239,12 +238,6 @@ void BufferView::toggleSelection(bool b) } -void BufferView::toggleToggle() -{ - pimpl_->toggleToggle(); -} - - void BufferView::center() { pimpl_->center(); @@ -632,8 +625,7 @@ bool BufferView::ChangeInsets(InsetOld::Code code, // How to set the cursor corretly when it.size()>1 ?? if (it.size() == 1) { text->setCursorIntern(it.pit(), 0); - text->redoParagraphs(text->cursor, - boost::next(text->cursor.par())); + text->redoParagraph(text->cursor.par()); text->partialRebreak(); } } @@ -656,21 +648,6 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to) } -bool BufferView::ChangeCitationsIfUnique(string const & from, string const & to) -{ - typedef pair StringPair; - - vector keys; - buffer()->fillWithBibKeys(keys); - if (count_if(keys.begin(), keys.end(), - lyx::equal_1st_in_pair(from)) - > 1) - return false; - - return ChangeInsets(InsetOld::CITE_CODE, from, to); -} - - UpdatableInset * BufferView::theLockingInset() const { // If NULL is not allowed we should put an Assert here. (Lgb)