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