]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBibtex.h
Mention style-dependency of of features in the tooltips, part 2
[lyx.git] / src / frontends / qt4 / GuiBibtex.h
index 1234703183cf5ba033167c74df73b65afa08d4a3..2ffdbe6705622a4db9d1b06b3c63bdadebd6223e 100644 (file)
 #ifndef GUIBIBTEX_H
 #define GUIBIBTEX_H
 
-#include "GuiCommand.h"
+#include "GuiDialog.h"
 #include "ButtonController.h"
 #include "ui_BibtexUi.h"
 #include "ui_BibtexAddUi.h"
 
+#include "insets/InsetCommandParams.h"
+
 
 namespace lyx {
 namespace frontend {
@@ -33,7 +35,7 @@ public:
 };
 
 
-class GuiBibtex : public GuiCommand, public Ui::BibtexUi
+class GuiBibtex : public GuiDialog, public Ui::BibtexUi
 {
        Q_OBJECT
 
@@ -52,6 +54,7 @@ private Q_SLOTS:
        void databaseChanged();
        void availableChanged();
        void bibEDChanged();
+       void rescanClicked();
 
 private:
        ///
@@ -76,9 +79,23 @@ private:
        bool usingBibtopic() const;
        /// should we put the bibliography to the TOC?
        bool bibtotoc() const;
+       /// do we use biblatex?
+       bool usingBiblatex() const;
        /// which stylefile do we use?
        QString styleFile() const;
 
+       ///
+       bool initialiseParams(std::string const & data);
+       /// clean-up on hide.
+       void clearParams() { params_.clear(); }
+       /// clean-up on hide.
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
+
+private:
+       ///
+       InsetCommandParams params_;
        ///
        GuiBibtexAddDialog * add_;
        ///