]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiSendto.h
Move Fullscreen preferences from Editing>Control section into Look & Feel>User Interf...
[lyx.git] / src / frontends / qt / 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 Angus Leeming
8  * \author Jürgen Spitzmüller
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUISENDTO_H
14 #define GUISENDTO_H
15
16 #include "GuiDialog.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 GuiSendTo : public GuiDialog, public Ui::SendtoUi
30 {
31         Q_OBJECT
32
33 public:
34         GuiSendTo(GuiView & lv);
35
36 private Q_SLOTS:
37         void changed_adaptor();
38         void slotFormatHighlighted(QListWidgetItem *) {}
39         void slotFormatSelected(QListWidgetItem *) {}
40
41 private:
42         ///
43         bool isValid() override;
44         /// Apply from dialog
45         void applyView() override;
46         /// Update the dialog
47         void updateContents() override;
48
49         ///
50         bool initialiseParams(std::string const & data) override;
51         ///
52         void paramsToDialog(Format const * format, QString const & command);
53         ///
54         void clearParams() override {}
55         ///
56         void dispatchParams() override;
57         ///
58         bool isBufferDependent() const override { return true; }
59         ///
60         FuncCode getLfun() const override { return LFUN_BUFFER_EXPORT_CUSTOM; }
61
62 private:
63         ///
64         Format const * format_;
65         ///
66         QString command_;
67 };
68
69 } // namespace frontend
70 } // namespace lyx
71
72 #endif // GUISENDTO_H