X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9943f8e8fc03fbd47a7ef7100e217318838d6a6..1b9315eb77090dbef647c0ef638df43b761767aa:/include/wx/image.h diff --git a/include/wx/image.h b/include/wx/image.h index fb0ebb3bfe..e4d78863ab 100644 --- a/include/wx/image.h +++ b/include/wx/image.h @@ -36,9 +36,15 @@ class WXDLLEXPORT wxPNGHandler; class WXDLLEXPORT wxJPEGHandler; #endif class WXDLLEXPORT wxBMPHandler; +#if wxUSE_GIF class WXDLLEXPORT wxGIFHandler; +#endif +#if wxUSE_PNM class WXDLLEXPORT wxPNMHandler; +#endif +#if wxUSE_PCX class WXDLLEXPORT wxPCXHandler; +#endif class WXDLLEXPORT wxImage; //----------------------------------------------------------------------------- @@ -100,6 +106,9 @@ public: virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool CanRead( wxInputStream& stream ); +private: + // hiding base class virtuals again! + inline bool CanRead( const wxString& name ) { return(wxImageHandler::CanRead(name)); }; #endif }; #endif @@ -127,6 +136,9 @@ public: virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool CanRead( wxInputStream& stream ); +private: + // hiding base class virtuals again! + inline bool CanRead( const wxString& name ) { return(wxImageHandler::CanRead(name)); }; #endif }; #endif @@ -152,6 +164,9 @@ public: #if wxUSE_STREAMS virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE ); virtual bool CanRead( wxInputStream& stream ); +private: + // hiding base class virtuals again! + inline bool CanRead( const wxString& name ) { return(wxImageHandler::CanRead(name)); }; #endif }; @@ -159,6 +174,8 @@ public: // wxGIFHandler //----------------------------------------------------------------------------- +#if wxUSE_GIF + class WXDLLEXPORT wxGIFHandler : public wxImageHandler { DECLARE_DYNAMIC_CLASS(wxGIFHandler) @@ -177,13 +194,18 @@ public: virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool CanRead( wxInputStream& stream ); +private: + // hiding base class virtuals again! + inline bool CanRead( const wxString& name ) { return(wxImageHandler::CanRead(name)); }; #endif }; +#endif //----------------------------------------------------------------------------- // wxPNMHandler //----------------------------------------------------------------------------- +#if wxUSE_PNM class WXDLLEXPORT wxPNMHandler : public wxImageHandler { DECLARE_DYNAMIC_CLASS(wxPNMHandler) @@ -202,13 +224,18 @@ public: virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE ); virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE ); virtual bool CanRead( wxInputStream& stream ); +private: + // hiding base class virtuals again! + inline bool CanRead( const wxString& name ) { return(wxImageHandler::CanRead(name)); }; #endif }; +#endif //----------------------------------------------------------------------------- // wxPCXHandler //----------------------------------------------------------------------------- +#if wxUSE_PCX class WXDLLEXPORT wxPCXHandler : public wxImageHandler { DECLARE_DYNAMIC_CLASS(wxPCXHandler) @@ -229,6 +256,7 @@ public: virtual bool CanRead( wxInputStream& stream ); #endif }; +#endif //----------------------------------------------------------------------------- // wxImage @@ -328,13 +356,15 @@ public: static void CleanUpHandlers(); static void InitStandardHandlers(); - + protected: static wxList sm_handlers; }; +extern void wxInitAllImageHandlers(); + #endif // _WX_IMAGE_H_