]> git.saurik.com Git - wxWidgets.git/blob - src/common/imagall.cpp
new wxASSERT implementation using wxAssert() helper function
[wxWidgets.git] / src / common / imagall.cpp
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 /*
11 We don't put pragma implement in this file because it is already present in
12 src/common/image.cpp
13 */
14
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
17
18 #ifdef __BORLANDC__
19 #pragma hdrstop
20 #endif
21
22 #ifndef WX_PRECOMP
23 # include "wx/setup.h"
24 #endif
25
26 #include "wx/image.h"
27
28 #if wxUSE_IMAGE
29
30 //-----------------------------------------------------------------------------
31 // This function allows dynamic access to all image handlers compile within
32 // the library. This function should be in a separate file as some compilers
33 // link against the whole object file as long as just one of is function is called!
34
35 void wxInitAllImageHandlers()
36 {
37 #if wxUSE_LIBPNG
38 wxImage::AddHandler( new wxPNGHandler );
39 #endif
40 #if wxUSE_LIBJPEG
41 wxImage::AddHandler( new wxJPEGHandler );
42 #endif
43 #if wxUSE_LIBTIFF
44 wxImage::AddHandler( new wxTIFFHandler );
45 #endif
46 #if wxUSE_GIF
47 wxImage::AddHandler( new wxGIFHandler );
48 #endif
49 #if wxUSE_PNM
50 wxImage::AddHandler( new wxPNMHandler );
51 #endif
52 #if wxUSE_PCX
53 wxImage::AddHandler( new wxPCXHandler );
54 #endif
55 #if wxUSE_IFF
56 wxImage::AddHandler( new wxIFFHandler );
57 #endif
58 #if wxUSE_XPM
59 wxImage::AddHandler( new wxXPMHandler );
60 #endif
61 #if wxUSE_ICO_CUR
62 wxImage::AddHandler( new wxICOHandler );
63 wxImage::AddHandler( new wxCURHandler );
64 wxImage::AddHandler( new wxANIHandler );
65 #endif
66 }
67
68 #endif // wxUSE_IMAGE