]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiSendto.h
d69ca02f287f8896f7642413f9a894cb38c15992
[lyx.git] / src / frontends / qt4 / GuiSendto.h
1 // -*- C++ -*-
2 /**
3  * \file GuiSendto.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUISENDTO_H
13 #define GUISENDTO_H
14
15 #include "GuiDialog.h"
16 #include "ControlSendto.h"
17 #include "ui_SendtoUi.h"
18
19 #include <vector>
20
21 class QListWidgetItem;
22
23 namespace lyx {
24
25 class Format;
26
27 namespace frontend {
28
29 class GuiSendtoDialog : public GuiDialog, public Ui::SendtoUi
30 {
31         Q_OBJECT
32
33 public:
34         GuiSendtoDialog(LyXView & lv);
35
36 private Q_SLOTS:
37         void changed_adaptor();
38         void slotFormatHighlighted(QListWidgetItem *) {}
39         void slotFormatSelected(QListWidgetItem *) {}
40
41 private:
42         void closeEvent(QCloseEvent * e);
43         /// parent controller
44         ControlSendto & controller();
45         ///
46         bool isValid();
47         /// Apply from dialog
48         void applyView();
49         /// Update the dialog
50         void updateContents();
51
52         ///
53         std::vector<Format const *> all_formats_;
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // GUISENDTO_H