]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: imagall.cpp | |
3 | // Purpose: wxImage access all handler | |
4 | // Author: Sylvain Bougnoux | |
5 | // RCS-ID: $Id$ | |
6 | // Copyright: (c) Sylvain Bougnoux | |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
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 | |
18 | # include "wx/setup.h" | |
19 | #endif | |
20 | ||
21 | #include "wx/image.h" | |
22 | ||
23 | #if wxUSE_IMAGE | |
24 | ||
25 | //----------------------------------------------------------------------------- | |
26 | // This function allows dynamic access to all image handlers compile within | |
27 | // the library. This function should be in a separate file as some compilers | |
28 | // link against the whole object file as long as just one of is function is called! | |
29 | ||
30 | void wxInitAllImageHandlers() | |
31 | { | |
32 | #if wxUSE_LIBPNG | |
33 | wxImage::AddHandler( new wxPNGHandler ); | |
34 | #endif | |
35 | #if wxUSE_LIBJPEG | |
36 | wxImage::AddHandler( new wxJPEGHandler ); | |
37 | #endif | |
38 | #if wxUSE_LIBTIFF | |
39 | wxImage::AddHandler( new wxTIFFHandler ); | |
40 | #endif | |
41 | #if wxUSE_GIF | |
42 | wxImage::AddHandler( new wxGIFHandler ); | |
43 | #endif | |
44 | #if wxUSE_PNM | |
45 | wxImage::AddHandler( new wxPNMHandler ); | |
46 | #endif | |
47 | #if wxUSE_PCX | |
48 | wxImage::AddHandler( new wxPCXHandler ); | |
49 | #endif | |
50 | #if wxUSE_IFF | |
51 | wxImage::AddHandler( new wxIFFHandler ); | |
52 | #endif | |
53 | #if wxUSE_ICO_CUR | |
54 | wxImage::AddHandler( new wxICOHandler ); | |
55 | wxImage::AddHandler( new wxCURHandler ); | |
56 | wxImage::AddHandler( new wxANIHandler ); | |
57 | #endif | |
58 | #if wxUSE_XPM | |
59 | wxImage::AddHandler( new wxXPMHandler ); | |
60 | #endif | |
61 | } | |
62 | ||
63 | #endif // wxUSE_IMAGE |