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 "insets/insetcommand.h"
23 #include <gtk--/container.h>
24 #include <gtk--/checkbutton.h>
25 #include <gnome--/entry.h>
26 #include <gtk--/button.h>
28 /** This class provides an Gnome implementation of the FormUrl Dialog.
30 class FormUrl : public DialogBase {
32 /**@name Constructors and Destructors */
35 FormUrl(LyXView *, Dialogs *);
41 /// Slot launching dialog to (possibly) create a new inset
42 void createInset( string const & );
43 /// Slot launching dialog to an existing inset
44 void showInset( InsetCommand * const );
46 /// Update dialog before showing it
47 virtual void update() { }
48 virtual void updateSlot(bool = false);
49 /// Apply from dialog (modify or create inset)
51 /// Explicitly free the dialog.
53 /// Create the dialog if necessary, update it and display it.
58 /** Which LyXFunc do we use?
59 We could modify Dialogs to have a visible LyXFunc* instead and
60 save a couple of bytes per dialog.
63 /** Which Dialogs do we belong to?
64 Used so we can get at the signals we have to connect to.
67 /// pointer to the inset passed through showInset (if any)
68 InsetCommand * inset_;
69 /// the nitty-griity. What is modified and passed back
70 InsetCommandParams params;
71 /// Update connection.
75 /// inset::hide connection.
78 /// Real GUI implementation.
79 Gtk::Container * dialog_;
81 Gtk::CheckButton * html_type_;
87 Gtk::Button * b_cancel;