]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.C
Flatten the ButtonController tree by splitting it into a Controller and
[lyx.git] / src / frontends / xforms / FormBrowser.C
1 /**
2  * \file FormBrowser.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13
14 #include "FormBrowser.h"
15 #include "forms/form_browser.h"
16 #include "xformsBC.h"
17
18 FormBrowser::FormBrowser(string const & t, bool allowResize)
19         : FormDB<FD_browser>(t, allowResize)
20 {}
21
22
23 void FormBrowser::build()
24 {
25         dialog_.reset(build_browser(this));
26
27         // Manage the close button
28         bcview().setCancel(dialog_->button_close);
29 }