]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.h
If the graphics loader has a copy c-tor it should have copy assignment that does...
[lyx.git] / src / graphics / Previews.h
index 7495f176ff9a29d6bd90b58238ee14f44ab281fc..f088fd68de9ce8d609418659ed11c75254b82145 100644 (file)
@@ -1,10 +1,12 @@
 // -*- C++ -*-
 /**
  *  \file Previews.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 Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  *
  *  grfx::Previews is a singleton class that stores the grfx::PreviewLoader
  *  for each buffer requiring one.
 #ifndef PREVIEWS_H
 #define PREVIEWS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "LString.h"
 #include <boost/utility.hpp>
 #include <boost/scoped_ptr.hpp>
@@ -40,19 +38,19 @@ public:
         *  We assert that (buffer != 0) but do not pass a Buffer &
         *  so that insets do not need to #include buffer.h
         */
-       PreviewLoader & loader(Buffer * buffer);
+       PreviewLoader & loader(Buffer const * buffer) const;
 
        /** Called from the Buffer d-tor.
         *  If (buffer == 0), does nothing.
         */
-       void removeLoader(Buffer * buffer);
+       void removeLoader(Buffer const * buffer) const;
 
        /** For a particular buffer, initiate the generation of previews
         *  for each and every snippetof LaTeX that's of interest with
         *  a single forked process.
         *  If (buffer == 0), does nothing.
         */
-       void generateBufferPreviews(Buffer * buffer);
+       void generateBufferPreviews(Buffer const & buffer) const;
 
 private:
        /** Make the c-tor, d-tor private so we can control how many objects