3 * \file ControlCitation.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS
12 #ifndef CONTROLCITATION_H
13 #define CONTROLCITATION_H
19 #include "ControlCommand.h"
20 #include "biblio.h" // biblio::InfoMap
22 /** A controller for Citation dialogs.
24 class ControlCitation : public ControlCommand {
27 ControlCitation(LyXView &, Dialogs &);
29 /// Returns a reference to the map of stored keys
30 biblio::InfoMap const & bibkeysInfo() const;
33 bool usingNatbib() const;
34 /// Possible citations based on this key
35 std::vector<string> const getCiteStrings(string const & key) const;
37 /// available CiteStyle-s (depends on availability of Natbib
38 static std::vector<biblio::CiteStyle> const & getCiteStyles() {
42 /// create the InfoMap of keys and data
43 virtual void setDaughterParams();
45 virtual void clearDaughterParams();
47 /** disconnect from the inset when the Apply button is pressed.
48 Allows easy insertion of multiple citations. */
49 virtual bool disconnectOnApply() { return true; }
51 /// The info associated with each key
52 biblio::InfoMap bibkeysInfo_;
55 static std::vector<biblio::CiteStyle> citeStyles_;
59 #endif // CONTROLCITATION_H