]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCitation.h
GuiBibtex: Use appropriate title when using Biblatex
[lyx.git] / src / frontends / qt4 / GuiCitation.h
index 2fa436910586664f3b359ec7f25f3458f8e92e4b..5f093cc21d6b905ec7f34f00fda2ac91d493d842 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "insets/InsetCommandParams.h"
 
+#include "BiblioInfo.h"
 #include "Citation.h"
 
 #include <QAbstractListModel>
@@ -44,14 +45,13 @@ class GuiCitation : public DialogView, public Ui::CitationUi
 public:
        ///
        GuiCitation(GuiView & lv);
-       ///
-       ~GuiCitation();
 
 private Q_SLOTS:
        void on_okPB_clicked();
        void on_cancelPB_clicked();
        void on_restorePB_clicked();
        void on_applyPB_clicked();
+       void on_literalCB_clicked();
        void filterPressed();
        void filterChanged(const QString & text);
        void on_fieldsCO_currentIndexChanged(int index);
@@ -107,7 +107,7 @@ private:
        /// set the styles combo
        void updateStyles(BiblioInfo const & bi);
        /// set the formatting widgets
-       void updateFormatting(CitationStyle currentStyle);
+       void updateFormatting(CitationStyle const & currentStyle);
        ///
        void updateControls(BiblioInfo const & bi);
        /// Set the appropriate hinting text on the filter bar
@@ -142,8 +142,9 @@ private:
                bool reset = false //< whether to reset and search all keys
                );
 
-       /// List of example cite strings
-       QStringList citationStyles(BiblioInfo const & bi, size_t max_size);
+       /// List of example cite strings and their correlating lyx name
+       BiblioInfo::CiteStringMap citationStyles(BiblioInfo const & bi,
+                                                               size_t max_size);
 
        /// Set the Params variable for the Controller.
        void applyParams(int const choice, bool const full, bool const force,
@@ -181,7 +182,10 @@ private:
        QAction * instant_;
 
        /// last used citation style
-       int style_;
+       QString style_;
+       /// last set value for literal
+       /// this is used only for new citations
+       bool literal_;
        ///
        GuiSelectionManager * selectionManager;
        /// available keys.