]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormPrint.h
Move LaTeX and VC logs to GUI-I on xforms
[lyx.git] / src / frontends / kde / FormPrint.h
1 /* FormPrint.h
2  * (C) 2000 LyX Team
3  * John Levon, moz@compsoc.man.ac.uk
4  */
5
6 /***************************************************************************
7  *                                                                         *
8  *   This program is free software; you can redistribute it and/or modify  *
9  *   it under the terms of the GNU General Public License as published by  *
10  *   the Free Software Foundation; either version 2 of the License, or     *
11  *   (at your option) any later version.                                   *
12  *                                                                         *
13  ***************************************************************************/
14
15 #ifndef FORMPRINT_H
16 #define FORMPRINT_H
17
18 #include "DialogBase.h"
19 #include "boost/utility.hpp"
20
21 class Dialogs;
22 class LyXView;
23 class PrintDialog;
24
25 #ifdef SIGC_CXX_NAMESPACES
26 using SigC::Connection;
27 #endif
28
29 class FormPrint : public DialogBase, public noncopyable {
30 public: 
31         /**@name Constructors and Destructors */
32         //@{
33         ///
34         FormPrint(LyXView *, Dialogs *);
35         /// 
36         ~FormPrint();
37         //@}
38
39         /// start print
40         void print();
41         /// close
42         void close();
43  
44 private: 
45         /// Create the dialog if necessary, update it and display it.
46         void show();
47         /// Hide the dialog.
48         void hide();
49         /// Update the dialog.
50         void update(bool = false);
51
52         /// Real GUI implementation.
53         PrintDialog * dialog_;
54
55         /// the LyXView we belong to
56         LyXView * lv_;
57  
58         /** Which Dialogs do we belong to?
59             Used so we can get at the signals we have to connect to.
60         */
61         Dialogs * d_;
62         
63         /// Hide connection.
64         Connection h_;
65         /// Update connection.
66         Connection u_;
67 };
68
69 #endif