#ifndef FORMREF_H
#define FORMREF_H
+#include <boost/smart_ptr.hpp>
+
#ifdef __GNUG__
#pragma interface
#endif
#include "FormInset.h"
+
struct FD_form_ref;
/** This class provides an XForms implementation of the FormRef Dialog.
public:
///
FormRef(LyXView *, Dialogs *);
- ///
- ~FormRef();
- ///
private:
- ///
- enum Goto {
- ///
- GOREF,
- ///
- GOBACK,
- ///
- GOFIRST
- };
-
+ /// Pointer to the actual instantiation of the ButtonController.
+ virtual xformsBC & bc();
/// Disconnect signals. Also perform any necessary housekeeping.
virtual void disconnect();
virtual void update();
/// Not used but must be instantiated
virtual void apply();
- /// Pointer to the actual instantiation of the xform's form
+ /// Pointer to the actual instantiation of the xforms form
virtual FL_FORM * form() const;
///
FD_form_ref * build_ref();
///
- Goto toggle;
+ bool at_ref;
///
std::vector<string> refs;
/// Real GUI implementation.
- FD_form_ref * dialog_;
+ boost::scoped_ptr<FD_form_ref> dialog_;
+ /// The ButtonController
+ ButtonController<NoRepeatedApplyPolicy, xformsBC> bc_;
};
+
+inline
+xformsBC & FormRef::bc()
+{
+ return bc_;
+}
#endif