]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.h
pimpl not needed here
[lyx.git] / src / insets / InsetCitation.h
index 31b8140a5599e22ded38a6d9ae71acf96427ae82..9a2bcfb5a42791e3326195460ce7201b2d2e2c12 100644 (file)
@@ -15,6 +15,7 @@
 
 
 #include "InsetCommand.h"
+#include "InsetCode.h"
 
 #include "BiblioInfo.h"
 
@@ -49,8 +50,15 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       void replaceContents(std::string const & from, std::string const & to);
-
+       static CommandInfo const * findInfo(std::string const &);
+       //FIXME This is the locus of the design problem we have.
+       //It really ought to do what default_cite_command() does,
+       //but to do that it needs to know what CiteEngine we are
+       //using.
+       ///
+       static std::string defaultCommand() { return "cite"; };
+       ///
+       static bool isCompatibleCommand(std::string const & cmd);
 private:
        virtual Inset * clone() const
        {
@@ -63,7 +71,7 @@ private:
        class Cache {
        public:
                ///
-               Cache() : engine(biblio::ENGINE_BASIC), params("citation") {}
+               Cache() : engine(biblio::ENGINE_BASIC), params(CITE_CODE) {}
                ///
                biblio::CiteEngine engine;
                ///