]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlExternal.h
John's VCLog patch + a ChangeLog entry I missed last time
[lyx.git] / src / frontends / controllers / ControlExternal.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlExternal.h
11  * \author Asger Alstrup
12  * \author John Levon
13  * \author Angus Leeming, a.leeming@ic.ac.uk
14  */
15
16 #ifndef CONTROLEXTERNAL_H
17 #define CONTROLEXTERNAL_H
18
19 #ifdef __GNUG__
20 #pragma interface
21 #endif
22
23 #include "ControlInset.h"
24 #include "insets/insetexternal.h"
25
26 /** A controller for External dialogs.
27  */ 
28 class ControlExternal
29         : public ControlInset<InsetExternal, InsetExternal::Params>
30 {
31 public:
32         ///
33         ControlExternal(LyXView &, Dialogs &);
34
35         ///
36         void editExternal();
37         ///
38         void viewExternal();
39         ///
40         void updateExternal();
41         ///
42         std::vector<string> const getTemplates() const;
43         ///
44         int getTemplateNumber(string const &) const;
45         ///
46         ExternalTemplate getTemplate(int) const;
47         ///
48         string const Browse(string const &) const;
49
50 private:
51         /// 
52         virtual void applyParamsToInset();
53         /// not needed.
54         virtual void applyParamsNoInset() {}
55         /// get the parameters from the string passed to createInset.
56         virtual InsetExternal::Params const getParams(string const &);
57         /// get the parameters from the inset passed to showInset.
58         virtual InsetExternal::Params const getParams(InsetExternal const &);
59 };
60
61 #endif // CONTROLEXTERNAL_H