X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsImage.h;h=6722b87bc03f20637a8450dd7732b58ae5d5c69b;hb=38c2cde0d8695ac5287bae218c4a33a2acf18ef8;hp=ad9c5c588fd2606cc5ead3be9ff0f404596e519b;hpb=31c1982677e0602ed6151521706d865d4c84d85a;p=lyx.git diff --git a/src/graphics/GraphicsImage.h b/src/graphics/GraphicsImage.h index ad9c5c588f..6722b87bc0 100644 --- a/src/graphics/GraphicsImage.h +++ b/src/graphics/GraphicsImage.h @@ -24,13 +24,6 @@ #ifndef GRAPHICSIMAGE_H #define GRAPHICSIMAGE_H -#include "Dimension.h" - -#include -#include - -#include - namespace lyx { namespace support { class FileName; } @@ -41,11 +34,6 @@ class Params; class Image { public: - /** This is to be connected to a function that will return a new - * instance of a viable derived class. - */ - static boost::function newImage; - /// virtual ~Image() {} @@ -61,13 +49,6 @@ public: /// Is the image drawable ? virtual bool isDrawable() const = 0; - /** At the end of the loading process inform the outside world - * by emitting a signal - */ - typedef boost::signal SignalType; - /// - SignalType finishedLoading; - /** Start loading the image file. * The caller should expect this process to be asynchronous and * so should connect to the "finished" signal above. @@ -79,14 +60,11 @@ public: * Returns true if the pixmap is created. */ virtual bool setPixmap(Params const & params) = 0; - -protected: - /// Must define default c-tor explicitly as we define a copy c-tor. - Image() {} - /// Don't copy the signal finishedLoading - Image(Image const &) {} }; +/// Only way to create a new Image. +/// Implemented in the frontend. +Image * newImage(); } // namespace graphics } // namespace lyx