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"
25 ENGINE_TYPE_AUTHORYEAR = 1,
26 ENGINE_TYPE_NUMERICAL = 2,
27 ENGINE_TYPE_DEFAULT = 3,
35 CitationStyle() : name("cite"), cmd("cite"), forceUpperCase(false),
36 hasStarredVersion(false), hasQualifiedList(false),
37 textAfter(false), textBefore(false) {}
41 /// the LaTeX command (might differ from the LyX name)
43 /// Optional alternative description what the starred version does (for the GUI)
45 /// Optional tooltip for the starred version
46 std::string startooltip;
47 /// upper casing author prefixes (van -> Van)
49 /// starred version (full author list by default)
50 bool hasStarredVersion;
51 /// allows for qualified citation lists (a Biblatex feature)
52 bool hasQualifiedList;
53 /// supports text after the citation
55 /// supports text before the citation
61 * Class for storing information about a given citation item in a given context.
62 * This is used in the label and menu string generation process.
67 /// The context this citation is displayed
74 CiteItem() : forceUpperCase(false), Starred(false), isQualified(false),
75 context(CiteItem::Everywhere), textAfter(docstring()),
76 textBefore(docstring()), max_size(128), max_key_size(128),
78 /// requests upper casing author prefixes (van -> Van)
80 /// is starred version (full author list by default)
82 /// is a real qualified list
84 /// where this to be displayed?
85 CiteItem::CiteContext context;
86 /// text after the citation
88 /// text before the citation
90 /// Qualified lists's pre texts
91 std::map<docstring, docstring> pretexts;
93 std::map<docstring, docstring> getPretexts() const { return pretexts; }
94 /// Qualified lists's post texts
95 std::map<docstring, docstring> posttexts;
97 std::map<docstring, docstring> 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?