3 * \file ControlInclude.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alejandro Aguilar Sierra
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
14 #ifndef CONTROLINCLUDE_H
15 #define CONTROLINCLUDE_H
19 #include "insets/insetcommandparams.h"
21 #include "support/docstring.h"
26 /** A controller for the Include file dialog.
28 class ControlInclude : public Dialog::Controller {
40 ControlInclude(Dialog &);
43 virtual bool initialiseParams(std::string const & data);
45 virtual void clearParams();
47 virtual void dispatchParams();
49 virtual bool isBufferDependent() const { return true; }
52 InsetCommandParams const & params() const { return params_; }
54 void setParams(InsetCommandParams const &);
57 docstring const browse(docstring const &, Type) const;
60 void load(std::string const & file);
62 /// test if file exist
63 bool fileExists(std::string const & file);
66 InsetCommandParams params_;
69 } // namespace frontend
72 #endif // CONTROLINCLUDE_H