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
18 #include "support/docstring.h"
20 #include <boost/scoped_ptr.hpp>
28 /** A controller for Print dialogs.
30 class ControlPrint : public Dialog::Controller {
33 ControlPrint(Dialog &);
35 virtual bool initialiseParams(std::string const & data);
37 virtual void clearParams();
39 virtual void dispatchParams();
41 virtual bool isBufferDependent() const { return true; }
43 virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
46 lyx::docstring const browse(lyx::docstring const &) const;
48 PrinterParams & params() const;
51 boost::scoped_ptr<PrinterParams> params_;
54 } // namespace frontend
57 #endif // CONTROLPRINT_H