+
+docstring const ControlEmbeddedFiles::browseFile()
+{
+ std::pair<docstring, docstring> dir1(_("Documents|#o#O"),
+ lyx::from_utf8(lyxrc.document_path));
+ FileFilterList const filter(_("All file (*.*)"));
+ return browseRelFile(docstring(), lyx::from_utf8(kernel().bufferFilepath()),
+ _("Select a file to embed"),
+ filter, false, dir1);
+}
+
+
+bool ControlEmbeddedFiles::extract(EmbeddedFile const & item)
+{
+ return item.extract(&kernel().buffer());
+}
+
+