X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.h;h=e8f0aea8750ccc0706a6e7b2ff0f2aa933a4ed32;hb=dab71087cf2954b77d3d2c0e67b868f9be82fba9;hp=7b965de7c24764ae130639e4886641c390307d82;hpb=cf37ad8c80fac36565b98fd993e32736902f8396;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index 7b965de7c2..e8f0aea875 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -335,9 +335,9 @@ public: OutputParams const & runparams_in, OutputWhat output = FullSource) const; /// - ExportStatus writeDocBookSource(odocstream & os, std::string const & filename, - OutputParams const & runparams_in, - OutputWhat output = FullSource) const; + ExportStatus writeDocBookSource(odocstream & os, + OutputParams const & runparams_in, + OutputWhat output = FullSource) const; /// ExportStatus makeLyXHTMLFile(support::FileName const & filename, OutputParams const & runparams_in) const; @@ -738,7 +738,7 @@ public: /// \param output: whether we are preparing for output. void updateBuffer(UpdateScope scope, UpdateType utype) const; /// - void updateBuffer(ParIterator & parit, UpdateType utype) const; + void updateBuffer(ParIterator & parit, UpdateType utype, bool const deleted = false) const; /// Spellcheck starting from \p from. /// \p from initial position, will then points to the next misspelled @@ -783,6 +783,13 @@ public: /// support::FileName getBibfilePath(docstring const & bibid) const; + /// routines for dealing with possible self-inclusion + void pushIncludedBuffer(Buffer const * buf) const; + void popIncludedBuffer() const; + bool isBufferIncluded(Buffer const * buf) const; +private: + void clearIncludeList() const; + private: friend class MarkAsExporting; /// mark the buffer as busy exporting something, or not