2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ======================================================
11 * \file ControlBibitem.h
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
15 #ifndef CONTROLBIBITEM_H
16 #define CONTROLBIBITEM_H
22 #include "ControlCommand.h"
23 #include "ButtonController.h"
26 /** A controller for Bibitem dialogs.
28 class ControlBibitem : public ControlCommand
32 ControlBibitem(LyXView &, Dialogs &);
35 /// Get changed parameters and Dispatch them to the kernel.
39 /** This class instantiates and makes available the GUI-specific
40 ButtonController and View.
42 template <class GUIview, class GUIbc>
43 class GUIBibitem : public ControlBibitem {
46 GUIBibitem(LyXView &, Dialogs &);
48 virtual ButtonControllerBase & bc() { return bc_; }
50 virtual ViewBase & view() { return view_; }
54 ButtonController<OkCancelReadOnlyPolicy, GUIbc> bc_;
59 template <class GUIview, class GUIbc>
60 GUIBibitem<GUIview, GUIbc>::GUIBibitem(LyXView & lv, Dialogs & d)
61 : ControlBibitem(lv, d),
65 #endif // CONTROLBIBITEM_H