]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBrowser.C
get rid of broken_header.h and some unneeded tests
[lyx.git] / src / frontends / xforms / FormBrowser.C
index 551212a238179fa8c9927810e97622db4f151b7d..2cdacf7e74072aa440c211f6d26a39dfab93da09 100644 (file)
@@ -1,24 +1,27 @@
 /**
  * \file FormBrowser.C
- * See the file COPYING.
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author John Levon
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "FormBrowser.h"
 #include "forms/form_browser.h"
 #include "xformsBC.h"
 
-FormBrowser::FormBrowser(string const & t, bool allowResize)
-       : FormDB<FD_browser>(t, allowResize)
+using std::string;
+
+namespace lyx {
+namespace frontend {
+
+FormBrowser::FormBrowser(Dialog & parent,
+                        string const & title, bool allowResize)
+       : FormView<FD_browser>(parent, title, allowResize)
 {}
 
 
@@ -27,5 +30,8 @@ void FormBrowser::build()
        dialog_.reset(build_browser(this));
 
        // Manage the close button
-       bc().setCancel(dialog_->button_close);
+       bcview().setCancel(dialog_->button_close);
 }
+
+} // namespace frontend
+} // namespace lyx