]> git.saurik.com Git - wxWidgets.git/blob - src/common/sckfile.cpp
SetFont() the second
[wxWidgets.git] / src / common / sckfile.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: sckfile.cpp
3 // Purpose: File protocol
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 20/07/97
7 // RCS-ID: $Id$
8 // Copyright: (c) 1997, 1998 Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11 #ifdef __GNUG__
12 #pragma implementation "sckfile.h"
13 #endif
14 #include <stdio.h>
15 #include <stdlib.h>
16 #include <wx/fstream.h>
17 #include "wx/protocol/file.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #if !USE_SHARED_LIBRARY
24 IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol)
25 IMPLEMENT_PROTOCOL(wxFileProto, "file", NULL, FALSE)
26 #endif
27
28 wxFileProto::wxFileProto()
29 : wxProtocol()
30 {
31 }
32
33 wxFileProto::~wxFileProto()
34 {
35 }
36
37 wxInputStream *wxFileProto::GetInputStream(const wxString& path)
38 {
39 return new wxFileInputStream(path);
40 }