X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b813b73cd79cfb4d275e9628811f379e8c5ee39..1338c59a025505bc066be220fe56e898a72b3ad3:/include/wx/msw/mimetype.h diff --git a/include/wx/msw/mimetype.h b/include/wx/msw/mimetype.h index 724b64de55..5170b63618 100644 --- a/include/wx/msw/mimetype.h +++ b/include/wx/msw/mimetype.h @@ -6,7 +6,7 @@ // Created: 23.09.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license (part of wxExtra library) +// Licence: wxWindows licence (part of wxExtra library) ///////////////////////////////////////////////////////////////////////////// #ifndef _MIMETYPE_IMPL_H @@ -18,6 +18,8 @@ #include "wx/defs.h" +#if wxUSE_MIMETYPE + #include "wx/mimetype.h" // ---------------------------------------------------------------------------- @@ -42,7 +44,8 @@ public: bool GetExtensions(wxArrayString& extensions); bool GetMimeType(wxString *mimeType) const; bool GetMimeTypes(wxArrayString& mimeTypes) const; - bool GetIcon(wxIcon *icon, wxString *sCommand = NULL, int *iIndex = NULL) const; + bool GetIcon(wxIcon *icon, wxString *sCommand = NULL, int *iIndex = NULL, + int iconSize = wxICON_LARGE) const; bool GetDescription(wxString *desc) const; bool GetOpenCommand(wxString *openCmd, const wxFileType::MessageParameters& params) const; @@ -104,10 +107,10 @@ public: size_t EnumAllFileTypes(wxArrayString& mimetypes); - // these are NOPs under Windows - bool ReadMailcap(const wxString& filename, bool fallback = TRUE) + // this are NOPs under Windows + bool ReadMailcap(const wxString& WXUNUSED(filename), bool WXUNUSED(fallback) = TRUE) { return TRUE; } - bool ReadMimeTypes(const wxString& filename) + bool ReadMimeTypes(const wxString& WXUNUSED(filename)) { return TRUE; } // create a new filetype association @@ -117,6 +120,7 @@ public: wxFileType *CreateFileType(const wxString& filetype, const wxString& ext); }; +#endif // wxUSE_MIMETYPE #endif //_MIMETYPE_IMPL_H