mod_hline.cpp H
mod_image.cpp H
mod_layout.cpp H
-mod_links.cpp H
+mod_links.cpp H
mod_list.cpp H
mod_pre.cpp H
mod_tables.cpp H
$file =~ s/cp?p?$/\$(OBJSUFF)/;
$project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
}
+
+ foreach $file (sort keys %wxHTML) {
+ $file =~ s/cp?p?$/\$(OBJSUFF)/;
+ $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
+ }
+
#$}
# This file was automatically generated by tmake at #$ Now()
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
#pragma hdrstop
#endif
+#if wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
+
#ifndef WXPRECOMP
#include <wx/wx.h>
#endif
~wxInternetFSHandler();
};
+#endif
+ // wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
#pragma hdrstop
#endif
+#if wxUSE_FS_ZIP && wxUSE_STREAMS
+
+
#ifndef WXPRECOMP
#include <wx/wx.h>
#endif
};
+#endif
+ // wxUSE_FS_ZIP && wxUSE_STREAMS
#include "wx/defs.h"
-#if wxUSE_SOCKETS
#include "wx/object.h"
#include "wx/string.h"
#include "wx/stream.h"
+
+#if wxUSE_SOCKETS
#include "wx/socket.h"
+#endif
typedef enum {
wxPROTO_NOERR = 0,
wxClassInfo *info);
};
-class WXDLLEXPORT wxProtocol : public wxSocketClient {
+class WXDLLEXPORT wxProtocol
+#if wxUSE_SOCKETS
+ : public wxSocketClient {
+#else
+ : public wxObject {
+#endif
DECLARE_ABSTRACT_CLASS(wxProtocol)
public:
wxProtocol();
+#if wxUSE_SOCKETS
bool Reconnect();
virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; }
virtual bool Connect( wxSockAddress& addr, bool WXUNUSED(wait) = TRUE) { return wxSocketClient::Connect(addr); }
+#endif
virtual bool Abort() = 0;
virtual wxInputStream *GetInputStream(const wxString& path) = 0;
virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {}
};
+#if wxUSE_SOCKETS
wxProtocolError WXDLLEXPORT GetLine(wxSocketBase *sock, wxString& result);
-
-#endif // wxUSE_SOCKETS
+#endif
#endif // _WX_PROTOCOL_PROTOCOL_H
// wxSocket headers
#include "wx/protocol/protocol.h"
-#include "wx/protocol/http.h"
+
+#if wxUSE_SOCKETS
+ #include "wx/protocol/http.h"
+#endif
typedef enum {
wxURL_NOERR = 0,
DECLARE_DYNAMIC_CLASS(wxURL)
protected:
static wxProtoInfo *g_protocols;
+#if wxUSE_SOCKETS
static wxHTTP *g_proxy;
+#endif
wxProtoInfo *m_protoinfo;
wxProtocol *m_protocol;
+#if wxUSE_SOCKETS
wxHTTP *m_proxy;
+#endif
wxURLError m_error;
wxString m_protoname, m_hostname, m_servname, m_path, m_url;
wxString m_user, m_password;
wxInputStream *GetInputStream();
+#if wxUSE_SOCKETS
static void SetDefaultProxy(const wxString& url_proxy);
void SetProxy(const wxString& url_proxy);
+#endif
static wxString ConvertToValidURI(const wxString& uri);
};
#
# Makefile for wxWindows sample (Cygwin/Mingw32).
-WXDIR = $(WXWIN)
+WXDIR = ../../..
TARGET=about
OBJECTS = $(TARGET).o
#endif
#if !wxUSE_SOCKETS
- #undef wxUSE_FS_ZIP
#undef wxUSE_FS_INET
- #define wxUSE_FS_ZIP 0
#define wxUSE_FS_INET 0
#endif
#pragma hdrstop
#endif
-#if !wxUSE_SOCKETS
- #undef wxUSE_FS_ZIP
- #define wxUSE_FS_ZIP 0
-#endif
-
#if wxUSE_FS_ZIP
#ifndef WXPRECOMP
#pragma hdrstop
#endif
-#if wxUSE_SOCKETS
-
#include "wx/protocol/protocol.h"
#include "wx/url.h"
#include "wx/module.h"
// wxProtocol ///////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
+#if wxUSE_SOCKETS
IMPLEMENT_ABSTRACT_CLASS(wxProtocol, wxSocketClient)
+#else
+IMPLEMENT_ABSTRACT_CLASS(wxProtocol, wxObject)
+#endif
wxProtocol::wxProtocol()
+#if wxUSE_SOCKETS
: wxSocketClient()
+#endif
{
}
+#if wxUSE_SOCKETS
bool wxProtocol::Reconnect()
{
wxIPV4address addr;
return wxPROTO_NOERR;
#undef PROTO_BSIZE
}
+#endif
// ----------------------------------------------------------------------
// Module
bool wxProtocolModule::OnInit()
{
+#if wxUSE_SOCKETS
char *env_http_prox;
wxURL::g_proxy = NULL;
env_http_prox = getenv("HTTP_PROXY");
if (env_http_prox)
wxURL::SetDefaultProxy(env_http_prox);
+#endif
return TRUE;
}
void wxProtocolModule::OnExit()
{
+#if wxUSE_SOCKETS
if (wxURL::g_proxy)
delete wxURL::g_proxy;
wxURL::g_proxy = NULL;
+#endif
}
-#endif
- // wxUSE_SOCKETS
#include "wx/defs.h"
#endif
-#if wxUSE_SOCKETS
-
#include <stdio.h>
#include <wx/wfstream.h>
#include <wx/protocol/file.h>
return new wxFileInputStream(path);
}
-#endif
- // wxUSE_SOCKETS
#pragma hdrstop
#endif
-#if wxUSE_SOCKETS
-
#include <string.h>
#include <ctype.h>
// Protocols list
wxProtoInfo *wxURL::g_protocols = NULL;
+
+#if wxUSE_SOCKETS
wxHTTP *wxURL::g_proxy = NULL;
+#endif
// --------------------------------------------------------------
// wxURL
m_protocol = NULL;
m_error = wxURL_NOERR;
m_url = url;
+#if wxUSE_SOCKETS
m_useProxy = (g_proxy != NULL);
m_proxy = g_proxy;
+#endif
ParseURL();
}
}
// URL parse finished.
+#if wxUSE_SOCKETS
if (m_useProxy) {
// We destroy the newly created protocol.
CleanData();
// We initialize specific variables.
m_protocol = m_proxy; // FIXME: we should clone the protocol
}
+#endif
m_error = wxURL_NOERR;
return TRUE;
void wxURL::CleanData()
{
+#if wxUSE_SOCKETS
if (!m_useProxy)
+#endif
delete m_protocol;
}
wxURL::~wxURL()
{
CleanData();
+#if wxUSE_SOCKETS
if (m_proxy && m_proxy != g_proxy)
delete m_proxy;
+#endif
}
// --------------------------------------------------------------
wxInputStream *wxURL::GetInputStream(void)
{
- wxIPV4address addr;
wxInputStream *the_i_stream = NULL;
if (!m_protocol) {
m_protocol->SetPassword(m_password);
}
+#if wxUSE_SOCKETS
// m_protoinfo is NULL when we use a proxy
if (!m_useProxy && m_protoinfo->m_needhost) {
if (!addr.Hostname(m_hostname)) {
return NULL;
}
+ wxIPV4address addr;
addr.Service(m_servname);
if (!m_protocol->Connect(addr, TRUE)) // Watcom needs the 2nd arg for some reason
return NULL;
}
}
+#endif
// When we use a proxy, we have to pass the whole URL to it.
if (m_useProxy)
return the_i_stream;
}
+#if wxUSE_SOCKETS
void wxURL::SetDefaultProxy(const wxString& url_proxy)
{
if (url_proxy.IsNull()) {
m_useProxy = TRUE;
ParseURL();
}
+#endif
wxString wxURL::ConvertToValidURI(const wxString& uri)
{
return out_str;
}
-#endif
- // wxUSE_SOCKETS
-# This file was automatically generated by tmake at 03:16, 1999/07/29
-# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GNU.T!
+# This file was automatically generated by tmake at 21:49, 1999/07/29
+# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GTK.T!
#
-# File: makefile.gnu
+# File: Makefile
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
# Created: 1993
# Updated: 1999
$(HTMLDIR)/mod_hline.$(OBJSUFF) \
$(HTMLDIR)/mod_image.$(OBJSUFF) \
$(HTMLDIR)/mod_layout.$(OBJSUFF) \
- $(HTMLDIR)/mod_links.cpp \
+ $(HTMLDIR)/mod_links.$(OBJSUFF) \
$(HTMLDIR)/mod_list.$(OBJSUFF) \
$(HTMLDIR)/mod_pre.$(OBJSUFF) \
$(HTMLDIR)/mod_tables.$(OBJSUFF) \
-# This file was automatically generated by tmake at 03:16, 1999/07/29
-# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GNU.T!
+# This file was automatically generated by tmake at 21:49, 1999/07/29
+# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GTK.T!
#
-# File: makefile.gnu
+# File: Makefile
# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
# Created: 1993
# Updated: 1999
$(HTMLDIR)/mod_hline.$(OBJSUFF) \
$(HTMLDIR)/mod_image.$(OBJSUFF) \
$(HTMLDIR)/mod_layout.$(OBJSUFF) \
- $(HTMLDIR)/mod_links.cpp \
+ $(HTMLDIR)/mod_links.$(OBJSUFF) \
$(HTMLDIR)/mod_list.$(OBJSUFF) \
$(HTMLDIR)/mod_pre.$(OBJSUFF) \
$(HTMLDIR)/mod_tables.$(OBJSUFF) \
#include "wx/button.h"
#include "wx/brush.h"
#include "wx/panel.h"
+ #include "wx/bmpbuttn.h"
#endif
#include "wx/msw/private.h"
wxLogLastError(_T("CB_GETITEMDATA"));
// unfortunately, there is no way to return an error code to the user
- rc = NULL;
+ rc = (LPARAM) NULL;
}
return (void *)rc;
-# This file was automatically generated by tmake at 02:15, 1999/07/29
+# This file was automatically generated by tmake at 21:49, 1999/07/29
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
#
$(COMMDIR)/zstream.$(OBJSUFF)
HTMLOBJS = \
+ $(HTMLDIR)/htmlcell.$(OBJSUFF) \
+ $(HTMLDIR)/htmlfilter.$(OBJSUFF) \
+ $(HTMLDIR)/htmlhelp.$(OBJSUFF) \
+ $(HTMLDIR)/htmlhelp_io.$(OBJSUFF) \
+ $(HTMLDIR)/htmlparser.$(OBJSUFF) \
+ $(HTMLDIR)/htmltag.$(OBJSUFF) \
+ $(HTMLDIR)/htmlwin.$(OBJSUFF) \
+ $(HTMLDIR)/htmlwinparser.$(OBJSUFF) \
+ $(HTMLDIR)/mod_fonts.$(OBJSUFF) \
+ $(HTMLDIR)/mod_hline.$(OBJSUFF) \
+ $(HTMLDIR)/mod_image.$(OBJSUFF) \
+ $(HTMLDIR)/mod_layout.$(OBJSUFF) \
+ $(HTMLDIR)/mod_links.$(OBJSUFF) \
+ $(HTMLDIR)/mod_list.$(OBJSUFF) \
+ $(HTMLDIR)/mod_pre.$(OBJSUFF) \
+ $(HTMLDIR)/mod_tables.$(OBJSUFF) \
+ $(HTMLDIR)/search.$(OBJSUFF)
MSWOBJS = \
$(MSWDIR)/accel.$(OBJSUFF) \
bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
{
+#ifndef __GNUWIN32__
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
wxSpinEvent event(lpnmud->iDelta > 0 ? wxEVT_SCROLL_LINEUP
*result = event.IsAllowed() ? 0 : 1;
return processed;
+#else
+ return FALSE;
+#endif
}
bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)