]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBibitem.h
Implemented controller-view split for FormBibtex.
[lyx.git] / src / frontends / xforms / FormBibitem.h
1 // -*- C++ -*-
2 /**
3  * \file FormBibitem.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 FORMBIBITEM_H
12 #define FORMBIBITEM_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "FormBase.h"
19
20 #include "form_bibitem.h"
21
22 class ControlBibitem;
23
24 /**
25  * For bibliography entry editing
26  */
27 class FormBibitem : public FormBase2<ControlBibitem, FD_form_bibitem> {
28 public:
29         ///
30         FormBibitem(ControlBibitem &);
31
32         // Functions accessible to the Controller.
33
34         /// Set the Params variable for the Controller.
35         virtual void apply();
36         /// Build the dialog.
37         virtual void build();
38         /// Update dialog before/whilst showing it.
39         virtual void update();
40
41 private:
42         /// Filter the inputs on callback from xforms
43         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
44
45         /// Type definition from the fdesign produced header file.
46         FD_form_bibitem * build_bibitem();
47 };
48
49 #endif // FORMBIBITEM_H