]> git.saurik.com Git - wxWidgets.git/blame - src/common/imagall.cpp
fixing osx_cocoa
[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__
155ecd4c 14 #pragma hdrstop
6e58e01a
SB
15#endif
16
155ecd4c
WS
17#if wxUSE_IMAGE
18
6e58e01a 19#ifndef WX_PRECOMP
155ecd4c 20 #include "wx/image.h"
6e58e01a
SB
21#endif
22
6e58e01a
SB
23//-----------------------------------------------------------------------------
24// This function allows dynamic access to all image handlers compile within
25// the library. This function should be in a separate file as some compilers
26// link against the whole object file as long as just one of is function is called!
27
28void wxInitAllImageHandlers()
29{
30#if wxUSE_LIBPNG
31 wxImage::AddHandler( new wxPNGHandler );
32#endif
33#if wxUSE_LIBJPEG
34 wxImage::AddHandler( new wxJPEGHandler );
35#endif
257bcf28
RR
36#if wxUSE_LIBTIFF
37 wxImage::AddHandler( new wxTIFFHandler );
38#endif
6e58e01a
SB
39#if wxUSE_GIF
40 wxImage::AddHandler( new wxGIFHandler );
41#endif
42#if wxUSE_PNM
43 wxImage::AddHandler( new wxPNMHandler );
44#endif
45#if wxUSE_PCX
46 wxImage::AddHandler( new wxPCXHandler );
47#endif
4b6b4dfc
RR
48#if wxUSE_IFF
49 wxImage::AddHandler( new wxIFFHandler );
50#endif
658974ae 51#if wxUSE_ICO_CUR
52b64b0a 52 wxImage::AddHandler( new wxICOHandler );
05813ada 53 wxImage::AddHandler( new wxCURHandler );
658974ae
VS
54 wxImage::AddHandler( new wxANIHandler );
55#endif
3af706cc
VZ
56#if wxUSE_TGA
57 wxImage::AddHandler( new wxTGAHandler );
58#endif
1de1d24e 59#if wxUSE_XPM
64e9f56b
VS
60 wxImage::AddHandler( new wxXPMHandler );
61#endif
6e58e01a 62}
c96ea657
VS
63
64#endif // wxUSE_IMAGE