+ /// Collect macro definitions in paragraphs
+ void updateMacros() const;
+ /// Iterate through the whole buffer and try to resolve macros
+ void updateMacroInstances() const;
+
+ /// List macro names of this buffer, the parent and the children
+ void listMacroNames(MacroNameSet & macros) const;
+ /// Collect macros of the parent and its children in front of this buffer.
+ void listParentMacros(MacroSet & macros, LaTeXFeatures & features) const;
+
+ /// Return macro defined before pos (or in the master buffer)
+ MacroData const * getMacro(docstring const & name, DocIterator const & pos, bool global = true) const;
+ /// Return macro defined anywhere in the buffer (or in the master buffer)
+ MacroData const * getMacro(docstring const & name, bool global = true) const;
+ /// Return macro defined before the inclusion of the child
+ MacroData const * getMacro(docstring const & name, Buffer const & child, bool global = true) const;
+
+ /// Replace the inset contents for insets which InsetCode is equal
+ /// to the passed \p inset_code.
+ void changeRefsIfUnique(docstring const & from, docstring const & to,
+ InsetCode code);
+
+ /// get source code (latex/docbook) for some paragraphs, or all paragraphs
+ /// including preamble
+ void getSourceCode(odocstream & os, pit_type par_begin, pit_type par_end,
+ bool full_source);
+
+ /// Access to error list.
+ /// This method is used only for GUI visualisation of Buffer related
+ /// errors (like parsing or LateX compilation). This method is const
+ /// because modifying the returned ErrorList does not touch the document
+ /// contents.
+ ErrorList & errorList(std::string const & type) const;
+
+ /// The Toc backend.
+ /// This is useful only for screen visualisation of the Buffer. This
+ /// method is const because modifying this backend does not touch
+ /// the document contents.
+ TocBackend & tocBackend() const;
+