2011-07-30 14:22:15 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-08-14 12:15:34 +00:00
|
|
|
// Name: webviewarchivehandler.h
|
|
|
|
// Purpose: Custom webview handler to allow archive browsing
|
2011-07-30 14:22:15 +00: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-08-19 09:15:06 +00:00
|
|
|
#if wxUSE_WEBVIEW
|
2011-07-30 14:22:15 +00:00
|
|
|
|
|
|
|
class wxFSFile;
|
|
|
|
class wxFileSystem;
|
|
|
|
|
|
|
|
#include "wx/webview.h"
|
|
|
|
|
2011-08-14 12:15:34 +00: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 14:22:15 +00:00
|
|
|
|
2011-08-19 10:45:16 +00:00
|
|
|
class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
|
2011-07-30 14:22:15 +00:00
|
|
|
{
|
|
|
|
public:
|
2011-08-14 12:15:34 +00:00
|
|
|
wxWebViewArchiveHandler(const wxString& scheme);
|
2011-07-30 14:22:15 +00:00
|
|
|
virtual wxFSFile* GetFile(const wxString &uri);
|
|
|
|
private:
|
|
|
|
wxFileSystem* m_fileSystem;
|
|
|
|
};
|
|
|
|
|
2011-08-19 09:15:06 +00:00
|
|
|
#endif // wxUSE_WEBVIEW
|
2011-07-30 14:22:15 +00:00
|
|
|
|
|
|
|
#endif // _WX_WEB_VIEW_FILE_HANDLER_H_
|