]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
if we can load direct without conversion, then do that.
[lyx.git] / src / graphics / GraphicsCache.C
index d6b9b20dc0a641dd9a439f2f8c15ad6af162a20e..1380bf4adc3714598a794a0da8126cfeb70e478f 100644 (file)
 #include "GraphicsImage.h"
 #include "GraphicsParams.h"
 #include "insets/insetgraphics.h"
+#include "frontends/Dialogs.h"
 
-// I think that graphicsInit should become Dialogs::graphicsInit.
-// These #includes would then be moved there.
-// Angus 25 Feb 2002
-#include "GraphicsImageXPM.h"
-//#include "xformsGraphicsImage.h"
-
-namespace {
-
-void graphicsInit() 
-{
-       using namespace grfx;
-       using SigC::slot;
-    
-       // connect the image loader based on the XPM library
-       GImage::newImage.connect(slot(&GImageXPM::newImage));
-       GImage::loadableFormats.connect(slot(&GImageXPM::loadableFormats));
-       // connect the image loader based on the xforms library
-//     GImage::newImage.connect(slot(&xformsGImage::newImage));
-//     GImage::loadableFormats.connect(slot(&xformsGImage::loadableFormats));
-}
-    
-} // namespace anon
 
 namespace grfx {
 
@@ -50,7 +28,7 @@ GCache & GCache::get()
        static bool start = true;
        if (start) {
                start = false;
-               graphicsInit();
+               Dialogs::initialiseGraphics();
        }
 
        // Now return the cache