]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
This file is part of LyX, the document processor.
[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 #ifdef __GNUG__
17 #pragma interface
18 #endif
19
20 #include "ControlDialog_impl.h"
21
22 #include "LString.h"
23
24 class PrinterParams;
25
26 /** A controller for Print dialogs.
27  */
28 class ControlPrint : public ControlDialogBD {
29 public:
30         ///
31         ControlPrint(LyXView &, Dialogs &);
32
33         /// Browse for a file
34         string const Browse(string const &);
35         ///
36         PrinterParams & params() const;
37
38 private:
39         /// Get changed parameters and Dispatch them to the kernel.
40         virtual void apply();
41         /// set the params before show or update.
42         virtual void setParams();
43         /// clean-up on hide.
44         virtual void clearParams();
45
46         ///
47         PrinterParams * params_;
48 };
49
50 #endif // CONTROLPRINT_H