]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlInclude.h
Controller-view split of Graphics and Index popups.
[lyx.git] / src / frontends / controllers / ControlInclude.h
1 /**
2  * \file ControlInclude.h
3  * Copyright 2001 the LyX Team
4  * See the file COPYING
5  *
6  * \author Alejandro Aguilar Sierra
7  * \author John Levon, moz@compsoc.man.ac.uk
8  * \author Angus Leeming, a.leeming@.ac.uk
9  */
10
11 #ifndef CONTROLINCLUDE_H
12 #define CONTROLINCLUDE_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlInset.h"
19 #include "insets/insetinclude.h" // InsetIncludeParams
20
21 /** A controller for the Include file dialog.
22  */
23 class ControlInclude
24         : public ControlInset<InsetInclude, InsetInclude::Params>
25 {
26 public:
27         ///
28         ControlInclude(LyXView &, Dialogs &);
29
30         /// The file dialog popup requires a LyXView * ???
31         LyXView * lv() const;
32
33 private:
34         /// Dispatch the changed parameters to the kernel.
35         virtual void applyParamsToInset();
36         /// Should be used but currently isn't
37         virtual void applyParamsNoInset() {}
38         /// get the parameters from the string passed to createInset.
39         virtual InsetInclude::Params const getParams(string const &)
40                 { return InsetInclude::Params(); }
41         /// get the parameters from the inset passed to showInset.
42         virtual InsetInclude::Params const getParams(InsetInclude const & inset)
43                 { return inset.params(); }
44 };
45 #endif // CONTROLINCLUDE_H