]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBrowser.C
No longer pass Controller & or Dialogs & to the View c-tors.
[lyx.git] / src / frontends / xforms / FormBrowser.C
1 /**
2  * \file FormBrowser.C
3  * Copyright 2001 The LyX Team.
4  * See the file COPYING.
5  *
6  * \author John Levon, moz@compsoc.man.ac.uk
7  */
8
9 #include <config.h>
10
11 #ifdef __GNUG__
12 #pragma implementation
13 #endif
14
15 #include "FormBrowser.h"
16 #include "forms/form_browser.h"
17 #include "xformsBC.h"
18
19 FormBrowser::FormBrowser(string const & t, bool allowResize)
20         : FormDB<FD_browser>(t, allowResize)
21 {}
22
23
24 void FormBrowser::build()
25 {
26         dialog_.reset(build_browser(this));
27
28         // Manage the close button
29         bc().setCancel(dialog_->button_close);
30 }