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>
26 } // namespace external
30 class ControlExternal : public Dialog::Controller {
33 ControlExternal(Dialog &);
35 virtual bool initialiseParams(std::string const & data);
37 virtual void clearParams();
39 virtual void dispatchParams();
41 virtual bool isBufferDependent() const { return true; }
44 InsetExternal::Params const & params() const;
46 void setParams(InsetExternal::Params const &);
51 std::vector<std::string> const getTemplates() const;
53 int getTemplateNumber(std::string const &) const;
55 lyx::external::Template getTemplate(int) const;
57 std::string const Browse(std::string const &) const;
60 boost::scoped_ptr<InsetExternal::Params> params_;
63 #endif // CONTROLEXTERNAL_H