]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
Rob Lahaye's "iconify dialogs with main window if so desired" patch.
[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 "ControlDialogs.h"
23
24 class PrinterParams;
25
26 /** A controller for Print dialogs.
27  */
28 class ControlPrint : public ControlDialog<ControlConnectBD> {
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