documented VFS handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,10 +61,36 @@ which is at WWW.
|
|||||||
|
|
||||||
\wxheading{File Systems Included in wxHTML}
|
\wxheading{File Systems Included in wxHTML}
|
||||||
|
|
||||||
\begin{enumerate}\itemsep=0pt
|
Following VFS handlers are part of wxWindows so far:
|
||||||
\item Local files
|
|
||||||
\item HTTP protocol
|
\begin{twocollist}
|
||||||
\item FTP protocol
|
\twocolitem{{\bf wxInternetFSHandler}}{Handler for accessing documents
|
||||||
\item .ZIP archives
|
via HTTP or FTP protocols. Include file is <wx/fs_inet.h>.}
|
||||||
\end{enumerate}
|
\twocolitem{{\bf wxZipFSHandler}}{Handler for ZIP archives.
|
||||||
|
Include file is <wx/fs_zip.h>. URL is in form "archive.zip\#zip:filename".}
|
||||||
|
\twocolitem{{\bf wxMemoryFSHandler}}{This handler allows you to access
|
||||||
|
data stored in memory (such as bitmaps) as if they were regular files.
|
||||||
|
See \helpref{wxMemoryFSHandler documentation}{wxmemoryfshandler} for details.
|
||||||
|
Include file is <wx/fs_mem.h>. UURL is prefixed with memory:, e.g.
|
||||||
|
"memory:myfile.htm"}
|
||||||
|
\end{twocollist}
|
||||||
|
|
||||||
|
In addition, wxFileSystem can access local files.
|
||||||
|
|
||||||
|
|
||||||
|
Use \helpref{wxFileSystem::AddHandler}{wxfilesystemaddhandler} to initialize
|
||||||
|
a handler, for example:
|
||||||
|
|
||||||
|
\begin{verbatim}
|
||||||
|
#include <wx/fs_mem.h>
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
bool MyApp::OnInit()
|
||||||
|
{
|
||||||
|
wxFileSystem::AddHandler(new wxMemoryFSHandler);
|
||||||
|
...
|
||||||
|
\end{verbatim}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user