]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlCitation.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlCitation.h
index 04be484e6fa139cb787c340bf5b2733c559090bf..c0d26e745656fbf6db680f313d05237f42efac41 100644 (file)
@@ -33,14 +33,31 @@ 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();
        /// 
        virtual void clearDaughterParams();
 
+       /** disconnect from the inset when the Apply button is pressed.
+        Allows easy insertion of multiple citations. */
+       virtual bool disconnectOnApply() { return true; }
+
        /// The info associated with each key
        biblio::InfoMap bibkeysInfo_;
+
+       ///
+       static std::vector<biblio::CiteStyle> citeStyles_;
 };
 
+
 #endif // CONTROLCITATION_H