#include "wx/dynarray.h"
#include "wx/confbase.h"
+#if wxUSE_FILE
+
#include "wx/os2/mimetype.h"
// other standard headers
return FALSE;
}
+bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
+{
+ wxString s;
+
+ if (GetMimeType(&s))
+ {
+ mimeTypes.Clear();
+ mimeTypes.Add(s);
+ return TRUE;
+ }
+ else
+ return FALSE;
+}
+
bool wxFileTypeImpl::GetIcon(wxIcon *icon) const
{
#if wxUSE_GUI
{
// add the leading point if necessary
wxString str;
- if ( ext[0u] != wxT('.') ) {
+ if ( ext[(size_t) 0] != wxT('.') ) {
str = wxT('.');
}
str << ext;
return 0;
}
+#endif //wxUSE_FILE