3 * \file ControlSendto.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
12 #ifndef CONTROLSENDTO_H
13 #define CONTROLSENDTO_H
25 /** A controller for the Custom Export dialogs.
27 class ControlSendto : public Dialog::Controller {
30 ControlSendto(Dialog &);
32 virtual bool initialiseParams(std::string const & data);
34 virtual void clearParams() {}
36 virtual void dispatchParams();
38 virtual bool isBufferDependent() const { return true; }
40 virtual kb_action getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
42 /// Return a vector of those formats that can be exported from "lyx".
43 std::vector<Format const *> const allFormats() const;
45 /// The format to export to
46 Format const * getFormat() { return format_; }
47 void setFormat(Format const *);
49 /// The command to be executed
50 std::string const getCommand() const { return command_; };
51 void setCommand(std::string const &);
54 Format const * format_;
59 } // namespace frontend
62 #endif // CONTROLSENDTO_H