4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * \author Edwin Leuven
12 * Full author contact details are available in file CREDITS.
18 #include "GuiDialog.h"
19 #include "ui_PrintUi.h"
22 #include "PrinterParams.h"
23 #include "support/docstring.h"
28 class GuiPrint : public GuiDialog, public Ui::PrintUi, public Controller
33 GuiPrint(LyXView & lv);
36 void change_adaptor();
39 void copiesChanged(int);
40 void printerChanged();
41 void pagerangeChanged();
43 Controller & controller() { return *this; }
49 void updateContents();
51 bool initialiseParams(std::string const & data);
55 void dispatchParams();
57 bool isBufferDependent() const { return true; }
59 bool canApplyToReadOnly() const { return true; }
61 kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
64 PrinterParams params_;
67 } // namespace frontend