2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
2001-03-30 09:51:46 +00:00
|
|
|
* \file ControlExternal.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2001-03-30 09:51:46 +00:00
|
|
|
* \author Asger Alstrup
|
|
|
|
* \author John Levon
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2001-03-30 09:51:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLEXTERNAL_H
|
|
|
|
#define CONTROLEXTERNAL_H
|
|
|
|
|
|
|
|
|
2003-03-05 11:30:35 +00:00
|
|
|
#include "Dialog.h"
|
2001-03-30 09:51:46 +00:00
|
|
|
#include "insets/insetexternal.h"
|
2003-03-05 11:30:35 +00:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
2001-03-30 09:51:46 +00:00
|
|
|
|
2003-03-05 11:30:35 +00:00
|
|
|
|
|
|
|
class ControlExternal : public Dialog::Controller {
|
2001-03-30 09:51:46 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-03-05 11:30:35 +00:00
|
|
|
ControlExternal(Dialog &);
|
|
|
|
///
|
2003-03-14 00:20:42 +00:00
|
|
|
virtual bool initialiseParams(string const & data);
|
2003-03-05 11:30:35 +00:00
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void clearParams();
|
|
|
|
/// clean-up on hide.
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
|
|
|
|
|
|
|
///
|
2003-06-04 09:16:29 +00:00
|
|
|
InsetExternal::Params const & params() const;
|
2003-03-05 11:30:35 +00:00
|
|
|
///
|
|
|
|
void setParams(InsetExternal::Params const &);
|
2001-03-30 09:51:46 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
void editExternal();
|
|
|
|
///
|
|
|
|
std::vector<string> const getTemplates() const;
|
|
|
|
///
|
|
|
|
int getTemplateNumber(string const &) const;
|
|
|
|
///
|
|
|
|
ExternalTemplate getTemplate(int) const;
|
|
|
|
///
|
|
|
|
string const Browse(string const &) const;
|
|
|
|
private:
|
2002-03-21 21:21:28 +00:00
|
|
|
///
|
2003-06-04 09:16:29 +00:00
|
|
|
boost::scoped_ptr<InsetExternal::Params> params_;
|
2001-03-30 09:51:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLEXTERNAL_H
|