]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormRef.h
Move LaTeX and VC logs to GUI-I on xforms
[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         ///
33         enum Goto {
34                 ///
35                 GOREF,
36                 ///
37                 GOBACK,
38                 ///
39                 GOFIRST
40         };
41
42         /// Disconnect signals. Also perform any necessary housekeeping.
43         virtual void disconnect();
44
45         /// Build the dialog
46         virtual void build();
47         /// Filter the input
48         virtual bool input(FL_OBJECT *, long);
49         /// Update dialog before showing it
50         virtual void update();
51         /// Not used but must be instantiated
52         virtual void apply();
53         /// Pointer to the actual instantiation of the xform's form
54         virtual FL_FORM * form() const;
55
56         ///
57         void updateBrowser(std::vector<string> const &) const;
58         ///
59         FD_form_ref * build_ref();
60
61         ///
62         Goto toggle;
63         /// 
64         std::vector<string> refs;
65
66         /// Real GUI implementation.
67         FD_form_ref * dialog_;
68 };
69
70 #endif