]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
updates to minipage inset
[lyx.git] / src / insets / insetgraphics.h
index 52d0da7a3a827e58181e48e03d4dbe2a531931d3..5cb82a91deda5c69aa1cdf7a4c9bd69f8b1f5512 100644 (file)
@@ -20,6 +20,7 @@
 #include "insets/lyxinset.h"
 #include "insets/insetgraphicsParams.h"
 #include "graphics/GraphicsCacheItem.h"
+#include <boost/smart_ptr.hpp>
 
 #include "LaTeXFeatures.h"
 
@@ -100,7 +101,8 @@ public:
        /** This signal is connected by our dialog and called when the inset
            is deleted.
        */
-       Signal0 <void> hide;
+       Signal0 <void> hideDialog;
+
 private:
        /// Update the inset after parameter change.
        void updateInset() const;
@@ -112,12 +114,10 @@ private:
        string const prepareFile(Buffer const * buf) const;
 
        /// The graphics cache handle.
-       mutable GraphicsCacheItem * cacheHandle;
+       mutable boost::shared_ptr<GraphicsCacheItem> cacheHandle;
 
-       /// The pixmap
-       mutable LyXImage * pixmap;
        /// is the pixmap initialized?
-       mutable bool updateImage;
+       mutable bool imageLoaded;
 
        InsetGraphicsParams params;
 };