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