2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlBibtex.h
12 * \author John Levon, moz@compsoc.man.ac.uk
13 * \author Angus Leeming <a.leeming@ic.ac.uk>
16 #ifndef CONTROLBIBTEX_H
17 #define CONTROLBIBTEX_H
23 #include "ControlCommand.h"
25 /** A controller for Bibtex dialogs.
27 class ControlBibtex : public ControlCommand
31 ControlBibtex(LyXView &, Dialogs &);
34 /// Get changed parameters and Dispatch them to the kernel.
38 /** This class instantiates and makes available the GUI-specific
39 ButtonController and View.
41 template <class GUIview, class GUIbc>
42 class GUIBibtex : public ControlBibtex {
45 GUIBibtex(LyXView &, Dialogs &);
47 virtual ButtonControllerBase & bc() { return bc_; }
49 virtual ViewBase & view() { return view_; }
53 ButtonController<OkCancelReadOnlyPolicy, GUIbc> bc_;
58 template <class GUIview, class GUIbc>
59 GUIBibtex<GUIview, GUIbc>::GUIBibtex(LyXView & lv, Dialogs & d)
60 : ControlBibtex(lv, d),
64 #endif // CONTROLBIBTEX_H