]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiPrint.h
the fun begins....
[lyx.git] / src / frontends / qt4 / GuiPrint.h
1 // -*- C++ -*-
2 /**
3  * \file GuiPrint.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Edwin Leuven
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIPRINT_H
14 #define GUIPRINT_H
15
16 #include "GuiDialog.h"
17 #include "ControlPrint.h"
18 #include "ui_PrintUi.h"
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiPrintDialog : public GuiDialog, public Ui::PrintUi
24 {
25         Q_OBJECT
26
27 public:
28         GuiPrintDialog(LyXView & lv);
29
30 private Q_SLOTS:
31         void change_adaptor();
32         void browseClicked();
33         void fileChanged();
34         void copiesChanged(int);
35         void printerChanged();
36         void pagerangeChanged();
37         /// parent controller
38         ControlPrint & controller() const;
39
40 private:
41         /// Apply changes
42         void applyView();
43         /// update
44         void update_contents();
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // GUIPRINT_H