3 * \file ControlExternal.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS
14 #ifndef CONTROLEXTERNAL_H
15 #define CONTROLEXTERNAL_H
18 #include "ControlInset.h"
19 #include "insets/insetexternal.h"
21 /** A controller for External dialogs.
24 : public ControlInset<InsetExternal, InsetExternal::Params>
28 ControlExternal(LyXView &, Dialogs &);
35 void updateExternal();
37 std::vector<string> const getTemplates() const;
39 int getTemplateNumber(string const &) const;
41 ExternalTemplate getTemplate(int) const;
43 string const Browse(string const &) const;
46 virtual void applyParamsToInset();
48 virtual void applyParamsNoInset() {}
49 /// get the parameters from the string passed to createInset.
50 virtual InsetExternal::Params const getParams(string const &);
51 /// get the parameters from the inset passed to showInset.
52 virtual InsetExternal::Params const getParams(InsetExternal const &);
55 #endif // CONTROLEXTERNAL_H