]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[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         virtual kb_action getLfun() const { return LFUN_BUFFER_PRINT; }
40
41         /// Browse for a file
42         std::string const browse(std::string const &) const;
43         ///
44         PrinterParams & params() const;
45 private:
46         ///
47         boost::scoped_ptr<PrinterParams> params_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // CONTROLPRINT_H