]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlSendto.h
Angus Custom Export patch and removal of unused files from repository.
[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 <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         string const getCommand() const { return command_; };
38         void setCommand(string const &);
39
40 private:
41         ///
42         virtual void apply();
43         ///
44         Format const * format_;
45         ///
46         string command_;
47 };
48
49 #endif // CONTROLSENDTO_H