]> git.saurik.com Git - wxWidgets.git/blame - src/common/imagall.cpp
Misc validity fixes to samples/xrc/rc/*.xrc.
[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
6e58e01a 5// Copyright: (c) Sylvain Bougnoux
65571936 6// Licence: wxWindows licence
6e58e01a
SB
7/////////////////////////////////////////////////////////////////////////////
8
6e58e01a
SB
9// For compilers that support precompilation, includes "wx.h".
10#include "wx/wxprec.h"
11
12#ifdef __BORLANDC__
155ecd4c 13 #pragma hdrstop
6e58e01a
SB
14#endif
15
155ecd4c
WS
16#if wxUSE_IMAGE
17
6e58e01a 18#ifndef WX_PRECOMP
155ecd4c 19 #include "wx/image.h"
6e58e01a
SB
20#endif
21
6e58e01a
SB
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
27void wxInitAllImageHandlers()
28{
29#if wxUSE_LIBPNG
30 wxImage::AddHandler( new wxPNGHandler );
31#endif
32#if wxUSE_LIBJPEG
33 wxImage::AddHandler( new wxJPEGHandler );
34#endif
257bcf28
RR
35#if wxUSE_LIBTIFF
36 wxImage::AddHandler( new wxTIFFHandler );
37#endif
6e58e01a
SB
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
4b6b4dfc
RR
47#if wxUSE_IFF
48 wxImage::AddHandler( new wxIFFHandler );
49#endif
658974ae 50#if wxUSE_ICO_CUR
52b64b0a 51 wxImage::AddHandler( new wxICOHandler );
05813ada 52 wxImage::AddHandler( new wxCURHandler );
658974ae
VS
53 wxImage::AddHandler( new wxANIHandler );
54#endif
3af706cc
VZ
55#if wxUSE_TGA
56 wxImage::AddHandler( new wxTGAHandler );
57#endif
1de1d24e 58#if wxUSE_XPM
64e9f56b
VS
59 wxImage::AddHandler( new wxXPMHandler );
60#endif
6e58e01a 61}
c96ea657
VS
62
63#endif // wxUSE_IMAGE