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