]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCitation.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlCitation.h
index 18b0951ced1ad2d489d129b3f81c603bf5da3004..4bbb8979b80ae6bd04a6ef3608e7baf7fe2541fa 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
@@ -21,8 +22,7 @@
 #include "ControlCommand.h"
 #include "biblio.h" // biblio::InfoMap
 
-/** A controller for Citation dialogs. All citation-specific functionality
-    should go in here.
+/** A controller for Citation dialogs.
  */
 class ControlCitation : public ControlCommand
 {
@@ -33,6 +33,15 @@ public:
        /// Returns a reference to the map of stored keys
        biblio::InfoMap const & bibkeysInfo() const;
 
+       ///
+       bool usingNatbib() const;
+       /// Possible citations based on this key
+       std::vector<string> const getCiteStrings(string const & key) const;
+
+       /// available CiteStyle-s (depends on availability of Natbib
+       static std::vector<biblio::CiteStyle> const & getCiteStyles()
+               { return citeStyles_; }
+
 private:
        /// create the InfoMap of keys and data
        virtual void setDaughterParams();
@@ -41,6 +50,10 @@ private:
 
        /// The info associated with each key
        biblio::InfoMap bibkeysInfo_;
+
+       ///
+       static std::vector<biblio::CiteStyle> citeStyles_;
 };
 
+
 #endif // CONTROLCITATION_H