2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
19 #include "DialogBase.h"
21 #include "boost/utility.hpp"
22 #include "insets/insetcommand.h"
24 #include <gtk--/container.h>
25 #include <gtk--/checkbutton.h>
26 #include <gnome--/entry.h>
27 #include <gtk--/button.h>
29 /** This class provides an Gnome implementation of the FormUrl Dialog.
31 class FormUrl : public DialogBase, public noncopyable {
33 /**@name Constructors and Destructors */
36 FormUrl(LyXView *, Dialogs *);
42 /// Slot launching dialog to (possibly) create a new inset
43 void createInset( string const & );
44 /// Slot launching dialog to an existing inset
45 void showInset( InsetCommand * const );
47 /// Update dialog before showing it
48 virtual void update() { }
49 virtual void updateSlot(bool = false);
50 /// Apply from dialog (modify or create inset)
52 /// Explicitly free the dialog.
54 /// Create the dialog if necessary, update it and display it.
59 /** Which LyXFunc do we use?
60 We could modify Dialogs to have a visible LyXFunc* instead and
61 save a couple of bytes per dialog.
64 /** Which Dialogs do we belong to?
65 Used so we can get at the signals we have to connect to.
68 /// pointer to the inset passed through showInset (if any)
69 InsetCommand * inset_;
70 /// the nitty-griity. What is modified and passed back
71 InsetCommandParams params;
72 /// Update connection.
76 /// inset::hide connection.
79 /// Real GUI implementation.
80 Gtk::Container * dialog_;
82 Gtk::CheckButton * html_type_;
88 Gtk::Button * b_cancel;