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
21 #include "ControlInset.h"
22 #include "insets/insetexternal.h"
24 /** A controller for External dialogs.
27 : public ControlInset<InsetExternal, InsetExternal::Params>
31 ControlExternal(LyXView &, Dialogs &);
38 void updateExternal();
40 std::vector<string> const getTemplates() const;
42 int getTemplateNumber(string const &) const;
44 ExternalTemplate getTemplate(int) const;
46 string const Browse(string const &) const;
49 virtual void applyParamsToInset();
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 &);
58 #endif // CONTROLEXTERNAL_H