1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlExternal.h
11 * \author Asger Alstrup
13 * \author Angus Leeming, a.leeming@ic.ac.uk
16 #ifndef CONTROLEXTERNAL_H
17 #define CONTROLEXTERNAL_H
23 #include "ControlInset.h"
24 #include "insets/insetexternal.h"
26 /** A controller for External dialogs.
29 : public ControlInset<InsetExternal, InsetExternal::Params>
33 ControlExternal(LyXView &, Dialogs &);
40 void updateExternal();
42 std::vector<string> const getTemplates() const;
44 int getTemplateNumber(string const &) const;
46 ExternalTemplate getTemplate(int) const;
48 string const Browse(string const &) const;
52 virtual void applyParamsToInset();
54 virtual void applyParamsNoInset() {}
55 /// get the parameters from the string passed to createInset.
56 virtual InsetExternal::Params const getParams(string const &);
57 /// get the parameters from the inset passed to showInset.
58 virtual InsetExternal::Params const getParams(InsetExternal const &);
61 #endif // CONTROLEXTERNAL_H