]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
reformatting and remove using delc
[lyx.git] / src / insets / insetgraphics.h
index a481b83f798171b768a5c6b4bc820e1872ea8bda..96df55fd29f9e6ec069cb18a5616c39f1b1c9b04 100644 (file)
 #include "insets/lyxinset.h"
 #include "insets/insetgraphicsParams.h"
 #include "graphics/GraphicsCacheItem.h"
+#include <boost/smart_ptr.hpp>
 
 #include "LaTeXFeatures.h"
 
 // We need a signal here to hide an active dialog when we are deleted.
 #include "sigc++/signal_system.h"
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-using SigC::slot;
-using SigC::Object;
-#endif 
 
 class Dialogs;
 class LyXImage;
 
 ///
-#ifdef SIGC_CXX_NAMESPACES
-class InsetGraphics : public Inset, public SigC::Object
-#else
-class InsetGraphics : public Inset, public Object
-#endif
-{
+class InsetGraphics : public Inset, public SigC::Object {
 public:
        ///
        InsetGraphics();
@@ -100,7 +91,7 @@ public:
        /** This signal is connected by our dialog and called when the inset
            is deleted.
        */
-       Signal0 <void> hideDialog;
+       SigC::Signal0<void> hideDialog;
 
 private:
        /// Update the inset after parameter change.
@@ -113,7 +104,7 @@ private:
        string const prepareFile(Buffer const * buf) const;
 
        /// The graphics cache handle.
-       mutable GraphicsCacheItem * cacheHandle;
+       mutable boost::shared_ptr<GraphicsCacheItem> cacheHandle;
 
        /// is the pixmap initialized?
        mutable bool imageLoaded;