#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
}
-void BufferView::toggleToggle()
-{
- pimpl_->toggleToggle();
-}
-
-
void BufferView::center()
{
pimpl_->center();
// 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();
}
}
}
-bool BufferView::ChangeCitationsIfUnique(string const & from, string const & to)
-{
- typedef pair<string, string> StringPair;
-
- vector<StringPair> keys;
- buffer()->fillWithBibKeys(keys);
- if (count_if(keys.begin(), keys.end(),
- lyx::equal_1st_in_pair<StringPair>(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)