]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSendto.h
Fixed some lines that were too long. It compiled afterwards.
[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
19 namespace lyx {
20
21 class Format;
22
23 namespace frontend {
24
25 /** A controller for the Custom Export dialogs.
26  */
27 class ControlSendto : public Dialog::Controller {
28 public:
29         ///
30         ControlSendto(Dialog &);
31         ///
32         virtual bool initialiseParams(std::string const & data);
33         ///
34         virtual void clearParams() {}
35         ///
36         virtual void dispatchParams();
37         ///
38         virtual bool isBufferDependent() const { return true; }
39         ///
40         virtual kb_action getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
41
42         /// Return a vector of those formats that can be exported from "lyx".
43         std::vector<Format const *> const allFormats() const;
44
45         /// The format to export to
46         Format const * getFormat() { return format_; }
47         void setFormat(Format const *);
48
49         /// The command to be executed
50         std::string const getCommand() const { return command_; };
51         void setCommand(std::string const &);
52 private:
53         ///
54         Format const * format_;
55         ///
56         std::string command_;
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // CONTROLSENDTO_H