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