2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
15 #include "DialogBase.h"
18 #include "support/utility.hpp"
22 class InsetCommandParams;
30 /** This class provides an XForms implementation of the FormUrl Dialog.
32 class FormUrl : public DialogBase, public noncopyable {
34 /**@name Constructors and Destructors */
37 FormUrl(LyXView *, Dialogs *);
42 /**@name Real per-instance Callback Methods */
44 static int WMHideCB(FL_FORM *, void *);
45 static void OKCB(FL_OBJECT *, long);
46 static void CancelCB(FL_OBJECT *, long);
50 /**@name Slot Methods */
52 /// Create the dialog if necessary, update it and display it.
53 void createInset( string const & );
55 void showInset( InsetUrl * );
64 /**@name Dialog internal methods */
71 FD_form_url * build_url();
72 /// Explicitly free the dialog.
76 /**@name Private Data */
78 /// Real GUI implementation.
79 FD_form_url * dialog_;
80 /** Which LyXFunc do we use?
81 We could modify Dialogs to have a visible LyXFunc* instead and
82 save a couple of bytes per dialog.
85 /** Which Dialogs do we belong to?
86 Used so we can get at the signals we have to connect to.
89 /// Update connection.
93 /// inset::hide connection.
100 InsetCommandParams * params;