]> git.lyx.org Git - features.git/blob - src/frontends/kde/FormPrint.h
0ffb2cda12337cb14826c8009308acbecbd36b76
[features.git] / src / frontends / kde / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file FormPrint.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon
8  */
9
10 #ifndef FORMPRINT_H
11 #define FORMPRINT_H
12
13 #include "DialogBase.h"
14 #include "boost/utility.hpp"
15
16 class Dialogs;
17 class LyXView;
18 class PrintDialog;
19
20 ///
21 class FormPrint : public DialogBase {
22 public:
23         ///
24         FormPrint(LyXView *, Dialogs *);
25         ///
26         ~FormPrint();
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         PrintDialog * 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 // FORMPRINT_H