// -*- 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 <leeming@lyx.org>
+ * \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;
/// 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.
*/