3 * \file ControlInclude.h
4 * Copyright 2001 the LyX Team
7 * \author Alejandro Aguilar Sierra
8 * \author John Levon, moz@compsoc.man.ac.uk
9 * \author Angus Leeming, a.leeming@.ac.uk
12 #ifndef CONTROLINCLUDE_H
13 #define CONTROLINCLUDE_H
19 #include "ControlInset.h"
20 #include "insets/insetinclude.h" // InsetIncludeParams
22 /** A controller for the Include file dialog.
25 : public ControlInset<InsetInclude, InsetInclude::Params>
38 ControlInclude(LyXView &, Dialogs &);
41 string const Browse(string const &, Type);
44 void load(string const & file);
46 /// test if file exist
47 bool fileExists(string const & file);
50 /// Dispatch the changed parameters to the kernel.
51 virtual void applyParamsToInset();
52 /// Should be used but currently isn't
53 virtual void applyParamsNoInset() {}
54 /// get the parameters from the string passed to createInset.
55 virtual InsetInclude::Params const getParams(string const &)
56 { return InsetInclude::Params(); }
57 /// get the parameters from the inset passed to showInset.
58 virtual InsetInclude::Params const getParams(InsetInclude const & inset)
59 { return inset.params(); }
61 #endif // CONTROLINCLUDE_H