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"
25 class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
28 GuiBibtexAddDialog(QWidget * parent) : QDialog(parent)
30 Ui::BibtexAddUi::setupUi(this);
31 QDialog::setModal(true);
36 class GuiBibtex : public GuiCommand, public Ui::BibtexUi
41 explicit GuiBibtex(GuiView & lv);
44 void change_adaptor();
46 void browseBibPressed();
52 void databaseChanged();
53 void availableChanged();
62 void updateContents();
64 /// Browse for a .bib file
65 QString browseBib(QString const & in_name) const;
66 /// Browse for a .bst file
67 QString browseBst(QString const & in_name) const;
68 /// get the list of bst files
69 QStringList bibStyles() const;
70 /// get the list of bib files
71 QStringList bibFiles() const;
72 /// build filelists of all availabe bib/bst/cls/sty-files. done through
73 /// kpsewhich and an external script, saved in *Files.lst
74 void rescanBibStyles() const;
75 /// do we use bibtopic (for sectioned bibliography)?
76 bool usingBibtopic() const;
77 /// should we put the bibliography to the TOC?
78 bool bibtotoc() const;
79 /// which stylefile do we use?
80 QString styleFile() const;
83 GuiBibtexAddDialog * add_;
85 ButtonController add_bc_;
88 } // namespace frontend