]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.h
fix reading the author field.
[lyx.git] / src / bufferparams.h
index c28025658afd2d0b496e73e6d969996b1d95d3e2..a42cf57776d073f97e89de6e83d3f3709589660a 100644 (file)
@@ -37,6 +37,27 @@ class VSpace;
 struct Language;
 
 
+namespace lyx {
+namespace biblio {
+
+enum CiteEngine {
+       ENGINE_BASIC,
+       ENGINE_NATBIB_AUTHORYEAR,
+       ENGINE_NATBIB_NUMERICAL,
+       ENGINE_JURABIB
+};
+
+class CiteEngine_enum {
+        CiteEngine val_;
+public:
+       CiteEngine_enum(CiteEngine val) : val_(val) {}
+        operator CiteEngine() const{ return val_; }
+};
+
+} // namespace biblio
+} // namespace lyx
+
+
 /** Buffer parameters.
  *  This class contains all the parameters for this a buffer uses. Some
  *  work needs to be done on this class to make it nice. Now everything
@@ -179,9 +200,9 @@ public:
        };
        AMS use_amsmath;
        ///
-       bool use_natbib;
+       lyx::biblio::CiteEngine cite_engine;
        ///
-       bool use_numerical_citations;
+       bool use_bibtopic;
        /// revision tracking for this buffer ?
        bool tracking_changes;
        /// Time ago we agreed that this was a buffer property [ale990407]
@@ -199,6 +220,8 @@ public:
        std::string const dvips_options() const;
        ///
        std::string const paperSizeName() const;
+       ///
+       std::string const babelCall(std::string const & lang_opts) const;
 
 private:
        /** Use the Pimpl idiom to hide those member variables that would otherwise