#include "support/copied_ptr.h"
#include "support/types.h"
+#include "frontends/controllers/biblio.h"
+
#include <vector>
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
BranchList const & branchlist() const;
/**
* The input encoding for LaTeX. This can be one of
- * - auto: find out the input encoding from the used languages
- * - default: Don't load the inputenc package and hope that it will
- * work (unlikely). The encoding is an unspecified 8bit encoding,
- * the interpretation is up to the LaTeX compiler. Because we need
- * a rule how to create this from our internal UCS4 encoded
- * document contents we treat this as latin1 internally.
+ * - \c auto: find out the input encoding from the used languages
+ * - \c default: ditto
* - any encoding supported by the inputenc package
* The encoding of the LyX file is always utf8 and has nothing to
* do with this setting.
+ * The difference between \c auto and \c default is that \c auto also
+ * causes loading of the inputenc package, while \c default does not.
+ * \c default will not work unless the user takes additional measures
+ * (such as using special environments like the CJK environment from
+ * CJK.sty).
+ * \c default can be seen as an unspecified 8bit encoding, since LyX
+ * does not interpret it in any way apart from display on screen.
*/
std::string inputenc;
/// The main encoding used by this buffer for LaTeX output.
/// Whether and how to load esint
Package use_esint;
///
- biblio::CiteEngine cite_engine;
- ///
bool use_bibtopic;
/// revision tracking for this buffer ?
bool trackChanges;
///
std::string const babelCall(std::string const & lang_opts) const;
/// set up the document fonts
- std::string const loadFonts(LaTeXFeatures & features, std::string const & rm,
+ std::string const loadFonts(std::string const & rm,
std::string const & sf, std::string const & tt,
bool const & sc, bool const & osf,
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
static void destroy(Impl *);
};
support::copied_ptr<Impl, MemoryTraits> pimpl_;
+
+ ///
+ biblio::CiteEngine cite_engine_;
};
} // namespace lyx