]> git.saurik.com Git - wxWidgets.git/blame - src/common/imagall.cpp
unused win_gtk stuff
[wxWidgets.git] / src / common / imagall.cpp
CommitLineData
6e58e01a 1/////////////////////////////////////////////////////////////////////////////
9b5f1895 2// Name: src/common/imagall.cpp
6e58e01a
SB
3// Purpose: wxImage access all handler
4// Author: Sylvain Bougnoux
5// RCS-ID: $Id$
6// Copyright: (c) Sylvain Bougnoux
65571936 7// Licence: wxWindows licence
6e58e01a
SB
8/////////////////////////////////////////////////////////////////////////////
9
6e58e01a
SB
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
13#ifdef __BORLANDC__
14#pragma hdrstop
15#endif
16
17#ifndef WX_PRECOMP
6e58e01a
SB
18#endif
19
20#include "wx/image.h"
21
c96ea657
VS
22#if wxUSE_IMAGE
23
6e58e01a
SB
24//-----------------------------------------------------------------------------
25// This function allows dynamic access to all image handlers compile within
26// the library. This function should be in a separate file as some compilers
27// link against the whole object file as long as just one of is function is called!
28
29void wxInitAllImageHandlers()
30{
31#if wxUSE_LIBPNG
32 wxImage::AddHandler( new wxPNGHandler );
33#endif
34#if wxUSE_LIBJPEG
35 wxImage::AddHandler( new wxJPEGHandler );
36#endif
257bcf28
RR
37#if wxUSE_LIBTIFF
38 wxImage::AddHandler( new wxTIFFHandler );
39#endif
6e58e01a
SB
40#if wxUSE_GIF
41 wxImage::AddHandler( new wxGIFHandler );
42#endif
43#if wxUSE_PNM
44 wxImage::AddHandler( new wxPNMHandler );
45#endif
46#if wxUSE_PCX
47 wxImage::AddHandler( new wxPCXHandler );
48#endif
4b6b4dfc
RR
49#if wxUSE_IFF
50 wxImage::AddHandler( new wxIFFHandler );
51#endif
658974ae 52#if wxUSE_ICO_CUR
52b64b0a 53 wxImage::AddHandler( new wxICOHandler );
05813ada 54 wxImage::AddHandler( new wxCURHandler );
658974ae
VS
55 wxImage::AddHandler( new wxANIHandler );
56#endif
1de1d24e 57#if wxUSE_XPM
64e9f56b
VS
58 wxImage::AddHandler( new wxXPMHandler );
59#endif
6e58e01a 60}
c96ea657
VS
61
62#endif // wxUSE_IMAGE