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