2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlBibitem.h
12 * \author John Levon, moz@compsoc.man.ac.uk
13 * \author Angus Leeming <a.leeming@ic.ac.uk>
16 #ifndef CONTROLBIBITEM_H
17 #define CONTROLBIBITEM_H
23 #include "ControlCommand.h"
24 #include "ButtonController.h"
27 /** A controller for Bibitem dialogs.
29 class ControlBibitem : public ControlCommand
33 ControlBibitem(LyXView &, Dialogs &);
36 /// Get changed parameters and Dispatch them to the kernel.
40 /** This class instantiates and makes available the GUI-specific
41 ButtonController and View.
43 template <class GUIview, class GUIbc>
44 class GUIBibitem : public ControlBibitem {
47 GUIBibitem(LyXView &, Dialogs &);
49 virtual ButtonControllerBase & bc() { return bc_; }
51 virtual ViewBase & view() { return view_; }
55 ButtonController<OkCancelReadOnlyPolicy, GUIbc> bc_;
60 template <class GUIview, class GUIbc>
61 GUIBibitem<GUIview, GUIbc>::GUIBibitem(LyXView & lv, Dialogs & d)
62 : ControlBibitem(lv, d),
66 #endif // CONTROLBIBITEM_H