]> git.lyx.org Git - lyx.git/blobdiff - src/Citation.h
Add LFUN_SERVER_GET_STATISTICS command
[lyx.git] / src / Citation.h
index 1eb4de8ed0b6781360c3206c176bc3499e6d6ed7..7f0503f575e42d285acc946b3813cb1063c192f6 100644 (file)
 #ifndef CITATION_H
 #define CITATION_H
 
+#include <string>
+
 namespace lyx {
 
 class Buffer;
 
-enum CiteEngine {
-       ENGINE_BASIC,
-       ENGINE_NATBIB,
-       ENGINE_JURABIB
-};
 
 enum CiteEngineType {
        ENGINE_TYPE_AUTHORYEAR = 1,
        ENGINE_TYPE_NUMERICAL = 2,
-};
-
-enum CiteStyle {
-       CITE,
-       CITET,
-       CITEP,
-       CITEALT,
-       CITEALP,
-       CITEAUTHOR,
-       CITEYEAR,
-       CITEYEARPAR,
-       NOCITE
+       ENGINE_TYPE_DEFAULT = 3,
 };
 
 
@@ -44,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