X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af49c4b8a2d3553e733e71c7dd3911881f4c1a2a..9bb1b0554014ee7f1e482d64c899ecef0391e74b:/include/wx/mimetype.h diff --git a/include/wx/mimetype.h b/include/wx/mimetype.h index 87c55befac..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; @@ -81,10 +86,10 @@ class WXDLLEXPORT wxFileTypeInfo public: // ctors // a normal item - wxFileTypeInfo(const char *mimeType, - const char *openCmd, - const char *printCmd, - const char *desc, + wxFileTypeInfo(const wxChar *mimeType, + const wxChar *openCmd, + const wxChar *printCmd, + const wxChar *desc, // the other parameters form a NULL terminated list of // extensions ...); @@ -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; @@ -305,7 +306,7 @@ public: // // use the extraDir parameter if you want to look for files in another // directory - void Initialize(int mailcapStyle = wxMAILCAP_STANDARD, + void Initialize(int mailcapStyle = wxMAILCAP_ALL, const wxString& extraDir = wxEmptyString); // and this function clears all the data from the manager