]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlExternal.h
prefs/tabular MVC work
[lyx.git] / src / frontends / controllers / ControlExternal.h
1 // -*- C++ -*-
2 /**
3  * \file ControlExternal.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Asger Alstrup
8  * \author John Levon
9  * \author Angus Leeming
10  *
11  * Full author contact details are available in file CREDITS
12  */
13
14 #ifndef CONTROLEXTERNAL_H
15 #define CONTROLEXTERNAL_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlInset.h"
22 #include "insets/insetexternal.h"
23
24 /** A controller for External dialogs.
25  */
26 class ControlExternal
27         : public ControlInset<InsetExternal, InsetExternal::Params>
28 {
29 public:
30         ///
31         ControlExternal(LyXView &, Dialogs &);
32
33         ///
34         void editExternal();
35         ///
36         void viewExternal();
37         ///
38         void updateExternal();
39         ///
40         std::vector<string> const getTemplates() const;
41         ///
42         int getTemplateNumber(string const &) const;
43         ///
44         ExternalTemplate getTemplate(int) const;
45         ///
46         string const Browse(string const &) const;
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