]> git.saurik.com Git - wxWidgets.git/blame - include/wx/imagxpm.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / imagxpm.h
CommitLineData
775c6f0c 1/////////////////////////////////////////////////////////////////////////////
e225e700 2// Name: wx/imagxpm.h
775c6f0c
VS
3// Purpose: wxImage XPM handler
4// Author: Vaclav Slavik
775c6f0c 5// Copyright: (c) 2001 Vaclav Slavik
65571936 6// Licence: wxWindows licence
775c6f0c
VS
7/////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_IMAGXPM_H_
10#define _WX_IMAGXPM_H_
11
775c6f0c
VS
12#include "wx/image.h"
13
6502dc68 14#if wxUSE_XPM
775c6f0c
VS
15
16//-----------------------------------------------------------------------------
17// wxXPMHandler
18//-----------------------------------------------------------------------------
19
53a2db12 20class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
775c6f0c 21{
775c6f0c 22public:
2b5f62a0
VZ
23 inline wxXPMHandler()
24 {
25 m_name = wxT("XPM file");
26 m_extension = wxT("xpm");
27 m_type = wxBITMAP_TYPE_XPM;
28 m_mime = wxT("image/xpm");
29 }
775c6f0c
VS
30
31#if wxUSE_STREAMS
7beb59f3
WS
32 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
33 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
6f02a879 34protected:
2b5f62a0 35 virtual bool DoCanRead( wxInputStream& stream );
775c6f0c 36#endif
2b5f62a0
VZ
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
775c6f0c 40};
775c6f0c 41
6502dc68 42#endif // wxUSE_XPM
775c6f0c 43
e225e700 44#endif // _WX_IMAGXPM_H_