Add wxDEPRECATED_MSG() and use it in a couple of places.
[wxWidgets.git] / include / wx / imagxpm.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/imagxpm.h
3 // Purpose: wxImage XPM handler
4 // Author: Vaclav Slavik
5 // Copyright: (c) 2001 Vaclav Slavik
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_IMAGXPM_H_
10 #define _WX_IMAGXPM_H_
11
12 #include "wx/image.h"
13
14 #if wxUSE_XPM
15
16 //-----------------------------------------------------------------------------
17 // wxXPMHandler
18 //-----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
21 {
22 public:
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 }
30
31 #if wxUSE_STREAMS
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 );
34 protected:
35 virtual bool DoCanRead( wxInputStream& stream );
36 #endif
37
38 private:
39 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
40 };
41
42 #endif // wxUSE_XPM
43
44 #endif // _WX_IMAGXPM_H_