]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPrint.h
Whitespace.
[lyx.git] / src / frontends / qt4 / GuiPrint.h
index 431498896499727c72da2bc1410f3efd02284cc7..c0af9572c76d5d04a749fb5a2696c42496fcb218 100644 (file)
@@ -4,6 +4,8 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
+ * \author Allan Rae
+ * \author Angus Leeming
  * \author John Levon
  * \author Edwin Leuven
  *
 #define GUIPRINT_H
 
 #include "GuiDialog.h"
-#include "ControlPrint.h"
 #include "ui_PrintUi.h"
 
+#include "Dialog.h"
+#include "PrinterParams.h"
+
 namespace lyx {
 namespace frontend {
 
-class GuiPrintDialog : public GuiDialog, public Ui::PrintUi
+class GuiPrint : public GuiDialog, public Ui::PrintUi
 {
        Q_OBJECT
 
 public:
-       GuiPrintDialog(LyXView & lv);
+       GuiPrint(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -34,14 +38,27 @@ private Q_SLOTS:
        void copiesChanged(int);
        void printerChanged();
        void pagerangeChanged();
-       /// parent controller
-       ControlPrint & controller();
 
 private:
        /// Apply changes
        void applyView();
        /// update
        void updateContents();
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams();
+       ///
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+       ///
+       bool canApplyToReadOnly() const { return true; }
+       ///
+       FuncCode getLfun() const { return LFUN_BUFFER_PRINT; }
+
+       ///
+       PrinterParams params_;
 };
 
 } // namespace frontend