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:
@@ -12,6 +12,11 @@
|
|||||||
#ifndef _MIMETYPE_H
|
#ifndef _MIMETYPE_H
|
||||||
#define _MIMETYPE_H
|
#define _MIMETYPE_H
|
||||||
|
|
||||||
|
#ifdef __GNUG__
|
||||||
|
#pragma interface "mimetypebase.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// fwd decls
|
// fwd decls
|
||||||
class wxIcon;
|
class wxIcon;
|
||||||
class wxFileTypeImpl;
|
class wxFileTypeImpl;
|
||||||
@@ -23,6 +28,7 @@ class wxMimeTypesManagerImpl;
|
|||||||
|
|
||||||
// the things we really need
|
// the things we really need
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
#include "wx/dynarray.h"
|
||||||
|
|
||||||
// This class holds information about a given "file type". File type is the
|
// 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
|
// 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
|
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
|
// This class accesses the information about all known MIME types and allows
|
||||||
// the application to retrieve information (including how to handle data of
|
// the application to retrieve information (including how to handle data of
|
||||||
// given type) about them.
|
// given type) about them.
|
||||||
@@ -215,8 +224,19 @@ private:
|
|||||||
wxMimeTypesManager& operator=(const wxMimeTypesManager&);
|
wxMimeTypesManager& operator=(const wxMimeTypesManager&);
|
||||||
|
|
||||||
wxMimeTypesManagerImpl *m_impl;
|
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
|
#endif
|
||||||
// wxUSE_FILE
|
// wxUSE_FILE
|
||||||
|
|
||||||
|
@@ -320,7 +320,7 @@ SOURCE=.\common\menucmn.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\common\mimetype.cpp
|
SOURCE=.\common\mimecmn.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
@@ -902,6 +902,10 @@ SOURCE=.\msw\metafile.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\msw\mimetype.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\msw\minifram.cpp
|
SOURCE=.\msw\minifram.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
@@ -327,7 +327,7 @@ SOURCE=.\common\menucmn.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\common\mimetype.cpp
|
SOURCE=.\common\mimecmn.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
@@ -900,6 +900,10 @@ SOURCE=.\msw\metafile.cpp
|
|||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\msw\mimetype.cpp
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
SOURCE=.\msw\minifram.cpp
|
SOURCE=.\msw\minifram.cpp
|
||||||
# End Source File
|
# End Source File
|
||||||
# Begin Source File
|
# Begin Source File
|
||||||
|
Reference in New Issue
Block a user