]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormRef.h
ffcbe2c36811392eaa2a1f617e263beab5fa2be7
[lyx.git] / src / frontends / xforms / FormRef.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormRef.h
4  * Read the file COPYING
5  *
6  * \author Angus Leeming 
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #ifndef FORMREF_H
12 #define FORMREF_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19
20 class ControlRef;
21 struct FD_ref;
22
23 /** This class provides an XForms implementation of the FormRef Dialog.
24  */
25 class FormRef : public FormCB<ControlRef, FormDB<FD_ref> > {
26 public:
27         ///
28         FormRef();
29 private:
30         /// Set the Params variable for the Controller.
31         virtual void apply();
32         /// Build the dialog
33         virtual void build();
34         /// Filter the inputs on callback from xforms
35         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
36         /// Update dialog before showing it
37         virtual void update();
38
39         ///
40         void updateBrowser(std::vector<string> const &) const;
41
42         ///
43         bool at_ref_;
44         ///
45         std::vector<string> refs_;
46 };
47
48 #endif // FORMREF_H