1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file ControlCitation.C
11 * \author Angus Leeming <a.leeming@ic.ac.uk>
18 #pragma implementation
21 #include "ControlCitation.h"
30 ControlCitation::ControlCitation(LyXView & lv, Dialogs & d)
31 : ControlCommand(lv, d, LFUN_CITATION_INSERT)
33 // These are permanent connections so we won't bother
34 // storing a copy because we won't be disconnecting.
35 d_.showCitation.connect(slot(this, &ControlCitation::showInset));
36 d_.createCitation.connect(slot(this, &ControlCitation::createInset));
40 void ControlCitation::clearDaughterParams()
46 void ControlCitation::setDaughterParams()
48 vector<pair<string,string> > blist = lv_.buffer()->getBibkeyList();
50 typedef std::map<string, string>::value_type InfoMapValue;
52 for (vector<pair<string,string> >::size_type i=0; i<blist.size(); ++i) {
53 bibkeysInfo_.insert(InfoMapValue(blist[i].first,
59 biblio::InfoMap const & ControlCitation::bibkeysInfo() const