]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormPrint.h
Add an updateParagraph signal, take the opportunity to make a couple of
[lyx.git] / src / frontends / qt2 / FormPrint.h
1 // -*- C++ -*-
2 /**
3  * \file FormPrint.h
4  * Copyright 2001 LyX Team
5  * see the file COPYING
6  *
7  * \author John Levon, moz@compsoc.man.ac.uk
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 PrintDlgImpl;
18
19 class FormPrint : public DialogBase {
20 public: 
21         /**@name Constructors and Destructors */
22         //@{
23         ///
24         FormPrint(LyXView *, Dialogs *);
25         /// 
26         ~FormPrint();
27         //@}
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         PrintDlgImpl * 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         SigC::Connection h_;
55         /// Update connection.
56         SigC::Connection u_;
57 };
58
59 #endif