]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.C
remove CXX_WORKING_NAMESPACES
[lyx.git] / src / frontends / xforms / FormBrowser.C
1 /* FormBrowser.C
2  * (C) 2001 LyX Team
3  * John Levon, moz@compsoc.man.ac.uk
4  */
5
6 #include <config.h>
7
8 #include FORMS_H_LOCATION
9
10 #ifdef __GNUG__
11 #pragma implementation
12 #endif
13
14 #include "gettext.h"
15 #include "FormBrowser.h"
16 #include "form_browser.h"
17 #include "LyXView.h"
18 #include "Dialogs.h"
19 #include "lyxrc.h"
20 #include "buffer.h"
21
22 FormBrowser::FormBrowser(LyXView * lv, Dialogs * d, const string & name)
23         : FormBaseBD(lv, d, name)
24 {}
25
26
27 void FormBrowser::build()
28 {
29         dialog_.reset(build_browser());
30
31         // Workaround dumb xforms sizing bug
32         minw_ = form()->w;
33         minh_ = form()->h;
34
35         // Manage the close button
36         bc().setCancel(dialog_->button_close);
37         bc().refresh();
38 }
39
40
41 FL_FORM * FormBrowser::form() const
42 {
43         if (dialog_.get())
44                 return dialog_->form;
45         return 0;
46 }
47
48 void FormBrowser::update()
49 {}
50
51
52 bool FormBrowser::input(FL_OBJECT *, long)
53 {
54         update();
55         return true;
56 }