]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormUrl.h
Disable various buttons when buffer is read only
[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-2001 The LyX Team.
8  *
9  * ======================================================
10  *
11  * \file FormUrl.h
12  * \author Angus Leeming, a.leeming@.ac.uk
13  */
14
15 #ifndef FORMURL_H
16 #define FORMURL_H
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 #include "FormBase.h"
23
24 class ControlUrl;
25 struct FD_form_url;
26
27 /** This class provides an XForms implementation of the Url Dialog.
28  */
29 class FormUrl : public FormCB<ControlUrl, FormDB<FD_form_url> > {
30 public:
31         ///
32         FormUrl(ControlUrl &);
33
34 private:
35         /// Apply from dialog (modify or create inset)
36         virtual void apply();
37         /// Build the dialog
38         virtual void build();
39         /// Update dialog before showing it
40         virtual void update();
41         /// Filter the inputs on callback from xforms
42         FD_form_url * build_url();
43 };
44
45 #endif // FORMURL_H