]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCitation.h
fix tooltips in toolbar
[lyx.git] / src / frontends / xforms / FormCitation.h
1 // -*- C++ -*-
2 /**
3  * \file xforms/FormCitation.h
4  * Copyright 2000-2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming, a.leeming@ic.ac.uk
8  */
9
10 #ifndef FORMCITATION_H
11 #define FORMCITATION_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "FormBase.h"
18 #include "biblio.h"
19
20 /** This class provides an XForms implementation of the Citation Dialog.
21  */
22 class ControlCitation;
23 struct FD_citation;
24
25 class FormCitation : public FormCB<ControlCitation, FormDB<FD_citation> > {
26 public:
27         ///
28         FormCitation(ControlCitation &, Dialogs &);
29 private:
30         ///
31         enum State {
32                 ///
33                 ON,
34                 ///
35                 OFF
36         };
37
38         /// Set the Params variable for the Controller.
39         virtual void apply();
40         /// Build the dialog.
41         virtual void build();
42         /// Hide the dialog.
43         virtual void hide();
44         /// Update dialog before/whilst showing it.
45         virtual void update();
46         /// Filter the inputs on callback from xforms
47         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
48
49         /// search for a citation
50         void findBiblio(biblio::Direction const dir);
51
52         ///
53         void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
54         ///
55         void setBibButtons(State) const;
56         ///
57         void setCiteButtons(State) const;
58
59         ///
60         std::vector<string> citekeys;
61         ///
62         std::vector<string> bibkeys;
63 };
64
65 #endif // FORMCITATION_H