X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCitation.h;h=7f0503f575e42d285acc946b3813cb1063c192f6;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=23b1438bc81a635cd3848343404b8a42c78ff48f;hpb=b35b731fbfbf5b614c0bd3baf5bc65fe7ff6f8d9;p=lyx.git diff --git a/src/Citation.h b/src/Citation.h index 23b1438bc8..7f0503f575 100644 --- a/src/Citation.h +++ b/src/Citation.h @@ -1,38 +1,28 @@ // -*- C++ -*- /** - * \file BiblioCode.h + * \file Citation.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Herbert Voß + * \author Herbert Voß * * Full author contact details are available in file CREDITS. */ -#ifndef BIBLIOCODE_H -#define BIBLIOCODE_H +#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, - NOCITE, - CITET, - CITEP, - CITEALT, - CITEALP, - CITEAUTHOR, - CITEYEAR, - CITEYEARPAR +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