]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagxpm.h
Don't connect to the same signal multiple times in wxGTK wxClipboard.
[wxWidgets.git] / include / wx / imagxpm.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/imagxpm.h
3 // Purpose: wxImage XPM handler
4 // Author: Vaclav Slavik
5 // RCS-ID: $Id$
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_IMAGXPM_H_
11 #define _WX_IMAGXPM_H_
12
13 #include "wx/image.h"
14
15 #if wxUSE_XPM
16
17 //-----------------------------------------------------------------------------
18 // wxXPMHandler
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_CORE wxXPMHandler : public wxImageHandler
22 {
23 public:
24 inline wxXPMHandler()
25 {
26 m_name = wxT("XPM file");
27 m_extension = wxT("xpm");
28 m_type = wxBITMAP_TYPE_XPM;
29 m_mime = wxT("image/xpm");
30 }
31
32 #if wxUSE_STREAMS
33 virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=true, int index=-1 );
34 virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=true );
35 protected:
36 virtual bool DoCanRead( wxInputStream& stream );
37 #endif
38
39 private:
40 DECLARE_DYNAMIC_CLASS(wxXPMHandler)
41 };
42
43 #endif // wxUSE_XPM
44
45 #endif // _WX_IMAGXPM_H_