]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
*duck*
[lyx.git] / src / frontends / controllers / ControlPrint.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  *
5  *           LyX, The Document Processor
6  *
7  *          Copyright 2001 The LyX Team.
8  *
9  *======================================================
10  *
11  * \file ControlPrint.h
12  * \author Angus Leeming, a.leeming@.ac.uk
13  */
14
15 #ifndef CONTROLPRINT_H
16 #define CONTROLPRINT_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "ControlDialog_impl.h"
23
24 #include "LString.h"
25
26 class PrinterParams;
27
28 /** A controller for Print dialogs.
29  */
30 class ControlPrint : public ControlDialogBD {
31 public:
32         ///
33         ControlPrint(LyXView &, Dialogs &);
34
35         /// Browse for a file
36         string const Browse(string const &);
37         ///
38         PrinterParams & params() const;
39
40 private:
41         /// Get changed parameters and Dispatch them to the kernel.
42         virtual void apply();
43         /// set the params before show or update.
44         virtual void setParams();
45         /// clean-up on hide.
46         virtual void clearParams();
47
48         ///
49         PrinterParams * params_;
50 };
51
52 #endif // CONTROLPRINT_H