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"
26 namespace support { class FileFilterList; }
30 class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
33 GuiBibtexAddDialog(QWidget * parent) : QDialog(parent)
35 Ui::BibtexAddUi::setupUi(this);
36 QDialog::setModal(true);
41 class GuiBibtex : public GuiCommand, public Ui::BibtexUi
46 GuiBibtex(GuiView & lv);
49 void change_adaptor();
51 void browseBibPressed();
57 void databaseChanged();
58 void availableChanged();
67 void updateContents();
69 /// Browse for a .bib file
70 QString browseBib(QString const & in_name) const;
72 /// Browse for a .bst file
73 QString browseBst(QString const & in_name) const;
75 /// get the list of bst files
76 void getBibStyles(std::vector<std::string> & data) const;
77 /// get the list of bib files
78 void getBibFiles(std::vector<std::string> & data) const;
79 /// build filelists of all availabe bib/bst/cls/sty-files. done through
80 /// kpsewhich and an external script, saved in *Files.lst
81 void rescanBibStyles() const;
82 /// do we use bibtopic (for sectioned bibliography)?
83 bool usingBibtopic() const;
84 /// should we put the bibliography to the TOC?
85 bool bibtotoc() const;
86 /// which stylefile do we use?
87 std::string const getStylefile() const;
90 GuiBibtexAddDialog * add_;
92 ButtonController add_bc_;
95 } // namespace frontend