2002-03-07 15:06:57 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file ControlSendto.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-03-07 15:06:57 +00:00
|
|
|
*
|
2002-10-21 17:38:09 +00:00
|
|
|
* \author Angus Leeming
|
2002-09-05 14:10:50 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2002-03-07 15:06:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLSENDTO_H
|
|
|
|
#define CONTROLSENDTO_H
|
|
|
|
|
2004-03-27 23:11:46 +00:00
|
|
|
#include "Dialog.h"
|
2002-03-07 15:06:57 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
class Format;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
2002-03-07 15:06:57 +00:00
|
|
|
/** A controller for the Custom Export dialogs.
|
|
|
|
*/
|
2004-03-27 23:11:46 +00:00
|
|
|
class ControlSendto : public Dialog::Controller {
|
2002-03-07 15:06:57 +00:00
|
|
|
public:
|
|
|
|
///
|
2004-03-27 23:11:46 +00:00
|
|
|
ControlSendto(Dialog &);
|
|
|
|
///
|
|
|
|
virtual bool initialiseParams(std::string const & data);
|
|
|
|
///
|
|
|
|
virtual void clearParams() {}
|
|
|
|
///
|
|
|
|
virtual void dispatchParams();
|
|
|
|
///
|
|
|
|
virtual bool isBufferDependent() const { return true; }
|
2005-04-26 09:37:52 +00:00
|
|
|
///
|
2006-05-05 20:23:12 +00:00
|
|
|
virtual kb_action getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
|
2002-03-07 15:06:57 +00:00
|
|
|
|
|
|
|
/// Return a vector of those formats that can be exported from "lyx".
|
|
|
|
std::vector<Format const *> const allFormats() const;
|
|
|
|
|
|
|
|
/// The format to export to
|
|
|
|
Format const * getFormat() { return format_; }
|
|
|
|
void setFormat(Format const *);
|
|
|
|
|
|
|
|
/// The command to be executed
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const getCommand() const { return command_; };
|
|
|
|
void setCommand(std::string const &);
|
2002-03-07 15:06:57 +00:00
|
|
|
private:
|
|
|
|
///
|
|
|
|
Format const * format_;
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string command_;
|
2002-03-07 15:06:57 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2002-03-07 15:06:57 +00:00
|
|
|
#endif // CONTROLSENDTO_H
|