]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.h
Compile fixes for DEC cxx, John's maths and keymap patches.
[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 <boost/smart_ptr.hpp>
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBaseDeprecated.h"
19
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         ///
29         FormBrowser(LyXView *, Dialogs *, const string &);
30 protected:
31         /// Update the dialog.
32         virtual void update();
33
34         /// Real GUI implementation.
35         boost::scoped_ptr<FD_form_browser> dialog_;
36         /// Pointer to the actual instantiation of the ButtonController.
37         virtual xformsBC & bc();
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         /// The ButtonController
49         ButtonController<OkCancelPolicy, xformsBC> bc_;
50 };
51
52
53 inline
54 xformsBC & FormBrowser::bc()
55 {
56         return bc_;
57 }
58 #endif