4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
16 #include "GuiDialog.h"
17 #include "ButtonController.h"
18 #include "ui_BibtexUi.h"
19 #include "ui_BibtexAddUi.h"
21 #include "support/docstring.h"
27 namespace support { class FileFilterList; }
31 class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
34 GuiBibtexAddDialog(QWidget * parent) : QDialog(parent)
36 Ui::BibtexAddUi::setupUi(this);
37 QDialog::setModal(true);
42 class GuiBibtex : public GuiCommand, public Ui::BibtexUi
47 GuiBibtex(GuiView & lv);
50 void change_adaptor();
52 void browseBibPressed();
58 void databaseChanged();
59 void availableChanged();
68 void updateContents();
70 /// Browse for a .bib file
71 docstring const browseBib(docstring const & in_name) const;
73 /// Browse for a .bst file
74 docstring const browseBst(docstring const & in_name) const;
76 /// get the list of bst files
77 void getBibStyles(std::vector<std::string> & data) const;
78 /// get the list of bib files
79 void getBibFiles(std::vector<std::string> & data) const;
80 /// build filelists of all availabe bib/bst/cls/sty-files. done through
81 /// kpsewhich and an external script, saved in *Files.lst
82 void rescanBibStyles() const;
83 /// do we use bibtopic (for sectioned bibliography)?
84 bool usingBibtopic() const;
85 /// should we put the bibliography to the TOC?
86 bool bibtotoc() const;
87 /// which stylefile do we use?
88 std::string const getStylefile() const;
91 GuiBibtexAddDialog * add_;
93 ButtonController add_bc_;
96 } // namespace frontend