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
21 #include "ControlInset.h"
22 #include "insets/insetinclude.h" // InsetIncludeParams
24 /** A controller for the Include file dialog.
27 : public ControlInset<InsetInclude, InsetInclude::Params>
40 ControlInclude(LyXView &, Dialogs &);
43 string const Browse(string const &, Type);
46 void load(string const & file);
48 /// test if file exist
49 bool fileExists(string const & file);
52 /// Dispatch the changed parameters to the kernel.
53 virtual void applyParamsToInset();
54 /// Should be used but currently isn't
55 virtual void applyParamsNoInset() {}
56 /// get the parameters from the string passed to createInset.
57 virtual InsetInclude::Params const getParams(string const &)
58 { return InsetInclude::Params(); }
59 /// get the parameters from the inset passed to showInset.
60 virtual InsetInclude::Params const getParams(InsetInclude const & inset)
61 { return inset.params(); }
63 #endif // CONTROLINCLUDE_H