<!-- ====================================================================== -->
<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_MACOSX=='1'">src/osx/webview.mm</if>
</set>
<sources>$(WEB_SRC)</sources>
<library>coredll</library>
<library>basedll</library>
- <ldlibs>$(EXTRALIBS_WEB)</ldlibs>
<msvc-headers>$(WEB_HDR)</msvc-headers>
</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"
cond="SHARED=='0' and USE_GUI=='1' and USE_WEB=='1' and MONOLITHIC=='0'">
<sources>$(WEB_SRC)</sources>
'html' : '$(EXTRALIBS_HTML)',
'adv' : '$(PLUGIN_ADV_EXTRALIBS)',
'media' : '$(EXTRALIBS_MEDIA)',
- 'web' : '$(EXTRALIBS_WEB)',
}
def mkLibName(wxid):
# define WXMAKINGDLL_RICHTEXT
# define WXMAKINGDLL_MEDIA
# define WXMAKINGDLL_STC
+# define WXMAKINGDLL_WEB
#endif /* WXMAKINGDLL */
/*
# define WXDLLIMPEXP_DATA_STC(type) type
#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
forward declarations while MSVC complains about forward declarations without
#define WXDLLIMPEXP_FWD_RICHTEXT
#define WXDLLIMPEXP_FWD_MEDIA
#define WXDLLIMPEXP_FWD_STC
+ #define WXDLLIMPEXP_FWD_WEB
#else
#define WXDLLIMPEXP_FWD_BASE WXDLLIMPEXP_BASE
#define WXDLLIMPEXP_FWD_NET WXDLLIMPEXP_NET
#define WXDLLIMPEXP_FWD_RICHTEXT WXDLLIMPEXP_RICHTEXT
#define WXDLLIMPEXP_FWD_MEDIA WXDLLIMPEXP_MEDIA
#define WXDLLIMPEXP_FWD_STC WXDLLIMPEXP_STC
+ #define WXDLLIMPEXP_FWD_WEB WXDLLIMPEXP_WEB
#endif
/* for backwards compatibility, define suffix-less versions too */
#endif // if wxHAVE_WEB_BACKEND_GTK_WEBKIT
+#endif
/** Type of refresh */
enum wxWebViewReloadFlags
{
- /** Reload the current view without accessing the cache */
- wxWEB_VIEW_RELOAD_NO_CACHE = 1
+ /** Default reload, will access cache */
+ wxWEB_VIEW_RELOAD_DEFAULT = 0,
+ /** Reload the current view without accessing the cache */
+ wxWEB_VIEW_RELOAD_NO_CACHE = 1
};
* Reload the currently displayed URL.
* @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;
/**
wxEVENT_HANDLER_CAST(wxWebNavigationEventFunction, func)
#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))
#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))
#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))
#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))
#endif
// 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/osx/webkit.h"
-#include "wx/gtk/webkit.h"
-#include "wx/msw/webkitie.h"
+#include "wx/osx/webview.h"
+#include "wx/gtk/webview.h"
+#include "wx/msw/webviewie.h"
extern WXDLLEXPORT_DATA(const char) wxWebViewNameStr[] = "wxWebView";
extern WXDLLEXPORT_DATA(const char) wxWebViewDefaultURLStr[] = "about:blank";
// 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