]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBrowser.h
Yet more dialog tweaking from Rob.
[lyx.git] / src / frontends / xforms / FormBrowser.h
index 556fc5edfbb3b29b8abc8b4afdb1e066776ade73..5dcc829f7038f1d8e5d53096921415cb29ed4bab 100644 (file)
@@ -1,61 +1,37 @@
 // -*- C++ -*-
-/*
- * FormBrowser.h
+/**
+ * \file FormBrowser.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author John Levon
+ * \author Angus Leeming 
  *
- * (C) 2001 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef FORMBROWSER_H
 #define FORMBROWSER_H
 
-#include <boost/smart_ptr.hpp>
-
-#include "FormBaseDeprecated.h"
-#include "xformsBC.h"
-
 #ifdef __GNUG__
 #pragma interface
 #endif
 
-class LyXView;
-class Dialogs;
-struct FD_form_browser;
+#include "FormBase.h"
 
 /**
  * This class provides an XForms implementation of a read only
  * text browser.
  */
-class FormBrowser : public FormBaseBD {
+struct FD_browser;
+
+class FormBrowser : public FormDB<FD_browser> {
 public:
        ///
-       FormBrowser(LyXView *, Dialogs *, const string &);
-protected:
-       /// Update the dialog.
-       virtual void update();
-
-       /// Real GUI implementation.
-       boost::scoped_ptr<FD_form_browser> dialog_;
-       /// Pointer to the actual instantiation of the ButtonController.
-       virtual xformsBC & bc();
+       FormBrowser(string const &, bool allowResize = true);
 private:
-       /// Pointer to the actual instantiation of the xforms form
-       virtual FL_FORM * form() const;
-       /// Filter the inputs on callback from xforms
-       virtual bool input(FL_OBJECT *, long);
-       /// Build the dialog
+       /// Build the dialog.
        virtual void build();
-
-       /// generated build function
-       FD_form_browser * build_browser();
-       /// The ButtonController
-       ButtonController<OkCancelPolicy, xformsBC> bc_;
 };
 
-
-inline
-xformsBC & FormBrowser::bc()
-{
-       return bc_;
-}
-#endif
+#endif // FORMBROWSER_H