From 81a887a895e89622649ff394820800e2071fe6df Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Mon, 17 Sep 2012 23:35:26 +0000 Subject: [PATCH] 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 --- include/wx/webviewfshandler.h | 76 ++++++++++++++++----------------- interface/wx/webviewfshandler.h | 64 +++++++++++++-------------- src/common/webviewfshandler.cpp | 76 ++++++++++++++++----------------- 3 files changed, 108 insertions(+), 108 deletions(-) diff --git a/include/wx/webviewfshandler.h b/include/wx/webviewfshandler.h index 0e1705b624..4dde577976 100644 --- a/include/wx/webviewfshandler.h +++ b/include/wx/webviewfshandler.h @@ -1,38 +1,38 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: webviewfshandler.h -// Purpose: Custom webview handler for virtual file system -// Author: Nick Matthews -// Id: $Id$ -// Copyright: (c) 2012 Steven Lamerton -// Licence: wxWindows licence -///////////////////////////////////////////////////////////////////////////// - -// Based on webviewarchivehandler.h file by Steven Lamerton - -#ifndef _WX_WEB_VIEW_FS_HANDLER_H_ -#define _WX_WEB_VIEW_FS_HANDLER_H_ - -#include "wx/setup.h" - -#if wxUSE_WEBVIEW - -class wxFSFile; -class wxFileSystem; - -#include "wx/webview.h" - -//Loads from uris such as scheme:example.html - -class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler -{ -public: - wxWebViewFSHandler(const wxString& scheme); - virtual ~wxWebViewFSHandler(); - virtual wxFSFile* GetFile(const wxString &uri); -private: - wxFileSystem* m_fileSystem; -}; - -#endif // wxUSE_WEBVIEW - -#endif // _WX_WEB_VIEW_FS_HANDLER_H_ +///////////////////////////////////////////////////////////////////////////// +// Name: webviewfshandler.h +// Purpose: Custom webview handler for virtual file system +// Author: Nick Matthews +// Id: $Id$ +// Copyright: (c) 2012 Steven Lamerton +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +// Based on webviewarchivehandler.h file by Steven Lamerton + +#ifndef _WX_WEB_VIEW_FS_HANDLER_H_ +#define _WX_WEB_VIEW_FS_HANDLER_H_ + +#include "wx/setup.h" + +#if wxUSE_WEBVIEW + +class wxFSFile; +class wxFileSystem; + +#include "wx/webview.h" + +//Loads from uris such as scheme:example.html + +class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler +{ +public: + wxWebViewFSHandler(const wxString& scheme); + virtual ~wxWebViewFSHandler(); + virtual wxFSFile* GetFile(const wxString &uri); +private: + wxFileSystem* m_fileSystem; +}; + +#endif // wxUSE_WEBVIEW + +#endif // _WX_WEB_VIEW_FS_HANDLER_H_ diff --git a/interface/wx/webviewfshandler.h b/interface/wx/webviewfshandler.h index 75399da427..86b140ff75 100644 --- a/interface/wx/webviewfshandler.h +++ b/interface/wx/webviewfshandler.h @@ -1,32 +1,32 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: webviewfshandler.h -// Purpose: interface of wxWebViewFSHandler -// Author: wxWidgets team -// RCS-ID: $Id$ -// Licence: wxWindows licence -///////////////////////////////////////////////////////////////////////////// - -/** - @class wxWebViewFSHandler - - A wxWebView file system handler to support standard wxFileSystem protocols - of the form example:page.htm The handler allows wxWebView to - use wxFileSystem in a similar fashion to its use with wxHtml. - - The wxMemoryFSHandler documentation gives an example of how it may be used. - - @since 2.9.5 - @library{wxwebview} - @category{webview} - - @see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler - */ -class wxWebViewFSHandler : public wxWebViewHandler -{ -public: - /** - Constructor. - */ - wxWebViewFSHandler(const wxString& scheme); - virtual wxFSFile* GetFile(const wxString &uri); -}; +///////////////////////////////////////////////////////////////////////////// +// Name: webviewfshandler.h +// Purpose: interface of wxWebViewFSHandler +// Author: wxWidgets team +// RCS-ID: $Id$ +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +/** + @class wxWebViewFSHandler + + A wxWebView file system handler to support standard wxFileSystem protocols + of the form example:page.htm The handler allows wxWebView to + use wxFileSystem in a similar fashion to its use with wxHtml. + + The wxMemoryFSHandler documentation gives an example of how it may be used. + + @since 2.9.5 + @library{wxwebview} + @category{webview} + + @see wxWebView, wxWebViewHandler, wxWebViewArchiveHandler + */ +class wxWebViewFSHandler : public wxWebViewHandler +{ +public: + /** + Constructor. + */ + wxWebViewFSHandler(const wxString& scheme); + virtual wxFSFile* GetFile(const wxString &uri); +}; diff --git a/src/common/webviewfshandler.cpp b/src/common/webviewfshandler.cpp index bf50748166..c5827dae26 100644 --- a/src/common/webviewfshandler.cpp +++ b/src/common/webviewfshandler.cpp @@ -1,38 +1,38 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: webviewfshandler.cpp -// Purpose: Custom webview handler for virtual file system -// Author: Nick Matthews -// Id: $Id$ -// Copyright: (c) 2012 Steven Lamerton -// Licence: wxWindows licence -///////////////////////////////////////////////////////////////////////////// - -// For compilers that support precompilation, includes "wx.h". -#include "wx/wxprec.h" - -#if wxUSE_WEBVIEW - -#if defined(__BORLANDC__) - #pragma hdrstop -#endif - -#include "wx/webviewfshandler.h" -#include "wx/filesys.h" - -wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) : - wxWebViewHandler(scheme) -{ - m_fileSystem = new wxFileSystem(); -} - -wxWebViewFSHandler::~wxWebViewFSHandler() -{ - wxDELETE(m_fileSystem); -} - -wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri) -{ - return m_fileSystem->OpenFile(uri); -} - -#endif // wxUSE_WEBVIEW +///////////////////////////////////////////////////////////////////////////// +// Name: webviewfshandler.cpp +// Purpose: Custom webview handler for virtual file system +// Author: Nick Matthews +// Id: $Id$ +// Copyright: (c) 2012 Steven Lamerton +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#if wxUSE_WEBVIEW + +#if defined(__BORLANDC__) + #pragma hdrstop +#endif + +#include "wx/webviewfshandler.h" +#include "wx/filesys.h" + +wxWebViewFSHandler::wxWebViewFSHandler(const wxString& scheme) : + wxWebViewHandler(scheme) +{ + m_fileSystem = new wxFileSystem(); +} + +wxWebViewFSHandler::~wxWebViewFSHandler() +{ + wxDELETE(m_fileSystem); +} + +wxFSFile* wxWebViewFSHandler::GetFile(const wxString &uri) +{ + return m_fileSystem->OpenFile(uri); +} + +#endif // wxUSE_WEBVIEW