#include "insets/InsetCommandParams.h"
+#include "BiblioInfo.h"
#include "Citation.h"
#include <QAbstractListModel>
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);
/// 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
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,
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.