X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7beb59f36c016d27cf8949eb8c0d38fc63ad536a..aa3fcb2f830f50218a6003710b959eb33d3b7088:/include/wx/imagpnm.h?ds=sidebyside diff --git a/include/wx/imagpnm.h b/include/wx/imagpnm.h index 3fbb32a14e..89df0d0807 100644 --- a/include/wx/imagpnm.h +++ b/include/wx/imagpnm.h @@ -10,10 +10,6 @@ #ifndef _WX_IMAGPNM_H_ #define _WX_IMAGPNM_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "imagpnm.h" -#endif - #include "wx/image.h" //----------------------------------------------------------------------------- @@ -21,13 +17,16 @@ //----------------------------------------------------------------------------- #if wxUSE_PNM -class WXDLLEXPORT wxPNMHandler : public wxImageHandler +class WXDLLIMPEXP_CORE wxPNMHandler : public wxImageHandler { public: inline wxPNMHandler() { m_name = wxT("PNM file"); m_extension = wxT("pnm"); + m_altExtensions.Add(wxT("ppm")); + m_altExtensions.Add(wxT("pgm")); + m_altExtensions.Add(wxT("pbm")); m_type = wxBITMAP_TYPE_PNM; m_mime = wxT("image/pnm"); } @@ -35,6 +34,7 @@ public: #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 ); +protected: virtual bool DoCanRead( wxInputStream& stream ); #endif