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
16 #include "ControlCommand.h"
17 #include "biblio.h" // biblio::InfoMap
19 /** A controller for Citation dialogs.
21 class ControlCitation : public ControlCommand {
24 ControlCitation(Dialog &);
27 virtual bool initialiseParams(string const & data);
29 virtual void clearParams();
31 /** Disconnect from the inset when the Apply button is pressed.
32 * Allows easy insertion of multiple citations.
34 virtual bool disconnectOnApply() const { return true; }
36 /// Returns a reference to the map of stored keys
37 biblio::InfoMap const & bibkeysInfo() const;
40 bool usingNatbib() const;
41 /// Possible citations based on this key
42 std::vector<string> const getCiteStrings(string const & key) const;
44 /// available CiteStyle-s (depends on availability of Natbib
45 static std::vector<biblio::CiteStyle> const & getCiteStyles() {
49 /// The info associated with each key
50 biblio::InfoMap bibkeysInfo_;
53 static std::vector<biblio::CiteStyle> citeStyles_;
57 #endif // CONTROLCITATION_H