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