]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
Make it compile when USE_BOOST_FORMAT is unset
[lyx.git] / src / insets / insetgraphics.h
index 9bcbcf2e9542287af4b64c176831f51f7386bd4c..e25a92d007e00113f70aac15de4c8e2c9427aef1 100644 (file)
@@ -1,15 +1,14 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
- *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 the LyX Team.
+/**
+ * \file insetgraphics.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Baruch Even
- * \author Herbert Voss <voss@lyx.org>
- * ====================================================== */
+ * \author Herbert Voss
+ *
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_GRAPHICS_H
 #define INSET_GRAPHICS_H
 #endif
 
 #include "insets/inset.h"
-#include "graphics/GraphicsTypes.h"
 #include "insets/insetgraphicsParams.h"
 
 // We need a signal here to hide an active dialog when we are deleted.
 #include <boost/signals/signal0.hpp>
 #include <boost/signals/trackable.hpp>
-
-#include <memory> // auto_ptr
+#include <boost/scoped_ptr.hpp>
 
 class Dialogs;
 class LaTeXFeatures;
@@ -110,8 +107,6 @@ private:
 
        /// Read the inset native format
        void readInsetGraphics(LyXLex & lex);
-       /// Read the FigInset file format
-       void readFigInset(LyXLex & lex);
 
        /// Get the status message, depends on the image loading status.
        string const statusMessage() const;
@@ -129,11 +124,8 @@ private:
        /// The cached variables
        class Cache;
        friend class Cache;
-       /** Can change the contents of the cache, but not the pointer.
-        *  Use std::auto_ptr not boost::scoped_ptr so we do not have to define
-        *  Cache in advance.
-        */
-       std::auto_ptr<Cache> const cache_;
+       /// The pointer never changes although *cache_'s contents may.
+       boost::scoped_ptr<Cache> const cache_;
 };
 
 #endif