if (it->lyxCode() == BIBTEX_CODE) {
InsetBibtex const & inset =
static_cast<InsetBibtex const &>(*it);
- EmbeddedFileList const bibfiles = inset.embeddedFiles();
+ EmbeddedFileList const bibfiles = inset.getBibFiles();
d->bibfilesCache_.insert(d->bibfilesCache_.end(),
bibfiles.begin(),
bibfiles.end());
InsetBibtex * inset = getInsetByCode<InsetBibtex>(tmpcur,
BIBTEX_CODE);
if (inset) {
- if (inset->addDatabase(to_utf8(cmd.argument())))
+ if (inset->addDatabase(cmd.argument()))
buffer_.updateBibfilesCache();
}
break;
InsetBibtex * inset = getInsetByCode<InsetBibtex>(tmpcur,
BIBTEX_CODE);
if (inset) {
- if (inset->delDatabase(to_utf8(cmd.argument())))
+ if (inset->delDatabase(cmd.argument()))
buffer_.updateBibfilesCache();
}
break;
-bool InsetBibtex::addDatabase(string const & db)
+bool InsetBibtex::addDatabase(docstring const & database)
{
+ string db = to_utf8(database);
EmbeddedFile file(changeExtension(db, "bib"), buffer().filePath());
// only compare filename
}
-bool InsetBibtex::delDatabase(string const & db)
+bool InsetBibtex::delDatabase(docstring const & database)
{
+ string db = to_utf8(database);
EmbeddedFile file(changeExtension(db, "bib"), buffer().filePath());
// only compare filename
///
EmbeddedFileList const & getBibFiles() const;
///
- bool addDatabase(std::string const &);
+ bool addDatabase(docstring const &);
///
- bool delDatabase(std::string const &);
+ bool delDatabase(docstring const &);
///
void validate(LaTeXFeatures &) const;
///