4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "support/docstring.h"
23 ENGINE_TYPE_AUTHORYEAR = 1,
24 ENGINE_TYPE_NUMERICAL = 2,
25 ENGINE_TYPE_DEFAULT = 3,
33 CitationStyle() : name("cite"), cmd("cite"), forceUpperCase(false),
34 hasStarredVersion(false), hasQualifiedList(false),
35 textAfter(false), textBefore(false) {}
39 /// the LaTeX command (might differ from the LyX name)
41 /// Optional alternative description what the starred version does (for the GUI)
43 /// Optional tooltip for the starred version
44 std::string startooltip;
45 /// upper casing author prefixes (van -> Van)
47 /// starred version (full author list by default)
48 bool hasStarredVersion;
49 /// allows for qualified citation lists (a Biblatex feature)
50 bool hasQualifiedList;
51 /// supports text after the citation
53 /// supports text before the citation
59 * Class for storing information about a given citation item in a given context.
60 * This is used in the label and menu string generation process.
65 /// The context this citation is displayed
72 CiteItem() : forceUpperCase(false), Starred(false), isQualified(false),
73 context(CiteItem::Everywhere), textAfter(docstring()),
74 textBefore(docstring()), max_size(128), max_key_size(128),
76 /// requests upper casing author prefixes (van -> Van)
78 /// is starred version (full author list by default)
80 /// is a real qualified list
82 /// where this to be displayed?
83 CiteItem::CiteContext context;
84 /// text after the citation
86 /// text before the citation
89 typedef std::vector<std::pair<docstring, docstring>> QualifiedList;
90 /// Qualified lists's pre texts
91 QualifiedList pretexts;
93 QualifiedList getPretexts() const { return pretexts; }
94 /// Qualified lists's post texts
95 QualifiedList posttexts;
97 QualifiedList getPosttexts() const { return posttexts; }
98 /// the maximum display size as a label
100 /// the maximum size of the processed keys
101 /// (limited for performance reasons)
103 /// output richtext information?