]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSendto.h
5 new lfuns, move all apply code out of ControlDocument and into the core.
[lyx.git] / src / frontends / controllers / ControlSendto.h
1 // -*- C++ -*-
2 /**
3  * \file ControlSendto.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CONTROLSENDTO_H
13 #define CONTROLSENDTO_H
14
15 #include "Dialog.h"
16 #include <vector>
17
18 class Format;
19
20 /** A controller for the Custom Export dialogs.
21  */
22 class ControlSendto : public Dialog::Controller {
23 public:
24         ///
25         ControlSendto(Dialog &);
26         ///
27         virtual bool initialiseParams(std::string const & data);
28         ///
29         virtual void clearParams() {}
30         ///
31         virtual void dispatchParams();
32         ///
33         virtual bool isBufferDependent() const { return true; }
34
35         /// Return a vector of those formats that can be exported from "lyx".
36         std::vector<Format const *> const allFormats() const;
37
38         /// The format to export to
39         Format const * getFormat() { return format_; }
40         void setFormat(Format const *);
41
42         /// The command to be executed
43         std::string const getCommand() const { return command_; };
44         void setCommand(std::string const &);
45 private:
46         ///
47         Format const * format_;
48         ///
49         std::string command_;
50 };
51
52 #endif // CONTROLSENDTO_H