Various typos fixes and minor build system changes. After a rebake wxMSW should now compile, although without any functionality.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@67702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3340,7 +3340,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
<set var="WEB_SRC_PLATFORM">
|
<set var="WEB_SRC_PLATFORM">
|
||||||
<if cond="TOOLKIT=='MSW'">src/msw/webview.cpp</if>
|
<if cond="TOOLKIT=='MSW'">src/msw/webviewie.cpp</if>
|
||||||
<if cond="PLATFORM_UNIX=='1'">src/gtk/webview.cpp</if>
|
<if cond="PLATFORM_UNIX=='1'">src/gtk/webview.cpp</if>
|
||||||
<if cond="PLATFORM_MACOSX=='1'">src/osx/webview.mm</if>
|
<if cond="PLATFORM_MACOSX=='1'">src/osx/webview.mm</if>
|
||||||
</set>
|
</set>
|
||||||
|
@@ -184,15 +184,9 @@
|
|||||||
<sources>$(WEB_SRC)</sources>
|
<sources>$(WEB_SRC)</sources>
|
||||||
<library>coredll</library>
|
<library>coredll</library>
|
||||||
<library>basedll</library>
|
<library>basedll</library>
|
||||||
<ldlibs>$(EXTRALIBS_WEB)</ldlibs>
|
|
||||||
<msvc-headers>$(WEB_HDR)</msvc-headers>
|
<msvc-headers>$(WEB_HDR)</msvc-headers>
|
||||||
</dll>
|
</dll>
|
||||||
|
|
||||||
<!-- use this to conditonally link against htmldll with <library>: -->
|
|
||||||
<set var="webdll_library_link">
|
|
||||||
<if cond="SHARED=='1' and USE_GUI=='1' and USE_WEB=='1' and MONOLITHIC=='0'">webdll</if>
|
|
||||||
</set>
|
|
||||||
|
|
||||||
<lib id="weblib" template="wx_lib"
|
<lib id="weblib" template="wx_lib"
|
||||||
cond="SHARED=='0' and USE_GUI=='1' and USE_WEB=='1' and MONOLITHIC=='0'">
|
cond="SHARED=='0' and USE_GUI=='1' and USE_WEB=='1' and MONOLITHIC=='0'">
|
||||||
<sources>$(WEB_SRC)</sources>
|
<sources>$(WEB_SRC)</sources>
|
||||||
|
@@ -52,7 +52,6 @@ EXTRALIBS = {
|
|||||||
'html' : '$(EXTRALIBS_HTML)',
|
'html' : '$(EXTRALIBS_HTML)',
|
||||||
'adv' : '$(PLUGIN_ADV_EXTRALIBS)',
|
'adv' : '$(PLUGIN_ADV_EXTRALIBS)',
|
||||||
'media' : '$(EXTRALIBS_MEDIA)',
|
'media' : '$(EXTRALIBS_MEDIA)',
|
||||||
'web' : '$(EXTRALIBS_WEB)',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def mkLibName(wxid):
|
def mkLibName(wxid):
|
||||||
|
@@ -91,6 +91,7 @@
|
|||||||
# define WXMAKINGDLL_RICHTEXT
|
# define WXMAKINGDLL_RICHTEXT
|
||||||
# define WXMAKINGDLL_MEDIA
|
# define WXMAKINGDLL_MEDIA
|
||||||
# define WXMAKINGDLL_STC
|
# define WXMAKINGDLL_STC
|
||||||
|
# define WXMAKINGDLL_WEB
|
||||||
#endif /* WXMAKINGDLL */
|
#endif /* WXMAKINGDLL */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -263,6 +264,14 @@
|
|||||||
# define WXDLLIMPEXP_DATA_STC(type) type
|
# define WXDLLIMPEXP_DATA_STC(type) type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WXMAKINGDLL_WEB
|
||||||
|
# define WXDLLIMPEXP_WEB WXEXPORT
|
||||||
|
#elif defined(WXUSINGDLL)
|
||||||
|
# define WXDLLIMPEXP_WEB WXIMPORT
|
||||||
|
#else /* not making nor using DLL */
|
||||||
|
# define WXDLLIMPEXP_WEB
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
GCC warns about using __attribute__ (and also __declspec in mingw32 case) on
|
GCC warns about using __attribute__ (and also __declspec in mingw32 case) on
|
||||||
forward declarations while MSVC complains about forward declarations without
|
forward declarations while MSVC complains about forward declarations without
|
||||||
@@ -284,6 +293,7 @@
|
|||||||
#define WXDLLIMPEXP_FWD_RICHTEXT
|
#define WXDLLIMPEXP_FWD_RICHTEXT
|
||||||
#define WXDLLIMPEXP_FWD_MEDIA
|
#define WXDLLIMPEXP_FWD_MEDIA
|
||||||
#define WXDLLIMPEXP_FWD_STC
|
#define WXDLLIMPEXP_FWD_STC
|
||||||
|
#define WXDLLIMPEXP_FWD_WEB
|
||||||
#else
|
#else
|
||||||
#define WXDLLIMPEXP_FWD_BASE WXDLLIMPEXP_BASE
|
#define WXDLLIMPEXP_FWD_BASE WXDLLIMPEXP_BASE
|
||||||
#define WXDLLIMPEXP_FWD_NET WXDLLIMPEXP_NET
|
#define WXDLLIMPEXP_FWD_NET WXDLLIMPEXP_NET
|
||||||
@@ -299,6 +309,7 @@
|
|||||||
#define WXDLLIMPEXP_FWD_RICHTEXT WXDLLIMPEXP_RICHTEXT
|
#define WXDLLIMPEXP_FWD_RICHTEXT WXDLLIMPEXP_RICHTEXT
|
||||||
#define WXDLLIMPEXP_FWD_MEDIA WXDLLIMPEXP_MEDIA
|
#define WXDLLIMPEXP_FWD_MEDIA WXDLLIMPEXP_MEDIA
|
||||||
#define WXDLLIMPEXP_FWD_STC WXDLLIMPEXP_STC
|
#define WXDLLIMPEXP_FWD_STC WXDLLIMPEXP_STC
|
||||||
|
#define WXDLLIMPEXP_FWD_WEB WXDLLIMPEXP_WEB
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* for backwards compatibility, define suffix-less versions too */
|
/* for backwards compatibility, define suffix-less versions too */
|
||||||
|
@@ -114,3 +114,4 @@ private:
|
|||||||
|
|
||||||
#endif // if wxHAVE_WEB_BACKEND_GTK_WEBKIT
|
#endif // if wxHAVE_WEB_BACKEND_GTK_WEBKIT
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -63,8 +63,10 @@ enum wxWebNavigationError
|
|||||||
/** Type of refresh */
|
/** Type of refresh */
|
||||||
enum wxWebViewReloadFlags
|
enum wxWebViewReloadFlags
|
||||||
{
|
{
|
||||||
/** Reload the current view without accessing the cache */
|
/** Default reload, will access cache */
|
||||||
wxWEB_VIEW_RELOAD_NO_CACHE = 1
|
wxWEB_VIEW_RELOAD_DEFAULT = 0,
|
||||||
|
/** Reload the current view without accessing the cache */
|
||||||
|
wxWEB_VIEW_RELOAD_NO_CACHE = 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -216,7 +218,7 @@ public:
|
|||||||
* Reload the currently displayed URL.
|
* Reload the currently displayed URL.
|
||||||
* @param flags A bit array that may optionnally contain reload options
|
* @param flags A bit array that may optionnally contain reload options
|
||||||
*/
|
*/
|
||||||
virtual void Reload(wxWebViewReloadFlags flags=0) = 0;
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -411,19 +413,19 @@ typedef void (wxEvtHandler::*wxWebNavigationEventFunction)
|
|||||||
wxEVENT_HANDLER_CAST(wxWebNavigationEventFunction, func)
|
wxEVENT_HANDLER_CAST(wxWebNavigationEventFunction, func)
|
||||||
|
|
||||||
#define EVT_WEB_VIEW_NAVIGATING(id, fn) \
|
#define EVT_WEB_VIEW_NAVIGATING(id, fn) \
|
||||||
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATING, id,
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATING, id, \
|
||||||
wxHtmlNavigatingEventHandler(fn))
|
wxHtmlNavigatingEventHandler(fn))
|
||||||
|
|
||||||
#define EVT_WEB_VIEW_NAVIGATED(id, fn) \
|
#define EVT_WEB_VIEW_NAVIGATED(id, fn) \
|
||||||
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATED, id,
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATED, id, \
|
||||||
wxHtmlNavigatingEventHandler(fn))
|
wxHtmlNavigatingEventHandler(fn))
|
||||||
|
|
||||||
#define EVT_WEB_VIEW_LOADED(id, fn) \
|
#define EVT_WEB_VIEW_LOADED(id, fn) \
|
||||||
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_LOADED, id,
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_LOADED, id, \
|
||||||
wxHtmlNavigatingEventHandler(fn))
|
wxHtmlNavigatingEventHandler(fn))
|
||||||
|
|
||||||
#define EVT_WEB_VIEW_ERRROR(id, fn) \
|
#define EVT_WEB_VIEW_ERRROR(id, fn) \
|
||||||
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_ERROR, id,
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_ERROR, id, \
|
||||||
wxHtmlNavigatingEventHandler(fn))
|
wxHtmlNavigatingEventHandler(fn))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -7,11 +7,18 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/webview.h"
|
#include "wx/webview.h"
|
||||||
|
|
||||||
#include "wx/osx/webkit.h"
|
#include "wx/osx/webview.h"
|
||||||
#include "wx/gtk/webkit.h"
|
#include "wx/gtk/webview.h"
|
||||||
#include "wx/msw/webkitie.h"
|
#include "wx/msw/webviewie.h"
|
||||||
|
|
||||||
extern WXDLLEXPORT_DATA(const char) wxWebViewNameStr[] = "wxWebView";
|
extern WXDLLEXPORT_DATA(const char) wxWebViewNameStr[] = "wxWebView";
|
||||||
extern WXDLLEXPORT_DATA(const char) wxWebViewDefaultURLStr[] = "about:blank";
|
extern WXDLLEXPORT_DATA(const char) wxWebViewDefaultURLStr[] = "about:blank";
|
||||||
|
@@ -7,7 +7,14 @@
|
|||||||
// Licence: wxWindows licence
|
// Licence: wxWindows licence
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "wx/msw/webview.h"
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/msw/webviewie.h"
|
||||||
|
|
||||||
#if wxHAVE_WEB_BACKEND_IE
|
#if wxHAVE_WEB_BACKEND_IE
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user