]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiPrint.h
On Linux show in crash message box the backtrace
[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 Allan Rae
8  * \author Angus Leeming
9  * \author John Levon
10  * \author Edwin Leuven
11  *
12  * Full author contact details are available in file CREDITS.
13  */
14
15 #ifndef GUIPRINT_H
16 #define GUIPRINT_H
17
18 #include "GuiDialog.h"
19 #include "ui_PrintUi.h"
20
21 #include "PrinterParams.h"
22
23 namespace lyx {
24 namespace frontend {
25
26 class GuiPrint : public GuiDialog, public Ui::PrintUi
27 {
28         Q_OBJECT
29
30 public:
31         GuiPrint(GuiView & lv);
32
33 private Q_SLOTS:
34         void change_adaptor();
35         void browseClicked();
36         void fileChanged();
37         void copiesChanged(int);
38         void printerChanged();
39         void pagerangeChanged();
40
41 private:
42         /// Apply changes
43         void applyView();
44         /// update
45         void updateContents();
46         ///
47         bool initialiseParams(std::string const & data);
48         ///
49         void clearParams();
50         ///
51         void dispatchParams();
52         ///
53         bool isBufferDependent() const { return true; }
54         ///
55         bool canApplyToReadOnly() const { return true; }
56         ///
57         FuncCode getLfun() const { return LFUN_BUFFER_PRINT; }
58
59         ///
60         PrinterParams params_;
61 };
62
63 } // namespace frontend
64 } // namespace lyx
65
66 #endif // GUIPRINT_H