]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCitation.h
more type changes, some consts added
[lyx.git] / src / frontends / xforms / FormCitation.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 FORMCITATION_H
13 #define FORMCITATION_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "FormCommand.h"
20 struct FD_form_citation;
21
22 /** This class provides an XForms implementation of the FormCitation Dialog.
23  */
24 class FormCitation : public FormCommand {
25 public:
26         ///
27         FormCitation(LyXView *, Dialogs *);
28         ///
29         ~FormCitation();
30 private:
31         ///
32         enum State {
33                 ///
34                 DOWN,
35                 ///
36                 UP,
37                 ///
38                 DELETE,
39                 ///
40                 ADD,
41                 ///
42                 BIBBRSR,
43                 ///
44                 CITEBRSR,
45                 ///
46                 ON,
47                 ///
48                 OFF
49         };
50         /// Build the dialog
51         virtual void build();
52         /// Filter the inputs
53         virtual void input(long);
54         /// Update dialog before showing it
55         virtual void update();
56         /// Apply from dialog (modify or create inset)
57         virtual void apply();
58         /// delete derived class variables from hide()
59         virtual void clearStore();
60         /// Pointer to the actual instantiation of the xform's form
61         virtual FL_FORM * const form() const;
62
63         ///
64         void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
65         ///
66         void setBibButtons( State ) const;
67         ///
68         void setCiteButtons( State ) const;
69         ///
70         void setSize( int, bool ) const;
71         ///
72         FD_form_citation * build_citation();
73
74         /// Real GUI implementation.
75         FD_form_citation * dialog_;
76         ///
77         std::vector<string> citekeys;
78         ///
79         std::vector<string> bibkeys;
80         ///
81         std::vector<string> bibkeysInfo;
82 };
83
84 #endif