]> git.saurik.com Git - wxWidgets.git/commitdiff
split mimetype.h/.cpp into platform specific code
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:06:11 +0000 (23:06 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 19 Jan 2000 23:06:11 +0000 (23:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mimetype.h
src/wxvc.dsp
src/wxvc_dll.dsp

index ca17706d16e5b944cf684dbb1d97d080842f862e..0626bba4d479bc60759e95741a1c7617f040cd3e 100644 (file)
 #ifndef _MIMETYPE_H
 #define _MIMETYPE_H
 
+#ifdef __GNUG__
+#pragma interface "mimetypebase.h"
+#endif
+
+
 // fwd decls
 class wxIcon;
 class wxFileTypeImpl;
@@ -23,6 +28,7 @@ class wxMimeTypesManagerImpl;
 
 // the things we really need
 #include "wx/string.h"
+#include "wx/dynarray.h"
 
 // This class holds information about a given "file type". File type is the
 // same as MIME type under Unix, but under Windows it corresponds more to an
@@ -148,6 +154,9 @@ private:
     wxArrayString m_exts;   // the extensions which are mapped on this filetype
 };
 
+WX_DECLARE_EXPORTED_OBJARRAY(wxFileTypeInfo, wxArrayFileTypeInfo);
+
+
 // This class accesses the information about all known MIME types and allows
 // the application to retrieve information (including how to handle data of
 // given type) about them.
@@ -215,8 +224,19 @@ private:
     wxMimeTypesManager& operator=(const wxMimeTypesManager&);
 
     wxMimeTypesManagerImpl *m_impl;
+    
+    // if m_impl is NULL, create one
+    void EnsureImpl();
 };
 
+
+// ----------------------------------------------------------------------------
+// global variables
+// ----------------------------------------------------------------------------
+
+// the default mime manager for wxWindows programs
+WXDLLEXPORT_DATA(extern wxMimeTypesManager *) wxTheMimeTypesManager;
+
 #endif
   // wxUSE_FILE
 
index 8d2309bbadf6fc79d92f5c0f25444d7e1a6d4c11..2e647b95fc61bde41b71daa96ecdad7b9a04bd43 100644 (file)
@@ -320,7 +320,7 @@ SOURCE=.\common\menucmn.cpp
 # End Source File
 # Begin Source File
 
-SOURCE=.\common\mimetype.cpp
+SOURCE=.\common\mimecmn.cpp
 # End Source File
 # Begin Source File
 
@@ -902,6 +902,10 @@ SOURCE=.\msw\metafile.cpp
 # End Source File
 # Begin Source File
 
+SOURCE=.\msw\mimetype.cpp
+# End Source File
+# Begin Source File
+
 SOURCE=.\msw\minifram.cpp
 # End Source File
 # Begin Source File
index 075a64cf14f08c5fe49403c9fef140795e2c5e63..0450bbdfbac673d22939661d9ee92da255dfc3d7 100644 (file)
@@ -327,7 +327,7 @@ SOURCE=.\common\menucmn.cpp
 # End Source File
 # Begin Source File
 
-SOURCE=.\common\mimetype.cpp
+SOURCE=.\common\mimecmn.cpp
 # End Source File
 # Begin Source File
 
@@ -900,6 +900,10 @@ SOURCE=.\msw\metafile.cpp
 # End Source File
 # Begin Source File
 
+SOURCE=.\msw\mimetype.cpp
+# End Source File
+# Begin Source File
+
 SOURCE=.\msw\minifram.cpp
 # End Source File
 # Begin Source File