EmbeddedFile file(to_utf8(params["filename"]),
onlyPath(parentFilename(buffer)));
file.setEmbed(params["embed"] == _("true") ? true : false);
- file.enable(buffer.embeddedFiles().enabled(), &buffer);
+ file.enable(buffer.embedded(), &buffer);
return file;
}
}
-FileNameList const &
+EmbeddedFileList const &
InsetInclude::getBibfilesCache(Buffer const & buffer) const
{
Buffer * const tmp = getChildBuffer(buffer, params());
if (tmp) {
tmp->setParent(0);
- FileNameList const & cache = tmp->getBibfilesCache();
+ EmbeddedFileList const & cache = tmp->getBibfilesCache();
tmp->setParent(&buffer);
return cache;
}
- static FileNameList const empty;
+ static EmbeddedFileList const empty;
return empty;
}
void InsetInclude::registerEmbeddedFiles(Buffer const & buffer,
- EmbeddedFiles & files) const
+ EmbeddedFileList & files) const
{
- files.registerFile(includedFilename(buffer, params()), this);
+ files.registerFile(includedFilename(buffer, params()), this, buffer);
}