]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSendto.h
This file is part of LyX, the document processor.
[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 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ControlDialog_impl.h"
20 #include "LString.h"
21
22 #include <vector>
23
24 class Format;
25
26 /** A controller for the Custom Export dialogs.
27  */
28 class ControlSendto : public ControlDialogBD {
29 public:
30         ///
31         ControlSendto(LyXView &, Dialogs &);
32
33         /// Return a vector of those formats that can be exported from "lyx".
34         std::vector<Format const *> const allFormats() const;
35
36         /// The format to export to
37         Format const * getFormat() { return format_; }
38         void setFormat(Format const *);
39
40         /// The command to be executed
41         string const getCommand() const { return command_; };
42         void setCommand(string const &);
43
44 private:
45         ///
46         virtual void apply();
47         ///
48         Format const * format_;
49         ///
50         string command_;
51 };
52
53 #endif // CONTROLSENDTO_H