2011-07-30 10:22:15 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-08-14 08:15:34 -04:00
|
|
|
// Name: webviewarchivehandler.h
|
|
|
|
// Purpose: Custom webview handler to allow archive browsing
|
2011-07-30 10:22:15 -04:00
|
|
|
// Author: Steven Lamerton
|
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 2011 Steven Lamerton
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_WEB_VIEW_FILE_HANDLER_H_
|
|
|
|
#define _WX_WEB_VIEW_FILE_HANDLER_H_
|
|
|
|
|
|
|
|
#include "wx/setup.h"
|
|
|
|
|
2011-09-11 09:26:24 -04:00
|
|
|
#if wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)
|
2011-07-30 10:22:15 -04:00
|
|
|
|
|
|
|
class wxFSFile;
|
|
|
|
class wxFileSystem;
|
|
|
|
|
|
|
|
#include "wx/webview.h"
|
|
|
|
|
2011-08-14 08:15:34 -04:00
|
|
|
//Loads from uris such as scheme:///C:/example/example.html or archives such as
|
|
|
|
//scheme:///C:/example/example.zip;protocol=zip/example.html
|
2011-07-30 10:22:15 -04:00
|
|
|
|
2011-08-19 06:45:16 -04:00
|
|
|
class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
|
2011-07-30 10:22:15 -04:00
|
|
|
{
|
|
|
|
public:
|
2011-08-14 08:15:34 -04:00
|
|
|
wxWebViewArchiveHandler(const wxString& scheme);
|
2011-08-20 06:59:09 -04:00
|
|
|
virtual ~wxWebViewArchiveHandler() {}
|
2011-07-30 10:22:15 -04:00
|
|
|
virtual wxFSFile* GetFile(const wxString &uri);
|
|
|
|
private:
|
|
|
|
wxFileSystem* m_fileSystem;
|
|
|
|
};
|
|
|
|
|
2011-09-11 09:26:24 -04:00
|
|
|
#endif // wxUSE_WEBVIEW && (wxUSE_WEBVIEW_WEBKIT || wxUSE_WEBVIEW_IE)
|
2011-07-30 10:22:15 -04:00
|
|
|
|
|
|
|
#endif // _WX_WEB_VIEW_FILE_HANDLER_H_
|