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
28 ControlCitation(LyXView &, Dialogs &);
30 /// Returns a reference to the map of stored keys
31 biblio::InfoMap const & bibkeysInfo() const;
34 bool usingNatbib() const;
35 /// Possible citations based on this key
36 std::vector<string> const getCiteStrings(string const & key) const;
38 /// available CiteStyle-s (depends on availability of Natbib
39 static std::vector<biblio::CiteStyle> const & getCiteStyles()
40 { return citeStyles_; }
43 /// create the InfoMap of keys and data
44 virtual void setDaughterParams();
46 virtual void clearDaughterParams();
48 /** disconnect from the inset when the Apply button is pressed.
49 Allows easy insertion of multiple citations. */
50 virtual bool disconnectOnApply() { return true; }
52 /// The info associated with each key
53 biblio::InfoMap bibkeysInfo_;
56 static std::vector<biblio::CiteStyle> citeStyles_;
60 #endif // CONTROLCITATION_H