]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormBibitem.h
controller-view split of FormLog and FormVCLog.
[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 John Levon, moz@compsoc.man.ac.uk
8  * \author Angus Leeming, a.leeming@.ac.uk
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 class ControlBibitem;
21 struct FD_form_bibitem;
22
23 /**
24  * For bibliography entry editing
25  */
26 class FormBibitem : public FormCB<ControlBibitem, FormDB<FD_form_bibitem> > {
27 public:
28         ///
29         FormBibitem(ControlBibitem &);
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         /// Type definition from the fdesign produced header file.
45         FD_form_bibitem * build_bibitem();
46 };
47
48 #endif // FORMBIBITEM_H