]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
5 new lfuns, move all apply code out of ControlDocument and into the core.
[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 /** A controller for Print dialogs.
22  */
23 class ControlPrint : public Dialog::Controller {
24 public:
25         ///
26         ControlPrint(Dialog &);
27         ///
28         virtual bool initialiseParams(std::string const & data);
29         ///
30         virtual void clearParams();
31         ///
32         virtual void dispatchParams();
33         ///
34         virtual bool isBufferDependent() const { return true; }
35
36         /// Browse for a file
37         std::string const browse(std::string const &) const;
38         ///
39         PrinterParams & params() const;
40 private:
41         ///
42         boost::scoped_ptr<PrinterParams> params_;
43 };
44
45 #endif // CONTROLPRINT_H