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