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
22 #include "ButtonControllerBase.h"
23 #include "ControlCitation.h"
32 ControlCitation::ControlCitation(LyXView & lv, Dialogs & d)
33 : ControlCommand(lv, d, LFUN_CITATION_INSERT)
35 // These are permanent connections so we won't bother
36 // storing a copy because we won't be disconnecting.
37 d_.showCitation.connect(slot(this, &ControlCitation::showInset));
38 d_.createCitation.connect(slot(this, &ControlCitation::createInset));
42 void ControlCitation::clearDaughterParams()
48 void ControlCitation::setDaughterParams()
50 vector<pair<string,string> > blist = lv_.buffer()->getBibkeyList();
52 typedef std::map<string, string>::value_type InfoMapValue;
54 for (vector<pair<string,string> >::size_type i=0; i<blist.size(); ++i) {
55 bibkeysInfo_.insert(InfoMapValue(blist[i].first,
61 biblio::InfoMap const & ControlCitation::bibkeysInfo() const