X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCitation.h;h=7f0503f575e42d285acc946b3813cb1063c192f6;hb=02e82157ec583c3900e359de86be79fac6512387;hp=2e0fc3d8bd96bf878e010072a8464e7bf619d182;hpb=dfdcc56cbaf77b67048cfd7e2ad877b7687f4888;p=lyx.git diff --git a/src/Citation.h b/src/Citation.h index 2e0fc3d8bd..7f0503f575 100644 --- a/src/Citation.h +++ b/src/Citation.h @@ -12,27 +12,17 @@ #ifndef CITATION_H #define CITATION_H +#include + namespace lyx { class Buffer; -enum CiteEngine { - ENGINE_BASIC, - ENGINE_NATBIB_AUTHORYEAR, - ENGINE_NATBIB_NUMERICAL, - ENGINE_JURABIB -}; -enum CiteStyle { - CITE, - CITET, - CITEP, - CITEALT, - CITEALP, - CITEAUTHOR, - CITEYEAR, - CITEYEARPAR, - NOCITE +enum CiteEngineType { + ENGINE_TYPE_AUTHORYEAR = 1, + ENGINE_TYPE_NUMERICAL = 2, + ENGINE_TYPE_DEFAULT = 3, }; @@ -40,14 +30,19 @@ class CitationStyle { public: /// - CitationStyle() : style(CITE), full(false), forceUpperCase(false) {} + CitationStyle() : cmd("cite"), forceUpperCase(false), fullAuthorList(false), + textAfter(false), textBefore(false) {} - /// - CiteStyle style; - /// - bool full; - /// + /// the LaTeX command + std::string cmd; + /// upper casing author prefixes (van -> Van) bool forceUpperCase; + /// expanding the full author list + bool fullAuthorList; + /// supports text after the citation + bool textAfter; + /// supports text before the citation + bool textBefore; }; } // namespace lyx