4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
11 * graphics::Previews is a singleton class that stores the
12 * graphics::PreviewLoader for each buffer requiring one.
21 class LyXRC_PreviewStatus;
29 /// This should be a singleton class only instanciated in LyX.cpp.
32 /// a wrapper for lyxrc.preview
33 static LyXRC_PreviewStatus status();
35 /** Returns the PreviewLoader for this buffer.
36 * Used by individual insets to update their own preview.
38 PreviewLoader & loader(Buffer const & buffer) const;
40 /// Called from the Buffer d-tor.
41 void removeLoader(Buffer const & buffer) const;
43 /** For a particular buffer, initiate the generation of previews
44 * for each and every snippet of LaTeX that's of interest with
45 * a single forked process.
47 void generateBufferPreviews(Buffer const & buffer) const;
51 Previews(Previews const &);
52 void operator=(Previews const &);
55 } // namespace graphics
57 /// This is a singleton class. Get the instance.
58 /// Implemented in LyX.cpp.
59 graphics::Previews & thePreviews();