]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormPrint.h
Patch for TOC menu by dekel, kde cleanup patch from John, plus a few things
[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 FormPrintDialog;
24
25 class FormPrint : public DialogBase, public noncopyable {
26 public: 
27         /**@name Constructors and Destructors */
28         //@{
29         ///
30         FormPrint(LyXView *, Dialogs *);
31         /// 
32         ~FormPrint();
33         //@}
34
35         /// start print
36         void print();
37         /// close
38         void close();
39  
40 private: 
41         /// Create the dialog if necessary, update it and display it.
42         void show();
43         /// Hide the dialog.
44         void hide();
45         /// Update the dialog.
46         void update();
47
48         /// Real GUI implementation.
49         FormPrintDialog * dialog_;
50
51         /// the LyXView we belong to
52         LyXView * lv_;
53  
54         /** Which Dialogs do we belong to?
55             Used so we can get at the signals we have to connect to.
56         */
57         Dialogs * d_;
58         
59         /// Hide connection.
60         SigC::Connection h_;
61         /// Update connection.
62         SigC::Connection u_;
63 };
64
65 #endif