]> git.lyx.org Git - lyx.git/blobdiff - src/bufferparams.h
Add margin to paragraph dialog.
[lyx.git] / src / bufferparams.h
index c05af76d54b70525635be5d6e8db8ef9bb0404d6..720526e9bcb7b3bc7c96d69d8e1305f02f7e1427 100644 (file)
@@ -23,6 +23,8 @@
 #include "support/copied_ptr.h"
 #include "support/types.h"
 
+#include "frontends/controllers/biblio.h"
+
 #include <vector>
 
 
@@ -40,25 +42,6 @@ class VSpace;
 class Language;
 
 
-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
-
-
 /** 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
@@ -240,8 +223,6 @@ public:
        /// Whether and how to load esint
        Package use_esint;
        ///
-       biblio::CiteEngine cite_engine;
-       ///
        bool use_bibtopic;
        /// revision tracking for this buffer ?
        bool trackChanges;
@@ -277,6 +258,11 @@ public:
                                     int const & sfscale, int const & ttscale) const;
        /// path of the current buffer
        std::string filepath;
+       /// get the appropriate cite engine (natbib handling)
+       biblio::CiteEngine getEngine() const;
+
+       ///
+       void setCiteEngine(biblio::CiteEngine const);
 
 private:
        /** Use the Pimpl idiom to hide those member variables that would otherwise
@@ -289,6 +275,9 @@ private:
                static void destroy(Impl *);
        };
        support::copied_ptr<Impl, MemoryTraits> pimpl_;
+
+       ///
+       biblio::CiteEngine cite_engine_;
 };
 
 } // namespace lyx