X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FPreviews.h;h=db666d11bef8322f35304bea04e98b6892d396c8;hb=33243f70037b067f90d1574b74b34f90a2ef2aa1;hp=9c454d1e5d8e880b294697a2aec62a4964071f49;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/graphics/Previews.h b/src/graphics/Previews.h index 9c454d1e5d..db666d11be 100644 --- a/src/graphics/Previews.h +++ b/src/graphics/Previews.h @@ -15,11 +15,11 @@ #ifndef PREVIEWS_H #define PREVIEWS_H -#include "LString.h" #include #include class Buffer; +class LyXRC_PreviewStatus; namespace lyx { namespace graphics { @@ -29,27 +29,22 @@ class PreviewLoader; class Previews : boost::noncopyable { public: /// a wrapper for lyxrc.preview - static bool activated(); + static LyXRC_PreviewStatus status(); /// This is a singleton class. Get the instance. static Previews & get(); /** Returns the PreviewLoader for this buffer. * Used by individual insets to update their own preview. - * We assert that (buffer != 0) but do not pass a Buffer & - * so that insets do not need to #include buffer.h */ - PreviewLoader & loader(Buffer const * buffer) const; + PreviewLoader & loader(Buffer const & buffer) const; - /** Called from the Buffer d-tor. - * If (buffer == 0), does nothing. - */ - void removeLoader(Buffer const * buffer) const; + /// Called from the Buffer d-tor. + void removeLoader(Buffer const & buffer) const; /** For a particular buffer, initiate the generation of previews - * for each and every snippetof LaTeX that's of interest with + * for each and every snippet of LaTeX that's of interest with * a single forked process. - * If (buffer == 0), does nothing. */ void generateBufferPreviews(Buffer const & buffer) const; @@ -58,7 +53,6 @@ private: * are instantiated. */ Previews(); - /// ~Previews(); /// Use the Pimpl idiom to hide the internals.