2 * \file ControlInclude.h
3 * Copyright 2001 the LyX Team
6 * \author Alejandro Aguilar Sierra
7 * \author John Levon, moz@compsoc.man.ac.uk
8 * \author Angus Leeming, a.leeming@.ac.uk
11 #ifndef CONTROLINCLUDE_H
12 #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 /// Dispatch the changed parameters to the kernel.
44 virtual void applyParamsToInset();
45 /// Should be used but currently isn't
46 virtual void applyParamsNoInset() {}
47 /// get the parameters from the string passed to createInset.
48 virtual InsetInclude::Params const getParams(string const &)
49 { return InsetInclude::Params(); }
50 /// get the parameters from the inset passed to showInset.
51 virtual InsetInclude::Params const getParams(InsetInclude const & inset)
52 { return inset.params(); }
54 #endif // CONTROLINCLUDE_H