}
-void EmbeddedFile::updateInsets(Buffer const * buf) const
+void EmbeddedFile::updateInsets() const
{
vector<Inset const *>::const_iterator it = inset_list_.begin();
vector<Inset const *>::const_iterator it_end = inset_list_.end();
for (; it != it_end; ++it)
- const_cast<Inset *>(*it)->updateEmbeddedFile(*buf, *this);
+ const_cast<Inset *>(*it)->updateEmbeddedFile(*this);
}
for (; it != it_end; ++it) {
it->enable(flag, &buffer);
if (it->embedded())
- count_embedded ++;
+ ++count_embedded;
else
- count_external ++;
+ ++count_external;
}
// if operation is successful (no exception is thrown)
buffer.markDirty();
// if the operation is successful, update insets
for (it = begin(); it != it_end; ++it)
- it->updateInsets(&buffer);
+ it->updateInsets();
// show result
if (flag) {
from_utf8(it->outputFilename())));
it->setEmbed(true);
// update the inset with this embedding status.
- const_cast<Inset*>(inset)->updateEmbeddedFile(buffer, *it);
+ const_cast<Inset*>(inset)->updateEmbeddedFile(*it);
}
it->addInset(inset);
return;
clear();
for (InsetIterator it = inset_iterator_begin(buffer.inset()); it; ++it)
- it->registerEmbeddedFiles(buffer, *this);
+ it->registerEmbeddedFiles(*this);
}
return true;
}
-}
+} // namespace lyx