X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/805f26b316f6e170226d9e91e93f8a3d82a79c70..041973c55e06e98c724846d3ffac5e5284f07167:/include/wx/mimetype.h diff --git a/include/wx/mimetype.h b/include/wx/mimetype.h index 744d112a39..973162160c 100644 --- a/include/wx/mimetype.h +++ b/include/wx/mimetype.h @@ -7,7 +7,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 _WX_MIMETYPE_H_ @@ -30,7 +30,12 @@ #include "wx/dynarray.h" // fwd decls -class WXDLLEXPORT wxIcon; +#if defined(__WXMSW__) +class WXDLLEXPORT wxIconLocation; +#else +class WXDLLEXPORT wxIconLocationBase; +typedef wxIconLocationBase wxIconLocation; +#endif //defined(__WXMSW__) class WXDLLEXPORT wxFileTypeImpl; class WXDLLEXPORT wxMimeTypesManagerImpl; @@ -209,12 +214,8 @@ public: // fill passed in array with all extensions associated with this file // type bool GetExtensions(wxArrayString& extensions); - // get the icon corresponding to this file type, the name of the file - // where the icon resides is return in iconfile if !NULL and its index - // in this file (Win-only) is in iconIndex - bool GetIcon(wxIcon *icon, - wxString *iconFile = NULL, - int *iconIndex = NULL) const; + // get the icon corresponding to this file type and of the given size + bool GetIcon(wxIconLocation *iconloc) const; // get a brief file type description ("*.txt" => "text document") bool GetDescription(wxString *desc) const;