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