]> git.saurik.com Git - wxWidgets.git/blame - src/common/imagall.cpp
added GetWindowSizeForVirtualSize() virtual hook for wxScrolledWindow (cuts down...
[wxWidgets.git] / src / common / imagall.cpp
CommitLineData
6e58e01a 1/////////////////////////////////////////////////////////////////////////////
36edded9 2// Name: 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__
14#pragma hdrstop
15#endif
16
17#ifndef WX_PRECOMP
18# include "wx/setup.h"
19#endif
20
21#include "wx/image.h"
22
c96ea657
VS
23#if wxUSE_IMAGE
24
6e58e01a
SB
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
30void wxInitAllImageHandlers()
31{
32#if wxUSE_LIBPNG
33 wxImage::AddHandler( new wxPNGHandler );
34#endif
35#if wxUSE_LIBJPEG
36 wxImage::AddHandler( new wxJPEGHandler );
37#endif
257bcf28
RR
38#if wxUSE_LIBTIFF
39 wxImage::AddHandler( new wxTIFFHandler );
40#endif
6e58e01a
SB
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
4b6b4dfc
RR
50#if wxUSE_IFF
51 wxImage::AddHandler( new wxIFFHandler );
52#endif
658974ae 53#if wxUSE_ICO_CUR
52b64b0a 54 wxImage::AddHandler( new wxICOHandler );
05813ada 55 wxImage::AddHandler( new wxCURHandler );
658974ae
VS
56 wxImage::AddHandler( new wxANIHandler );
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