]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormCopyright.h
more FILMagain stuff
[features.git] / src / frontends / xforms / FormCopyright.h
1 // -*- C++ -*-
2 /* FormCopyright.h
3  * FormCopyright Interface Class
4  * This file is part of
5  * ====================================================== 
6  *
7  *           LyX, The Document Processor
8  *
9  *           Copyright 1995 Matthias Ettrich
10  *           Copyright 1995-2000 The LyX Team.
11  *
12  *           This file Copyright 2000
13  *           Allan Rae
14  * ======================================================
15  */
16
17 #ifndef FORMCOPYRIGHT_H
18 #define FORMCOPYRIGHT_H
19
20 #include "DialogBase.h"
21 #include "form_copyright.h"
22
23 class Dialogs;
24 // same arguement as in Dialogs.h s/LyX/UI/
25 class LyXView;
26
27 /** This class provides an XForms implementation of the FormCopyright Dialog.
28  */
29 class FormCopyright : public DialogBase {
30 public:
31         /**@name Constructors and Destructors */
32         //@{
33         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
34         FormCopyright(LyXView *, Dialogs *);
35         ///
36         ~FormCopyright();
37         //@}
38
39         /**@name Real per-instance Callback Methods */
40         //@{
41         static  int WMHideCB(FL_FORM *, void *);
42         static void OKCB(FL_OBJECT *, long);
43         //@}
44
45 private:
46         FormCopyright() {}
47         FormCopyright(FormCopyright &) : DialogBase() {}
48         
49         /**@name Slot Methods */
50         //@{
51         /// Create the dialog if necessary, update it and display it.
52         void show();
53         /// Hide the dialog.
54         void hide();
55         /// Not used but we've got to implement it.
56         void update() {}
57         //@}
58
59         /// Build the dialog
60         void build();
61         ///
62         FD_form_copyright * build_copyright();
63         /// Explicitly free the dialog.
64         void free();
65
66         /**@name Private Data */
67         //@{
68         /// Real GUI implementation.
69         FD_form_copyright * dialog_;
70         /** Which LyXFunc do we use?
71             We could modify Dialogs to have a visible LyXFunc* instead and
72             save a couple of bytes per dialog.
73         */
74         LyXView * lv_;
75         /** Which Dialogs do we belong to?
76             Used so we can get at the signals we have to connect to.
77         */
78         Dialogs * d_;
79         /// Hide connection.
80         Connection h_;
81         //@}
82 };
83
84 #endif
85
86