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"
22 /** A controller for Citation dialogs.
24 class ControlCitation : public ControlCommand {
27 ControlCitation(Dialog &);
30 virtual bool initialiseParams(std::string const & data);
32 virtual void clearParams();
34 /** Disconnect from the inset when the Apply button is pressed.
35 * Allows easy insertion of multiple citations.
37 virtual bool disconnectOnApply() const { return true; }
39 /// Returns a reference to the map of stored keys
40 biblio::InfoMap const & bibkeysInfo() const;
43 biblio::CiteEngine_enum getEngine() const;
45 /// Possible citations based on this key
46 std::vector<std::string> const getCiteStrings(std::string const & key) const;
48 /// available CiteStyle-s (depends on availability of Natbib/Jurabib)
49 static std::vector<biblio::CiteStyle> const & getCiteStyles() {
53 /// The info associated with each key
54 biblio::InfoMap bibkeysInfo_;
57 static std::vector<biblio::CiteStyle> citeStyles_;
60 } // namespace frontend
63 #endif // CONTROLCITATION_H