]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.h
The free_spacing patch and fix to the mess that Rob discovered.
[lyx.git] / src / graphics / GraphicsCacheItem.h
index 15f441a4c05166012512fe8993869810b75cc4db..3e8755fcaad7b6391d3eb21dfe373283a2dd04cb 100644 (file)
@@ -1,11 +1,13 @@
 // -*- C++ -*-
-/*
+/**
  * \file GraphicsCacheItem.h
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Baruch Even <baruch.even@writeme.com>
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Baruch Even
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  *
  * The graphics cache is a container of grfx::CacheItems.
  * Each grfx::CacheItem, defined here represents a separate image file.
 #ifndef GRAPHICSCACHEITEM_H
 #define GRAPHICSCACHEITEM_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "GraphicsTypes.h"
 #include "LString.h"
 
@@ -59,6 +57,19 @@ public:
        /// It's in the cache. Now start the loading process.
        void startLoading() const;
 
+       /** Monitor any changes to the file.
+        *  There is no point monitoring the file before startLoading() is
+        *  invoked.
+        */
+       void startMonitoring() const;
+       ///
+       bool monitoring() const;
+       /** Returns the check sum of filename() so that, for example, you can
+        *  ascertain whether to output a new PostScript version of the file
+        *  for a LaTeX run.
+        */
+       unsigned long checksum() const;
+
        /** Get the image associated with filename().
         *  If the image is not yet loaded, returns 0.
         *  This routine returns a pointer to const; if you want to modify it,