2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2001 The LyX Team.
9 * ======================================================
11 * \file ControlCitation.C
12 * \author Angus Leeming <a.leeming@ic.ac.uk>
19 #pragma implementation
23 #include "ButtonControllerBase.h"
24 #include "ControlCitation.h"
33 ControlCitation::ControlCitation(LyXView & lv, Dialogs & d)
34 : ControlCommand(lv, d, LFUN_CITATION_INSERT)
36 // These are permanent connections so we won't bother
37 // storing a copy because we won't be disconnecting.
38 d_.showCitation.connect(slot(this, &ControlCitation::showInset));
39 d_.createCitation.connect(slot(this, &ControlCitation::createInset));
43 void ControlCitation::clearDaughterParams()
49 void ControlCitation::setDaughterParams()
51 vector<pair<string,string> > blist = lv_.buffer()->getBibkeyList();
53 typedef std::map<string, string>::value_type InfoMapValue;
55 for (vector<pair<string,string> >::size_type i=0; i<blist.size(); ++i) {
56 bibkeysInfo_.insert(InfoMapValue(blist[i].first,
62 biblio::InfoMap const & ControlCitation::bibkeysInfo() const