]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCitation.h
Some improvements to the graphics dialog
[lyx.git] / src / frontends / qt4 / GuiCitation.h
index db88ca9d443b3d1d37a0814e526220b8b7d43e22..4d85c0315ae242de88656a046503284b9112318b 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "insets/InsetCommandParams.h"
 
+#include "BiblioInfo.h"
 #include "Citation.h"
 
 #include <QAbstractListModel>
@@ -78,7 +79,7 @@ private:
        void clearParams();
        void dispatchParams();
        bool isBufferDependent() const { return true; }
-       void saveSession() const;
+       void saveSession(QSettings & settings) const;
        void restoreSession();
        /** Disconnect from the inset when the Apply button is pressed.
         *  Allows easy insertion of multiple citations.
@@ -141,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,
@@ -180,10 +182,7 @@ private:
        QAction * instant_;
 
        /// last used citation style
-       int style_;
-       /// last set value for literal
-       /// this is used only for new citations
-       bool literal_;
+       QString style_;
        ///
        GuiSelectionManager * selectionManager;
        /// available keys.