]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiBibtex.h
index 77fef6a21f939e3161d835ea3ff6843e507eda4d..9bac17bc450e00004a91fdeba778cb2d0933c99f 100644 (file)
@@ -5,6 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author John Levon
+ * \author Angus Leeming
  *
  * Full author contact details are available in file CREDITS.
  */
 #define GUIBIBTEX_H
 
 #include "GuiDialog.h"
-#include "ControlBibtex.h"
 #include "ButtonController.h"
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
+#include "support/docstring.h"
+
+#include <vector>
+
 namespace lyx {
+
+namespace support { class FileFilterList; }
+
 namespace frontend {
 
 class GuiBibtexAddDialog : public QDialog, public Ui::BibtexAddUi
@@ -32,12 +39,12 @@ public:
 };
 
 
-class GuiBibtexDialog : public GuiDialog, public Ui::BibtexUi
+class GuiBibtex : public GuiCommand, public Ui::BibtexUi
 {
        Q_OBJECT
 
 public:
-       GuiBibtexDialog(LyXView & lv);
+       GuiBibtex(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
@@ -46,22 +53,39 @@ private Q_SLOTS:
        void addPressed();
        void addDatabase();
        void deletePressed();
+       void upPressed();
+       void downPressed();
        void databaseChanged();
        void availableChanged();
        void bibEDChanged();
 
 private:
-       void closeEvent(QCloseEvent * e);
-
-private:
-       /// parent controller
-       ControlBibtex & controller() const;
        ///
-       virtual bool isValid();
+       bool isValid();
        /// Apply changes
-       virtual void applyView();
+       void applyView();
        /// update
-       virtual void update_contents();
+       void updateContents();
+
+       /// Browse for a .bib file
+       docstring const browseBib(docstring const & in_name) const;
+
+       /// Browse for a .bst file
+       docstring const browseBst(docstring const & in_name) const;
+
+       /// get the list of bst files
+       void getBibStyles(std::vector<std::string> & data) const;
+       /// get the list of bib files
+       void getBibFiles(std::vector<std::string> & data) const;
+       /// build filelists of all availabe bib/bst/cls/sty-files. done through
+       /// kpsewhich and an external script, saved in *Files.lst
+       void rescanBibStyles() const;
+       /// do we use bibtopic (for sectioned bibliography)?
+       bool usingBibtopic() const;
+       /// should we put the bibliography to the TOC?
+       bool bibtotoc() const;
+       /// which stylefile do we use?
+       std::string const getStylefile() const;
 
        ///
        GuiBibtexAddDialog * add_;