]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.h
Fix bug #12772
[lyx.git] / src / BufferParams.h
index 10233e69f823a50b67ffe50007cd39c50ce9bbf5..77b4856b4d3bca7b6a435c85c467f1a510354d67 100644 (file)
@@ -337,10 +337,9 @@ public:
        IndicesList & indiceslist();
        IndicesList const & indiceslist() const;
        ///
-       typedef std::vector<WordLangTuple> 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
         * - \c auto: find out the input encoding from the used languages
@@ -368,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?
@@ -519,7 +520,7 @@ public:
        std::vector<CitationStyle> 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;
@@ -583,6 +584,15 @@ public:
        /// what format to use for table output in DocBook. present choices are above
        TableOutput docbook_table_output;
 
+       // do not change these values. we rely upon them.
+       enum MathMLNameSpacePrefix {
+               NoPrefix = 0,
+               MPrefix = 1,
+               MMLPrefix = 2
+       };
+       /// what prefix to use when outputting MathML. present choices are above
+       MathMLNameSpacePrefix docbook_mathml_prefix;
+
        /// allow the LaTeX backend to run external programs
        bool shell_escape;
        /// generate output usable for reverse/forward search
@@ -612,6 +622,8 @@ private:
        ///
        void readPreamble(Lexer &);
        ///
+       void readDocumentMetadata(Lexer &);
+       ///
        void readLocalLayout(Lexer &, bool);
        ///
        void readLanguage(Lexer &);
@@ -643,6 +655,9 @@ private:
        std::map<std::string, std::string> 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_;
        ///
@@ -676,6 +691,10 @@ private:
        support::copied_ptr<Impl, MemoryTraits> pimpl_;
 };
 
+
+///
+BufferParams const & defaultBufferParams();
+
 } // namespace lyx
 
 #endif