]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormRef.h
implement getLabelList
[lyx.git] / src / frontends / xforms / FormRef.h
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2000-2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file FormRef.h
11  * \author Angus Leeming, a.leeming@.ac.uk
12  */
13
14 #ifndef FORMREF_H
15 #define FORMREF_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "FormBase.h"
22
23 class ControlRef;
24 struct FD_form_ref;
25
26 /** This class provides an XForms implementation of the FormRef Dialog.
27  */
28 class FormRef : public FormCB<ControlRef, FormDB<FD_form_ref> > {
29 public:
30         ///
31         FormRef(ControlRef &);
32
33 private:
34         /// Set the Params variable for the Controller.
35         virtual void apply();
36         /// Build the dialog
37         virtual void build();
38         /// Filter the inputs on callback from xforms
39         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
40         /// Update dialog before showing it
41         virtual void update();
42
43         ///
44         void updateBrowser(std::vector<string> const &) const;
45
46         /// Fdesign generated method
47         FD_form_ref * build_ref();
48
49         ///
50         bool at_ref_;
51         /// 
52         std::vector<string> refs_;
53 };
54
55 #endif // FORMREF_H