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