/// Constructor
explicit Buffer(std::string const & file, bool readonly = false,
- Buffer const * cloned_buffer = 0);
+ Buffer const * cloned_buffer = nullptr);
/// Destructor
~Buffer();
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;
/// returns the main language for the buffer (document)
Language const * language() const;
/// get l10n translated to the buffers language
- docstring const B_(std::string const & l10n) const;
+ docstring B_(std::string const & l10n) const;
///
int runChktex();
std::string latexName(bool no_path = true) const;
/// Get the name and type of the log.
- std::string logName(LogType * type = 0) const;
+ std::string logName(LogType * type = nullptr) const;
/// Set document's parent Buffer.
void setParent(Buffer const *);
/// \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
///
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