split mimetype.h/.cpp into platform specific code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-01-19 23:06:11 +00:00
parent 065eb1427a
commit ecf23aa626
3 changed files with 30 additions and 2 deletions

View File

@@ -12,6 +12,11 @@
#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

View 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

View 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