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
19 #include "insets/insetexternal.h"
20 #include <boost/scoped_ptr.hpp>
23 class ExternalTemplate;
26 class ControlExternal : public Dialog::Controller {
29 ControlExternal(Dialog &);
31 virtual bool initialiseParams(string const & data);
33 virtual void clearParams();
35 virtual void dispatchParams();
37 virtual bool isBufferDependent() const { return true; }
40 InsetExternal::Params const & params() const;
42 void setParams(InsetExternal::Params const &);
47 std::vector<string> const getTemplates() const;
49 int getTemplateNumber(string const &) const;
51 ExternalTemplate getTemplate(int) const;
53 string const Browse(string const &) const;
56 boost::scoped_ptr<InsetExternal::Params> params_;
59 #endif // CONTROLEXTERNAL_H