2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlExternal.h
12 * \author Asger Alstrup
14 * \author Angus Leeming, a.leeming@ic.ac.uk
17 #ifndef CONTROLEXTERNAL_H
18 #define CONTROLEXTERNAL_H
24 #include "ControlInset.h"
25 #include "insets/insetexternal.h"
27 /** A controller for External dialogs.
30 : public ControlInset<InsetExternal, InsetExternal::Params>
34 ControlExternal(LyXView &, Dialogs &);
41 void updateExternal();
43 std::vector<string> const getTemplates() const;
45 int getTemplateNumber(string const &) const;
47 ExternalTemplate getTemplate(int) const;
49 string const Browse(string const &) const;
53 virtual void applyParamsToInset();
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 &);
62 #endif // CONTROLEXTERNAL_H