]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormRef.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / FormRef.h
1 // -*- C++ -*-
2 /**
3  * \file 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
16 #include "FormDialogView.h"
17
18 class ControlRef;
19 struct FD_ref;
20
21 /** This class provides an XForms implementation of the FormRef Dialog.
22  */
23 class FormRef : public FormController<ControlRef, FormView<FD_ref> > {
24 public:
25         ///
26         FormRef(Dialog &);
27 private:
28         /// Set the Params variable for the Controller.
29         virtual void apply();
30         /// Build the dialog
31         virtual void build();
32         /// Filter the inputs on callback from xforms
33         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
34         /// Update dialog before showing it
35         virtual void update();
36
37         ///
38         void updateBrowser(std::vector<std::string> const &) const;
39
40         ///
41         void switch_go_button();
42
43         ///
44         bool at_ref_;
45         ///
46         std::vector<std::string> refs_;
47 };
48
49 #endif // FORMREF_H