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 * Full author contact details are available in file CREDITS.
13 #ifndef CONTROLPRINT_H
14 #define CONTROLPRINT_H
17 #include "PrinterParams.h"
18 #include "support/docstring.h"
23 /** A controller for Print dialogs.
25 class ControlPrint : public Controller
29 ControlPrint(Dialog &);
31 virtual bool initialiseParams(std::string const & data);
33 virtual void clearParams();
35 virtual void dispatchParams();
37 virtual bool isBufferDependent() const { return true; }
39 virtual bool canApplyToReadOnly() const { return true; }
41 virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
44 docstring const browse(docstring const &) const;
46 PrinterParams & params() { return params_; }
48 PrinterParams const & params() const { return params_; }
51 PrinterParams params_;
54 } // namespace frontend
57 #endif // CONTROLPRINT_H