// -*- 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
// 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;
/// 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;
/// 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