- return ChangeInsets(Inset::REF_CODE, from, to);
-}
-
-
-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(Inset::CITE_CODE, from, to);