]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormUrl.h
Angus's insetref-patch and a small fix.
[lyx.git] / src / frontends / xforms / FormUrl.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMURL_H
13 #define FORMURL_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormCommand.h"
20 struct FD_form_url;
21
22 /** This class provides an XForms implementation of the FormUrl Dialog.
23  */
24 class FormUrl : public FormCommand {
25 public:
26         /**@name Constructors and Destructors */
27         //@{
28         ///
29         FormUrl(LyXView *, Dialogs *);
30         ///
31         ~FormUrl();
32         //@}
33
34 private:
35         /// Build the dialog
36         virtual void build();
37         /// Not used but must be instantiated
38         virtual void input( long ) {}
39         /// Update dialog before showing it
40         virtual void update();
41         /// Apply from dialog (modify or create inset)
42         virtual void apply();
43         /// Pointer to the actual instantiation of the xform's form
44         virtual FL_FORM * const form() const;
45         ///
46         FD_form_url * build_url();
47
48         /// 
49         int minh, minw;
50         /// Real GUI implementation.
51         FD_form_url * dialog_;
52 };
53
54 #endif