3 * \file ControlEmbeddedFiles.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLEMBEDDEDFILES_H
13 #define CONTROLEMBEDDEDFILES_H
16 #include "EmbeddedFiles.h"
22 class ControlEmbeddedFiles : public Dialog::Controller {
25 ControlEmbeddedFiles(Dialog &);
27 virtual ~ControlEmbeddedFiles() {}
29 EmbeddedFiles & embeddedFiles();
31 virtual bool initialiseParams(std::string const &);
32 /// obtain embedded files from buffer
33 void updateEmbeddedFiles();
35 virtual void clearParams() {};
37 virtual bool isBufferDependent() const { return true; }
39 bool canApply() const { return true; }
41 virtual bool canApplyToReadOnly() const { return true; }
43 void dispatchMessage(std::string const & msg);
45 void dispatchParams() {};
47 void goTo(EmbeddedFile const & item);
49 void view(EmbeddedFile const & item);
51 void setEmbed(EmbeddedFile & item, bool embed);
53 docstring const browseFile();
55 bool extract(EmbeddedFile const & item);
57 bool update(EmbeddedFile const & item);
64 } // namespace frontend
67 #endif // CONTROLEMBEDDEDFILES_H