InsetExternalMailer::string2params(to_utf8(cmd.argument()), buffer, p);
if (!p.filename.empty()) {
try {
- p.filename.enable(buffer.embeddedFiles().enabled(), &buffer);
+ p.filename.enable(buffer.embedded(), &buffer);
} catch (ExceptionMessage const & message) {
Alert::error(message.title_, message.details_);
// do not set parameter if an error happens
}
-void InsetExternal::registerEmbeddedFiles(Buffer const &,
- EmbeddedFiles & files) const
+void InsetExternal::registerEmbeddedFiles(Buffer const & buffer,
+ EmbeddedFileList & files) const
{
- files.registerFile(params_.filename, this);
+ files.registerFile(params_.filename, this, buffer);
}
{
// when embedding is enabled, change of embedding status leads to actions
EmbeddedFile temp = file;
- temp.enable(buf.embeddedFiles().enabled(), &buf);
+ temp.enable(buf.embedded(), &buf);
// this will not be set if an exception is thorwn in enable()
params_.filename = temp;
}
InsetExternalParams params;
if (params.read(buffer, lex)) {
// exception handling is not needed as long as embedded files are in place.
- params.filename.enable(buffer.embeddedFiles().enabled(), & buffer);
+ params.filename.enable(buffer.embedded(), & buffer);
setParams(params, buffer);
}
}