]> git.saurik.com Git - wxWidgets.git/blame - src/common/imagall.cpp
changed charset to iso8859-2
[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
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
c96ea657
VS
28#if wxUSE_IMAGE
29
6e58e01a
SB
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
35void wxInitAllImageHandlers()
36{
37#if wxUSE_LIBPNG
38 wxImage::AddHandler( new wxPNGHandler );
39#endif
40#if wxUSE_LIBJPEG
41 wxImage::AddHandler( new wxJPEGHandler );
42#endif
257bcf28
RR
43#if wxUSE_LIBTIFF
44 wxImage::AddHandler( new wxTIFFHandler );
45#endif
6e58e01a
SB
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
4b6b4dfc
RR
55#if wxUSE_IFF
56 wxImage::AddHandler( new wxIFFHandler );
57#endif
c96ea657
VS
58#if wxUSE_XPM
59 wxImage::AddHandler( new wxXPMHandler );
60#endif
658974ae 61#if wxUSE_ICO_CUR
52b64b0a 62 wxImage::AddHandler( new wxICOHandler );
05813ada 63 wxImage::AddHandler( new wxCURHandler );
658974ae
VS
64 wxImage::AddHandler( new wxANIHandler );
65#endif
6e58e01a 66}
c96ea657
VS
67
68#endif // wxUSE_IMAGE