-bool LyXCiteEngine::isCompatible(string const & cename) const
-{
- // do we exclude it?
- if (find(excluded_engines_.begin(), excluded_engines_.end(), cename) !=
- excluded_engines_.end())
- return false;
-
- LyXCiteEngine const * const lm = theCiteEnginesList[cename];
- if (!lm)
- return true;
-
- // does it exclude us?
- vector<string> const excengs = lm->getExcludedEngines();
- if (find(excengs.begin(), excengs.end(), id_) != excengs.end())
- return false;
-
- return true;
-}
-
-
-bool LyXCiteEngine::areCompatible(string const & eng1, string const & eng2)
-{
- LyXCiteEngine const * const lm1 = theCiteEnginesList[eng1];
- if (lm1)
- return lm1->isCompatible(eng2);
- LyXCiteEngine const * const lm2 = theCiteEnginesList[eng2];
- if (lm2)
- return lm2->isCompatible(eng1);
- // Can't check it either way.
- return true;
-}
-
-