#define CITATION_H
#include "support/docstring.h"
+#include <map>
#include <string>
namespace lyx {
public:
///
CitationStyle() : name("cite"), cmd("cite"), forceUpperCase(false),
- hasStarredVersion(false), textAfter(false), textBefore(false) {}
+ hasStarredVersion(false), hasQualifiedList(false),
+ textAfter(false), textBefore(false) {}
/// the LyX name
std::string name;
bool forceUpperCase;
/// starred version (full author list by default)
bool hasStarredVersion;
+ /// allows for qualified citation lists (a Biblatex feature)
+ bool hasQualifiedList;
/// supports text after the citation
bool textAfter;
/// supports text before the citation
Export
};
///
- CiteItem() : forceUpperCase(false), Starred(false),
+ CiteItem() : forceUpperCase(false), Starred(false), isQualified(false),
context(CiteItem::Everywhere), textAfter(docstring()),
textBefore(docstring()), max_size(128), max_key_size(128),
richtext(false) {}
bool forceUpperCase;
/// is starred version (full author list by default)
bool Starred;
+ /// is a real qualified list
+ bool isQualified;
/// where this to be displayed?
CiteItem::CiteContext context;
/// text after the citation
docstring textAfter;
/// text before the citation
docstring textBefore;
+ /// Qualified lists's pre texts
+ std::map<docstring, docstring> pretexts;
+ ///
+ std::map<docstring, docstring> getPretexts() const { return pretexts; }
+ /// Qualified lists's post texts
+ std::map<docstring, docstring> posttexts;
+ ///
+ std::map<docstring, docstring> getPosttexts() const { return posttexts; }
/// the maximum display size as a label
size_t max_size;
/// the maximum size of the processed keys