*/
#include <config.h>
+#include <algorithm>
#include "InsetBibitem.h"
#include "support/gettext.h"
#include "support/convert.h"
-#include <ostream>
-
using namespace std;
using namespace lyx::support;
docstring const old_key = getParam("key");
docstring key = new_key;
- BiblioInfo keys;
- keys.fillWithBibKeys(&buffer());
- vector<docstring> bibkeys = keys.getKeys();
+ vector<docstring> bibkeys = buffer().masterBibInfo().getKeys();
int i = 1;
case LFUN_INSET_MODIFY: {
InsetCommandParams p(BIBITEM_CODE);
- InsetCommandMailer::string2params("bibitem", to_utf8(cmd.argument()), p);
+ InsetCommand::string2params("bibitem", to_utf8(cmd.argument()), p);
if (p.getCmdName().empty()) {
cur.noUpdate();
break;
// ale070405
-docstring const bibitemWidest(Buffer const & buffer)
+docstring bibitemWidest(Buffer const & buffer)
{
int w = 0;
keyvalmap[from_ascii("label")] = getParam("label");
DocIterator doc_it(it);
doc_it.forwardPos();
- keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString(false);
+ keyvalmap[from_ascii("ref")] = doc_it.paragraph().asString();
keys[key] = keyvalmap;
}