]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QPrint.h
The big renaming. Yowser.
[lyx.git] / src / frontends / qt2 / QPrint.h
1 // -*- C++ -*-
2 /**
3  * \file QPrint.h
4  * Copyright 2001 LyX Team
5  * see the file COPYING
6  *
7  * \author John Levon, moz@compsoc.man.ac.uk
8  */
9 #ifndef QPRINT_H
10 #define QPRINT_H
11
12 #include "DialogBase.h"
13 #include "boost/utility.hpp"
14
15 class Dialogs;
16 class LyXView;
17 class QPrintDialog;
18
19 class QPrint : public DialogBase {
20 public: 
21         QPrint(LyXView *, Dialogs *);
22         ~QPrint();
23
24         /// start print
25         void print();
26         /// close
27         void close();
28  
29 private: 
30         /// Create the dialog if necessary, update it and display it.
31         void show();
32         /// Hide the dialog.
33         void hide();
34         /// Update the dialog.
35         void update(bool = false);
36
37         /// Real GUI implementation.
38         QPrintDialog * dialog_;
39
40         /// the LyXView we belong to
41         LyXView * lv_;
42  
43         /** Which Dialogs do we belong to?
44             Used so we can get at the signals we have to connect to.
45         */
46         Dialogs * d_;
47         
48         /// Hide connection.
49         SigC::Connection h_;
50         /// Update connection.
51         SigC::Connection u_;
52 };
53
54 #endif // QPRINT_H