]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
ws fixes, formatting and some other small changes
[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 private:
38         /// Get changed parameters and Dispatch them to the kernel.
39         virtual void apply();
40         /// set the params before show or update.
41         virtual void setParams();
42         /// clean-up on hide.
43         virtual void clearParams();
44
45         ///
46         PrinterParams * params_;
47 };
48
49 #endif // CONTROLPRINT_H