]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSendto.h
Really dull and boring header shit
[lyx.git] / src / frontends / controllers / ControlSendto.h
1 // -*- C++ -*-
2 /**
3  * \file ControlSendto.h
4  * See the file COPYING.
5  *
6  * \author Angus Leeming 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef CONTROLSENDTO_H
12 #define CONTROLSENDTO_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "ControlDialog_impl.h"
19 #include "LString.h"
20
21 #include <vector>
22
23 class Format;
24
25 /** A controller for the Custom Export dialogs.
26  */
27 class ControlSendto : public ControlDialogBD {
28 public:
29         ///
30         ControlSendto(LyXView &, Dialogs &);
31
32         /// Return a vector of those formats that can be exported from "lyx".
33         std::vector<Format const *> const allFormats() const;
34
35         /// The format to export to
36         Format const * getFormat() { return format_; }
37         void setFormat(Format const *);
38
39         /// The command to be executed
40         string const getCommand() const { return command_; };
41         void setCommand(string const &);
42
43 private:
44         ///
45         virtual void apply();
46         ///
47         Format const * format_;
48         ///
49         string command_;
50 };
51
52 #endif // CONTROLSENDTO_H