]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
obvious stuff
[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 #include <boost/scoped_ptr.hpp>
18
19 class PrinterParams;
20
21 namespace lyx {
22 namespace frontend {
23
24 /** A controller for Print dialogs.
25  */
26 class ControlPrint : public Dialog::Controller {
27 public:
28         ///
29         ControlPrint(Dialog &);
30         ///
31         virtual bool initialiseParams(std::string const & data);
32         ///
33         virtual void clearParams();
34         ///
35         virtual void dispatchParams();
36         ///
37         virtual bool isBufferDependent() const { return true; }
38
39         /// Browse for a file
40         std::string const browse(std::string const &) const;
41         ///
42         PrinterParams & params() const;
43 private:
44         ///
45         boost::scoped_ptr<PrinterParams> params_;
46 };
47
48 } // namespace frontend
49 } // namespace lyx
50
51 #endif // CONTROLPRINT_H