]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.h
Change the "empty layout" to the "plain layout", to try to avoid confusion.
[lyx.git] / src / graphics / Previews.h
index 4d58e1c00cd6dd81a22918681b73509221fa489c..31ba7ed95a578792cecb9c1b21b942349a274d93 100644 (file)
@@ -26,6 +26,9 @@ class PreviewLoader;
 
 class Previews {
 public:
+       /// This should be a singleton class only instanciated in LyX.cpp.
+       Previews() {}
+
        /// a wrapper for lyxrc.preview
        static LyXRC_PreviewStatus status();
 
@@ -44,22 +47,16 @@ public:
        void generateBufferPreviews(Buffer const & buffer) const;
 
 private:
-       friend class LyX;
        /// noncopyable
        Previews(Previews const &);
        void operator=(Previews const &);
-
-       /** Make the c-tor, d-tor private so we can control how many objects
-        *  are instantiated.
-        */
-       Previews();
 };
 
 } // namespace graphics
 
 /// This is a singleton class. Get the instance.
 /// Implemented in LyX.cpp.
-graphics::Previews * thePreviews();
+graphics::Previews & thePreviews();
 
 } // namespace lyx