]> git.lyx.org Git - features.git/blob - src/frontends/controllers/ControlExternal.h
Really dull and boring header shit
[features.git] / src / frontends / controllers / ControlExternal.h
1 // -*- C++ -*-
2 /**
3  * \file ControlExternal.h
4  * Read the file COPYING
5  *
6  * \author Asger Alstrup
7  * \author John Levon
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS
11  */
12
13 #ifndef CONTROLEXTERNAL_H
14 #define CONTROLEXTERNAL_H
15
16 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "ControlInset.h"
21 #include "insets/insetexternal.h"
22
23 /** A controller for External dialogs.
24  */
25 class ControlExternal
26         : public ControlInset<InsetExternal, InsetExternal::Params>
27 {
28 public:
29         ///
30         ControlExternal(LyXView &, Dialogs &);
31
32         ///
33         void editExternal();
34         ///
35         void viewExternal();
36         ///
37         void updateExternal();
38         ///
39         std::vector<string> const getTemplates() const;
40         ///
41         int getTemplateNumber(string const &) const;
42         ///
43         ExternalTemplate getTemplate(int) const;
44         ///
45         string const Browse(string const &) const;
46
47 private:
48         ///
49         virtual void applyParamsToInset();
50         /// not needed.
51         virtual void applyParamsNoInset() {}
52         /// get the parameters from the string passed to createInset.
53         virtual InsetExternal::Params const getParams(string const &);
54         /// get the parameters from the inset passed to showInset.
55         virtual InsetExternal::Params const getParams(InsetExternal const &);
56 };
57
58 #endif // CONTROLEXTERNAL_H