2008-04-20 15:00:11 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2008-04-20 16:34:30 +00:00
|
|
|
* \file Citation.h
|
2008-04-20 15:00:11 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Herbert Voß
|
2008-04-20 15:00:11 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2008-04-20 16:34:30 +00:00
|
|
|
#ifndef CITATION_H
|
|
|
|
#define CITATION_H
|
2008-04-20 15:00:11 +00:00
|
|
|
|
2012-03-01 00:41:30 +00:00
|
|
|
#include <string>
|
|
|
|
|
2008-04-20 15:00:11 +00:00
|
|
|
namespace lyx {
|
2011-12-03 22:15:11 +00:00
|
|
|
|
2008-04-20 15:00:11 +00:00
|
|
|
class Buffer;
|
|
|
|
|
|
|
|
|
2012-01-09 13:16:38 +00:00
|
|
|
enum CiteEngineType {
|
|
|
|
ENGINE_TYPE_AUTHORYEAR = 1,
|
|
|
|
ENGINE_TYPE_NUMERICAL = 2,
|
2013-05-16 14:00:54 +00:00
|
|
|
ENGINE_TYPE_DEFAULT = 3,
|
2012-01-09 13:16:38 +00:00
|
|
|
};
|
|
|
|
|
2008-04-20 15:00:11 +00:00
|
|
|
|
|
|
|
class CitationStyle
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
///
|
2012-03-01 00:41:30 +00:00
|
|
|
CitationStyle() : cmd("cite"), forceUpperCase(false), fullAuthorList(false),
|
|
|
|
textAfter(false), textBefore(false) {}
|
2008-04-20 15:00:11 +00:00
|
|
|
|
2012-03-01 00:41:30 +00:00
|
|
|
/// the LaTeX command
|
|
|
|
std::string cmd;
|
|
|
|
/// upper casing author prefixes (van -> Van)
|
2008-04-20 15:00:11 +00:00
|
|
|
bool forceUpperCase;
|
2012-03-01 00:41:30 +00:00
|
|
|
/// expanding the full author list
|
|
|
|
bool fullAuthorList;
|
|
|
|
/// supports text after the citation
|
|
|
|
bool textAfter;
|
|
|
|
/// supports text before the citation
|
|
|
|
bool textBefore;
|
2008-04-20 15:00:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif
|