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/insetinclude.h" // InsetIncludeParams
22 /** A controller for the Include file dialog.
24 class ControlInclude : public Dialog::Controller {
36 ControlInclude(Dialog &);
39 virtual bool initialiseParams(string const & data);
41 virtual void clearParams();
43 virtual void dispatchParams();
45 virtual bool isBufferDependent() const { return true; }
48 InsetInclude::Params const & params() const
49 { return inset_->params(); }
51 void setParams(InsetInclude::Params const &);
54 string const Browse(string const &, Type);
57 void load(string const & file);
59 /// test if file exist
60 bool fileExists(string const & file);
63 boost::scoped_ptr<InsetInclude> inset_;
66 #endif // CONTROLINCLUDE_H