2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include <boost/smart_ptr.hpp>
21 #include "FormInset.h"
26 /** This class provides an XForms implementation of the FormUrl Dialog.
28 class FormUrl : public FormCommand {
31 FormUrl(LyXView *, Dialogs *);
33 /// Pointer to the actual instantiation of the ButtonController.
34 virtual xformsBC & bc();
35 /// Connect signals etc. Set form's max size.
36 virtual void connect();
39 /// Update dialog before showing it
40 virtual void update();
41 /// Apply from dialog (modify or create inset)
43 /// Pointer to the actual instantiation of the xforms form
44 virtual FL_FORM * form() const;
46 FD_form_url * build_url();
47 /// Real GUI implementation.
48 boost::scoped_ptr<FD_form_url> dialog_;
49 /// The ButtonController
50 ButtonController<NoRepeatedApplyReadOnlyPolicy, xformsBC> bc_;
55 xformsBC & FormUrl::bc()