+ size_t countAll = m_impl->EnumAllFileTypes(mimetypes);
+
+ // add the fallback filetypes
+ size_t count = m_fallbacks.GetCount();
+ for ( size_t n = 0; n < count; n++ ) {
+ if ( mimetypes.Index(m_fallbacks[n].GetMimeType()) == wxNOT_FOUND ) {
+ mimetypes.Add(m_fallbacks[n].GetMimeType());
+ countAll++;
+ }
+ }
+
+ return countAll;
+}
+
+void wxMimeTypesManager::Initialize(int mcapStyle,
+ const wxString& sExtraDir)
+{
+#if defined(__UNIX__) && !defined(__WXPM__) && !defined(__CYGWIN__) && !defined(__WINE__)
+ EnsureImpl();
+
+ m_impl->Initialize(mcapStyle, sExtraDir);
+#else
+ (void)mcapStyle;
+ (void)sExtraDir;
+#endif // Unix