]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
Fixed some lines that were too long. It compiled afterwards.
[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 bool canApplyToReadOnly() const { return true; }
44         ///
45         virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
46
47         /// Browse for a file
48         docstring const browse(docstring const &) const;
49         ///
50         PrinterParams & params() const;
51 private:
52         ///
53         boost::scoped_ptr<PrinterParams> params_;
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // CONTROLPRINT_H