]> git.lyx.org Git - features.git/blob - src/frontends/xforms/FormCopyright.h
make doc++ able to generate the source documentation for lyx
[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 #include "support/utility.hpp"
23
24 #ifdef __GNUG__
25 #pragma interface
26 #endif
27
28 class Dialogs;
29 // same arguement as in Dialogs.h s/LyX/UI/
30 class LyXView;
31 struct FD_form_copyright;
32
33 /** This class provides an XForms implementation of the FormCopyright Dialog.
34  */
35 class FormCopyright : public DialogBase, public noncopyable {
36 public:
37         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
38         FormCopyright(LyXView *, Dialogs *);
39         ///
40         ~FormCopyright();
41
42         ///
43         static  int WMHideCB(FL_FORM *, void *);
44         ///
45         static void OKCB(FL_OBJECT *, long);
46 private:
47         /// Create the dialog if necessary, update it and display it.
48         void show();
49         /// Hide the dialog.
50         void hide();
51         /// Not used but we've got to implement it.
52         void update() {}
53
54         /// Build the dialog
55         void build();
56         ///
57         FD_form_copyright * build_copyright();
58         /// Explicitly free the dialog.
59         void free();
60
61         /// Real GUI implementation.
62         FD_form_copyright * dialog_;
63         /** Which LyXFunc do we use?
64             We could modify Dialogs to have a visible LyXFunc* instead and
65             save a couple of bytes per dialog.
66         */
67         LyXView * lv_;
68         /** Which Dialogs do we belong to?
69             Used so we can get at the signals we have to connect to.
70         */
71         Dialogs * d_;
72         /// Hide connection.
73         Connection h_;
74 };
75
76 #endif
77