]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiPrint.h
* fix spelling in comments to please John.
[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 "Dialog.h"
22 #include "PrinterParams.h"
23
24 namespace lyx {
25 namespace frontend {
26
27 class GuiPrint : public GuiDialog, public Ui::PrintUi
28 {
29         Q_OBJECT
30
31 public:
32         GuiPrint(GuiView & lv);
33
34 private Q_SLOTS:
35         void change_adaptor();
36         void browseClicked();
37         void fileChanged();
38         void copiesChanged(int);
39         void printerChanged();
40         void pagerangeChanged();
41
42 private:
43         /// Apply changes
44         void applyView();
45         /// update
46         void updateContents();
47         ///
48         bool initialiseParams(std::string const & data);
49         ///
50         void clearParams();
51         ///
52         void dispatchParams();
53         ///
54         bool isBufferDependent() const { return true; }
55         ///
56         bool canApplyToReadOnly() const { return true; }
57         ///
58         FuncCode getLfun() const { return LFUN_BUFFER_PRINT; }
59
60         ///
61         PrinterParams params_;
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // GUIPRINT_H