]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCopyright.C
Angus's xforms patch -- I don't like some of it but overall we need it...
[lyx.git] / src / frontends / xforms / FormCopyright.C
1 /* FormCopyright.C
2  * FormCopyright Interface Class Implementation
3  */
4
5 #include <config.h>
6
7 #include FORMS_H_LOCATION
8
9 #ifdef __GNUG__
10 #pragma implementation
11 #endif
12
13 #include "Dialogs.h"
14 #include "LyXView.h"
15 #include "form_copyright.h"
16 #include "FormCopyright.h"
17
18 FormCopyright::FormCopyright( LyXView * lv, Dialogs * d )
19         : FormBase( lv, d, _("Copyright and Warranty"),
20                     BUFFER_INDEPENDENT, HIDE ),
21           dialog_(0)
22 {
23         // let the dialog be shown
24         // This is a permanent connection so we won't bother
25         // storing a copy because we won't be disconnecting.
26         d->showCopyright.connect(slot(this, &FormCopyright::show));
27 }
28
29
30 FormCopyright::~FormCopyright()
31 {
32         delete dialog_;
33 }
34
35
36 FL_FORM * FormCopyright::form() const
37 {
38         if ( dialog_ ) return dialog_->form;
39         return 0;
40 }
41
42
43 void FormCopyright::build()
44 {
45         dialog_ = build_copyright();
46 }