3 * \file ControlCitation.h
4 * Read the file COPYING
6 * \author Angus Leeming
8 * Full author contact details are available in file CREDITS
11 #ifndef CONTROLCITATION_H
12 #define CONTROLCITATION_H
18 #include "ControlCommand.h"
19 #include "biblio.h" // biblio::InfoMap
21 /** A controller for Citation dialogs.
23 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()
39 { return citeStyles_; }
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