]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsImage.h
The free_spacing patch and fix to the mess that Rob discovered.
[lyx.git] / src / graphics / GraphicsImage.h
index 3a03523b808a84dbb2cc2936d4086088fa9ebf5d..2eff2c89b132408f68d829e99c5304ec39224300 100644 (file)
@@ -1,19 +1,21 @@
 // -*- C++ -*-
 /**
  *  \file GraphicsImage.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 <a.leeming@ic.ac.uk>
+ *  \author Baruch Even
+ *  \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  *
  *  An abstract base class for the images themselves.
  *  Allows the user to retrieve the pixmap, once loaded and to issue commands
  *  to modify it.
  *
- *  The signals newImage and loadableFormats are connected to the approriate
- *  derived classes elsewhere, allowing the graphics cache to access them
- *  without knowing anything about their instantiation.
+ *  The boost::functions newImage and loadableFormats are connected to the
+ *  appropriate derived classes elsewhere, allowing the graphics cache to
+ *  access them without knowing anything about their instantiation.
  *
  *  The loading process can be asynchronous, but cropping, rotating and
  *  scaling block execution.
 #include <boost/function/function0.hpp>
 #include <boost/signals/signal1.hpp>
 
-#include <X11/X.h> // for Pixmap :-(
-
 #include <vector>
 #include <utility>
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 namespace grfx {
 
 class Params;
@@ -65,15 +61,15 @@ public:
        /// Create a copy
        virtual Image * clone() const = 0;
 
-       ///
-       virtual Pixmap getPixmap() const = 0;
-
        /// Get the image width
        virtual unsigned int getWidth() const = 0;
 
        /// Get the image height
        virtual unsigned int getHeight() const = 0;
 
+       /// is the image drawable ?
+       virtual bool isDrawable() const = 0;
+
        /** At the end of the loading process inform the outside world
         *  by emitting a signal.
         */