]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msdos/mimetype.cpp
Added further API for intercepting deletion and content insertion
[wxWidgets.git] / src / msdos / mimetype.cpp
index 0665e79ab91982cd06027f4396c3b76fe37dd657..a2b49913d264ec82526f899445f3671608d71f13 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-  #pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-  #include "wx/defs.h"
-#endif
+#if wxUSE_MIMETYPE
+
+#include "wx/msdos/mimetype.h"
 
 #ifndef WX_PRECOMP
-  #include "wx/string.h"
-  #if wxUSE_GUI
-    #include "wx/icon.h"
-  #endif
+    #include "wx/dynarray.h"
+    #include "wx/string.h"
+    #include "wx/intl.h"
+    #include "wx/log.h"
+    #if wxUSE_GUI
+        #include "wx/icon.h"
+    #endif
 #endif //WX_PRECOMP
 
-#if wxUSE_MIMETYPE
-
-#include "wx/log.h"
 #include "wx/file.h"
-#include "wx/intl.h"
-#include "wx/dynarray.h"
 #include "wx/confbase.h"
 
-#include "wx/msdos/mimetype.h"
-
 // other standard headers
 #include <ctype.h>
 
@@ -69,7 +65,7 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& WXUNUSED(extensions))
 
 bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
 {
-    if ( m_strFileType.Length() > 0 )
+    if ( !m_strFileType.empty() )
     {
         *mimeType = m_strFileType ;
         return true ;
@@ -108,7 +104,7 @@ wxFileTypeImpl::GetAllCommands(wxArrayString * WXUNUSED(verbs),
                                wxArrayString * WXUNUSED(commands),
                                const wxFileType::MessageParameters& WXUNUSED(params)) const
 {
-    wxFAIL_MSG( _T("wxFileTypeImpl::GetAllCommands() not yet implemented") );
+    wxFAIL_MSG( wxT("wxFileTypeImpl::GetAllCommands() not yet implemented") );
     return 0;
 }
 
@@ -116,13 +112,13 @@ void
 wxMimeTypesManagerImpl::Initialize(int WXUNUSED(mailcapStyles),
                                    const wxString& WXUNUSED(extraDir))
 {
-    wxFAIL_MSG( _T("wxMimeTypesManagerImpl::Initialize() not yet implemented") );
+    wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::Initialize() not yet implemented") );
 }
 
 void
 wxMimeTypesManagerImpl::ClearData()
 {
-    wxFAIL_MSG( _T("wxMimeTypesManagerImpl::ClearData() not yet implemented") );
+    wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::ClearData() not yet implemented") );
 }
 
 // extension -> file type
@@ -209,7 +205,7 @@ wxMimeTypesManagerImpl::GetFileTypeFromMimeType(const wxString& WXUNUSED(mimeTyp
 size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& WXUNUSED(mimetypes))
 {
     // VZ: don't know anything about this for Mac
-    wxFAIL_MSG( _T("wxMimeTypesManagerImpl::EnumAllFileTypes() not yet implemented") );
+    wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::EnumAllFileTypes() not yet implemented") );
 
     return 0;
 }
@@ -217,7 +213,7 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& WXUNUSED(mimetype
 wxFileType *
 wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& WXUNUSED(ftInfo))
 {
-    wxFAIL_MSG( _T("wxMimeTypesManagerImpl::Associate() not yet implemented") );
+    wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::Associate() not yet implemented") );
 
     return NULL;
 }