]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
fix scrolling bug: 3320 and 3652, maybe not perfect
[lyx.git] / src / frontends / controllers / ControlPrint.h
1 // -*- C++ -*-
2 /**
3  * \file ControlPrint.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  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef CONTROLPRINT_H
14 #define CONTROLPRINT_H
15
16 #include "Dialog.h"
17
18 #include "support/docstring.h"
19
20 #include <boost/scoped_ptr.hpp>
21
22 namespace lyx {
23
24 class PrinterParams;
25
26 namespace frontend {
27
28 /** A controller for Print dialogs.
29  */
30 class ControlPrint : public Dialog::Controller {
31 public:
32         ///
33         ControlPrint(Dialog &);
34         ///
35         virtual bool initialiseParams(std::string const & data);
36         ///
37         virtual void clearParams();
38         ///
39         virtual void dispatchParams();
40         ///
41         virtual bool isBufferDependent() const { return true; }
42         ///
43         virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
44
45         /// Browse for a file
46         docstring const browse(docstring const &) const;
47         ///
48         PrinterParams & params() const;
49 private:
50         ///
51         boost::scoped_ptr<PrinterParams> params_;
52 };
53
54 } // namespace frontend
55 } // namespace lyx
56
57 #endif // CONTROLPRINT_H