3 * \file ControlInclude.h
6 * \author Alejandro Aguilar Sierra
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS
13 #ifndef CONTROLINCLUDE_H
14 #define CONTROLINCLUDE_H
20 #include "ControlInset.h"
21 #include "insets/insetinclude.h" // InsetIncludeParams
23 /** A controller for the Include file dialog.
26 : public ControlInset<InsetInclude, InsetInclude::Params>
39 ControlInclude(LyXView &, Dialogs &);
42 string const Browse(string const &, Type);
45 void load(string const & file);
47 /// test if file exist
48 bool fileExists(string const & file);
51 /// Dispatch the changed parameters to the kernel.
52 virtual void applyParamsToInset();
53 /// Should be used but currently isn't
54 virtual void applyParamsNoInset() {}
55 /// get the parameters from the string passed to createInset.
56 virtual InsetInclude::Params const getParams(string const &)
57 { return InsetInclude::Params(); }
58 /// get the parameters from the inset passed to showInset.
59 virtual InsetInclude::Params const getParams(InsetInclude const & inset)
60 { return inset.params(); }
62 #endif // CONTROLINCLUDE_H