lyx_mirror/src/frontends/xforms/FormCopyright.C
Allan Rae d4c8acbcb2 Angus's xforms patch -- I don't like some of it but overall we need it...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1090 a592a061-630c-0410-9148-cb99ea01b6c8
2000-10-10 01:33:42 +00:00

47 lines
833 B
C

/* FormCopyright.C
* FormCopyright Interface Class Implementation
*/
#include <config.h>
#include FORMS_H_LOCATION
#ifdef __GNUG__
#pragma implementation
#endif
#include "Dialogs.h"
#include "LyXView.h"
#include "form_copyright.h"
#include "FormCopyright.h"
FormCopyright::FormCopyright( LyXView * lv, Dialogs * d )
: FormBase( lv, d, _("Copyright and Warranty"),
BUFFER_INDEPENDENT, HIDE ),
dialog_(0)
{
// let the dialog be shown
// This is a permanent connection so we won't bother
// storing a copy because we won't be disconnecting.
d->showCopyright.connect(slot(this, &FormCopyright::show));
}
FormCopyright::~FormCopyright()
{
delete dialog_;
}
FL_FORM * FormCopyright::form() const
{
if ( dialog_ ) return dialog_->form;
return 0;
}
void FormCopyright::build()
{
dialog_ = build_copyright();
}