2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include "DialogBase.h"
20 class InsetCommandParams;
24 /** This class provides an XForms implementation of the FormUrl Dialog.
26 class FormUrl : public DialogBase {
28 /**@name Constructors and Destructors */
31 FormUrl(LyXView *, Dialogs *);
36 /**@name Real per-instance Callback Methods */
38 static int WMHideCB(FL_FORM *, void *);
39 static void OKCB(FL_OBJECT *, long);
40 static void CancelCB(FL_OBJECT *, long);
45 FormUrl(FormUrl &) : DialogBase() {}
47 /**@name Slot Methods */
49 /// Create the dialog if necessary, update it and display it.
50 void createInset( string const & );
52 void showInset( InsetUrl * );
61 /**@name Dialog internal methods */
68 FD_form_url * build_url();
69 /// Explicitly free the dialog.
73 /**@name Private Data */
75 /// Real GUI implementation.
76 FD_form_url * dialog_;
77 /** Which LyXFunc do we use?
78 We could modify Dialogs to have a visible LyXFunc* instead and
79 save a couple of bytes per dialog.
82 /** Which Dialogs do we belong to?
83 Used so we can get at the signals we have to connect to.
86 /// Update connection.
90 /// inset::hide connection.
97 InsetCommandParams * params;