]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlExternal.h
bdef4881eb8657d616417d131cb3e403287ba083
[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
18 #include "Dialog.h"
19 #include "insets/insetexternal.h"
20 #include <boost/scoped_ptr.hpp>
21
22
23 class ControlExternal : public Dialog::Controller {
24 public:
25         ///
26         ControlExternal(Dialog &);
27         ///
28         virtual bool initialiseParams(string const & data);
29         /// clean-up on hide.
30         virtual void clearParams();
31         /// clean-up on hide.
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35
36         ///
37         InsetExternal::Params const & params() const;
38         ///
39         void setParams(InsetExternal::Params const &);
40
41         ///
42         void editExternal();
43         ///
44         std::vector<string> const getTemplates() const;
45         ///
46         int getTemplateNumber(string const &) const;
47         ///
48         ExternalTemplate getTemplate(int) const;
49         ///
50         string const Browse(string const &) const;
51 private:
52         ///
53         boost::scoped_ptr<InsetExternal::Params> params_;
54 };
55
56 #endif // CONTROLEXTERNAL_H