X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bddd7a8d8953cf4c09e56c13e1bfcc594ba0267e..1b52f7aba0dce7c2a1d26d41a930856b93b02870:/include/wx/mimetype.h diff --git a/include/wx/mimetype.h b/include/wx/mimetype.h index f7cab60e83..5aa2438f8c 100644 --- a/include/wx/mimetype.h +++ b/include/wx/mimetype.h @@ -13,7 +13,7 @@ #ifndef _WX_MIMETYPE_H_ #define _WX_MIMETYPE_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "mimetypebase.h" #endif // __GNUG__ @@ -149,7 +149,8 @@ private: #endif // 0 }; -WX_DECLARE_EXPORTED_OBJARRAY(wxFileTypeInfo, wxArrayFileTypeInfo); +WX_DECLARE_USER_EXPORTED_OBJARRAY(wxFileTypeInfo, wxArrayFileTypeInfo, + WXDLLIMPEXP_BASE); // ---------------------------------------------------------------------------- // wxFileType: gives access to all information about the files of given type. @@ -177,7 +178,7 @@ public: // ctors MessageParameters() { } MessageParameters(const wxString& filename, - const wxString& mimetype = _T("")) + const wxString& mimetype = wxEmptyString) : m_filename(filename), m_mimetype(mimetype) { } // accessors (called by GetOpenCommand) @@ -211,6 +212,8 @@ public: bool GetExtensions(wxArrayString& extensions); // get the icon corresponding to this file type and of the given size bool GetIcon(wxIconLocation *iconloc) const; + bool GetIcon(wxIconLocation *iconloc, + const MessageParameters& params) const; // get a brief file type description ("*.txt" => "text document") bool GetDescription(wxString *desc) const;