]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormPrint.h
implement getLabelList
[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 class FormPrint : public DialogBase {
19 public: 
20         /**@name Constructors and Destructors */
21         //@{
22         ///
23         FormPrint(LyXView *, Dialogs *);
24         /// 
25         ~FormPrint();
26         //@}
27
28         /// start print
29         void print();
30         /// close
31         void close();
32  
33 private: 
34         /// Create the dialog if necessary, update it and display it.
35         void show();
36         /// Hide the dialog.
37         void hide();
38         /// Update the dialog.
39         void update(bool = false);
40
41         /// Real GUI implementation.
42         PrintDlgImpl * dialog_;
43
44         /// the LyXView we belong to
45         LyXView * lv_;
46  
47         /** Which Dialogs do we belong to?
48             Used so we can get at the signals we have to connect to.
49         */
50         Dialogs * d_;
51         
52         /// Hide connection.
53         SigC::Connection h_;
54         /// Update connection.
55         SigC::Connection u_;
56 };
57
58 #endif