biblioModule->bibtopicCB->setEnabled(!biblatex);
// These are only useful with Biblatex
- biblioModule->citePackageOptionsLE->setEnabled(biblatex);
- biblioModule->citePackageOptionsL->setEnabled(biblatex);
biblioModule->biblatexBbxCO->setEnabled(biblatex);
biblioModule->biblatexBbxLA->setEnabled(biblatex);
biblioModule->biblatexCbxCO->setEnabled(biblatex);
biblioModule->resetBbxPB->setEnabled(biblatex);
biblioModule->resetCbxPB->setEnabled(biblatex);
biblioModule->matchBbxPB->setEnabled(biblatex);
+
+ // These are useful with biblatex, jurabib and natbib
+ QString const engine =
+ biblioModule->citeEngineCO->itemData(
+ biblioModule->citeEngineCO->currentIndex()).toString();
+ LyXCiteEngine const * ce = theCiteEnginesList[fromqstr(engine)];
+
+ bool const citepack = ce->requires("biblatex.sty") || ce->requires("jurabib.sty")
+ || ce->requires("natbib.sty");
+ biblioModule->citePackageOptionsLE->setEnabled(citepack);
+ biblioModule->citePackageOptionsL->setEnabled(citepack);
}
{
QString const bibstyle = toqstr(style);
biblioModule->defaultBiblioCO->clear();
- biblioModule->biblatexBbxCO->clear();
- biblioModule->biblatexCbxCO->clear();
int item_nr = -1;
if (isBiblatex()) {
if (which != "cbx") {
// First the bbx styles
+ biblioModule->biblatexBbxCO->clear();
QStringList str = texFileList("bbxFiles.lst");
// test whether we have a valid list, otherwise run rescan
if (str.isEmpty()) {
if (which != "bbx") {
// now the cbx styles
+ biblioModule->biblatexCbxCO->clear();
QStringList str = texFileList("cbxFiles.lst");
// test whether we have a valid list, otherwise run rescan
if (str.isEmpty()) {
biblioModule->biblatexCbxCO->clearEditText();
}
} else {// BibTeX
+ biblioModule->biblatexBbxCO->clear();
+ biblioModule->biblatexCbxCO->clear();
QStringList str = texFileList("bstFiles.lst");
// test whether we have a valid list, otherwise run rescan
if (str.isEmpty()) {