X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fxforms%2FFormUrl.h;h=23c984d75ffff884c9e6d1fff6259233507b5c82;hb=3e39bef2c13125023f3b72532d90575bbe307335;hp=3c9fad4f05928d727f19fbfe95a1edd1a0d35bc4;hpb=9c36dd0f40f2e2e90fce8b2f33519a5d99d9be8b;p=lyx.git diff --git a/src/frontends/xforms/FormUrl.h b/src/frontends/xforms/FormUrl.h index 3c9fad4f05..23c984d75f 100644 --- a/src/frontends/xforms/FormUrl.h +++ b/src/frontends/xforms/FormUrl.h @@ -1,59 +1,40 @@ // -*- C++ -*- -/* This file is part of - * ====================================================== +/** + * \file xforms/FormUrl.h + * Copyright 2000-2001 the LyX Team + * Read the file COPYING * - * LyX, The Document Processor - * - * Copyright 2000 The LyX Team. - * - * ====================================================== + * \author Angus Leeming, a.leeming@ic.ac.uk */ #ifndef FORMURL_H #define FORMURL_H -#include - #ifdef __GNUG__ #pragma interface #endif -#include "FormInset.h" -#include "xformsBC.h" +#include "FormBase.h" +class ControlUrl; struct FD_form_url; -/** This class provides an XForms implementation of the FormUrl Dialog. +/** This class provides an XForms implementation of the Url Dialog. */ -class FormUrl : public FormCommand { +class FormUrl : public FormCB > { public: /// - FormUrl(LyXView *, Dialogs *); + FormUrl(ControlUrl &); + private: - /// Pointer to the actual instantiation of the ButtonController. - virtual xformsBC & bc(); - /// Connect signals etc. Set form's max size. - virtual void connect(); + /// Apply from dialog (modify or create inset) + virtual void apply(); /// Build the dialog virtual void build(); /// Update dialog before showing it virtual void update(); - /// Apply from dialog (modify or create inset) - virtual void apply(); - /// Pointer to the actual instantiation of the xforms form - virtual FL_FORM * form() const; - /// + /// Filter the inputs on callback from xforms FD_form_url * build_url(); - /// Real GUI implementation. - boost::scoped_ptr dialog_; - /// The ButtonController - ButtonController bc_; }; - -inline -xformsBC & FormUrl::bc() -{ - return bc_; -} -#endif +#endif // FORMURL_H