previous versions. Still overridden by wxFS_SEEKABLE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43505
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
friend bool wxZipOutputStream::CopyArchiveMetaData(
wxZipInputStream& inputStream);
friend bool wxZipOutputStream::CopyArchiveMetaData(
wxZipInputStream& inputStream);
-#if WXWIN_COMPATIBILITY_2_6 && wxUSE_FFILE
+#if WXWIN_COMPATIBILITY_2_6
- friend class wxZipFSInputStream;
+ friend class wxArchiveFSHandler;
#endif
DECLARE_NO_COPY_CLASS(wxZipInputStream)
#endif
DECLARE_NO_COPY_CLASS(wxZipInputStream)
#include "wx/log.h"
#endif
#include "wx/log.h"
#endif
+#if WXWIN_COMPATIBILITY_2_6
+ #include "wx/zipstrm.h"
+#else
+ #include "wx/archive.h"
+#endif
+
#include "wx/private/fileback.h"
//---------------------------------------------------------------------------
#include "wx/private/fileback.h"
//---------------------------------------------------------------------------
s->OpenEntry(*entry);
if (s && s->IsOk())
s->OpenEntry(*entry);
if (s && s->IsOk())
+ {
+#if WXWIN_COMPATIBILITY_2_6
+ if (factory->IsKindOf(CLASSINFO(wxZipClassFactory)))
+ ((wxZipInputStream*)s)->m_allowSeeking = true;
+#endif // WXWIN_COMPATIBILITY_2_6
+
return new wxFSFile(s,
key + right,
GetMimeTypeFromExt(location),
return new wxFSFile(s,
key + right,
GetMimeTypeFromExt(location),
, entry->GetDateTime()
#endif // wxUSE_DATETIME
);
, entry->GetDateTime()
#endif // wxUSE_DATETIME
);
m_signature = 0;
m_TotalEntries = 0;
m_lasterror = m_parent_i_stream->GetLastError();
m_signature = 0;
m_TotalEntries = 0;
m_lasterror = m_parent_i_stream->GetLastError();
-#if WXWIN_COMPATIBILITY_2_6 && wxUSE_FFILE
+#if WXWIN_COMPATIBILITY_2_6
m_allowSeeking = false;
#endif
}
m_allowSeeking = false;
#endif
}
-#if WXWIN_COMPATIBILITY_2_6 && wxUSE_FFILE
+#if WXWIN_COMPATIBILITY_2_6
// Borrowed from VS's zip stream (c) 1999 Vaclav Slavik
//
// Borrowed from VS's zip stream (c) 1999 Vaclav Slavik
//
-#endif // WXWIN_COMPATIBILITY_2_6 && wxUSE_FFILE
+#endif // WXWIN_COMPATIBILITY_2_6
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////