]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBibtex.C
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormBibtex.C
index cfcb93ae93df6afa1560d09182ca2826b9efe2ff..3703e07f82708cf34b7ec67ba64724e708ce2668 100644 (file)
@@ -22,7 +22,6 @@
 #include "xformsBC.h"
 
 #include "support/filetools.h"
-#include "support/globbing.h"
 #include "support/lstrings.h"
 #include "support/lyxalgo.h"
 
@@ -128,11 +127,7 @@ ButtonPolicy::SMInput FormBibtex::input(FL_OBJECT * ob, long ob_value)
        if (ob == dialog_->button_database_browse) {
                // When browsing, take the first file only
                string const in_name = getString(dialog_->input_database);
-               FileFilterList const
-                       filter(_("*.bib| BibTeX Databases (*.bib)"));
-               string out_name =
-                       controller().browse("", _("Select Database"),
-                                           filter);
+               string out_name = controller().browseBib("");
                if (!out_name.empty()) {
                        // add the database to any existing ones
                        if (!in_name.empty())
@@ -143,10 +138,7 @@ ButtonPolicy::SMInput FormBibtex::input(FL_OBJECT * ob, long ob_value)
 
        } else if (ob == dialog_->button_style_browse) {
                string const in_name = getString(dialog_->input_style);
-               FileFilterList const
-                       filter(_("*.bst| BibTeX Styles (*.bst)"));
-               string const style = controller()
-                       .browse(in_name, _("Select BibTeX-Style"), filter);
+               string const style = controller().browseBst(in_name);
                if (!style.empty()) {
                        fl_set_input(dialog_->input_style, style.c_str());
                }