]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormRef.h
4716b9610d5bdfa5fc19068ef4d59e041e5fe19f
[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 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMREF_H
13 #define FORMREF_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormInset.h"
20 struct FD_form_ref;
21
22 /** This class provides an XForms implementation of the FormRef Dialog.
23  */
24 class FormRef : public FormCommand {
25 public:
26         ///
27         FormRef(LyXView *, Dialogs *);
28         ///
29         ~FormRef();
30         ///
31 private:
32         /// Disconnect signals. Also perform any necessary housekeeping.
33         virtual void disconnect();
34
35         /// Build the dialog
36         virtual void build();
37         /// Filter the input
38         virtual bool input(FL_OBJECT *, long);
39         /// Update dialog before showing it
40         virtual void update();
41         /// Not used but must be instantiated
42         virtual void apply();
43         /// Pointer to the actual instantiation of the xform's form
44         virtual FL_FORM * form() const;
45
46         ///
47         void updateBrowser(std::vector<string> const &) const;
48         ///
49         FD_form_ref * build_ref();
50
51         ///
52         bool at_ref;
53         /// 
54         std::vector<string> refs;
55
56         /// Real GUI implementation.
57         FD_form_ref * dialog_;
58 };
59
60 #endif