X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferParams.h;h=77b4856b4d3bca7b6a435c85c467f1a510354d67;hb=4ed0312c51704780af1c452d3a82a84171b3725a;hp=2c74f7098d55cf91c76ab1e1c5ae43814183a2bc;hpb=0f782b0ded08953dbcde48f22d51ba87133bc029;p=lyx.git diff --git a/src/BufferParams.h b/src/BufferParams.h index 2c74f7098d..77b4856b4d 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -337,10 +337,8 @@ public: IndicesList & indiceslist(); IndicesList const & indiceslist() const; /// - typedef std::vector IgnoreList; - /// - IgnoreList & spellignore(); - IgnoreList const & spellignore() const; + WordLangTable & spellignore(); + WordLangTable const & spellignore() const; bool spellignored(WordLangTuple const & wl) const; /** * The LyX name of the input encoding for LaTeX. This can be one of @@ -369,6 +367,8 @@ public: std::string origin; /// docstring preamble; + /// DocumentMetadata as introduced by LaTeX 2022/06 + docstring document_metadata; /// std::string options; /// use the class options defined in the layout? @@ -520,7 +520,7 @@ public: std::vector citeStyles() const; /// Return the actual bibtex command (lyxrc or buffer param) - std::string const bibtexCommand() const; + std::string const bibtexCommand(bool const warn = false) const; /// Are we using biblatex? bool useBiblatex() const; @@ -622,6 +622,8 @@ private: /// void readPreamble(Lexer &); /// + void readDocumentMetadata(Lexer &); + /// void readLocalLayout(Lexer &, bool); /// void readLanguage(Lexer &); @@ -653,6 +655,9 @@ private: std::map bib_encodings; /// Split bibliography? bool use_bibtopic; + /// Return the actual or an appropriate fallback bibtex command + std::string const getBibtexCommand(std::string const cmd, + bool const warn) const; /// DocumentClassPtr doc_class_; /// @@ -686,6 +691,10 @@ private: support::copied_ptr pimpl_; }; + +/// +BufferParams const & defaultBufferParams(); + } // namespace lyx #endif