]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetexternal.h
ws changes only
[lyx.git] / src / insets / insetexternal.h
index 0c700b30f4d43110d05e45b3c9d377503bcd1d80..31d2b9ae330af3627a17f2271c17ea74277980cc 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <boost/scoped_ptr.hpp>
 #include <boost/signals/trackable.hpp>
+#include <boost/weak_ptr.hpp>
 
 
 /** No two InsetExternalParams variables can have the same temporary file.
@@ -79,7 +80,7 @@ private:
 };
 
 
-class RenderInset;
+class RenderBase;
 
 ///
 class InsetExternal : public InsetOld, public boost::signals::trackable
@@ -128,15 +129,20 @@ public:
        void setParams(InsetExternalParams const &, Buffer const &);
 
 private:
+       void cache(BufferView *) const;
+       BufferView * view() const;
        /** This method is connected to the graphics loader, so we are
         *  informed when the image has been loaded.
         */
-       void statusChanged();
+       void statusChanged() const;
 
        /// The current params
        InsetExternalParams params_;
        /// The thing that actually draws the image on LyX's screen.
-       boost::scoped_ptr<RenderInset> renderer_;
+       boost::scoped_ptr<RenderBase> renderer_;
+
+       /// Cached
+       mutable boost::weak_ptr<BufferView> view_;
 };