]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.h
de.po: fix doubled accelerator keys
[lyx.git] / src / graphics / Previews.h
index 0a50e29e36b3c64d679eedb90b053f1bfe99464f..31ba7ed95a578792cecb9c1b21b942349a274d93 100644 (file)
@@ -26,12 +26,12 @@ 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();
 
-       /// 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.
         */
@@ -50,20 +50,14 @@ private:
        /// 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();
-       ~Previews();
-
-       /// Use the Pimpl idiom to hide the internals.
-       class Impl;
-       /// The pointer never changes although *pimpl_'s contents may.
-       Impl * const pimpl_;
 };
 
 } // namespace graphics
+
+/// This is a singleton class. Get the instance.
+/// Implemented in LyX.cpp.
+graphics::Previews & thePreviews();
+
 } // namespace lyx
 
 #endif // PREVIEWS_H