]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBibtex.h
controller-view split of FormLog and FormVCLog.
[lyx.git] / src / frontends / xforms / FormBibtex.h
1 // -*- C++ -*-
2 /**
3  * \file FormBibtex.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming
8  * \author John Levon
9  */
10
11 #ifndef FORMBIBTEX_H
12 #define FORMBIBTEX_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19
20 class ControlBibtex;
21 struct FD_form_bibtex;
22
23 /**
24  * For bibtex database setting
25  */
26 class FormBibtex : public FormCB<ControlBibtex, FormDB<FD_form_bibtex> > {
27 public:
28         ///
29         FormBibtex(ControlBibtex &);
30
31         // Functions accessible to the Controller.
32
33         /// Set the Params variable for the Controller.
34         virtual void apply();
35         /// Build the dialog.
36         virtual void build();
37         /// Update dialog before/whilst showing it.
38         virtual void update();
39         
40 private:
41         /// Filter the inputs on callback from xforms
42         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
43         ///
44         FD_form_bibtex * build_bibtex();
45 };
46
47 #endif // FORMBIBTEX_H