]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCopyright.h
Angus inseterror patch + Dekel mathed fix + added language_country code and
[lyx.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 class LyXView;
30 struct FD_form_copyright;
31
32 /** This class provides an XForms implementation of the FormCopyright Dialog.
33  */
34 class FormCopyright : public DialogBase, public noncopyable {
35 public:
36         /// #FormCopyright x(LyXFunc ..., Dialogs ...);#
37         FormCopyright(LyXView *, Dialogs *);
38         ///
39         ~FormCopyright();
40
41         ///
42         static  int WMHideCB(FL_FORM *, void *);
43         ///
44         static void OKCB(FL_OBJECT *, long);
45 private:
46         /// Create the dialog if necessary, update it and display it.
47         void show();
48         /// Hide the dialog.
49         void hide();
50         /// Not used but we've got to implement it.
51         void update() {}
52
53         /// Build the dialog
54         void build();
55         ///
56         FD_form_copyright * build_copyright();
57
58         /// Real GUI implementation.
59         FD_form_copyright * dialog_;
60         /** Which LyXFunc do we use?
61             We could modify Dialogs to have a visible LyXFunc* instead and
62             save a couple of bytes per dialog.
63         */
64         LyXView * lv_;
65         /** Which Dialogs do we belong to?
66             Used so we can get at the signals we have to connect to.
67         */
68         Dialogs * d_;
69         /// Hide connection.
70         Connection h_;
71 };
72
73 #endif
74