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"
24 /** A controller for the Include file dialog.
26 class ControlInclude : public Dialog::Controller {
38 ControlInclude(Dialog &);
41 virtual bool initialiseParams(std::string const & data);
43 virtual void clearParams();
45 virtual void dispatchParams();
47 virtual bool isBufferDependent() const { return true; }
50 InsetCommandParams const & params() const { return params_; }
52 void setParams(InsetCommandParams const &);
55 std::string const browse(std::string const &, Type) const;
58 void load(std::string const & file);
60 /// test if file exist
61 bool fileExists(std::string const & file);
64 InsetCommandParams params_;
67 } // namespace frontend
70 #endif // CONTROLINCLUDE_H