]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlPrint.h
Controller-view split of Graphics and Index popups.
[lyx.git] / src / frontends / controllers / ControlPrint.h
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *          Copyright 2001 The LyX Team.
7  *
8  *======================================================
9  *
10  * \file ControlPrint.h
11  * \author Angus Leeming, a.leeming@.ac.uk
12  */
13
14 #ifndef CONTROLPRINT_H
15 #define CONTROLPRINT_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "ControlDialogs.h"
22
23 class PrinterParams;
24
25 /** A controller for Print dialogs.
26  */
27 class ControlPrint : public ControlDialog<ControlConnectBD> {
28 public:
29         /// 
30         ControlPrint(LyXView &, Dialogs &);
31
32         /// The file dialog popup requires a LyXView * ???
33         LyXView * lv() const;
34         ///
35         PrinterParams & params() const;
36
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