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