2 * \file ControlCopyright.C
3 * Copyright 2000-2001 The LyX Team.
4 * See the file COPYING.
7 * \author Angus Leeming, a.leeming@.ac.uk
10 #ifndef CONTROLCOPYRIGHT_H
11 #define CONTROLCOPYRIGHT_H
17 #include "ControlDialogs.h"
19 /** A controller for Copyright dialogs.
21 class ControlCopyright : public ControlDialog<ControlConnectBI> {
24 ControlCopyright(LyXView &, Dialogs &);
27 string const getCopyright() const;
29 string const getLicence() const;
31 string const getDisclaimer() const;
35 virtual void apply() {}
38 /** This class instantiates and makes available the GUI-specific
39 ButtonController and View.
41 template <class GUIview, class GUIbc>
42 class GUICopyright : public ControlCopyright {
45 GUICopyright(LyXView &, Dialogs &);
47 virtual ButtonControllerBase & bc() { return bc_; }
49 virtual ViewBase & view() { return view_; }
53 ButtonController<OkCancelPolicy, GUIbc> bc_;
58 template <class GUIview, class GUIbc>
59 GUICopyright<GUIview, GUIbc>::GUICopyright(LyXView & lv, Dialogs & d)
60 : ControlCopyright(lv, d),
63 #endif // CONTROLCOPYRIGHT_H