]> git.saurik.com Git - wxWidgets.git/blob - include/wx/imagpcx.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / imagpcx.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/imagpcx.h
3 // Purpose: wxImage PCX handler
4 // Author: Guillermo Rodriguez Garcia <guille@iies.es>
5 // Copyright: (c) 1999 Guillermo Rodriguez Garcia
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_IMAGPCX_H_
10 #define _WX_IMAGPCX_H_
11
12 #include "wx/image.h"
13
14
15 //-----------------------------------------------------------------------------
16 // wxPCXHandler
17 //-----------------------------------------------------------------------------
18
19 #if wxUSE_PCX
20 class WXDLLIMPEXP_CORE wxPCXHandler : public wxImageHandler
21 {
22 public:
23 inline wxPCXHandler()
24 {
25 m_name = wxT("PCX file");
26 m_extension = wxT("pcx");
27 m_type = wxBITMAP_TYPE_PCX;
28 m_mime = wxT("image/pcx");
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 // wxUSE_STREAMS
37
38 private:
39 DECLARE_DYNAMIC_CLASS(wxPCXHandler)
40 };
41 #endif // wxUSE_PCX
42
43
44 #endif
45 // _WX_IMAGPCX_H_
46