Set svn properties on recently added files.
Added svn:eol-style (set to native) and svn:keywords (set to Id) for .cpp and .h files that were added since r72218. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,38 +1,38 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: webviewfshandler.h
|
// Name: webviewfshandler.h
|
||||||
// Purpose: Custom webview handler for virtual file system
|
// Purpose: Custom webview handler for virtual file system
|
||||||
// Author: Nick Matthews
|
// Author: Nick Matthews
|
||||||
// Id: $Id$
|
// Id: $Id$
|
||||||
// Copyright: (c) 2012 Steven Lamerton
|
// Copyright: (c) 2012 Steven Lamerton
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Based on webviewarchivehandler.h file by Steven Lamerton
|
// Based on webviewarchivehandler.h file by Steven Lamerton
|
||||||
|
|
||||||
#ifndef _WX_WEB_VIEW_FS_HANDLER_H_
|
#ifndef _WX_WEB_VIEW_FS_HANDLER_H_
|
||||||
#define _WX_WEB_VIEW_FS_HANDLER_H_
|
#define _WX_WEB_VIEW_FS_HANDLER_H_
|
||||||
|
|
||||||
#include "wx/setup.h"
|
#include "wx/setup.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
class wxFSFile;
|
class wxFSFile;
|
||||||
class wxFileSystem;
|
class wxFileSystem;
|
||||||
|
|
||||||
#include "wx/webview.h"
|
#include "wx/webview.h"
|
||||||
|
|
||||||
//Loads from uris such as scheme:example.html
|
//Loads from uris such as scheme:example.html
|
||||||
|
|
||||||
class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler
|
class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxWebViewFSHandler(const wxString& scheme);
|
wxWebViewFSHandler(const wxString& scheme);
|
||||||
virtual ~wxWebViewFSHandler();
|
virtual ~wxWebViewFSHandler();
|
||||||
virtual wxFSFile* GetFile(const wxString &uri);
|
virtual wxFSFile* GetFile(const wxString &uri);
|
||||||
private:
|
private:
|
||||||
wxFileSystem* m_fileSystem;
|
wxFileSystem* m_fileSystem;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW
|
#endif // wxUSE_WEBVIEW
|
||||||
|
|
||||||
#endif // _WX_WEB_VIEW_FS_HANDLER_H_
|
#endif // _WX_WEB_VIEW_FS_HANDLER_H_
|
||||||
|
@@ -1,32 +1,32 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: webviewfshandler.h
|
// Name: webviewfshandler.h
|
||||||
// Purpose: interface of wxWebViewFSHandler
|
// Purpose: interface of wxWebViewFSHandler
|
||||||
// Author: wxWidgets team
|
// Author: wxWidgets team
|
||||||
// RCS-ID: $Id$
|
// RCS-ID: $Id$
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@class wxWebViewFSHandler
|
@class wxWebViewFSHandler
|
||||||
|
|
||||||
A wxWebView file system handler to support standard wxFileSystem protocols
|
A wxWebView file system handler to support standard wxFileSystem protocols
|
||||||
of the form <code> example:page.htm </code> The handler allows wxWebView to
|
of the form <code> example:page.htm </code> The handler allows wxWebView to
|
||||||
use wxFileSystem in a similar fashion to its use with wxHtml.
|
use wxFileSystem in a similar fashion to its use with wxHtml.
|
||||||
|
|
||||||
The wxMemoryFSHandler documentation gives an example of how it may be used.
|
The wxMemoryFSHandler documentation gives an example of how it may be used.
|
||||||
|
|
||||||
@since 2.9.5
|
@since 2.9.5
|
||||||
@library{wxwebview}
|
@library{wxwebview}
|
||||||
@category{webview}
|
@category{webview}
|
||||||
|
|
||||||
@see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler
|
@see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler
|
||||||
*/
|
*/
|
||||||
class wxWebViewFSHandler : public wxWebViewHandler
|
class wxWebViewFSHandler : public wxWebViewHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
Constructor.
|
Constructor.
|
||||||
*/
|
*/
|
||||||
wxWebViewFSHandler(const wxString& scheme);
|
wxWebViewFSHandler(const wxString& scheme);
|
||||||
virtual wxFSFile* GetFile(const wxString &uri);
|
virtual wxFSFile* GetFile(const wxString &uri);
|
||||||
};
|
};
|
||||||
|
@@ -1,38 +1,38 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: webviewfshandler.cpp
|
// Name: webviewfshandler.cpp
|
||||||
// Purpose: Custom webview handler for virtual file system
|
// Purpose: Custom webview handler for virtual file system
|
||||||
// Author: Nick Matthews
|
// Author: Nick Matthews
|
||||||
// Id: $Id$
|
// Id: $Id$
|
||||||
// Copyright: (c) 2012 Steven Lamerton
|
// Copyright: (c) 2012 Steven Lamerton
|
||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
#if wxUSE_WEBVIEW
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
#if defined(__BORLANDC__)
|
#if defined(__BORLANDC__)
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/webviewfshandler.h"
|
#include "wx/webviewfshandler.h"
|
||||||
#include "wx/filesys.h"
|
#include "wx/filesys.h"
|
||||||
|
|
||||||
wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :
|
wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) :
|
||||||
wxWebViewHandler(scheme)
|
wxWebViewHandler(scheme)
|
||||||
{
|
{
|
||||||
m_fileSystem = new wxFileSystem();
|
m_fileSystem = new wxFileSystem();
|
||||||
}
|
}
|
||||||
|
|
||||||
wxWebViewFSHandler::~wxWebViewFSHandler()
|
wxWebViewFSHandler::~wxWebViewFSHandler()
|
||||||
{
|
{
|
||||||
wxDELETE(m_fileSystem);
|
wxDELETE(m_fileSystem);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)
|
wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri)
|
||||||
{
|
{
|
||||||
return m_fileSystem->OpenFile(uri);
|
return m_fileSystem->OpenFile(uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_WEBVIEW
|
#endif // wxUSE_WEBVIEW
|
||||||
|
Reference in New Issue
Block a user