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>
28 ControlInclude(LyXView &, Dialogs &);
30 /// The file dialog popup requires a LyXView * ???
34 /// Dispatch the changed parameters to the kernel.
35 virtual void applyParamsToInset();
36 /// Should be used but currently isn't
37 virtual void applyParamsNoInset() {}
39 virtual void clearDaughterParams() {}
40 /// get the parameters from the string passed to createInset.
41 virtual InsetInclude::Params const getParams(string const &)
42 { return InsetInclude::Params(); }
43 /// get the parameters from the inset passed to showInset.
44 virtual InsetInclude::Params const getParams(InsetInclude const & inset)
45 { return inset.params(); }
47 #endif // CONTROLINCLUDE_H