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