]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.h
create and use a little setEnabled() xforms wrapper function.
[lyx.git] / src / frontends / xforms / FormBrowser.h
1 // -*- C++ -*-
2 /*
3  * FormBrowser.h
4  *
5  * (C) 2001 LyX Team
6  * John Levon, moz@compsoc.man.ac.uk
7  */
8
9 #ifndef FORMBROWSER_H
10 #define FORMBROWSER_H
11
12 #include "FormBase.h"
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 class LyXView;
19 class Dialogs;
20 struct FD_form_browser;
21
22 /**
23  * This class provides an XForms implementation of a read only
24  * text browser.
25  */
26 class FormBrowser : public FormBaseBD {
27 public:
28         FormBrowser(LyXView *, Dialogs *, const string &);
29         ~FormBrowser();
30
31 protected:
32         /// Update the dialog.
33         virtual void update();
34
35         /// Real GUI implementation.
36         FD_form_browser * dialog_;
37
38 private:
39         /// Pointer to the actual instantiation of the xforms form
40         virtual FL_FORM * form() const;
41         /// Filter the inputs on callback from xforms
42         virtual bool input(FL_OBJECT *, long);
43         /// Build the dialog
44         virtual void build();
45
46         /// generated build function
47         FD_form_browser * build_browser();
48 };
49
50 #endif