]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.h
Properly support the cite engines in the GUI
[lyx.git] / src / frontends / qt4 / GuiDocument.h
index 5bf1340fc935fc049b7af43c225ae59413b98bbc..e5aa4fa553adb8480ab43fd4d9f4ae2507b4515f 100644 (file)
@@ -41,6 +41,7 @@ namespace lyx {
 
 class BufferParams;
 class LayoutModuleList;
+class LyXModule;
 class TextClass;
 
 namespace frontend {
@@ -74,6 +75,8 @@ public:
        void updateFontsize(std::string const &, std::string const &);
        void updateFontlist();
        void updateDefaultFormat();
+       void updateCiteStyles(std::vector<std::string> const &,
+                             CiteEngineType const & sel = ENGINE_TYPE_AUTHORYEAR);
        void updateEngineType(std::string const &, CiteEngineType const &);
        void updatePagestyle(std::string const &, std::string const &);
        bool isChildIncluded(std::string const &);
@@ -81,6 +84,9 @@ public:
        ///
        BufferParams const & params() const { return bp_; }
 
+public Q_SLOTS:
+       void onBufferViewChanged();//override
+
 private Q_SLOTS:
        void updateNumbering();
        void change_adaptor();
@@ -109,6 +115,7 @@ private Q_SLOTS:
        void classChanged_adaptor();
        void languagePackageChanged(int);
        void biblioChanged();
+       void citeEngineChanged(int);
        void bibtexChanged(int);
        void setAuthorYear(bool);
        void setNumerical(bool);
@@ -217,6 +224,8 @@ private:
                std::string id;
                QString description;
        };
+       ///
+       static modInfoStruct modInfo(LyXModule const & mod);
        /// List of available modules
        std::list<modInfoStruct> const & getModuleInfo();
        /// Modules in use in current buffer
@@ -319,6 +328,7 @@ Q_SIGNALS:
 private:
        void validate();
        void convert();
+       void hideConvert();
 private Q_SLOTS:
        void textChanged();
        void validatePressed();