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