X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.h;h=a6db5ec01076935d2cd58ae466487de75fbdcffd;hb=b19410d232db62f922b319ed737f0738e864ea82;hp=1aeb66fe066b4a73cfdba7a27fc91e85313c8563;hpb=cd2e50a27503f6845e413fb3551f53eb9803b2c4;p=lyx.git diff --git a/src/Buffer.h b/src/Buffer.h index 1aeb66fe06..a6db5ec010 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -72,6 +72,10 @@ class FileName; class FileNameList; } +namespace graphics { +class PreviewLoader; +} + class Buffer; typedef std::list ListOfBuffers; @@ -313,8 +317,7 @@ public: bool only_body = false) const; /// void makeLyXHTMLFile(support::FileName const & filename, - OutputParams const & runparams_in, - bool only_body = false) const; + OutputParams const & runparams_in) const; /// void writeLyXHTMLSource(odocstream & os, OutputParams const & runparams_in, @@ -512,6 +515,8 @@ public: /// Set by buffer_funcs' newFile. void setFullyLoaded(bool); + /// FIXME: Needed by RenderPreview. + graphics::PreviewLoader * loader() const; /// Update the LaTeX preview snippets associated with this buffer void updatePreviews() const; /// Remove any previewed LaTeX snippets associated with this buffer @@ -562,8 +567,7 @@ public: /// 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); - ErrorList const & errorList(std::string const & type) const; + ErrorList & errorList(std::string const & type) const; /// The Toc backend. /// This is useful only for screen visualisation of the Buffer. This