-
- inline wxGIFHandler()
- {
- m_name = "GIF file";
- m_extension = "gif";
- m_type = wxBITMAP_TYPE_GIF;
- };
-
- virtual bool LoadFile( wxImage *image, wxInputStream& stream );
- virtual bool SaveFile( wxImage *image, wxOutputStream& stream );
+ inline wxGIFHandler()
+ {
+ m_name = wxT("GIF file");
+ m_extension = wxT("gif");
+ m_type = wxBITMAP_TYPE_GIF;
+ m_mime = wxT("image/gif");
+ }
+
+#if wxUSE_STREAMS
+ virtual bool LoadFile(wxImage *image, wxInputStream& stream,
+ bool verbose = true, int index = -1);
+ virtual bool SaveFile(wxImage *image, wxOutputStream& stream,
+ bool verbose=true);
+ virtual int GetImageCount(wxInputStream& stream);
+protected:
+ virtual bool DoCanRead(wxInputStream& stream);
+#endif // wxUSE_STREAMS
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxGIFHandler)