+2001-03-29 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * ControlCitation.C (bibkeysInfo): removed Assert.
+
+ * ControlCopyright.h: moved GUICopyright into GUI.h
+
+ * GUI.h: see above.
+
2001-03-28 Angus Leeming <a.leeming@ic.ac.uk>
* ControlInset.h (clearDaughterParams): is empty by default, not pure.
biblio::InfoMap const & ControlCitation::bibkeysInfo() const
{
- Assert(!bibkeysInfo_.empty());
return bibkeysInfo_;
}
virtual void apply() {}
};
-/** This class instantiates and makes available the GUI-specific
- ButtonController and View.
- */
-template <class GUIview, class GUIbc>
-class GUICopyright : public ControlCopyright {
-public:
- ///
- GUICopyright(LyXView &, Dialogs &);
- ///
- virtual ButtonControllerBase & bc() { return bc_; }
- ///
- virtual ViewBase & view() { return view_; }
-
-private:
- ///
- ButtonController<OkCancelPolicy, GUIbc> bc_;
- ///
- GUIview view_;
-};
-
-template <class GUIview, class GUIbc>
-GUICopyright<GUIview, GUIbc>::GUICopyright(LyXView & lv, Dialogs & d)
- : ControlCopyright(lv, d),
- view_(*this)
-{}
#endif // CONTROLCOPYRIGHT_H
};
+/** Specialization for Copyright dialog
+ */
+class ControlCopyright;
+
+template <class GUIview, class GUIbc>
+class GUICopyright :
+ public GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc> {
+public:
+ ///
+ GUICopyright(LyXView & lv, Dialogs & d)
+ : GUI<ControlCopyright, GUIview, OkCancelPolicy, GUIbc>(lv, d) {}
+};
+
+
/** Specialization for Credits dialog
*/
class ControlCredits;
{
vector<string> bibkeys;
-
typedef std::map<string, string>::value_type InfoMapValue;
for (InfoMap::const_iterator it = map.begin(); it != map.end(); ++it) {