]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.cpp
HTML output for InsetMathCancel.
[lyx.git] / src / frontends / qt4 / GuiBibtex.cpp
index 7109bea2b185433b8eb85c2ed300df861b28a8a5..92861442e72885192f1472bfe07dc852229012d4 100644 (file)
@@ -419,7 +419,7 @@ void GuiBibtex::applyView()
                        // use \nocite{*}
                        params_["btprint"] = from_ascii("btPrintAll");
                        break;
-               }               
+               }
        }
 }
 
@@ -435,7 +435,7 @@ QString GuiBibtex::browseBib(QString const & in_name) const
        QString const label1 = qt_("Documents|#o#O");
        QString const dir1 = toqstr(lyxrc.document_path);
        QStringList const filter(qt_("BibTeX Databases (*.bib)"));
-       return browseRelFile(in_name, bufferFilePath(),
+       return browseRelToParent(in_name, bufferFilePath(),
                qt_("Select a BibTeX database to add"), filter, false, label1, dir1);
 }
 
@@ -445,7 +445,7 @@ QString GuiBibtex::browseBst(QString const & in_name) const
        QString const label1 = qt_("Documents|#o#O");
        QString const dir1 = toqstr(lyxrc.document_path);
        QStringList const filter(qt_("BibTeX Styles (*.bst)"));
-       return browseRelFile(in_name, bufferFilePath(),
+       return browseRelToParent(in_name, bufferFilePath(),
                qt_("Select a BibTeX style"), filter, false, label1, dir1);
 }
 
@@ -510,10 +510,7 @@ QString GuiBibtex::styleFile() const
        case ENGINE_BASIC:
                defaultstyle = "plain";
                break;
-       case ENGINE_NATBIB_AUTHORYEAR:
-               defaultstyle = "plainnat";
-               break;
-       case ENGINE_NATBIB_NUMERICAL:
+       case ENGINE_NATBIB:
                defaultstyle = "plainnat";
                break;
        case ENGINE_JURABIB:
@@ -547,14 +544,14 @@ QString GuiBibtex::styleFile() const
 
 bool GuiBibtex::initialiseParams(std::string const & data)
 {
-       InsetCommand::string2params("bibtex", data, params_);
+       InsetCommand::string2params(data, params_);
        return true;
 }
 
 
 void GuiBibtex::dispatchParams()
 {
-       std::string const lfun = InsetCommand::params2string("bibtex", params_);
+       std::string const lfun = InsetCommand::params2string(params_);
        dispatch(FuncRequest(getLfun(), lfun));
 }