Merge the new wxWebView classes from the SOC2011_WEBVIEW branch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
@echo USE_THREADS=$(USE_THREADS) >>$(BUILD_CFG_FILE)
|
@echo USE_THREADS=$(USE_THREADS) >>$(BUILD_CFG_FILE)
|
||||||
@echo USE_GUI=$(USE_GUI) >>$(BUILD_CFG_FILE)
|
@echo USE_GUI=$(USE_GUI) >>$(BUILD_CFG_FILE)
|
||||||
@echo USE_HTML=$(USE_HTML) >>$(BUILD_CFG_FILE)
|
@echo USE_HTML=$(USE_HTML) >>$(BUILD_CFG_FILE)
|
||||||
|
@echo USE_WEBVIEW=$(USE_WEBVIEW) >>$(BUILD_CFG_FILE)
|
||||||
@echo USE_MEDIA=$(USE_MEDIA) >>$(BUILD_CFG_FILE)
|
@echo USE_MEDIA=$(USE_MEDIA) >>$(BUILD_CFG_FILE)
|
||||||
@echo USE_OPENGL=$(USE_OPENGL) >>$(BUILD_CFG_FILE)
|
@echo USE_OPENGL=$(USE_OPENGL) >>$(BUILD_CFG_FILE)
|
||||||
@echo USE_QA=$(USE_QA) >>$(BUILD_CFG_FILE)
|
@echo USE_QA=$(USE_QA) >>$(BUILD_CFG_FILE)
|
||||||
|
@@ -161,7 +161,9 @@
|
|||||||
<set var="WXLIB_STC">
|
<set var="WXLIB_STC">
|
||||||
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if>
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('stc')))</if>
|
||||||
</set>
|
</set>
|
||||||
|
<set var="WXLIB_WEBVIEW">
|
||||||
|
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('webview')))</if>
|
||||||
|
</set>
|
||||||
<set var="WXLIB_MONO">
|
<set var="WXLIB_MONO">
|
||||||
<if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
|
<if cond="MONOLITHIC=='1'">$(mk.evalExpr(wxwin.mkLibName('mono')))</if>
|
||||||
</set>
|
</set>
|
||||||
|
@@ -200,6 +200,14 @@ Default is to use debug CRT if and only if BUILD==debug.
|
|||||||
</description>
|
</description>
|
||||||
</option>
|
</option>
|
||||||
|
|
||||||
|
<option name="USE_WEBVIEW">
|
||||||
|
<values>0,1</values>
|
||||||
|
<default-value>1</default-value>
|
||||||
|
<description>
|
||||||
|
Build wxWebView library (USE_GUI must be 1)?
|
||||||
|
</description>
|
||||||
|
</option>
|
||||||
|
|
||||||
<option name="USE_MEDIA">
|
<option name="USE_MEDIA">
|
||||||
<values>0,1</values>
|
<values>0,1</values>
|
||||||
<default-value>1</default-value>
|
<default-value>1</default-value>
|
||||||
@@ -480,6 +488,7 @@ Set the version of your Mingw installation here.
|
|||||||
<set var="USE_RICHTEXT">1</set>
|
<set var="USE_RICHTEXT">1</set>
|
||||||
<set var="USE_STC">1</set>
|
<set var="USE_STC">1</set>
|
||||||
<set var="USE_HTML">1</set>
|
<set var="USE_HTML">1</set>
|
||||||
|
<set var="USE_WEBVIEW">1</set>
|
||||||
<set var="USE_MEDIA">1</set>
|
<set var="USE_MEDIA">1</set>
|
||||||
<set var="USE_XRC">1</set>
|
<set var="USE_XRC">1</set>
|
||||||
<set var="USE_OPENGL">1</set>
|
<set var="USE_OPENGL">1</set>
|
||||||
|
@@ -3353,7 +3353,40 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
$(MSW_HTML_HDR)
|
$(MSW_HTML_HDR)
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
<!-- wxWEBVIEW -->
|
||||||
|
<!-- ====================================================================== -->
|
||||||
|
|
||||||
|
<set var="WEBVIEW_SRC_PLATFORM">
|
||||||
|
<if cond="TOOLKIT=='MSW'">src/msw/webview_ie.cpp</if>
|
||||||
|
<if cond="PLATFORM_UNIX=='1'">src/gtk/webview_webkit.cpp</if>
|
||||||
|
<if cond="PLATFORM_MACOSX=='1'">src/osx/webview_webkit.mm</if>
|
||||||
|
</set>
|
||||||
|
<set var="WEBVIEW_SRC" hints="files">
|
||||||
|
$(WEBVIEW_SRC_PLATFORM)
|
||||||
|
src/common/webview.cpp
|
||||||
|
src/common/webviewarchivehandler.cpp
|
||||||
|
</set>
|
||||||
|
|
||||||
|
<set var="WEBVIEW_HDR_PLATFORM" hints="files">
|
||||||
|
<if cond="TOOLKIT=='MSW'">
|
||||||
|
wx/msw/webviewhistoryitem_ie.h
|
||||||
|
wx/msw/webview_ie.h
|
||||||
|
</if>
|
||||||
|
<if cond="PLATFORM_UNIX=='1'">
|
||||||
|
wx/gtk/webviewhistoryitem_webkit.h
|
||||||
|
wx/gtk/webview_webkit.h
|
||||||
|
</if>
|
||||||
|
<if cond="PLATFORM_MACOSX=='1'">
|
||||||
|
wx/osx/webviewhistoryitem_webkit.h
|
||||||
|
wx/osx/webview_webkit.h
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
<set var="WEBVIEW_HDR" hints="files">
|
||||||
|
$(WEBVIEW_HDR_PLATFORM)
|
||||||
|
wx/webview.h
|
||||||
|
wx/webviewarchivehandler.h
|
||||||
|
</set>
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
<!-- wxXRC -->
|
<!-- wxXRC -->
|
||||||
@@ -3958,7 +3991,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
|
|||||||
$(GUI_CORE_HEADERS)
|
$(GUI_CORE_HEADERS)
|
||||||
$(ADVANCED_HDR) $(MEDIA_HDR) $(HTML_HDR)
|
$(ADVANCED_HDR) $(MEDIA_HDR) $(HTML_HDR)
|
||||||
$(OPENGL_HDR) $(QA_HDR) $(XRC_HDR) $(AUI_HDR) $(PROPGRID_HDR)
|
$(OPENGL_HDR) $(QA_HDR) $(XRC_HDR) $(AUI_HDR) $(PROPGRID_HDR)
|
||||||
$(RIBBON_HDR) $(RICHTEXT_HDR) $(STC_HDR)
|
$(RIBBON_HDR) $(RICHTEXT_HDR) $(STC_HDR) ${WEBVIEW_HDR}
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
|
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<set var="MONOLIB_GUI_SRC">
|
<set var="MONOLIB_GUI_SRC">
|
||||||
<if cond="USE_GUI=='1'">
|
<if cond="USE_GUI=='1'">
|
||||||
$(CORE_SRC) $(ADVANCED_SRC) $(MEDIA_SRC) $(HTML_SRC) $(QA_SRC)
|
$(CORE_SRC) $(ADVANCED_SRC) $(MEDIA_SRC) $(HTML_SRC) $(WEBVIEW_SRC)
|
||||||
$(XRC_SRC) $(AUI_SRC) $(PROPGRID_SRC) $(RIBBON_SRC) $(RICHTEXT_SRC)
|
$(QA_SRC) $(XRC_SRC) $(AUI_SRC) $(PROPGRID_SRC) $(RIBBON_SRC)
|
||||||
$(STC_SRC)
|
$(RICHTEXT_SRC) $(STC_SRC)
|
||||||
</if>
|
</if>
|
||||||
</set>
|
</set>
|
||||||
<set var="MONOLIB_SRC">
|
<set var="MONOLIB_SRC">
|
||||||
|
@@ -173,6 +173,30 @@
|
|||||||
|
|
||||||
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">html=htmllib+htmldll</set>
|
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">html=htmllib+htmldll</set>
|
||||||
|
|
||||||
|
<!-- ================================================================ -->
|
||||||
|
<!-- wxWEBVIEW -->
|
||||||
|
<!-- ================================================================ -->
|
||||||
|
|
||||||
|
<dll id="webviewdll" template="wx_dll"
|
||||||
|
cond="SHARED=='1' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
|
||||||
|
<define>WXUSINGDLL</define>
|
||||||
|
<define>WXMAKINGDLL_WEBVIEW</define>
|
||||||
|
<sources>$(WEBVIEW_SRC)</sources>
|
||||||
|
<library>coredll</library>
|
||||||
|
<library>basedll</library>
|
||||||
|
<msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
|
||||||
|
</dll>
|
||||||
|
|
||||||
|
<lib id="webviewlib" template="wx_lib"
|
||||||
|
cond="SHARED=='0' and USE_GUI=='1' and USE_WEBVIEW=='1' and MONOLITHIC=='0'">
|
||||||
|
<sources>$(WEBVIEW_SRC)</sources>
|
||||||
|
<msvc-headers>$(WEBVIEW_HDR)</msvc-headers>
|
||||||
|
</lib>
|
||||||
|
|
||||||
|
<wxshortcut id="wxwebview" cond="MONOLITHIC=='0' and USE_WEBVIEW=='1'"/>
|
||||||
|
|
||||||
|
<set var="MSVC6PRJ_MERGED_TARGETS_MULTILIB" append="1">webview=webviewlib+webviewdll</set>
|
||||||
|
|
||||||
<!-- ================================================================ -->
|
<!-- ================================================================ -->
|
||||||
<!-- OpenGL -->
|
<!-- OpenGL -->
|
||||||
<!-- ================================================================ -->
|
<!-- ================================================================ -->
|
||||||
|
@@ -89,6 +89,7 @@
|
|||||||
NOTE: as a reference here is a list of all wxWidgets libraries satisfying
|
NOTE: as a reference here is a list of all wxWidgets libraries satisfying
|
||||||
the dependency constraints mentioned in <wx-lib> description:
|
the dependency constraints mentioned in <wx-lib> description:
|
||||||
|
|
||||||
|
<wx-lib>webview</wx-lib>
|
||||||
<wx-lib>richtext</wx-lib>
|
<wx-lib>richtext</wx-lib>
|
||||||
<wx-lib>aui</wx-lib>
|
<wx-lib>aui</wx-lib>
|
||||||
<wx-lib>ribbon</wx-lib>
|
<wx-lib>ribbon</wx-lib>
|
||||||
@@ -124,7 +125,7 @@
|
|||||||
tag definitions.
|
tag definitions.
|
||||||
-->
|
-->
|
||||||
<set var="WX_LIB_LIST">
|
<set var="WX_LIB_LIST">
|
||||||
base core net xml xrc html adv media gl qa aui ribbon propgrid richtext stc
|
base core net xml xrc html adv media gl qa aui ribbon propgrid richtext stc webview
|
||||||
</set>
|
</set>
|
||||||
|
|
||||||
<!-- if you define this variable to 0 before including wx presets, the
|
<!-- if you define this variable to 0 before including wx presets, the
|
||||||
|
@@ -39,12 +39,12 @@ def mk_wxid(id):
|
|||||||
|
|
||||||
|
|
||||||
# All libs that are part of the main library:
|
# All libs that are part of the main library:
|
||||||
MAIN_LIBS = ['mono', 'base', 'core', 'adv', 'html', 'xml', 'net',
|
MAIN_LIBS = ['mono', 'base', 'core', 'adv', 'html', 'xml', 'net', 'webview',
|
||||||
'media', 'qa', 'xrc', 'aui', 'ribbon', 'propgrid', 'richtext', 'stc']
|
'media', 'qa', 'xrc', 'aui', 'ribbon', 'propgrid', 'richtext', 'stc']
|
||||||
# List of library names/ids for categories with different names:
|
# List of library names/ids for categories with different names:
|
||||||
LIBS_NOGUI = ['xml', 'net']
|
LIBS_NOGUI = ['xml', 'net']
|
||||||
LIBS_GUI = ['core', 'adv', 'html', 'gl', 'qa', 'xrc', 'media',
|
LIBS_GUI = ['core', 'adv', 'html', 'gl', 'qa', 'xrc', 'media',
|
||||||
'aui', 'propgrid', 'richtext', 'stc', 'ribbon']
|
'aui', 'propgrid', 'richtext', 'stc', 'ribbon', 'webview']
|
||||||
# Additional libraries that must be linked in:
|
# Additional libraries that must be linked in:
|
||||||
EXTRALIBS = {
|
EXTRALIBS = {
|
||||||
'gl' : '$(EXTRALIBS_OPENGL)',
|
'gl' : '$(EXTRALIBS_OPENGL)',
|
||||||
|
75
configure.in
75
configure.in
@@ -850,6 +850,7 @@ WX_ARG_FEATURE(richtext, [ --enable-richtext use wxRichTextCtrl], wxUS
|
|||||||
WX_ARG_FEATURE(postscript, [ --enable-postscript use wxPostscriptDC device context (default for gtk+)], wxUSE_POSTSCRIPT)
|
WX_ARG_FEATURE(postscript, [ --enable-postscript use wxPostscriptDC device context (default for gtk+)], wxUSE_POSTSCRIPT)
|
||||||
WX_ARG_FEATURE(printarch, [ --enable-printarch use printing architecture], wxUSE_PRINTING_ARCHITECTURE)
|
WX_ARG_FEATURE(printarch, [ --enable-printarch use printing architecture], wxUSE_PRINTING_ARCHITECTURE)
|
||||||
WX_ARG_FEATURE(svg, [ --enable-svg use wxSVGFileDC device context], wxUSE_SVG)
|
WX_ARG_FEATURE(svg, [ --enable-svg use wxSVGFileDC device context], wxUSE_SVG)
|
||||||
|
WX_ARG_FEATURE(webview, [ --enable-webview use wxWebView library], wxUSE_WEBVIEW)
|
||||||
|
|
||||||
dnl wxDC is implemented in terms of wxGraphicsContext in wxOSX so the latter
|
dnl wxDC is implemented in terms of wxGraphicsContext in wxOSX so the latter
|
||||||
dnl can't be disabled, don't even provide an option to do it
|
dnl can't be disabled, don't even provide an option to do it
|
||||||
@@ -1047,6 +1048,7 @@ WX_ARG_FEATURE(dragimage, [ --enable-dragimage use wxDragImage], wxUSE_D
|
|||||||
WX_ARG_FEATURE(accessibility,[ --enable-accessibility enable accessibility support], wxUSE_ACCESSIBILITY)
|
WX_ARG_FEATURE(accessibility,[ --enable-accessibility enable accessibility support], wxUSE_ACCESSIBILITY)
|
||||||
WX_ARG_FEATURE(uiactionsim, [ --enable-uiactionsim use wxUIActionSimulator (experimental)], wxUSE_UIACTIONSIMULATOR)
|
WX_ARG_FEATURE(uiactionsim, [ --enable-uiactionsim use wxUIActionSimulator (experimental)], wxUSE_UIACTIONSIMULATOR)
|
||||||
WX_ARG_FEATURE(dctransform, [ --enable-dctransform use wxDC::SetTransformMatrix and related], wxUSE_DC_TRANSFORM_MATRIX)
|
WX_ARG_FEATURE(dctransform, [ --enable-dctransform use wxDC::SetTransformMatrix and related], wxUSE_DC_TRANSFORM_MATRIX)
|
||||||
|
WX_ARG_FEATURE(webviewwebkit,[ --enable-webview-webkit use wxWebView WebKit backend], wxUSE_WEBVIEW_WEBKIT)
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl support for image formats that do not rely on external library
|
dnl support for image formats that do not rely on external library
|
||||||
@@ -1071,6 +1073,7 @@ WX_ARG_FEATURE(ps-in-msw, [ --enable-ps-in-msw use PS printing in wxMSW
|
|||||||
WX_ARG_FEATURE(ownerdrawn, [ --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only)], wxUSE_OWNER_DRAWN)
|
WX_ARG_FEATURE(ownerdrawn, [ --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only)], wxUSE_OWNER_DRAWN)
|
||||||
WX_ARG_FEATURE(uxtheme, [ --enable-uxtheme enable support for Windows XP themed look (Win32 only)], wxUSE_UXTHEME)
|
WX_ARG_FEATURE(uxtheme, [ --enable-uxtheme enable support for Windows XP themed look (Win32 only)], wxUSE_UXTHEME)
|
||||||
WX_ARG_FEATURE(wxdib, [ --enable-wxdib use wxDIB class (Win32 only)], wxUSE_DIB)
|
WX_ARG_FEATURE(wxdib, [ --enable-wxdib use wxDIB class (Win32 only)], wxUSE_DIB)
|
||||||
|
WX_ARG_FEATURE(webviewie, [ --enable-webview-ie use wxWebView IE backend (Win32 only)], wxUSE_WEBVIEW_IE)
|
||||||
|
|
||||||
dnl this one is not really MSW-specific but it exists mainly to be turned off
|
dnl this one is not really MSW-specific but it exists mainly to be turned off
|
||||||
dnl under MSW, it should be off by default on the other platforms
|
dnl under MSW, it should be off by default on the other platforms
|
||||||
@@ -7363,6 +7366,74 @@ if test "$wxUSE_RICHTEXT" = "yes"; then
|
|||||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
USE_WEBVIEW=0
|
||||||
|
if test "$wxUSE_WEBVIEW" = "yes"; then
|
||||||
|
AC_DEFINE(wxUSE_WEBVIEW)
|
||||||
|
USE_WEBVIEW=1
|
||||||
|
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview"
|
||||||
|
|
||||||
|
if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_GTK" = 1; then
|
||||||
|
AC_DEFINE(wxUSE_WEBVIEW_WEBKIT)
|
||||||
|
AC_MSG_CHECKING([for webkitgtk libraries])
|
||||||
|
WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],webkitgtk-1.0)
|
||||||
|
if test "$ac_find_libraries" != "" ; then
|
||||||
|
WX_LINK_PATH_EXIST([$ac_find_libraries],[$LDFLAGS])
|
||||||
|
if test "$ac_path_to_link" != " -L/usr/lib" ; then
|
||||||
|
LDFLAGS="$LDFLAGS $ac_path_to_link"
|
||||||
|
fi
|
||||||
|
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwebkitgtk-1.0"
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
AC_MSG_WARN([libwebkitgtk-1.0 not found; disabling webkit backend])
|
||||||
|
wxUSE_WEBVIEW_WEBKIT="no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
AC_MSG_CHECKING(for webkitgtk includes)
|
||||||
|
WX_PATH_FIND_INCLUDES([$SEARCH_INCLUDE /usr/include/webkit-1.0], webkit/webkit.h)
|
||||||
|
if test "$ac_find_includes" != "" ; then
|
||||||
|
AC_MSG_RESULT(found in $ac_find_includes)
|
||||||
|
WX_INCLUDE_PATH_EXIST($ac_find_includes, $CPPFLAGS)
|
||||||
|
CPPFLAGS="$ac_path_to_include $CPPFLAGS"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([not found])
|
||||||
|
fi
|
||||||
|
dnl we also depend on libsoup
|
||||||
|
AC_MSG_CHECKING(for libsoup includes)
|
||||||
|
WX_PATH_FIND_INCLUDES([$SEARCH_INCLUDE /usr/include/libsoup-2.4], libsoup/soup.h)
|
||||||
|
if test "$ac_find_includes" != "" ; then
|
||||||
|
AC_MSG_RESULT(found in $ac_find_includes)
|
||||||
|
WX_INCLUDE_PATH_EXIST($ac_find_includes, $CPPFLAGS)
|
||||||
|
CPPFLAGS="$ac_path_to_include $CPPFLAGS"
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([not found])
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$wxUSE_WEBVIEW_WEBKIT" = "yes" -a "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
|
||||||
|
old_CPPFLAGS="$CPPFLAGS"
|
||||||
|
CPPFLAGS="-x objective-c++ $CPPFLAGS"
|
||||||
|
AC_CHECK_HEADER([WebKit/HIWebView.h],
|
||||||
|
[
|
||||||
|
AC_DEFINE(wxUSE_WEBVIEW_WEBKIT)
|
||||||
|
WEBKIT_LINK="-framework WebKit"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
AC_MSG_WARN([WebKit headers not found; disabling wxWebView WebKit])
|
||||||
|
wxUSE_WEBVIEW_WEBKIT=no
|
||||||
|
],
|
||||||
|
[
|
||||||
|
#include <Carbon/Carbon.h>
|
||||||
|
#include <WebKit/WebKit.h>
|
||||||
|
])
|
||||||
|
CPPFLAGS="$old_CPPFLAGS"
|
||||||
|
elif test "$wxUSE_OLD_COCOA" = 1; then
|
||||||
|
AC_DEFINE(wxUSE_WEBVIEW_WEBKIT)
|
||||||
|
else
|
||||||
|
wxUSE_WEBVIEW_WEBKIT=no
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
dnl wxImage options
|
dnl wxImage options
|
||||||
dnl ---------------------------------------------------------------------------
|
dnl ---------------------------------------------------------------------------
|
||||||
@@ -7745,6 +7816,10 @@ if test "$wxUSE_GUI" = "yes"; then
|
|||||||
if test "$wxUSE_STC" = "yes" ; then
|
if test "$wxUSE_STC" = "yes" ; then
|
||||||
BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
|
BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
|
||||||
fi
|
fi
|
||||||
|
if test "$wxUSE_WEBVIEW" = "yes" ; then
|
||||||
|
STD_GUI_LIBS="web $STD_GUI_LIBS"
|
||||||
|
BUILT_WX_LIBS="web $BUILT_WX_LIBS"
|
||||||
|
fi
|
||||||
if test "$wxUSE_XRC" = "yes" ; then
|
if test "$wxUSE_XRC" = "yes" ; then
|
||||||
STD_GUI_LIBS="xrc $STD_GUI_LIBS"
|
STD_GUI_LIBS="xrc $STD_GUI_LIBS"
|
||||||
BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
|
BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
|
||||||
|
@@ -468,6 +468,7 @@ All (GUI):
|
|||||||
- Added wxFLP_SMALL and wxDIRP_SMALL styles.
|
- Added wxFLP_SMALL and wxDIRP_SMALL styles.
|
||||||
- Added support for saving alpha with TIFF images.
|
- Added support for saving alpha with TIFF images.
|
||||||
- Added wxPersistentSplitter.
|
- Added wxPersistentSplitter.
|
||||||
|
- Added wxWebView library (Steven Lamerton & Auria, GSoC 2011 project).
|
||||||
|
|
||||||
OSX:
|
OSX:
|
||||||
|
|
||||||
|
18
docs/doxygen/groups/class_webview.h
Normal file
18
docs/doxygen/groups/class_webview.h
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: class_webview.h
|
||||||
|
// Purpose: WebView classes group docs
|
||||||
|
// Author: wxWidgets team
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
|
||||||
|
@defgroup group_class_webview WebView
|
||||||
|
@ingroup group_class
|
||||||
|
|
||||||
|
The wxWebView library is a set of classes for viewing complex web documents and
|
||||||
|
for internet browsing. It is built around a series of backends, and exposes
|
||||||
|
common functions for them.
|
||||||
|
|
||||||
|
*/
|
@@ -246,6 +246,7 @@ with the corresponding library. The following symbols are honoured:
|
|||||||
- wxNO_PROPGRID_LIB
|
- wxNO_PROPGRID_LIB
|
||||||
- wxNO_QA_LIB
|
- wxNO_QA_LIB
|
||||||
- wxNO_RICHTEXT_LIB
|
- wxNO_RICHTEXT_LIB
|
||||||
|
- wxNO_WEBVIEW_LIB
|
||||||
- wxNO_XML_LIB
|
- wxNO_XML_LIB
|
||||||
- wxNO_REGEX_LIB
|
- wxNO_REGEX_LIB
|
||||||
- wxNO_EXPAT_LIB
|
- wxNO_EXPAT_LIB
|
||||||
|
@@ -257,6 +257,7 @@ library:
|
|||||||
@itemdef{wxUSE_URL_NATIVE, Use native support for some operations with wxURL.}
|
@itemdef{wxUSE_URL_NATIVE, Use native support for some operations with wxURL.}
|
||||||
@itemdef{wxUSE_VALIDATORS, Use wxValidator class.}
|
@itemdef{wxUSE_VALIDATORS, Use wxValidator class.}
|
||||||
@itemdef{wxUSE_VARIANT, Use wxVariant class.}
|
@itemdef{wxUSE_VARIANT, Use wxVariant class.}
|
||||||
|
@itemdef{wxUSE_WEBVIEW, Use wxWebView class.}
|
||||||
@itemdef{wxUSE_WIZARDDLG, Use wxWizard class.}
|
@itemdef{wxUSE_WIZARDDLG, Use wxWizard class.}
|
||||||
@itemdef{wxUSE_WXHTML_HELP, Use wxHtmlHelpController and related classes.}
|
@itemdef{wxUSE_WXHTML_HELP, Use wxHtmlHelpController and related classes.}
|
||||||
@itemdef{wxUSE_XML, Use XML parsing classes.}
|
@itemdef{wxUSE_XML, Use XML parsing classes.}
|
||||||
|
@@ -39,6 +39,7 @@ digraph Dependancies
|
|||||||
wxRichText [fillcolor = green, URL = "\ref page_libs_wxrichtext"];
|
wxRichText [fillcolor = green, URL = "\ref page_libs_wxrichtext"];
|
||||||
wxSTC [fillcolor = green, URL = "\ref page_libs_wxstc"];
|
wxSTC [fillcolor = green, URL = "\ref page_libs_wxstc"];
|
||||||
wxXRC [fillcolor = green, URL = "\ref page_libs_wxxrc"];
|
wxXRC [fillcolor = green, URL = "\ref page_libs_wxxrc"];
|
||||||
|
wxWebView [fillcolor = green, URL = "\ref page_libs_wxwebview"];
|
||||||
|
|
||||||
wxCore -> wxBase;
|
wxCore -> wxBase;
|
||||||
wxNet -> wxBase;
|
wxNet -> wxBase;
|
||||||
@@ -55,6 +56,7 @@ digraph Dependancies
|
|||||||
wxRichText -> wxAdvanced; wxRichText -> wxHTML; wxRichText -> wxXML;
|
wxRichText -> wxAdvanced; wxRichText -> wxHTML; wxRichText -> wxXML;
|
||||||
wxSTC -> wxCore;
|
wxSTC -> wxCore;
|
||||||
wxXRC -> wxAdvanced; wxXRC -> wxHTML; wxXRC -> wxXML;
|
wxXRC -> wxAdvanced; wxXRC -> wxHTML; wxXRC -> wxXML;
|
||||||
|
wxWebView -> wxCore;
|
||||||
}
|
}
|
||||||
@enddot
|
@enddot
|
||||||
|
|
||||||
@@ -202,5 +204,11 @@ text editor. See <http://www.scintilla.org/> for more info about Scintilla.
|
|||||||
|
|
||||||
Requires @ref page_libs_wxcore, @ref page_libs_wxbase.
|
Requires @ref page_libs_wxcore, @ref page_libs_wxbase.
|
||||||
|
|
||||||
|
@section page_libs_wxwebview wxWebView
|
||||||
|
|
||||||
|
The wxWebView library contains the wxWebView control and its associated classes.
|
||||||
|
|
||||||
|
Requires @ref page_libs_wxcore, @ref page_libs_wxbase.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@@ -41,7 +41,7 @@ may find the following samples showing the corresponding controls:
|
|||||||
@li wxTreeCtrl: @ref page_samples_treectrl
|
@li wxTreeCtrl: @ref page_samples_treectrl
|
||||||
@li wxGrid: @ref page_samples_grid
|
@li wxGrid: @ref page_samples_grid
|
||||||
@li wxDataViewCtrl: @ref page_samples_dataview
|
@li wxDataViewCtrl: @ref page_samples_dataview
|
||||||
|
@li wxWebView: @ref page_samples_webview
|
||||||
|
|
||||||
Finally, here is the full list of samples:
|
Finally, here is the full list of samples:
|
||||||
<!--
|
<!--
|
||||||
@@ -110,8 +110,8 @@ TODO: Organize them in a more human-readable way.
|
|||||||
@li @sample{power}
|
@li @sample{power}
|
||||||
@li @sample{printing}
|
@li @sample{printing}
|
||||||
@li @sample{propgrid}
|
@li @sample{propgrid}
|
||||||
</td><td>
|
|
||||||
@li @sample{regtest}
|
@li @sample{regtest}
|
||||||
|
</td><td>
|
||||||
@li @sample{render}
|
@li @sample{render}
|
||||||
@li @sample{richtext}
|
@li @sample{richtext}
|
||||||
@li @sample{sashtest}
|
@li @sample{sashtest}
|
||||||
@@ -134,6 +134,7 @@ TODO: Organize them in a more human-readable way.
|
|||||||
@li @sample{uiaction}
|
@li @sample{uiaction}
|
||||||
@li @sample{validate}
|
@li @sample{validate}
|
||||||
@li @sample{vscroll}
|
@li @sample{vscroll}
|
||||||
|
@li @sample{webview}
|
||||||
@li @sample{widgets}
|
@li @sample{widgets}
|
||||||
@li @sample{wizard}
|
@li @sample{wizard}
|
||||||
@li @sample{wrapsizer}
|
@li @sample{wrapsizer}
|
||||||
@@ -1001,7 +1002,7 @@ demonstrated here as well - try the corresponding menu entries.
|
|||||||
@sampleabout{wxUIActionSimulator}
|
@sampleabout{wxUIActionSimulator}
|
||||||
|
|
||||||
This sample shows some features of wxUIActionSimulator class. When a simulation
|
This sample shows some features of wxUIActionSimulator class. When a simulation
|
||||||
is ran using its menu items, you can see that the button is pressed
|
is run using its menu items, you can see that the button is pressed
|
||||||
programmatically and the characters generated by the program appear in the text
|
programmatically and the characters generated by the program appear in the text
|
||||||
control.
|
control.
|
||||||
|
|
||||||
@@ -1019,6 +1020,15 @@ control.
|
|||||||
|
|
||||||
@sampledir{vscroll}
|
@sampledir{vscroll}
|
||||||
|
|
||||||
|
@section page_samples_webview wxWebView Sample
|
||||||
|
|
||||||
|
The wxWebView sample demonstarates the various capabilities of the wxWebView
|
||||||
|
control. It is set up as a simple single window web broswer, but with support
|
||||||
|
for many of the more complex wxWebView features, including browsing through
|
||||||
|
archives.
|
||||||
|
|
||||||
|
@sampledir{webview}
|
||||||
|
|
||||||
@section page_samples_widgets Widgets Sample
|
@section page_samples_widgets Widgets Sample
|
||||||
|
|
||||||
The widgets sample is the main presentation program for most simple and advanced
|
The widgets sample is the main presentation program for most simple and advanced
|
||||||
|
@@ -102,6 +102,7 @@
|
|||||||
# define WXMAKINGDLL_RICHTEXT
|
# define WXMAKINGDLL_RICHTEXT
|
||||||
# define WXMAKINGDLL_MEDIA
|
# define WXMAKINGDLL_MEDIA
|
||||||
# define WXMAKINGDLL_STC
|
# define WXMAKINGDLL_STC
|
||||||
|
# define WXMAKINGDLL_WEBVIEW
|
||||||
#endif /* WXMAKINGDLL */
|
#endif /* WXMAKINGDLL */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -274,6 +275,17 @@
|
|||||||
# define WXDLLIMPEXP_DATA_STC(type) type
|
# define WXDLLIMPEXP_DATA_STC(type) type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef WXMAKINGDLL_WEBVIEW
|
||||||
|
# define WXDLLIMPEXP_WEBVIEW WXEXPORT
|
||||||
|
# define WXDLLIMPEXP_DATA_WEBVIEW(type) WXEXPORT type
|
||||||
|
#elif defined(WXUSINGDLL)
|
||||||
|
# define WXDLLIMPEXP_WEBVIEW WXIMPORT
|
||||||
|
# define WXDLLIMPEXP_DATA_WEBVIEW(type) WXIMPORT type
|
||||||
|
#else /* not making nor using DLL */
|
||||||
|
# define WXDLLIMPEXP_WEBVIEW
|
||||||
|
# define WXDLLIMPEXP_DATA_WEBVIEW(type) type
|
||||||
|
#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
|
||||||
@@ -295,6 +307,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_WEBVIEW
|
||||||
#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
|
||||||
@@ -310,6 +323,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_WEBVIEW WXDLLIMPEXP_WEBVIEW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* for backwards compatibility, define suffix-less versions too */
|
/* for backwards compatibility, define suffix-less versions too */
|
||||||
|
159
include/wx/gtk/webview_webkit.h
Normal file
159
include/wx/gtk/webview_webkit.h
Normal file
@@ -0,0 +1,159 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/gtk/wx/webview.h
|
||||||
|
// Purpose: GTK webkit backend for web view component
|
||||||
|
// Author: Robert Roebling, Marianne Gagnon
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, 1998 Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_GTK_WEBKITCTRL_H_
|
||||||
|
#define _WX_GTK_WEBKITCTRL_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
|
#include "webkit/webkit.h"
|
||||||
|
#include "wx/sharedptr.h"
|
||||||
|
#include "wx/webview.h"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxWebViewWebKit
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewWebKit() { Init(); }
|
||||||
|
|
||||||
|
wxWebViewWebKit(wxWindow *parent,
|
||||||
|
wxWindowID id = wxID_ANY,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr)
|
||||||
|
{
|
||||||
|
Init();
|
||||||
|
|
||||||
|
Create(parent, id, url, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
virtual bool Create(wxWindow *parent,
|
||||||
|
wxWindowID id = wxID_ANY,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr);
|
||||||
|
|
||||||
|
virtual bool Enable( bool enable = true );
|
||||||
|
|
||||||
|
// implementation
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
static wxVisualAttributes
|
||||||
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||||
|
|
||||||
|
virtual void Stop();
|
||||||
|
virtual void LoadURL(const wxString& url);
|
||||||
|
virtual void GoBack();
|
||||||
|
virtual void GoForward();
|
||||||
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
|
||||||
|
virtual bool CanGoBack() const;
|
||||||
|
virtual bool CanGoForward() const;
|
||||||
|
virtual void ClearHistory();
|
||||||
|
virtual void EnableHistory(bool enable = true);
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory();
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory();
|
||||||
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item);
|
||||||
|
virtual wxString GetCurrentURL() const;
|
||||||
|
virtual wxString GetCurrentTitle() const;
|
||||||
|
virtual wxString GetPageSource() const;
|
||||||
|
virtual wxString GetPageText() const;
|
||||||
|
//We do not want to hide the other overloads
|
||||||
|
using wxWebView::SetPage;
|
||||||
|
virtual void SetPage(const wxString& html, const wxString& baseUrl);
|
||||||
|
virtual void Print();
|
||||||
|
virtual bool IsBusy() const;
|
||||||
|
|
||||||
|
void SetZoomType(wxWebViewZoomType);
|
||||||
|
wxWebViewZoomType GetZoomType() const;
|
||||||
|
bool CanSetZoomType(wxWebViewZoomType) const;
|
||||||
|
virtual wxWebViewZoom GetZoom() const;
|
||||||
|
virtual void SetZoom(wxWebViewZoom);
|
||||||
|
|
||||||
|
//Clipboard functions
|
||||||
|
virtual bool CanCut() const;
|
||||||
|
virtual bool CanCopy() const;
|
||||||
|
virtual bool CanPaste() const;
|
||||||
|
virtual void Cut();
|
||||||
|
virtual void Copy();
|
||||||
|
virtual void Paste();
|
||||||
|
|
||||||
|
//Undo / redo functionality
|
||||||
|
virtual bool CanUndo() const;
|
||||||
|
virtual bool CanRedo() const;
|
||||||
|
virtual void Undo();
|
||||||
|
virtual void Redo();
|
||||||
|
|
||||||
|
//Editing functions
|
||||||
|
virtual void SetEditable(bool enable = true);
|
||||||
|
virtual bool IsEditable() const;
|
||||||
|
|
||||||
|
//Selection
|
||||||
|
virtual void DeleteSelection();
|
||||||
|
virtual bool HasSelection() const;
|
||||||
|
virtual void SelectAll();
|
||||||
|
virtual wxString GetSelectedText() const;
|
||||||
|
virtual wxString GetSelectedSource() const;
|
||||||
|
virtual void ClearSelection();
|
||||||
|
|
||||||
|
virtual void RunScript(const wxString& javascript);
|
||||||
|
|
||||||
|
//Virtual Filesystem Support
|
||||||
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler);
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHandler> > GetHandlers() { return m_handlerList; }
|
||||||
|
|
||||||
|
/** FIXME: hack to work around signals being received too early */
|
||||||
|
bool m_ready;
|
||||||
|
|
||||||
|
|
||||||
|
/** TODO: check if this can be made private
|
||||||
|
* The native control has a getter to check for busy state, but except in
|
||||||
|
* very recent versions of webkit this getter doesn't say everything we need
|
||||||
|
* (namely it seems to stay indefinitely busy when loading is cancelled by
|
||||||
|
* user)
|
||||||
|
*/
|
||||||
|
bool m_busy;
|
||||||
|
|
||||||
|
wxString m_vfsurl;
|
||||||
|
|
||||||
|
//We use this flag to stop recursion when we load a page from the navigation
|
||||||
|
//callback, mainly when loading a VFS page
|
||||||
|
bool m_guard;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
|
||||||
|
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
void ZoomIn();
|
||||||
|
void ZoomOut();
|
||||||
|
void SetWebkitZoom(float level);
|
||||||
|
float GetWebkitZoom() const;
|
||||||
|
|
||||||
|
// focus event handler: calls GTKUpdateBitmap()
|
||||||
|
void GTKOnFocus(wxFocusEvent& event);
|
||||||
|
|
||||||
|
GtkWidget *web_view;
|
||||||
|
gint m_historyLimit;
|
||||||
|
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHandler> > m_handlerList;
|
||||||
|
|
||||||
|
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
|
#endif
|
36
include/wx/gtk/webviewhistoryitem_webkit.h
Normal file
36
include/wx/gtk/webviewhistoryitem_webkit.h
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/wx/gtk/webviewhistoryitem.h
|
||||||
|
// Purpose: wxWebViewHistoryItem header for GTK
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_GTK_WEBVIEWHISTORYITEM_H_
|
||||||
|
#define _WX_GTK_WEBVIEWHISTORYITEM_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
|
#include "webkit/webkit.h"
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewHistoryItem(const wxString& url, const wxString& title) :
|
||||||
|
m_url(url), m_title(title) {}
|
||||||
|
wxString GetUrl() { return m_url; }
|
||||||
|
wxString GetTitle() { return m_title; }
|
||||||
|
|
||||||
|
friend class wxWebViewWebKit;
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxString m_url, m_title;
|
||||||
|
WebKitWebHistoryItem* m_histItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
|
||||||
|
|
||||||
|
#endif // _WX_GTK_WEBVIEWHISTORYITEM_H_
|
@@ -408,6 +408,14 @@
|
|||||||
# define wxUSE_MEDIACTRL 0
|
# define wxUSE_MEDIACTRL 0
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
# if wxUSE_WEB
|
||||||
|
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||||
|
# error "wxWebView requires wxActiveXContainer under MSW"
|
||||||
|
# else
|
||||||
|
# undef wxUSE_WEB
|
||||||
|
# define wxUSE_WEB 0
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#endif /* !wxUSE_ACTIVEX */
|
#endif /* !wxUSE_ACTIVEX */
|
||||||
|
|
||||||
#if !wxUSE_THREADS
|
#if !wxUSE_THREADS
|
||||||
@@ -421,6 +429,18 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif /* !wxUSE_THREADS */
|
#endif /* !wxUSE_THREADS */
|
||||||
|
|
||||||
|
|
||||||
|
#if !wxUSE_OLE_AUTOMATION
|
||||||
|
# if wxUSE_WEB
|
||||||
|
# ifdef wxABORT_ON_CONFIG_ERROR
|
||||||
|
# error "wxWebView requires wxUSE_OLE_AUTOMATION under MSW"
|
||||||
|
# else
|
||||||
|
# undef wxUSE_WEB
|
||||||
|
# define wxUSE_WEB 0
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
#endif /* !wxUSE_OLE_AUTOMATION */
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
|
#if defined(__WXUNIVERSAL__) && wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW && !wxUSE_POSTSCRIPT
|
||||||
# undef wxUSE_POSTSCRIPT
|
# undef wxUSE_POSTSCRIPT
|
||||||
# define wxUSE_POSTSCRIPT 1
|
# define wxUSE_POSTSCRIPT 1
|
||||||
|
@@ -514,6 +514,77 @@ typedef struct
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Various definitions are missing from mingw
|
||||||
|
// Used by webview_ie.cpp
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
typedef enum CommandStateChangeConstants {
|
||||||
|
CSC_UPDATECOMMANDS = (int) 0xFFFFFFFF,
|
||||||
|
CSC_NAVIGATEFORWARD = 0x1,
|
||||||
|
CSC_NAVIGATEBACK = 0x2
|
||||||
|
} CommandStateChangeConstants;
|
||||||
|
|
||||||
|
#define DISPID_COMMANDSTATECHANGE 105
|
||||||
|
#define DISPID_NAVIGATECOMPLETE2 252
|
||||||
|
#define DISPID_NAVIGATEERROR 271
|
||||||
|
#define DISPID_NEWWINDOW3 273
|
||||||
|
#define INET_E_ERROR_FIRST 0x800C0002L
|
||||||
|
#define INET_E_INVALID_URL 0x800C0002L
|
||||||
|
#define INET_E_NO_SESSION 0x800C0003L
|
||||||
|
#define INET_E_CANNOT_CONNECT 0x800C0004L
|
||||||
|
#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L
|
||||||
|
#define INET_E_OBJECT_NOT_FOUND 0x800C0006L
|
||||||
|
#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L
|
||||||
|
#define INET_E_DOWNLOAD_FAILURE 0x800C0008L
|
||||||
|
#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L
|
||||||
|
#define INET_E_NO_VALID_MEDIA 0x800C000AL
|
||||||
|
#define INET_E_CONNECTION_TIMEOUT 0x800C000BL
|
||||||
|
#define INET_E_INVALID_REQUEST 0x800C000CL
|
||||||
|
#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL
|
||||||
|
#define INET_E_SECURITY_PROBLEM 0x800C000EL
|
||||||
|
#define INET_E_CANNOT_LOAD_DATA 0x800C000FL
|
||||||
|
#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L
|
||||||
|
#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L
|
||||||
|
#define INET_E_REDIRECT_FAILED 0x800C0014L
|
||||||
|
#define INET_E_REDIRECT_TO_DIR 0x800C0015L
|
||||||
|
#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L
|
||||||
|
#define INET_E_USE_EXTEND_BINDING 0x800C0017L
|
||||||
|
#define INET_E_TERMINATED_BIND 0x800C0018L
|
||||||
|
#define INET_E_INVALID_CERTIFICATE 0x800C0019L
|
||||||
|
#define INET_E_CODE_DOWNLOAD_DECLINED 0x800C0100L
|
||||||
|
#define INET_E_RESULT_DISPATCHED 0x800C0200L
|
||||||
|
#define INET_E_CANNOT_REPLACE_SFP_FILE 0x800C0300L
|
||||||
|
#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY 0x800C0500L
|
||||||
|
#define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L
|
||||||
|
|
||||||
|
#define REFRESH_NORMAL 0
|
||||||
|
#define REFRESH_COMPLETELY 3
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// For Visual C++ 6 and MinGW32. Used by webview_ie.cpp
|
||||||
|
|
||||||
|
#if defined (__MINGW32__) || (_MSC_VER < 1300)
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
OLECMDID_OPTICAL_ZOOM = 63
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INET_E_INVALID_CERTIFICATE
|
||||||
|
#define INET_E_INVALID_CERTIFICATE 0x800C0019L
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY
|
||||||
|
#define INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY 0x800C0500L
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef INET_E_CODE_INSTALL_SUPPRESSED
|
||||||
|
#define INET_E_CODE_INSTALL_SUPPRESSED 0x800C0400L
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DISPID_NEWWINDOW3
|
||||||
|
#define DISPID_NEWWINDOW3 273
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -705,6 +705,24 @@
|
|||||||
// Recommended setting: 1
|
// Recommended setting: 1
|
||||||
#define wxUSE_STC 1
|
#define wxUSE_STC 1
|
||||||
|
|
||||||
|
// Use wxWidget's web viewing classes
|
||||||
|
//
|
||||||
|
// Default is 1
|
||||||
|
//
|
||||||
|
// Recommended setting: 1
|
||||||
|
#define wxUSE_WEBVIEW 1
|
||||||
|
|
||||||
|
// Use the IE wxWebView backend
|
||||||
|
//
|
||||||
|
// Default is 1 on MSW
|
||||||
|
//
|
||||||
|
// Recommended setting: 1
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
#define wxUSE_WEBVIEW_IE 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBVIEW_IE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
|
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
|
||||||
// 2D drawing API. (Still somewhat experimental)
|
// 2D drawing API. (Still somewhat experimental)
|
||||||
|
230
include/wx/msw/webview_ie.h
Normal file
230
include/wx/msw/webview_ie.h
Normal file
@@ -0,0 +1,230 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/wx/msw/webviewie.h
|
||||||
|
// Purpose: wxMSW IE wxWebView backend
|
||||||
|
// Author: Marianne Gagnon
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef wxWebViewIE_H
|
||||||
|
#define wxWebViewIE_H
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
|
#include "wx/control.h"
|
||||||
|
#include "wx/webview.h"
|
||||||
|
#include "wx/msw/ole/automtn.h"
|
||||||
|
#include "wx/msw/ole/activex.h"
|
||||||
|
#include "wx/sharedptr.h"
|
||||||
|
#include "wx/vector.h"
|
||||||
|
|
||||||
|
struct IHTMLDocument2;
|
||||||
|
class wxFSFile;
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewIE : public wxWebView
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
wxWebViewIE() {}
|
||||||
|
|
||||||
|
wxWebViewIE(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr)
|
||||||
|
{
|
||||||
|
Create(parent, id, url, pos, size, style, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Create(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr);
|
||||||
|
|
||||||
|
virtual void LoadURL(const wxString& url);
|
||||||
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item);
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory();
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory();
|
||||||
|
|
||||||
|
virtual bool CanGoForward() const;
|
||||||
|
virtual bool CanGoBack() const;
|
||||||
|
virtual void GoBack();
|
||||||
|
virtual void GoForward();
|
||||||
|
virtual void ClearHistory();
|
||||||
|
virtual void EnableHistory(bool enable = true);
|
||||||
|
virtual void Stop();
|
||||||
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
|
||||||
|
|
||||||
|
virtual wxString GetPageSource() const;
|
||||||
|
virtual wxString GetPageText() const;
|
||||||
|
|
||||||
|
virtual bool IsBusy() const;
|
||||||
|
virtual wxString GetCurrentURL() const;
|
||||||
|
virtual wxString GetCurrentTitle() const;
|
||||||
|
|
||||||
|
virtual void SetZoomType(wxWebViewZoomType);
|
||||||
|
virtual wxWebViewZoomType GetZoomType() const;
|
||||||
|
virtual bool CanSetZoomType(wxWebViewZoomType) const;
|
||||||
|
|
||||||
|
virtual void Print();
|
||||||
|
|
||||||
|
virtual void SetPage(const wxString& html, const wxString& baseUrl);
|
||||||
|
|
||||||
|
virtual wxWebViewZoom GetZoom() const;
|
||||||
|
virtual void SetZoom(wxWebViewZoom zoom);
|
||||||
|
|
||||||
|
//Clipboard functions
|
||||||
|
virtual bool CanCut() const;
|
||||||
|
virtual bool CanCopy() const;
|
||||||
|
virtual bool CanPaste() const;
|
||||||
|
virtual void Cut();
|
||||||
|
virtual void Copy();
|
||||||
|
virtual void Paste();
|
||||||
|
|
||||||
|
//Undo / redo functionality
|
||||||
|
virtual bool CanUndo() const;
|
||||||
|
virtual bool CanRedo() const;
|
||||||
|
virtual void Undo();
|
||||||
|
virtual void Redo();
|
||||||
|
|
||||||
|
//Editing functions
|
||||||
|
virtual void SetEditable(bool enable = true);
|
||||||
|
virtual bool IsEditable() const;
|
||||||
|
|
||||||
|
//Selection
|
||||||
|
virtual void SelectAll();
|
||||||
|
virtual bool HasSelection() const;
|
||||||
|
virtual void DeleteSelection();
|
||||||
|
virtual wxString GetSelectedText() const;
|
||||||
|
virtual wxString GetSelectedSource() const;
|
||||||
|
virtual void ClearSelection();
|
||||||
|
|
||||||
|
virtual void RunScript(const wxString& javascript);
|
||||||
|
|
||||||
|
//Virtual Filesystem Support
|
||||||
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler);
|
||||||
|
|
||||||
|
// ---- IE-specific methods
|
||||||
|
|
||||||
|
// FIXME: I seem to be able to access remote webpages even in offline mode...
|
||||||
|
bool IsOfflineMode();
|
||||||
|
void SetOfflineMode(bool offline);
|
||||||
|
|
||||||
|
wxWebViewZoom GetIETextZoom() const;
|
||||||
|
void SetIETextZoom(wxWebViewZoom level);
|
||||||
|
|
||||||
|
wxWebViewZoom GetIEOpticalZoom() const;
|
||||||
|
void SetIEOpticalZoom(wxWebViewZoom level);
|
||||||
|
|
||||||
|
void onActiveXEvent(wxActiveXEvent& evt);
|
||||||
|
void onEraseBg(wxEraseEvent&) {}
|
||||||
|
|
||||||
|
DECLARE_EVENT_TABLE();
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxActiveXContainer* m_container;
|
||||||
|
wxAutomationObject m_ie;
|
||||||
|
IWebBrowser2* m_webBrowser;
|
||||||
|
DWORD m_dwCookie;
|
||||||
|
|
||||||
|
//We store the current zoom type;
|
||||||
|
wxWebViewZoomType m_zoomType;
|
||||||
|
|
||||||
|
/** The "Busy" property of IWebBrowser2 does not always return busy when
|
||||||
|
* we'd want it to; this variable may be set to true in cases where the
|
||||||
|
* Busy property is false but should be true.
|
||||||
|
*/
|
||||||
|
bool m_isBusy;
|
||||||
|
//We manage our own history, the history list contains the history items
|
||||||
|
//which are added as documentcomplete events arrive, unless we are loading
|
||||||
|
//an item from the history. The position is stored as an int, and reflects
|
||||||
|
//where we are in the history list.
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > m_historyList;
|
||||||
|
int m_historyPosition;
|
||||||
|
bool m_historyLoadingFromList;
|
||||||
|
bool m_historyEnabled;
|
||||||
|
|
||||||
|
//Generic helper functions for IHtmlDocument commands
|
||||||
|
bool CanExecCommand(wxString command) const;
|
||||||
|
void ExecCommand(wxString command);
|
||||||
|
IHTMLDocument2* GetDocument() const;
|
||||||
|
|
||||||
|
wxDECLARE_DYNAMIC_CLASS(wxWebViewIE);
|
||||||
|
};
|
||||||
|
|
||||||
|
class VirtualProtocol : public IInternetProtocol
|
||||||
|
{
|
||||||
|
protected:
|
||||||
|
ULONG m_refCount;
|
||||||
|
IInternetProtocolSink* m_protocolSink;
|
||||||
|
wxString m_html;
|
||||||
|
VOID * fileP;
|
||||||
|
|
||||||
|
wxFSFile* m_file;
|
||||||
|
wxSharedPtr<wxWebViewHandler> m_handler;
|
||||||
|
|
||||||
|
public:
|
||||||
|
VirtualProtocol(wxSharedPtr<wxWebViewHandler> handler);
|
||||||
|
~VirtualProtocol();
|
||||||
|
|
||||||
|
//IUnknown
|
||||||
|
ULONG STDMETHODCALLTYPE AddRef();
|
||||||
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
|
||||||
|
ULONG STDMETHODCALLTYPE Release();
|
||||||
|
|
||||||
|
//IInternetProtocolRoot
|
||||||
|
HRESULT STDMETHODCALLTYPE Abort(HRESULT WXUNUSED(hrReason),
|
||||||
|
DWORD WXUNUSED(dwOptions))
|
||||||
|
{ return E_NOTIMPL; }
|
||||||
|
HRESULT STDMETHODCALLTYPE Continue(PROTOCOLDATA *WXUNUSED(pProtocolData))
|
||||||
|
{ return S_OK; }
|
||||||
|
HRESULT STDMETHODCALLTYPE Resume() { return S_OK; }
|
||||||
|
HRESULT STDMETHODCALLTYPE Start(LPCWSTR szUrl,
|
||||||
|
IInternetProtocolSink *pOIProtSink,
|
||||||
|
IInternetBindInfo *pOIBindInfo,
|
||||||
|
DWORD grfPI,
|
||||||
|
HANDLE_PTR dwReserved);
|
||||||
|
HRESULT STDMETHODCALLTYPE Suspend() { return S_OK; }
|
||||||
|
HRESULT STDMETHODCALLTYPE Terminate(DWORD WXUNUSED(dwOptions)) { return S_OK; }
|
||||||
|
|
||||||
|
//IInternetProtocol
|
||||||
|
HRESULT STDMETHODCALLTYPE LockRequest(DWORD WXUNUSED(dwOptions))
|
||||||
|
{ return S_OK; }
|
||||||
|
HRESULT STDMETHODCALLTYPE Read(void *pv, ULONG cb, ULONG *pcbRead);
|
||||||
|
HRESULT STDMETHODCALLTYPE Seek(LARGE_INTEGER WXUNUSED(dlibMove),
|
||||||
|
DWORD WXUNUSED(dwOrigin),
|
||||||
|
ULARGE_INTEGER* WXUNUSED(plibNewPosition))
|
||||||
|
{ return E_FAIL; }
|
||||||
|
HRESULT STDMETHODCALLTYPE UnlockRequest() { return S_OK; }
|
||||||
|
};
|
||||||
|
|
||||||
|
class ClassFactory : public IClassFactory
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
ULONG m_refCount;
|
||||||
|
public:
|
||||||
|
ClassFactory(wxSharedPtr<wxWebViewHandler> handler) : m_handler(handler) {}
|
||||||
|
//IUnknown
|
||||||
|
ULONG STDMETHODCALLTYPE AddRef();
|
||||||
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject);
|
||||||
|
ULONG STDMETHODCALLTYPE Release();
|
||||||
|
|
||||||
|
//IClassFactory
|
||||||
|
HRESULT STDMETHODCALLTYPE CreateInstance(IUnknown* pUnkOuter,
|
||||||
|
REFIID riid, void** ppvObject);
|
||||||
|
HRESULT STDMETHODCALLTYPE LockServer(BOOL fLock);
|
||||||
|
private:
|
||||||
|
wxSharedPtr<wxWebViewHandler> m_handler;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
|
#endif // wxWebViewIE_H
|
31
include/wx/msw/webviewhistoryitem_ie.h
Normal file
31
include/wx/msw/webviewhistoryitem_ie.h
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/wx/msw/webviewhistoryitem.h
|
||||||
|
// Purpose: wxWebViewHistoryItem header for MSW
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_MSW_WEBVIEWHISTORYITEM_H_
|
||||||
|
#define _WX_MSW_WEBVIEWHISTORYITEM_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewHistoryItem(const wxString& url, const wxString& title) :
|
||||||
|
m_url(url), m_title(title) {}
|
||||||
|
wxString GetUrl() { return m_url; }
|
||||||
|
wxString GetTitle() { return m_title; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxString m_url, m_title;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW_IE && defined(__WXMSW__)
|
||||||
|
|
||||||
|
#endif // _WX_MSW_WEBVIEWHISTORYITEM_H_
|
163
include/wx/osx/webview_webkit.h
Normal file
163
include/wx/osx/webview_webkit.h
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/wx/osx/webkit.h
|
||||||
|
// Purpose: wxWebViewWebKit - embeddable web kit control,
|
||||||
|
// OS X implementation of web view component
|
||||||
|
// Author: Jethro Grassie / Kevin Ollivier / Marianne Gagnon
|
||||||
|
// Modified by:
|
||||||
|
// Created: 2004-4-16
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) Jethro Grassie / Kevin Ollivier / Marianne Gagnon
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_WEBKIT_H
|
||||||
|
#define _WX_WEBKIT_H
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
||||||
|
|| defined(__WXOSX_CARBON__))
|
||||||
|
|
||||||
|
#include "wx/control.h"
|
||||||
|
#include "wx/webview.h"
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Web Kit Control
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewWebKit : public wxWebView
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxDECLARE_DYNAMIC_CLASS(wxWebViewWebKit);
|
||||||
|
|
||||||
|
wxWebViewWebKit() {}
|
||||||
|
wxWebViewWebKit(wxWindow *parent,
|
||||||
|
wxWindowID winID = wxID_ANY,
|
||||||
|
const wxString& strURL = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr)
|
||||||
|
{
|
||||||
|
Create(parent, winID, strURL, pos, size, style, name);
|
||||||
|
}
|
||||||
|
bool Create(wxWindow *parent,
|
||||||
|
wxWindowID winID = wxID_ANY,
|
||||||
|
const wxString& strURL = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr);
|
||||||
|
virtual ~wxWebViewWebKit();
|
||||||
|
|
||||||
|
virtual bool CanGoBack() const;
|
||||||
|
virtual bool CanGoForward() const;
|
||||||
|
virtual void GoBack();
|
||||||
|
virtual void GoForward();
|
||||||
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT);
|
||||||
|
virtual void Stop();
|
||||||
|
virtual wxString GetPageSource() const;
|
||||||
|
virtual wxString GetPageText() const;
|
||||||
|
|
||||||
|
//We do not want to hide the other overloads
|
||||||
|
using wxWebView::SetPage;
|
||||||
|
virtual void SetPage(const wxString& html, const wxString& baseUrl);
|
||||||
|
|
||||||
|
virtual void Print();
|
||||||
|
|
||||||
|
virtual void LoadURL(const wxString& url);
|
||||||
|
virtual wxString GetCurrentURL() const;
|
||||||
|
virtual wxString GetCurrentTitle() const;
|
||||||
|
virtual wxWebViewZoom GetZoom() const;
|
||||||
|
virtual void SetZoom(wxWebViewZoom zoom);
|
||||||
|
|
||||||
|
virtual void SetZoomType(wxWebViewZoomType zoomType);
|
||||||
|
virtual wxWebViewZoomType GetZoomType() const;
|
||||||
|
virtual bool CanSetZoomType(wxWebViewZoomType type) const;
|
||||||
|
|
||||||
|
virtual bool IsBusy() const { return m_busy; }
|
||||||
|
|
||||||
|
//History functions
|
||||||
|
virtual void ClearHistory();
|
||||||
|
virtual void EnableHistory(bool enable = true);
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory();
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory();
|
||||||
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item);
|
||||||
|
|
||||||
|
//Undo / redo functionality
|
||||||
|
virtual bool CanUndo() const;
|
||||||
|
virtual bool CanRedo() const;
|
||||||
|
virtual void Undo();
|
||||||
|
virtual void Redo();
|
||||||
|
|
||||||
|
//Clipboard functions
|
||||||
|
virtual bool CanCut() const { return true; }
|
||||||
|
virtual bool CanCopy() const { return true; }
|
||||||
|
virtual bool CanPaste() const { return true; }
|
||||||
|
virtual void Cut();
|
||||||
|
virtual void Copy();
|
||||||
|
virtual void Paste();
|
||||||
|
|
||||||
|
//Editing functions
|
||||||
|
virtual void SetEditable(bool enable = true);
|
||||||
|
virtual bool IsEditable() const;
|
||||||
|
|
||||||
|
//Selection
|
||||||
|
virtual void DeleteSelection();
|
||||||
|
virtual bool HasSelection() const;
|
||||||
|
virtual void SelectAll();
|
||||||
|
virtual wxString GetSelectedText() const;
|
||||||
|
virtual wxString GetSelectedSource() const;
|
||||||
|
virtual void ClearSelection();
|
||||||
|
|
||||||
|
void RunScript(const wxString& javascript);
|
||||||
|
|
||||||
|
//Virtual Filesystem Support
|
||||||
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler);
|
||||||
|
|
||||||
|
// ---- methods not from the parent (common) interface
|
||||||
|
bool CanGetPageSource() const;
|
||||||
|
|
||||||
|
void SetScrollPos(int pos);
|
||||||
|
int GetScrollPos();
|
||||||
|
|
||||||
|
bool CanIncreaseTextSize() const;
|
||||||
|
void IncreaseTextSize();
|
||||||
|
bool CanDecreaseTextSize() const;
|
||||||
|
void DecreaseTextSize();
|
||||||
|
|
||||||
|
float GetWebkitZoom() const;
|
||||||
|
void SetWebkitZoom(float zoom);
|
||||||
|
|
||||||
|
// don't hide base class virtuals
|
||||||
|
virtual void SetScrollPos( int orient, int pos, bool refresh = true )
|
||||||
|
{ return wxControl::SetScrollPos(orient, pos, refresh); }
|
||||||
|
virtual int GetScrollPos( int orient ) const
|
||||||
|
{ return wxControl::GetScrollPos(orient); }
|
||||||
|
|
||||||
|
//we need to resize the webview when the control size changes
|
||||||
|
void OnSize(wxSizeEvent &event);
|
||||||
|
void OnMove(wxMoveEvent &event);
|
||||||
|
void OnMouseEvents(wxMouseEvent &event);
|
||||||
|
|
||||||
|
bool m_busy;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
DECLARE_EVENT_TABLE()
|
||||||
|
void MacVisibilityChanged();
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxWindow *m_parent;
|
||||||
|
wxWindowID m_windowID;
|
||||||
|
wxString m_pageTitle;
|
||||||
|
|
||||||
|
struct objc_object *m_webView;
|
||||||
|
|
||||||
|
// we may use this later to setup our own mouse events,
|
||||||
|
// so leave it in for now.
|
||||||
|
void* m_webKitCtrlEventHandler;
|
||||||
|
//It should be WebView*, but WebView is an Objective-C class
|
||||||
|
//TODO: look into using DECLARE_WXCOCOA_OBJC_CLASS rather than this.
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBKIT
|
||||||
|
|
||||||
|
#endif // _WX_WEBKIT_H_
|
35
include/wx/osx/webviewhistoryitem_webkit.h
Normal file
35
include/wx/osx/webviewhistoryitem_webkit.h
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: include/wx/osx/webviewhistoryitem.h
|
||||||
|
// Purpose: wxWebViewHistoryItem header for OSX
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_OSX_WEBVIEWHISTORYITEM_H_
|
||||||
|
#define _WX_OSX_WEBVIEWHISTORYITEM_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_WEBKIT && (defined(__WXOSX_COCOA__) \
|
||||||
|
|| defined(__WXOSX_CARBON__))
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewHistoryItem(const wxString& url, const wxString& title) :
|
||||||
|
m_url(url), m_title(title) {}
|
||||||
|
wxString GetUrl() { return m_url; }
|
||||||
|
wxString GetTitle() { return m_title; }
|
||||||
|
|
||||||
|
friend class wxWebViewWebKit;
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxString m_url, m_title;
|
||||||
|
struct objc_object *m_histItem;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW_WEBKIT && defined(__WXOSX_MAC__)
|
||||||
|
|
||||||
|
#endif // _WX_OSX_WEBVIEWHISTORYITEM_H_
|
@@ -701,6 +701,34 @@
|
|||||||
// Recommended setting: 1
|
// Recommended setting: 1
|
||||||
#define wxUSE_STC 1
|
#define wxUSE_STC 1
|
||||||
|
|
||||||
|
// Use wxWidget's web viewing classes
|
||||||
|
//
|
||||||
|
// Default is 1
|
||||||
|
//
|
||||||
|
// Recommended setting: 1
|
||||||
|
#define wxUSE_WEBVIEW 1
|
||||||
|
|
||||||
|
// Use the IE wxWebView backend
|
||||||
|
//
|
||||||
|
// Default is 1 on MSW
|
||||||
|
//
|
||||||
|
// Recommended setting: 1
|
||||||
|
#ifdef __WXMSW__
|
||||||
|
#define wxUSE_WEBVIEW_IE 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBVIEW_IE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Use the WebKit wxWebView backend
|
||||||
|
//
|
||||||
|
// Default is 1 on GTK and OSX
|
||||||
|
//
|
||||||
|
// Recommended setting: 1
|
||||||
|
#if defined(__WXGTK__) || defined(__WXOSX__)
|
||||||
|
#define wxUSE_WEBVIEW_WEBKIT 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBVIEW_WEBKIT 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
|
// Enable the new wxGraphicsPath and wxGraphicsContext classes for an advanced
|
||||||
// 2D drawing API. (Still somewhat experimental)
|
// 2D drawing API. (Still somewhat experimental)
|
||||||
|
235
include/wx/webview.h
Normal file
235
include/wx/webview.h
Normal file
@@ -0,0 +1,235 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webview.h
|
||||||
|
// Purpose: Common interface and events for web view component
|
||||||
|
// Author: Marianne Gagnon
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_WEB_VIEW_H_
|
||||||
|
#define _WX_WEB_VIEW_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#include "wx/control.h"
|
||||||
|
#include "wx/event.h"
|
||||||
|
#include "wx/sstream.h"
|
||||||
|
#include "wx/sharedptr.h"
|
||||||
|
#include "wx/vector.h"
|
||||||
|
|
||||||
|
#include "wx/osx/webviewhistoryitem_webkit.h"
|
||||||
|
#include "wx/gtk/webviewhistoryitem_webkit.h"
|
||||||
|
#include "wx/msw/webviewhistoryitem_ie.h"
|
||||||
|
|
||||||
|
class wxFSFile;
|
||||||
|
class wxFileSystem;
|
||||||
|
|
||||||
|
enum wxWebViewZoom
|
||||||
|
{
|
||||||
|
wxWEB_VIEW_ZOOM_TINY,
|
||||||
|
wxWEB_VIEW_ZOOM_SMALL,
|
||||||
|
wxWEB_VIEW_ZOOM_MEDIUM,
|
||||||
|
wxWEB_VIEW_ZOOM_LARGE,
|
||||||
|
wxWEB_VIEW_ZOOM_LARGEST
|
||||||
|
};
|
||||||
|
|
||||||
|
enum wxWebViewZoomType
|
||||||
|
{
|
||||||
|
//Scales entire page, including images
|
||||||
|
wxWEB_VIEW_ZOOM_TYPE_LAYOUT,
|
||||||
|
wxWEB_VIEW_ZOOM_TYPE_TEXT
|
||||||
|
};
|
||||||
|
|
||||||
|
enum wxWebViewNavigationError
|
||||||
|
{
|
||||||
|
wxWEB_NAV_ERR_CONNECTION,
|
||||||
|
wxWEB_NAV_ERR_CERTIFICATE,
|
||||||
|
wxWEB_NAV_ERR_AUTH,
|
||||||
|
wxWEB_NAV_ERR_SECURITY,
|
||||||
|
wxWEB_NAV_ERR_NOT_FOUND,
|
||||||
|
wxWEB_NAV_ERR_REQUEST,
|
||||||
|
wxWEB_NAV_ERR_USER_CANCELLED,
|
||||||
|
wxWEB_NAV_ERR_OTHER
|
||||||
|
};
|
||||||
|
|
||||||
|
enum wxWebViewReloadFlags
|
||||||
|
{
|
||||||
|
//Default, may access cache
|
||||||
|
wxWEB_VIEW_RELOAD_DEFAULT,
|
||||||
|
wxWEB_VIEW_RELOAD_NO_CACHE
|
||||||
|
};
|
||||||
|
|
||||||
|
enum wxWebViewBackend
|
||||||
|
{
|
||||||
|
wxWEB_VIEW_BACKEND_DEFAULT,
|
||||||
|
wxWEB_VIEW_BACKEND_WEBKIT,
|
||||||
|
wxWEB_VIEW_BACKEND_IE
|
||||||
|
};
|
||||||
|
|
||||||
|
//Base class for custom scheme handlers
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewHandler(const wxString& scheme) : m_scheme(scheme) {}
|
||||||
|
virtual ~wxWebViewHandler() {}
|
||||||
|
virtual wxString GetName() const { return m_scheme; }
|
||||||
|
virtual wxFSFile* GetFile(const wxString &uri) = 0;
|
||||||
|
private:
|
||||||
|
wxString m_scheme;
|
||||||
|
};
|
||||||
|
|
||||||
|
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewNameStr[];
|
||||||
|
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewDefaultURLStr[];
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebView : public wxControl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual bool Create(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name) = 0;
|
||||||
|
|
||||||
|
static wxWebView* New(wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT);
|
||||||
|
static wxWebView* New(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr);
|
||||||
|
|
||||||
|
//General methods
|
||||||
|
virtual wxString GetCurrentTitle() const = 0;
|
||||||
|
virtual wxString GetCurrentURL() const = 0;
|
||||||
|
// TODO: handle choosing a frame when calling GetPageSource()?
|
||||||
|
virtual wxString GetPageSource() const = 0;
|
||||||
|
virtual wxString GetPageText() const = 0;
|
||||||
|
virtual bool IsBusy() const = 0;
|
||||||
|
virtual bool IsEditable() const = 0;
|
||||||
|
virtual void LoadURL(const wxString& url) = 0;
|
||||||
|
virtual void Print() = 0;
|
||||||
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) = 0;
|
||||||
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
|
||||||
|
virtual void RunScript(const wxString& javascript) = 0;
|
||||||
|
virtual void SetEditable(bool enable = true) = 0;
|
||||||
|
virtual void SetPage(const wxString& html, const wxString& baseUrl) = 0;
|
||||||
|
virtual void SetPage(wxInputStream& html, wxString baseUrl)
|
||||||
|
{
|
||||||
|
wxStringOutputStream stream;
|
||||||
|
stream.Write(html);
|
||||||
|
SetPage(stream.GetString(), baseUrl);
|
||||||
|
}
|
||||||
|
virtual void Stop() = 0;
|
||||||
|
|
||||||
|
//History
|
||||||
|
virtual bool CanGoBack() const = 0;
|
||||||
|
virtual bool CanGoForward() const = 0;
|
||||||
|
virtual void GoBack() = 0;
|
||||||
|
virtual void GoForward() = 0;
|
||||||
|
virtual void ClearHistory() = 0;
|
||||||
|
virtual void EnableHistory(bool enable = true) = 0;
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory() = 0;
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory() = 0;
|
||||||
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item) = 0;
|
||||||
|
|
||||||
|
//Zoom
|
||||||
|
virtual bool CanSetZoomType(wxWebViewZoomType type) const = 0;
|
||||||
|
virtual wxWebViewZoom GetZoom() const = 0;
|
||||||
|
virtual wxWebViewZoomType GetZoomType() const = 0;
|
||||||
|
virtual void SetZoom(wxWebViewZoom zoom) = 0;
|
||||||
|
virtual void SetZoomType(wxWebViewZoomType zoomType) = 0;
|
||||||
|
|
||||||
|
//Selection
|
||||||
|
virtual void SelectAll() = 0;
|
||||||
|
virtual bool HasSelection() const = 0;
|
||||||
|
virtual void DeleteSelection() = 0;
|
||||||
|
virtual wxString GetSelectedText() const = 0;
|
||||||
|
virtual wxString GetSelectedSource() const = 0;
|
||||||
|
virtual void ClearSelection() = 0;
|
||||||
|
|
||||||
|
//Clipboard functions
|
||||||
|
virtual bool CanCut() const = 0;
|
||||||
|
virtual bool CanCopy() const = 0;
|
||||||
|
virtual bool CanPaste() const = 0;
|
||||||
|
virtual void Cut() = 0;
|
||||||
|
virtual void Copy() = 0;
|
||||||
|
virtual void Paste() = 0;
|
||||||
|
|
||||||
|
//Undo / redo functionality
|
||||||
|
virtual bool CanUndo() const = 0;
|
||||||
|
virtual bool CanRedo() const = 0;
|
||||||
|
virtual void Undo() = 0;
|
||||||
|
virtual void Redo() = 0;
|
||||||
|
|
||||||
|
wxDECLARE_ABSTRACT_CLASS(wxWebView);
|
||||||
|
};
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewEvent : public wxNotifyEvent
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewEvent() {}
|
||||||
|
wxWebViewEvent(wxEventType type, int id, const wxString url,
|
||||||
|
const wxString target)
|
||||||
|
: wxNotifyEvent(type, id), m_url(url), m_target(target)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
const wxString& GetURL() const { return m_url; }
|
||||||
|
const wxString& GetTarget() const { return m_target; }
|
||||||
|
|
||||||
|
virtual wxEvent* Clone() const { return new wxWebViewEvent(*this); }
|
||||||
|
private:
|
||||||
|
wxString m_url;
|
||||||
|
wxString m_target;
|
||||||
|
|
||||||
|
wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWebViewEvent);
|
||||||
|
};
|
||||||
|
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebViewEvent );
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebViewEvent );
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebViewEvent );
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebViewEvent );
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebViewEvent );
|
||||||
|
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEBVIEW, wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebViewEvent );
|
||||||
|
|
||||||
|
typedef void (wxEvtHandler::*wxWebViewEventFunction)
|
||||||
|
(wxWebViewEvent&);
|
||||||
|
|
||||||
|
#define wxWebViewEventHandler(func) \
|
||||||
|
wxEVENT_HANDLER_CAST(wxWebViewEventFunction, func)
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_NAVIGATING(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATING, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_NAVIGATED(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATED, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_LOADED(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_LOADED, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_ERRROR(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_ERROR, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_NEWWINDOW(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#define EVT_WEB_VIEW_TITLE_CHANGED(id, fn) \
|
||||||
|
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, id, \
|
||||||
|
wxWebViewEventHandler(fn))
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#endif // _WX_WEB_VIEW_H_
|
37
include/wx/webviewarchivehandler.h
Normal file
37
include/wx/webviewarchivehandler.h
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webviewarchivehandler.h
|
||||||
|
// Purpose: Custom webview handler to allow archive browsing
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _WX_WEB_VIEW_FILE_HANDLER_H_
|
||||||
|
#define _WX_WEB_VIEW_FILE_HANDLER_H_
|
||||||
|
|
||||||
|
#include "wx/setup.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
class wxFSFile;
|
||||||
|
class wxFileSystem;
|
||||||
|
|
||||||
|
#include "wx/webview.h"
|
||||||
|
|
||||||
|
//Loads from uris such as scheme:///C:/example/example.html or archives such as
|
||||||
|
//scheme:///C:/example/example.zip;protocol=zip/example.html
|
||||||
|
|
||||||
|
class WXDLLIMPEXP_WEBVIEW wxWebViewArchiveHandler : public wxWebViewHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewArchiveHandler(const wxString& scheme);
|
||||||
|
virtual ~wxWebViewArchiveHandler() {}
|
||||||
|
virtual wxFSFile* GetFile(const wxString &uri);
|
||||||
|
private:
|
||||||
|
wxFileSystem* m_fileSystem;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#endif // _WX_WEB_VIEW_FILE_HANDLER_H_
|
651
interface/wx/webview.h
Normal file
651
interface/wx/webview.h
Normal file
@@ -0,0 +1,651 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webview.h
|
||||||
|
// Purpose: interface of wxWebView
|
||||||
|
// Author: wxWidgets team
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
Zoom levels availiable in wxWebView
|
||||||
|
*/
|
||||||
|
enum wxWebViewZoom
|
||||||
|
{
|
||||||
|
wxWEB_VIEW_ZOOM_TINY,
|
||||||
|
wxWEB_VIEW_ZOOM_SMALL,
|
||||||
|
wxWEB_VIEW_ZOOM_MEDIUM, //!< default size
|
||||||
|
wxWEB_VIEW_ZOOM_LARGE,
|
||||||
|
wxWEB_VIEW_ZOOM_LARGEST
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
The type of zooming that the web view control can perform
|
||||||
|
*/
|
||||||
|
enum wxWebViewZoomType
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
The entire layout scales when zooming, including images
|
||||||
|
*/
|
||||||
|
wxWEB_VIEW_ZOOM_TYPE_LAYOUT,
|
||||||
|
/**
|
||||||
|
Only the text changes in size when zooming, images and other layout
|
||||||
|
elements retain their initial size
|
||||||
|
*/
|
||||||
|
wxWEB_VIEW_ZOOM_TYPE_TEXT
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
Types of errors that can cause navigation to fail
|
||||||
|
*/
|
||||||
|
enum wxWebViewNavigationError
|
||||||
|
{
|
||||||
|
/** Connection error (timeout, etc.) */
|
||||||
|
wxWEB_NAV_ERR_CONNECTION,
|
||||||
|
/** Invalid certificate */
|
||||||
|
wxWEB_NAV_ERR_CERTIFICATE,
|
||||||
|
/** Authentication required */
|
||||||
|
wxWEB_NAV_ERR_AUTH,
|
||||||
|
/** Other security error */
|
||||||
|
wxWEB_NAV_ERR_SECURITY,
|
||||||
|
/** Requested resource not found */
|
||||||
|
wxWEB_NAV_ERR_NOT_FOUND,
|
||||||
|
/** Invalid request/parameters (e.g. bad URL, bad protocol,
|
||||||
|
unsupported resource type) */
|
||||||
|
wxWEB_NAV_ERR_REQUEST,
|
||||||
|
/** The user cancelled (e.g. in a dialog) */
|
||||||
|
wxWEB_NAV_ERR_USER_CANCELLED,
|
||||||
|
/** Another (exotic) type of error that didn't fit in other categories*/
|
||||||
|
wxWEB_NAV_ERR_OTHER
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
Type of refresh
|
||||||
|
*/
|
||||||
|
enum wxWebViewReloadFlags
|
||||||
|
{
|
||||||
|
/** Default reload, will access cache */
|
||||||
|
wxWEB_VIEW_RELOAD_DEFAULT,
|
||||||
|
/** Reload the current view without accessing the cache */
|
||||||
|
wxWEB_VIEW_RELOAD_NO_CACHE
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List of available backends for wxWebView
|
||||||
|
*/
|
||||||
|
enum wxWebViewBackend
|
||||||
|
{
|
||||||
|
/** Value that may be passed to wxWebView to let it pick an appropriate
|
||||||
|
* engine for the current platform*/
|
||||||
|
wxWEB_VIEW_BACKEND_DEFAULT,
|
||||||
|
|
||||||
|
/** The WebKit web engine */
|
||||||
|
wxWEB_VIEW_BACKEND_WEBKIT,
|
||||||
|
|
||||||
|
/** Use Microsoft Internet Explorer as web engine */
|
||||||
|
wxWEB_VIEW_BACKEND_IE
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
@class wxWebViewHistoryItem
|
||||||
|
|
||||||
|
A simple class that contains the URL and title of an element of the history
|
||||||
|
of a wxWebView.
|
||||||
|
|
||||||
|
@since 2.9.3
|
||||||
|
@library{wxwebview}
|
||||||
|
@category{webview}
|
||||||
|
|
||||||
|
@see wxWebView
|
||||||
|
*/
|
||||||
|
class wxWebViewHistoryItem
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
Construtor.
|
||||||
|
*/
|
||||||
|
wxWebViewHistoryItem(const wxString& url, const wxString& title);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return The url of the page.
|
||||||
|
*/
|
||||||
|
wxString GetUrl();
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return The title of the page.
|
||||||
|
*/
|
||||||
|
wxString GetTitle();
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
@class wxWebViewHandler
|
||||||
|
|
||||||
|
The base class for handling custom schemes in wxWebView, for example to
|
||||||
|
allow virtual file system support.
|
||||||
|
|
||||||
|
@since 2.9.3
|
||||||
|
@library{wxwebview}
|
||||||
|
@category{webview}
|
||||||
|
|
||||||
|
@see wxWebView
|
||||||
|
*/
|
||||||
|
class wxWebViewHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
Constructor. Takes the name of the scheme that will be handled by this
|
||||||
|
class for example @c file or @c zip.
|
||||||
|
*/
|
||||||
|
wxWebViewHandler(const wxString& scheme);
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return A pointer to the file represented by @c uri.
|
||||||
|
*/
|
||||||
|
virtual wxFSFile* GetFile(const wxString &uri) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@return The name of the scheme, as passed to the constructor.
|
||||||
|
*/
|
||||||
|
virtual wxString GetName() const = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
@class wxWebView
|
||||||
|
|
||||||
|
This control may be used to render web (HTML / CSS / javascript) documents.
|
||||||
|
It is designed to allow the creation of multiple backends for each port,
|
||||||
|
although currently just one is available. It differs from wxHtmlWindow in
|
||||||
|
that each backend is actually a full rendering engine, Trident on MSW and
|
||||||
|
Webkit on OSX and GTK. This allows the correct viewing complex pages with
|
||||||
|
javascript and css.
|
||||||
|
|
||||||
|
@section descriptions Backend Descriptions
|
||||||
|
|
||||||
|
@par wxWEB_VIEW_BACKEND_IE (MSW)
|
||||||
|
|
||||||
|
The IE backend uses Microsoft's Trident rendering engine, specifically the
|
||||||
|
version used by the locally installed copy of Internet Explorer. As such it
|
||||||
|
is only available for the MSW port. By default recent versions of the
|
||||||
|
<a href="http://msdn.microsoft.com/en-us/library/aa752085%28v=VS.85%29.aspx">WebBrowser</a>
|
||||||
|
control, which this backend uses, emulate Internet Explorer 7. This can be
|
||||||
|
changed with a registry setting, see
|
||||||
|
<a href="http://msdn.microsoft.com/en-us/library/ee330730%28v=vs.85%29.aspx#browser_emulation">
|
||||||
|
this</a> article for more information. This backend has full support for
|
||||||
|
custom schemes and virtual file systems.
|
||||||
|
|
||||||
|
@par wxWEB_VIEW_WEBKIT (GTK)
|
||||||
|
|
||||||
|
Under GTK the WebKit backend uses
|
||||||
|
<a href="http://webkitgtk.org/">WebKitGTK+</a>. The current minimum version
|
||||||
|
required is 1.3.1 which ships by default with Ubuntu Natty and Debian
|
||||||
|
Wheezy and has the package name libwebkitgtk-dev. Custom schemes and
|
||||||
|
virtual files systems are supported under this backend, however embedded
|
||||||
|
resources such as images and stylesheets are currently loaded using the
|
||||||
|
data:// scheme.
|
||||||
|
|
||||||
|
@par wxWEB_VIEW_WEBKIT (OSX)
|
||||||
|
|
||||||
|
The OSX WebKit backend uses Apple's
|
||||||
|
<a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/Reference/Reference.html#//apple_ref/doc/uid/20001903">WebView</a>
|
||||||
|
class. This backend has full support for custom schemes and virtual file
|
||||||
|
systems.
|
||||||
|
|
||||||
|
@section async Asynchronous Notifications
|
||||||
|
|
||||||
|
Many of the methods in wxWebView are asynchronous, i.e. they return
|
||||||
|
immediately and perform their work in the background. This includes
|
||||||
|
functions such as LoadUrl() and Reload(). To receive notification of the
|
||||||
|
progress and completion of these functions you need to handle the events
|
||||||
|
that are provided. Specifically @c wxEVT_COMMAND_WEB_VIEW_LOADED notifies
|
||||||
|
when the page or a sub-frame has finished loading and
|
||||||
|
@c wxEVT_COMMAND_WEB_VIEW_ERROR notifies that an error has occurred.
|
||||||
|
|
||||||
|
@section vfs Virtual File Systems and Custom Schemes
|
||||||
|
|
||||||
|
wxWebView supports the registering of custom scheme handlers, for example
|
||||||
|
@c file or @c http. To do this create a new class which inherits from
|
||||||
|
wxWebViewHandler, where wxWebHandler::GetFile() returns a pointer to a
|
||||||
|
wxFSFile which represents the given url. You can then register your handler
|
||||||
|
with RegisterHandler() it will be called for all pages and resources.
|
||||||
|
|
||||||
|
wxWebFileHandler is provided to allow the navigation of pages inside a zip
|
||||||
|
archive. It overrides the @c file scheme and provides support for the
|
||||||
|
standard @c file syntax as well as paths to archives of the form
|
||||||
|
@c file:///C:/exmaple/docs.zip;protocol=zip/main.htm
|
||||||
|
|
||||||
|
@beginEventEmissionTable{wxWebViewEvent}
|
||||||
|
@event{EVT_WEB_VIEW_NAVIGATING(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATING event, generated before trying
|
||||||
|
to get a resource. This event may be vetoed to prevent navigating to this
|
||||||
|
resource. Note that if the displayed HTML document has several frames, one
|
||||||
|
such event will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_NAVIGATED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATED event generated after it was
|
||||||
|
confirmed that a resource would be requested. This event may not be vetoed.
|
||||||
|
Note that if the displayed HTML document has several frames, one such event
|
||||||
|
will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_LOADED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_LOADED event generated when the document
|
||||||
|
is fully loaded and displayed. Note that if the displayed HTML document has
|
||||||
|
several frames, one such event will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_ERRROR(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_ERROR event generated when a navigation
|
||||||
|
error occurs.
|
||||||
|
The integer associated with this event will be a wxWebNavigationError item.
|
||||||
|
The string associated with this event may contain a backend-specific more
|
||||||
|
precise error message/code.
|
||||||
|
@event{EVT_WEB_VIEW_NEWWINDOW(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NEWWINDOW event, generated when a new
|
||||||
|
window is created. You must handle this event if you want anything to
|
||||||
|
happen, for example to load the page in a new window or tab.
|
||||||
|
@event{EVT_WEB_VIEW_TITLE_CHANGED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event, generated when
|
||||||
|
the page title changes. Use GetString to get the title.
|
||||||
|
@endEventTable
|
||||||
|
|
||||||
|
@since 2.9.3
|
||||||
|
@library{wxwebview}
|
||||||
|
@category{ctrl,webview}
|
||||||
|
@see wxWebViewHandler, wxWebViewEvent
|
||||||
|
*/
|
||||||
|
class wxWebView : public wxControl
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
/**
|
||||||
|
Creation function for two-step creation.
|
||||||
|
*/
|
||||||
|
virtual bool Create(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Factory function to create a new wxWebView for two-step creation
|
||||||
|
(you need to call wxWebView::Create on the returned object)
|
||||||
|
@param backend which web engine to use as backend for wxWebView
|
||||||
|
@return the created wxWebView, or NULL if the requested backend is
|
||||||
|
not available
|
||||||
|
*/
|
||||||
|
static wxWebView* New(wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Factory function to create a new wxWebView
|
||||||
|
@param parent parent window to create this view in
|
||||||
|
@param id ID of this control
|
||||||
|
@param url URL to load by default in the web view
|
||||||
|
@param pos position to create this control at
|
||||||
|
(you may use wxDefaultPosition if you use sizers)
|
||||||
|
@param size size to create this control with
|
||||||
|
(you may use wxDefaultSize if you use sizers)
|
||||||
|
@param backend which web engine to use as backend for wxWebView
|
||||||
|
@return the created wxWebView, or NULL if the requested backend
|
||||||
|
is not available
|
||||||
|
*/
|
||||||
|
static wxWebView* New(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url = wxWebViewDefaultURLStr,
|
||||||
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
|
const wxSize& size = wxDefaultSize,
|
||||||
|
wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT,
|
||||||
|
long style = 0,
|
||||||
|
const wxString& name = wxWebViewNameStr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the title of the current web page, or its URL/path if title is not
|
||||||
|
available.
|
||||||
|
*/
|
||||||
|
virtual wxString GetCurrentTitle() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the URL of the currently displayed document.
|
||||||
|
*/
|
||||||
|
virtual wxString GetCurrentURL() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the HTML source code of the currently displayed document.
|
||||||
|
@return The HTML source code, or an empty string if no page is currently
|
||||||
|
shown.
|
||||||
|
*/
|
||||||
|
virtual wxString GetPageSource() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the text of the current page.
|
||||||
|
*/
|
||||||
|
virtual wxString GetPageText() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns whether the web control is currently busy (e.g. loading a page).
|
||||||
|
*/
|
||||||
|
virtual bool IsBusy() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns whether the web control is currently editable
|
||||||
|
*/
|
||||||
|
virtual bool IsEditable() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Load a web page from a URL
|
||||||
|
@param url The URL of the page to be loaded.
|
||||||
|
@note Web engines generally report errors asynchronously, so if you wish
|
||||||
|
to know whether loading the URL was successful, register to receive
|
||||||
|
navigation error events.
|
||||||
|
*/
|
||||||
|
virtual void LoadURL(const wxString& url) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Opens a print dialog so that the user may print the currently
|
||||||
|
displayed page.
|
||||||
|
*/
|
||||||
|
virtual void Print() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Registers a custom scheme handler.
|
||||||
|
@param handler A shared pointer to a wxWebHandler.
|
||||||
|
*/
|
||||||
|
virtual void RegisterHandler(wxSharedPtr<wxWebViewHandler> handler) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Reload the currently displayed URL.
|
||||||
|
@param flags A bit array that may optionally contain reload options.
|
||||||
|
*/
|
||||||
|
virtual void Reload(wxWebViewReloadFlags flags = wxWEB_VIEW_RELOAD_DEFAULT) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Runs the given javascript code.
|
||||||
|
*/
|
||||||
|
virtual void RunScript(const wxString& javascript) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set the editable property of the web control. Enabling allows the user
|
||||||
|
to edit the page even if the @c contenteditable attribute is not set.
|
||||||
|
The exact capabilities vary with the backend being used.
|
||||||
|
*/
|
||||||
|
virtual void SetEditable(bool enable = true) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set the displayed page source to the contents of the given string.
|
||||||
|
@param html The string that contains the HTML data to display.
|
||||||
|
@param baseUrl URL assigned to the HTML data, to be used to resolve
|
||||||
|
relative paths, for instance.
|
||||||
|
*/
|
||||||
|
virtual void SetPage(const wxString& html, const wxString& baseUrl) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set the displayed page source to the contents of the given stream.
|
||||||
|
@param html The stream to read HTML data from.
|
||||||
|
@param baseUrl URL assigned to the HTML data, to be used to resolve
|
||||||
|
relative paths, for instance.
|
||||||
|
*/
|
||||||
|
virtual void SetPage(wxInputStream& html, wxString baseUrl);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Stop the current page loading process, if any.
|
||||||
|
May trigger an error event of type @c wxWEB_NAV_ERR_USER_CANCELLED.
|
||||||
|
TODO: make @c wxWEB_NAV_ERR_USER_CANCELLED errors uniform across ports.
|
||||||
|
*/
|
||||||
|
virtual void Stop() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@name Clipboard
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if the current selection can be copied.
|
||||||
|
|
||||||
|
@note This always returns @c true on the OSX WebKit backend.
|
||||||
|
*/
|
||||||
|
virtual bool CanCopy() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if the current selection can be cut.
|
||||||
|
|
||||||
|
@note This always returns @c true on the OSX WebKit backend.
|
||||||
|
*/
|
||||||
|
virtual bool CanCut() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if data can be pasted.
|
||||||
|
|
||||||
|
@note This always returns @c true on the OSX WebKit backend.
|
||||||
|
*/
|
||||||
|
virtual bool CanPaste() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Copies the current selection.
|
||||||
|
*/
|
||||||
|
virtual void Copy() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Cuts the current selection.
|
||||||
|
*/
|
||||||
|
virtual void Cut() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Pastes the current data.
|
||||||
|
*/
|
||||||
|
virtual void Paste() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@name History
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if it is possible to navigate backward in the history of
|
||||||
|
visited pages.
|
||||||
|
*/
|
||||||
|
virtual bool CanGoBack() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if it is possible to navigate forward in the history of
|
||||||
|
visited pages.
|
||||||
|
*/
|
||||||
|
virtual bool CanGoForward() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Clear the history, this will also remove the visible page.
|
||||||
|
*/
|
||||||
|
virtual void ClearHistory() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Enable or disable the history. This will also clear the history.
|
||||||
|
*/
|
||||||
|
virtual void EnableHistory(bool enable = true) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns a list of items in the back history. The first item in the
|
||||||
|
vector is the first page that was loaded by the control.
|
||||||
|
*/
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetBackwardHistory() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns a list of items in the forward history. The first item in the
|
||||||
|
vector is the next item in the history with respect to the curently
|
||||||
|
loaded page.
|
||||||
|
*/
|
||||||
|
virtual wxVector<wxSharedPtr<wxWebViewHistoryItem> > GetForwardHistory() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Navigate back in the history of visited pages.
|
||||||
|
Only valid if CanGoBack() returns true.
|
||||||
|
*/
|
||||||
|
virtual void GoBack() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Navigate forward in the history of visited pages.
|
||||||
|
Only valid if CanGoForward() returns true.
|
||||||
|
*/
|
||||||
|
virtual void GoForward() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Loads a history item.
|
||||||
|
*/
|
||||||
|
virtual void LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@name Selection
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Clears the current selection.
|
||||||
|
*/
|
||||||
|
virtual void ClearSelection() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Deletes the current selection. Note that for @c wxWEB_VIEW_BACKEND_WEBKIT
|
||||||
|
the selection must be editable, either through SetEditable or the
|
||||||
|
correct HTML attribute.
|
||||||
|
*/
|
||||||
|
virtual void DeleteSelection() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns the currently selected source, if any.
|
||||||
|
*/
|
||||||
|
virtual wxString GetSelectedSource() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns the currently selected text, if any.
|
||||||
|
*/
|
||||||
|
virtual wxString GetSelectedText() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if there is a current selection.
|
||||||
|
*/
|
||||||
|
virtual bool HasSelection() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Selects the entire page.
|
||||||
|
*/
|
||||||
|
virtual void SelectAll() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@name Undo / Redo
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if there is an action to redo.
|
||||||
|
*/
|
||||||
|
virtual bool CanRedo() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Returns @true if there is an action to undo.
|
||||||
|
*/
|
||||||
|
virtual bool CanUndo() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Redos the last action.
|
||||||
|
*/
|
||||||
|
virtual void Redo() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Undos the last action.
|
||||||
|
*/
|
||||||
|
virtual void Undo() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@name Zoom
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
Retrieve whether the current HTML engine supports a zoom type.
|
||||||
|
@param type The zoom type to test.
|
||||||
|
@return Whether this type of zoom is supported by this HTML engine
|
||||||
|
(and thus can be set through SetZoomType()).
|
||||||
|
*/
|
||||||
|
virtual bool CanSetZoomType(wxWebViewZoomType type) const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the zoom factor of the page.
|
||||||
|
@return The current level of zoom.
|
||||||
|
*/
|
||||||
|
virtual wxWebViewZoom GetZoom() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get how the zoom factor is currently interpreted.
|
||||||
|
@return How the zoom factor is currently interpreted by the HTML engine.
|
||||||
|
*/
|
||||||
|
virtual wxWebViewZoomType GetZoomType() const = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set the zoom factor of the page.
|
||||||
|
@param zoom How much to zoom (scale) the HTML document.
|
||||||
|
*/
|
||||||
|
virtual void SetZoom(wxWebViewZoom zoom) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Set how to interpret the zoom factor.
|
||||||
|
@param zoomType How the zoom factor should be interpreted by the
|
||||||
|
HTML engine.
|
||||||
|
@note invoke CanSetZoomType() first, some HTML renderers may not
|
||||||
|
support all zoom types.
|
||||||
|
*/
|
||||||
|
virtual void SetZoomType(wxWebViewZoomType zoomType) = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
@class wxWebViewEvent
|
||||||
|
|
||||||
|
A navigation event holds information about events associated with
|
||||||
|
wxWebView objects.
|
||||||
|
|
||||||
|
@beginEventEmissionTable{wxWebViewEvent}
|
||||||
|
@event{EVT_WEB_VIEW_NAVIGATING(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATING event, generated before trying
|
||||||
|
to get a resource. This event may be vetoed to prevent navigating to this
|
||||||
|
resource. Note that if the displayed HTML document has several frames, one
|
||||||
|
such event will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_NAVIGATED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATED event generated after it was
|
||||||
|
confirmed that a resource would be requested. This event may not be vetoed.
|
||||||
|
Note that if the displayed HTML document has several frames, one such event
|
||||||
|
will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_LOADED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_LOADED event generated when the document
|
||||||
|
is fully loaded and displayed. Note that if the displayed HTML document has
|
||||||
|
several frames, one such event will be generated per frame.
|
||||||
|
@event{EVT_WEB_VIEW_ERRROR(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_ERROR event generated when a navigation
|
||||||
|
error occurs.
|
||||||
|
The integer associated with this event will be a wxWebNavigationError item.
|
||||||
|
The string associated with this event may contain a backend-specific more
|
||||||
|
precise error message/code.
|
||||||
|
@event{EVT_WEB_VIEW_NEWWINDOW(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_NEWWINDOW event, generated when a new
|
||||||
|
window is created. You must handle this event if you want anything to
|
||||||
|
happen, for example to load the page in a new window or tab.
|
||||||
|
@event{EVT_WEB_VIEW_TITLE_CHANGED(id, func)}
|
||||||
|
Process a @c wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event, generated when
|
||||||
|
the page title changes. Use GetString to get the title.
|
||||||
|
@endEventTable
|
||||||
|
|
||||||
|
@since 2.9.3
|
||||||
|
@library{wxwebview}
|
||||||
|
@category{events,webview}
|
||||||
|
|
||||||
|
@see wxWebView
|
||||||
|
*/
|
||||||
|
class wxWebViewEvent : public wxNotifyEvent
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxWebViewEvent();
|
||||||
|
wxWebViewEvent(wxEventType type, int id, const wxString href,
|
||||||
|
const wxString target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the name of the target frame which the url of this event
|
||||||
|
has been or will be loaded into. This may return an emptry string
|
||||||
|
if the frame is not avaliable.
|
||||||
|
*/
|
||||||
|
const wxString& GetTarget() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Get the URL being visited
|
||||||
|
*/
|
||||||
|
const wxString& GetURL() const;
|
||||||
|
};
|
32
interface/wx/webviewarchivehandler.h
Normal file
32
interface/wx/webviewarchivehandler.h
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webviewarchivehandler.h
|
||||||
|
// Purpose: interface of wxWebViewArchiveHandler
|
||||||
|
// Author: wxWidgets team
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/**
|
||||||
|
@class wxWebViewArchiveHandler
|
||||||
|
|
||||||
|
A custom handler for the file scheme which also supports loading from
|
||||||
|
archives. The syntax for wxWebViewArchiveHandler differs from virtual file
|
||||||
|
systems in the rest of wxWidgets by using a syntax such as
|
||||||
|
<code> scheme:///C:/exmaple/docs.zip;protocol=zip/main.htm </code>
|
||||||
|
Currently the only supported protocol is @c zip.
|
||||||
|
|
||||||
|
@since 2.9.3
|
||||||
|
@library{wxwebview}
|
||||||
|
@category{webview}
|
||||||
|
|
||||||
|
@see wxWebView, wxWebViewHandler
|
||||||
|
*/
|
||||||
|
class wxWebViewArchiveHandler : public wxWebViewHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
Constructor.
|
||||||
|
*/
|
||||||
|
wxWebViewArchiveHandler(const wxString& scheme);
|
||||||
|
virtual wxFSFile* GetFile(const wxString &uri);
|
||||||
|
};
|
@@ -87,6 +87,7 @@
|
|||||||
<subproject id="uiaction" template="sub"/>
|
<subproject id="uiaction" template="sub"/>
|
||||||
<subproject id="validate" template="sub"/>
|
<subproject id="validate" template="sub"/>
|
||||||
<subproject id="vscroll" template="sub"/>
|
<subproject id="vscroll" template="sub"/>
|
||||||
|
<subproject id="webview" template="sub"/>
|
||||||
<subproject id="widgets" template="sub"/>
|
<subproject id="widgets" template="sub"/>
|
||||||
<subproject id="wizard" template="sub"/>
|
<subproject id="wizard" template="sub"/>
|
||||||
<subproject id="wrapsizer" template="sub"/>
|
<subproject id="wrapsizer" template="sub"/>
|
||||||
|
198
samples/webview/Makefile.in
Normal file
198
samples/webview/Makefile.in
Normal file
@@ -0,0 +1,198 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
@MAKE_SET@
|
||||||
|
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
INSTALL = @INSTALL@
|
||||||
|
EXEEXT = @EXEEXT@
|
||||||
|
WINDRES = @WINDRES@
|
||||||
|
SETFILE = @SETFILE@
|
||||||
|
NM = @NM@
|
||||||
|
BK_DEPS = @BK_DEPS@
|
||||||
|
srcdir = @srcdir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
LIBS = @LIBS@
|
||||||
|
LDFLAGS_GUI = @LDFLAGS_GUI@
|
||||||
|
CXX = @CXX@
|
||||||
|
CXXFLAGS = @CXXFLAGS@
|
||||||
|
CPPFLAGS = @CPPFLAGS@
|
||||||
|
LDFLAGS = @LDFLAGS@
|
||||||
|
WX_LIB_FLAVOUR = @WX_LIB_FLAVOUR@
|
||||||
|
TOOLKIT = @TOOLKIT@
|
||||||
|
TOOLKIT_LOWERCASE = @TOOLKIT_LOWERCASE@
|
||||||
|
TOOLKIT_VERSION = @TOOLKIT_VERSION@
|
||||||
|
TOOLCHAIN_FULLNAME = @TOOLCHAIN_FULLNAME@
|
||||||
|
EXTRALIBS = @EXTRALIBS@
|
||||||
|
EXTRALIBS_GUI = @EXTRALIBS_GUI@
|
||||||
|
EXTRALIBS_SDL = @EXTRALIBS_SDL@
|
||||||
|
CXXWARNINGS = @CXXWARNINGS@
|
||||||
|
HOST_SUFFIX = @HOST_SUFFIX@
|
||||||
|
SAMPLES_RPATH_FLAG = @SAMPLES_RPATH_FLAG@
|
||||||
|
wx_top_builddir = @wx_top_builddir@
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
DESTDIR =
|
||||||
|
WX_RELEASE = 2.9
|
||||||
|
WX_VERSION = $(WX_RELEASE).3
|
||||||
|
LIBDIRNAME = $(wx_top_builddir)/lib
|
||||||
|
WEBVIEW_CXXFLAGS = -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
|
||||||
|
$(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) \
|
||||||
|
-I$(srcdir) $(__DLLFLAG_p) -I$(srcdir)/../../samples $(CXXWARNINGS) \
|
||||||
|
$(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = \
|
||||||
|
$(__webview_os2_lib_res) \
|
||||||
|
webview_webview.o \
|
||||||
|
$(__webview___win32rc)
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
@COND_DEPS_TRACKING_0@CXXC = $(CXX)
|
||||||
|
@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
|
||||||
|
@COND_USE_PLUGINS_0@PLUGIN_ADV_EXTRALIBS = $(EXTRALIBS_SDL)
|
||||||
|
@COND_USE_GUI_0@PORTNAME = base
|
||||||
|
@COND_USE_GUI_1@PORTNAME = $(TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
|
||||||
|
@COND_TOOLKIT_MAC@WXBASEPORT = _carbon
|
||||||
|
@COND_BUILD_debug@WXDEBUGFLAG = d
|
||||||
|
@COND_UNICODE_1@WXUNICODEFLAG = u
|
||||||
|
@COND_WXUNIV_1@WXUNIVNAME = univ
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_BASE = $(EXTRALIBS)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_BASE = $(EXTRALIBS) $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_0@EXTRALIBS_FOR_GUI = $(EXTRALIBS_GUI)
|
||||||
|
@COND_MONOLITHIC_1@EXTRALIBS_FOR_GUI =
|
||||||
|
@COND_PLATFORM_MAC_0@__webview___mac_setfilecmd = @true
|
||||||
|
@COND_PLATFORM_MAC_1@__webview___mac_setfilecmd = \
|
||||||
|
@COND_PLATFORM_MAC_1@ $(SETFILE) -t APPL webview$(EXEEXT)
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
|
||||||
|
@COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
|
||||||
|
@COND_DEBUG_FLAG_0@__DEBUG_DEFINE_p_2 = --define wxDEBUG_LEVEL=0
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
@COND_USE_EXCEPTIONS_0@__EXCEPTIONS_DEFINE_p_2 = --define wxNO_EXCEPTIONS
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
@COND_USE_RTTI_0@__RTTI_DEFINE_p_2 = --define wxNO_RTTI
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
@COND_USE_THREADS_0@__THREAD_DEFINE_p_2 = --define wxNO_THREADS
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
@COND_SHARED_1@__DLLFLAG_p_2 = --define WXUSINGDLL
|
||||||
|
COND_PLATFORM_OS2_1___webview___os2_emxbindcmd = $(NM) webview$(EXEEXT) | if \
|
||||||
|
grep -q pmwin.763 ; then emxbind -ep webview$(EXEEXT) ; fi
|
||||||
|
@COND_PLATFORM_OS2_1@__webview___os2_emxbindcmd = $(COND_PLATFORM_OS2_1___webview___os2_emxbindcmd)
|
||||||
|
@COND_TOOLKIT_MSW@__RCDEFDIR_p_1 = --include-dir \
|
||||||
|
@COND_TOOLKIT_MSW@ $(LIBDIRNAME)/wx/include/$(TOOLCHAIN_FULLNAME)
|
||||||
|
@COND_PLATFORM_OS2_1@__webview_os2_lib_res = \
|
||||||
|
@COND_PLATFORM_OS2_1@ $(top_srcdir)/include/wx/os2/wx.res
|
||||||
|
@COND_PLATFORM_MACOSX_1@__webview_app_Contents_PkgInfo___depname \
|
||||||
|
@COND_PLATFORM_MACOSX_1@ = webview.app/Contents/PkgInfo
|
||||||
|
@COND_PLATFORM_MACOSX_1@__webview_bundle___depname = webview_bundle
|
||||||
|
@COND_TOOLKIT_MAC@____webview_BUNDLE_TGT_REF_DEP = \
|
||||||
|
@COND_TOOLKIT_MAC@ $(__webview_app_Contents_PkgInfo___depname)
|
||||||
|
@COND_TOOLKIT_OSX_CARBON@____webview_BUNDLE_TGT_REF_DEP \
|
||||||
|
@COND_TOOLKIT_OSX_CARBON@ = $(__webview_app_Contents_PkgInfo___depname)
|
||||||
|
@COND_TOOLKIT_OSX_COCOA@____webview_BUNDLE_TGT_REF_DEP \
|
||||||
|
@COND_TOOLKIT_OSX_COCOA@ = $(__webview_app_Contents_PkgInfo___depname)
|
||||||
|
@COND_TOOLKIT_OSX_IPHONE@____webview_BUNDLE_TGT_REF_DEP \
|
||||||
|
@COND_TOOLKIT_OSX_IPHONE@ = $(__webview_app_Contents_PkgInfo___depname)
|
||||||
|
@COND_TOOLKIT_COCOA@____webview_BUNDLE_TGT_REF_DEP = \
|
||||||
|
@COND_TOOLKIT_COCOA@ $(__webview_app_Contents_PkgInfo___depname)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_WEBVIEW_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_webview-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_WEBVIEW_p = $(COND_MONOLITHIC_0___WXLIB_WEBVIEW_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_STC_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_STC_p = $(COND_MONOLITHIC_0___WXLIB_STC_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_ADV_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_ADV_p = $(COND_MONOLITHIC_0___WXLIB_ADV_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_CORE_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_CORE_p = $(COND_MONOLITHIC_0___WXLIB_CORE_p)
|
||||||
|
COND_MONOLITHIC_0___WXLIB_BASE_p = \
|
||||||
|
-lwx_base$(WXBASEPORT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_0@__WXLIB_BASE_p = $(COND_MONOLITHIC_0___WXLIB_BASE_p)
|
||||||
|
@COND_PLATFORM_WIN32_1@__webview___win32rc = webview_sample_rc.o
|
||||||
|
COND_MONOLITHIC_1___WXLIB_MONO_p = \
|
||||||
|
-lwx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_MONOLITHIC_1@__WXLIB_MONO_p = $(COND_MONOLITHIC_1___WXLIB_MONO_p)
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@__LIB_TIFF_p \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ = \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBTIFF_builtin@ -lwxtiff$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@__LIB_JPEG_p \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ = \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBJPEG_builtin@ -lwxjpeg$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@__LIB_PNG_p \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ = \
|
||||||
|
@COND_USE_GUI_1_wxUSE_LIBPNG_builtin@ -lwxpng$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_wxUSE_ZLIB_builtin@__LIB_ZLIB_p = \
|
||||||
|
@COND_wxUSE_ZLIB_builtin@ -lwxzlib$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
COND_wxUSE_REGEX_builtin___LIB_REGEX_p = \
|
||||||
|
-lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
@COND_wxUSE_REGEX_builtin@__LIB_REGEX_p = $(COND_wxUSE_REGEX_builtin___LIB_REGEX_p)
|
||||||
|
@COND_wxUSE_EXPAT_builtin@__LIB_EXPAT_p = \
|
||||||
|
@COND_wxUSE_EXPAT_builtin@ -lwxexpat$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: webview$(EXEEXT) $(__webview_bundle___depname)
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
install-strip: install
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf ./.deps ./.pch
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f webview$(EXEEXT)
|
||||||
|
rm -rf webview.app
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
|
||||||
|
|
||||||
|
webview$(EXEEXT): $(WEBVIEW_OBJECTS) $(__webview___win32rc)
|
||||||
|
$(CXX) -o $@ $(WEBVIEW_OBJECTS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(LDFLAGS) $(__WXLIB_WEBVIEW_p) $(__WXLIB_STC_p) $(__WXLIB_ADV_p) $(PLUGIN_ADV_EXTRALIBS) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) -lwxscintilla$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)-$(WX_RELEASE)$(HOST_SUFFIX) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(EXTRALIBS_FOR_GUI) $(__LIB_ZLIB_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS_FOR_BASE) $(LIBS)
|
||||||
|
|
||||||
|
$(__webview___mac_setfilecmd)
|
||||||
|
$(__webview___os2_emxbindcmd)
|
||||||
|
|
||||||
|
@COND_PLATFORM_MACOSX_1@webview.app/Contents/PkgInfo: webview$(EXEEXT) $(top_srcdir)/src/osx/carbon/Info.plist.in $(top_srcdir)/src/osx/carbon/wxmac.icns
|
||||||
|
@COND_PLATFORM_MACOSX_1@ mkdir -p webview.app/Contents
|
||||||
|
@COND_PLATFORM_MACOSX_1@ mkdir -p webview.app/Contents/MacOS
|
||||||
|
@COND_PLATFORM_MACOSX_1@ mkdir -p webview.app/Contents/Resources
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@ sed -e "s/IDENTIFIER/`echo $(srcdir) | sed -e 's,\.\./,,g' | sed -e 's,/,.,g'`/" \
|
||||||
|
@COND_PLATFORM_MACOSX_1@ -e "s/EXECUTABLE/webview/" \
|
||||||
|
@COND_PLATFORM_MACOSX_1@ -e "s/VERSION/$(WX_VERSION)/" \
|
||||||
|
@COND_PLATFORM_MACOSX_1@ $(top_srcdir)/src/osx/carbon/Info.plist.in >webview.app/Contents/Info.plist
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@ echo -n "APPL????" >webview.app/Contents/PkgInfo
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@ ln -f webview$(EXEEXT) webview.app/Contents/MacOS/webview
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@
|
||||||
|
@COND_PLATFORM_MACOSX_1@ cp -f $(top_srcdir)/src/osx/carbon/wxmac.icns webview.app/Contents/Resources/wxmac.icns
|
||||||
|
|
||||||
|
@COND_PLATFORM_MACOSX_1@webview_bundle: $(____webview_BUNDLE_TGT_REF_DEP)
|
||||||
|
|
||||||
|
webview_webview.o: $(srcdir)/webview.cpp
|
||||||
|
$(CXXC) -c -o $@ $(WEBVIEW_CXXFLAGS) $(srcdir)/webview.cpp
|
||||||
|
|
||||||
|
webview_sample_rc.o: $(srcdir)/../sample.rc
|
||||||
|
$(WINDRES) -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_2) $(__DEBUG_DEFINE_p_2) $(__EXCEPTIONS_DEFINE_p_2) $(__RTTI_DEFINE_p_2) $(__THREAD_DEFINE_p_2) --include-dir $(srcdir) $(__DLLFLAG_p_2) --include-dir $(srcdir)/../../samples $(__RCDEFDIR_p_1) --include-dir $(top_srcdir)/include
|
||||||
|
|
||||||
|
|
||||||
|
# Include dependency info, if present:
|
||||||
|
@IF_GNU_MAKE@-include ./.deps/*.d
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean distclean webview_bundle
|
254
samples/webview/makefile.bcc
Normal file
254
samples/webview/makefile.bcc
Normal file
@@ -0,0 +1,254 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
.autodepend
|
||||||
|
|
||||||
|
!ifndef BCCDIR
|
||||||
|
!ifndef MAKEDIR
|
||||||
|
!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
|
||||||
|
!endif
|
||||||
|
BCCDIR = $(MAKEDIR)\..
|
||||||
|
!endif
|
||||||
|
|
||||||
|
!include ../../build/msw/config.bcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 29
|
||||||
|
COMPILER_PREFIX = bcc
|
||||||
|
OBJS = \
|
||||||
|
$(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
WEBVIEW_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
|
||||||
|
$(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
|
||||||
|
$(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
|
||||||
|
$(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
|
||||||
|
$(____CAIRO_INCLUDEDIR_FILENAMES_p) -I. $(__DLLFLAG_p) -I.\..\..\samples \
|
||||||
|
-DNOPCH $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = \
|
||||||
|
$(OBJS)\webview_webview.obj
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_2 = -Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_5 = mt
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_6 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_6 = -tWM
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_7 = -tWR
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_7 =
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_8 = i
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_8 =
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "0"
|
||||||
|
__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "0"
|
||||||
|
__DEBUG_DEFINE_p_1 = -dwxDEBUG_LEVEL=0
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__NDEBUG_DEFINE_p = -DNDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__NDEBUG_DEFINE_p_1 = -dNDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "0"
|
||||||
|
__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "0"
|
||||||
|
__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=0
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES_1_p = -i$(CAIRO_ROOT)\include\cairo
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_WEBVIEW_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_webview.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_STC_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
__CAIRO_LIB_p = cairo.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO = -v-
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO = -v
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.csm del $(OBJS)\*.csm
|
||||||
|
-if exist $(OBJS)\webview.exe del $(OBJS)\webview.exe
|
||||||
|
-if exist $(OBJS)\webview.tds del $(OBJS)\webview.tds
|
||||||
|
-if exist $(OBJS)\webview.ilc del $(OBJS)\webview.ilc
|
||||||
|
-if exist $(OBJS)\webview.ild del $(OBJS)\webview.ild
|
||||||
|
-if exist $(OBJS)\webview.ilf del $(OBJS)\webview.ilf
|
||||||
|
-if exist $(OBJS)\webview.ils del $(OBJS)\webview.ils
|
||||||
|
|
||||||
|
$(OBJS)\webview.exe: $(WEBVIEW_OBJECTS) $(OBJS)\webview_sample.res
|
||||||
|
ilink32 -Tpe -q -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @&&|
|
||||||
|
c0w32.obj $(WEBVIEW_OBJECTS),$@,, $(__WXLIB_WEBVIEW_p) $(__WXLIB_STC_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxscintilla$(WXDEBUGFLAG).lib $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\webview_sample.res
|
||||||
|
|
|
||||||
|
|
||||||
|
$(OBJS)\webview_webview.obj: .\webview.cpp
|
||||||
|
$(CXX) -q -c -P -o$@ $(WEBVIEW_CXXFLAGS) .\webview.cpp
|
||||||
|
|
||||||
|
$(OBJS)\webview_sample.res: .\..\sample.rc
|
||||||
|
brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH .\..\sample.rc
|
||||||
|
|
248
samples/webview/makefile.gcc
Normal file
248
samples/webview/makefile.gcc
Normal file
@@ -0,0 +1,248 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
include ../../build/msw/config.gcc
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF$@.d -MD -MP
|
||||||
|
WX_RELEASE_NODOT = 29
|
||||||
|
COMPILER_PREFIX = gcc
|
||||||
|
OBJS = \
|
||||||
|
$(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
WEBVIEW_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
|
||||||
|
$(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
|
||||||
|
$(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
|
||||||
|
$(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
|
||||||
|
$(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
|
||||||
|
-I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
|
||||||
|
-Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = \
|
||||||
|
$(OBJS)\webview_webview.o \
|
||||||
|
$(OBJS)\webview_sample_rc.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
ifeq ($(GCC_VERSION),2.95)
|
||||||
|
GCCFLAGS = -fvtable-thunks
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),0)
|
||||||
|
PORTNAME = base
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
PORTNAME = msw
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),0)
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
__OPTIMIZEFLAG_2 = -O0
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
__OPTIMIZEFLAG_2 = -O2
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTIFLAG_5 = -fno-rtti
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),1)
|
||||||
|
__RTTIFLAG_5 =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONSFLAG_6 = -fno-exceptions
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),1)
|
||||||
|
__EXCEPTIONSFLAG_6 =
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(WXUNIV),1)
|
||||||
|
__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),0)
|
||||||
|
__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_FLAG),0)
|
||||||
|
__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
__NDEBUG_DEFINE_p = -DNDEBUG
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
__NDEBUG_DEFINE_p_1 = --define NDEBUG
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_EXCEPTIONS),0)
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p = -DwxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_RTTI),0)
|
||||||
|
__RTTI_DEFINE_p_1 = --define wxNO_RTTI
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p = -DwxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREAD_DEFINE_p_1 = --define wxNO_THREADS
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),0)
|
||||||
|
__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p = -D_UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),0)
|
||||||
|
__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
|
||||||
|
endif
|
||||||
|
ifeq ($(UNICODE),1)
|
||||||
|
__UNICODE_DEFINE_p_1 = --define _UNICODE
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_CAIRO),1)
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_CAIRO),1)
|
||||||
|
__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p = -DWXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(SHARED),1)
|
||||||
|
__DLLFLAG_p_1 = --define WXUSINGDLL
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_WEBVIEW_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_webview
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_STC_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),0)
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
-lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(MONOLITHIC),1)
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
-lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_GUI),1)
|
||||||
|
__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
|
||||||
|
endif
|
||||||
|
ifeq ($(MSLU),1)
|
||||||
|
__UNICOWS_LIB_p = -lunicows
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_CAIRO),1)
|
||||||
|
__CAIRO_LIB_p = -lcairo
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_CAIRO),1)
|
||||||
|
____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),debug)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(BUILD),release)
|
||||||
|
ifeq ($(DEBUG_INFO),default)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),0)
|
||||||
|
__DEBUGINFO =
|
||||||
|
endif
|
||||||
|
ifeq ($(DEBUG_INFO),1)
|
||||||
|
__DEBUGINFO = -g
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),0)
|
||||||
|
__THREADSFLAG =
|
||||||
|
endif
|
||||||
|
ifeq ($(USE_THREADS),1)
|
||||||
|
__THREADSFLAG = -mthreads
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.o del $(OBJS)\*.o
|
||||||
|
-if exist $(OBJS)\*.d del $(OBJS)\*.d
|
||||||
|
-if exist $(OBJS)\webview.exe del $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
$(OBJS)\webview.exe: $(WEBVIEW_OBJECTS) $(OBJS)\webview_sample_rc.o
|
||||||
|
$(CXX) -o $@ $(WEBVIEW_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_WEBVIEW_p) $(__WXLIB_STC_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) -lwxscintilla$(WXDEBUGFLAG) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
|
||||||
|
|
||||||
|
$(OBJS)\webview_webview.o: ./webview.cpp
|
||||||
|
$(CXX) -c -o $@ $(WEBVIEW_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
$(OBJS)\webview_sample_rc.o: ./../sample.rc
|
||||||
|
windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
||||||
|
SHELL := $(COMSPEC)
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include $(OBJS)/*.d
|
100
samples/webview/makefile.unx
Normal file
100
samples/webview/makefile.unx
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# These are configurable options:
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# C++ compiler
|
||||||
|
CXX = `$(WX_CONFIG) --cxx`
|
||||||
|
|
||||||
|
# Standard flags for C++
|
||||||
|
CXXFLAGS ?=
|
||||||
|
|
||||||
|
# Standard preprocessor flags (common for CC and CXX)
|
||||||
|
CPPFLAGS ?=
|
||||||
|
|
||||||
|
# Standard linker flags
|
||||||
|
LDFLAGS ?=
|
||||||
|
|
||||||
|
# Location and arguments of wx-config script
|
||||||
|
WX_CONFIG ?= wx-config
|
||||||
|
|
||||||
|
# Port of the wx library to build against [gtk1,gtk2,msw,x11,motif,mgl,osx_cocoa,osx_carbon,dfb]
|
||||||
|
WX_PORT ?= $(shell $(WX_CONFIG) --query-toolkit)
|
||||||
|
|
||||||
|
# Use DLL build of wx library to use? [0,1]
|
||||||
|
WX_SHARED ?= $(shell if test -z `$(WX_CONFIG) --query-linkage`; then echo 1; else echo 0; fi)
|
||||||
|
|
||||||
|
# Compile Unicode build of wxWidgets? [0,1]
|
||||||
|
WX_UNICODE ?= $(shell $(WX_CONFIG) --query-chartype | sed 's/unicode/1/;s/ansi/0/')
|
||||||
|
|
||||||
|
# Version of the wx library to build against.
|
||||||
|
WX_VERSION ?= $(shell $(WX_CONFIG) --query-version | sed -e 's/\([0-9]*\)\.\([0-9]*\)/\1\2/')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
CPPDEPS = -MT$@ -MF`echo $@ | sed -e 's,\.o$$,.d,'` -MD -MP
|
||||||
|
WX_VERSION_MAJOR = $(shell echo $(WX_VERSION) | cut -c1,1)
|
||||||
|
WX_VERSION_MINOR = $(shell echo $(WX_VERSION) | cut -c2,2)
|
||||||
|
WX_CONFIG_FLAGS = $(WX_CONFIG_UNICODE_FLAG) $(WX_CONFIG_SHARED_FLAG) \
|
||||||
|
--toolkit=$(WX_PORT) --version=$(WX_VERSION_MAJOR).$(WX_VERSION_MINOR)
|
||||||
|
WEBVIEW_CXXFLAGS = -I. `$(WX_CONFIG) --cxxflags $(WX_CONFIG_FLAGS)` $(CPPFLAGS) \
|
||||||
|
$(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = \
|
||||||
|
webview_webview.o
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
ifeq ($(WX_UNICODE),0)
|
||||||
|
WX_CONFIG_UNICODE_FLAG = --unicode=no
|
||||||
|
endif
|
||||||
|
ifeq ($(WX_UNICODE),1)
|
||||||
|
WX_CONFIG_UNICODE_FLAG = --unicode=yes
|
||||||
|
endif
|
||||||
|
ifeq ($(WX_SHARED),0)
|
||||||
|
WX_CONFIG_SHARED_FLAG = --static=yes
|
||||||
|
endif
|
||||||
|
ifeq ($(WX_SHARED),1)
|
||||||
|
WX_CONFIG_SHARED_FLAG = --static=no
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: test_for_selected_wxbuild webview
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f ./*.o
|
||||||
|
rm -f ./*.d
|
||||||
|
rm -f webview
|
||||||
|
|
||||||
|
test_for_selected_wxbuild:
|
||||||
|
@$(WX_CONFIG) $(WX_CONFIG_FLAGS)
|
||||||
|
|
||||||
|
webview: $(WEBVIEW_OBJECTS)
|
||||||
|
$(CXX) -o $@ $(WEBVIEW_OBJECTS) $(LDFLAGS) `$(WX_CONFIG) $(WX_CONFIG_FLAGS) --libs webview,stc,adv,core,base`
|
||||||
|
|
||||||
|
webview_webview.o: ./webview.cpp
|
||||||
|
$(CXX) -c -o $@ $(WEBVIEW_CXXFLAGS) $(CPPDEPS) $<
|
||||||
|
|
||||||
|
.PHONY: all install uninstall clean
|
||||||
|
|
||||||
|
|
||||||
|
# Dependencies tracking:
|
||||||
|
-include ./*.d
|
364
samples/webview/makefile.vc
Normal file
364
samples/webview/makefile.vc
Normal file
@@ -0,0 +1,364 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include <../../build/msw/config.vc>
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 29
|
||||||
|
COMPILER_PREFIX = vc
|
||||||
|
OBJS = \
|
||||||
|
$(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)$(DIR_SUFFIX_CPU)
|
||||||
|
LIBDIRNAME = \
|
||||||
|
.\..\..\lib\$(COMPILER_PREFIX)$(DIR_SUFFIX_CPU)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = \
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
WEBVIEW_CXXFLAGS = /M$(__RUNTIME_LIBS_10)$(__DEBUGRUNTIME_4) /DWIN32 \
|
||||||
|
$(__DEBUGINFO_0) /Fd$(OBJS)\webview.pdb $(____DEBUGRUNTIME_3_p) \
|
||||||
|
$(__OPTIMIZEFLAG_6) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
|
||||||
|
$(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
|
||||||
|
$(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
|
||||||
|
$(__MSLU_DEFINE_p) /I$(SETUPHDIR) /I.\..\..\include \
|
||||||
|
$(____CAIRO_INCLUDEDIR_FILENAMES_p) /W4 /I. $(__DLLFLAG_p) /D_WINDOWS \
|
||||||
|
/I.\..\..\samples /DNOPCH $(__RTTIFLAG_11) $(__EXCEPTIONSFLAG_12) \
|
||||||
|
$(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = \
|
||||||
|
$(OBJS)\webview_webview.obj
|
||||||
|
WEBVIEW_RESOURCES = \
|
||||||
|
$(OBJS)\webview_sample.res
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
!if "$(USE_GUI)" == "0"
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "AMD64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "IA64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
DIR_SUFFIX_CPU = _amd64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
DIR_SUFFIX_CPU = _ia64
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "0"
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "AMD64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:X64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "IA64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "amd64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:X64
|
||||||
|
!endif
|
||||||
|
!if "$(TARGET_CPU)" == "ia64"
|
||||||
|
LINK_TARGET_CPU = /MACHINE:IA64
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_0 = /Zi
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_1 = /DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
|
||||||
|
__DEBUGINFO_2 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "0"
|
||||||
|
__DEBUGINFO_2 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_INFO)" == "1"
|
||||||
|
__DEBUGINFO_2 = $(__DEBUGRUNTIME_5)
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_3_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_3_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_3_p =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_3_p = /D_DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_3_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
____DEBUGRUNTIME_3_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
____DEBUGRUNTIME_3_p_1 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
____DEBUGRUNTIME_3_p_1 = /d _DEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_4 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_4 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__DEBUGRUNTIME_4 =
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
__DEBUGRUNTIME_4 = d
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_5 =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__DEBUGRUNTIME_5 = /opt:ref /opt:icf
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__DEBUGRUNTIME_5 = /opt:ref /opt:icf
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "1"
|
||||||
|
__DEBUGRUNTIME_5 =
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug"
|
||||||
|
__OPTIMIZEFLAG_6 = /Od
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release"
|
||||||
|
__OPTIMIZEFLAG_6 = /O2
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREADSFLAG_9 = L
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "1"
|
||||||
|
__THREADSFLAG_9 = T
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "dynamic"
|
||||||
|
__RUNTIME_LIBS_10 = D
|
||||||
|
!endif
|
||||||
|
!if "$(RUNTIME_LIBS)" == "static"
|
||||||
|
__RUNTIME_LIBS_10 = $(__THREADSFLAG_9)
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTIFLAG_11 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "1"
|
||||||
|
__RTTIFLAG_11 = /GR
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONSFLAG_12 =
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "1"
|
||||||
|
__EXCEPTIONSFLAG_12 = /EHsc
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
|
||||||
|
__NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(WXUNIV)" == "1"
|
||||||
|
__WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "0"
|
||||||
|
__DEBUG_DEFINE_p = /DwxDEBUG_LEVEL=0
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_FLAG)" == "0"
|
||||||
|
__DEBUG_DEFINE_p_1 = /d wxDEBUG_LEVEL=0
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__NDEBUG_DEFINE_p = /DNDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NDEBUG_DEFINE_p = /DNDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(BUILD)" == "release" && "$(DEBUG_RUNTIME_LIBS)" == "default"
|
||||||
|
__NDEBUG_DEFINE_p_1 = /d NDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(DEBUG_RUNTIME_LIBS)" == "0"
|
||||||
|
__NDEBUG_DEFINE_p_1 = /d NDEBUG
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p = /DwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_EXCEPTIONS)" == "0"
|
||||||
|
__EXCEPTIONS_DEFINE_p_1 = /d wxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p = /DwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_RTTI)" == "0"
|
||||||
|
__RTTI_DEFINE_p_1 = /d wxNO_RTTI
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p = /DwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(USE_THREADS)" == "0"
|
||||||
|
__THREAD_DEFINE_p_1 = /d wxNO_THREADS
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "0"
|
||||||
|
__UNICODE_DEFINE_p = /DwxUSE_UNICODE=0
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p = /D_UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "0"
|
||||||
|
__UNICODE_DEFINE_p_1 = /d wxUSE_UNICODE=0
|
||||||
|
!endif
|
||||||
|
!if "$(UNICODE)" == "1"
|
||||||
|
__UNICODE_DEFINE_p_1 = /d _UNICODE
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p = /DwxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__MSLU_DEFINE_p_1 = /d wxUSE_UNICODE_MSLU=1
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES_p = /I$(CAIRO_ROOT)\include\cairo
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES_1_p = /i $(CAIRO_ROOT)\include\cairo
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p = /DWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(SHARED)" == "1"
|
||||||
|
__DLLFLAG_p_1 = /d WXUSINGDLL
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_WEBVIEW_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_webview.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_STC_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_ADV_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_CORE_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "0"
|
||||||
|
__WXLIB_BASE_p = \
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MONOLITHIC)" == "1"
|
||||||
|
__WXLIB_MONO_p = \
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_GUI)" == "1"
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
!if "$(MSLU)" == "1"
|
||||||
|
__UNICOWS_LIB_p = unicows.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
__CAIRO_LIB_p = cairo.lib
|
||||||
|
!endif
|
||||||
|
!if "$(USE_CAIRO)" == "1"
|
||||||
|
____CAIRO_LIBDIR_FILENAMES_p = /LIBPATH:$(CAIRO_ROOT)\lib
|
||||||
|
!endif
|
||||||
|
|
||||||
|
|
||||||
|
all: $(OBJS)
|
||||||
|
$(OBJS):
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all: $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\webview.exe del $(OBJS)\webview.exe
|
||||||
|
-if exist $(OBJS)\webview.ilk del $(OBJS)\webview.ilk
|
||||||
|
-if exist $(OBJS)\webview.pdb del $(OBJS)\webview.pdb
|
||||||
|
|
||||||
|
$(OBJS)\webview.exe: $(WEBVIEW_OBJECTS) $(OBJS)\webview_sample.res
|
||||||
|
link /NOLOGO /OUT:$@ $(__DEBUGINFO_1) /pdb:"$(OBJS)\webview.pdb" $(__DEBUGINFO_2) $(LINK_TARGET_CPU) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) @<<
|
||||||
|
$(WEBVIEW_OBJECTS) $(WEBVIEW_RESOURCES) $(__WXLIB_WEBVIEW_p) $(__WXLIB_STC_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxscintilla$(WXDEBUGFLAG).lib $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib
|
||||||
|
<<
|
||||||
|
|
||||||
|
$(OBJS)\webview_webview.obj: .\webview.cpp
|
||||||
|
$(CXX) /c /nologo /TP /Fo$@ $(WEBVIEW_CXXFLAGS) .\webview.cpp
|
||||||
|
|
||||||
|
$(OBJS)\webview_sample.res: .\..\sample.rc
|
||||||
|
rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_3_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) /i $(SETUPHDIR) /i .\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES_1_p) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples /d NOPCH .\..\sample.rc
|
||||||
|
|
283
samples/webview/makefile.wat
Normal file
283
samples/webview/makefile.wat
Normal file
@@ -0,0 +1,283 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# This makefile was generated by
|
||||||
|
# Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
# Do not modify, all changes will be overwritten!
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
!include ../../build/msw/config.wat
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
# Do not modify the rest of this file!
|
||||||
|
# -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Speed up compilation a bit:
|
||||||
|
!ifdef __LOADDLL__
|
||||||
|
! loaddll wcc wccd
|
||||||
|
! loaddll wccaxp wccdaxp
|
||||||
|
! loaddll wcc386 wccd386
|
||||||
|
! loaddll wpp wppdi86
|
||||||
|
! loaddll wppaxp wppdaxp
|
||||||
|
! loaddll wpp386 wppd386
|
||||||
|
! if $(__VERSION__) >= 1280
|
||||||
|
! loaddll wlink wlinkd
|
||||||
|
! else
|
||||||
|
! loaddll wlink wlink
|
||||||
|
! endif
|
||||||
|
! loaddll wlib wlibd
|
||||||
|
!endif
|
||||||
|
|
||||||
|
# We need these variables in some bakefile-made rules:
|
||||||
|
WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
|
||||||
|
|
||||||
|
### Conditionally set variables: ###
|
||||||
|
|
||||||
|
PORTNAME =
|
||||||
|
!ifeq USE_GUI 0
|
||||||
|
PORTNAME = base
|
||||||
|
!endif
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
PORTNAME = msw
|
||||||
|
!endif
|
||||||
|
WXDEBUGFLAG =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
WXDEBUGFLAG = d
|
||||||
|
!endif
|
||||||
|
WXUNICODEFLAG =
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
WXUNICODEFLAG = u
|
||||||
|
!endif
|
||||||
|
WXUNIVNAME =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
WXUNIVNAME = univ
|
||||||
|
!endif
|
||||||
|
WXDLLFLAG =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
WXDLLFLAG = dll
|
||||||
|
!endif
|
||||||
|
LIBTYPE_SUFFIX =
|
||||||
|
!ifeq SHARED 0
|
||||||
|
LIBTYPE_SUFFIX = lib
|
||||||
|
!endif
|
||||||
|
!ifeq SHARED 1
|
||||||
|
LIBTYPE_SUFFIX = dll
|
||||||
|
!endif
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
EXTRALIBS_FOR_BASE =
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_0 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_0 = -d0
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_0 = -d2
|
||||||
|
!endif
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
!ifeq DEBUG_INFO default
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 0
|
||||||
|
__DEBUGINFO_1 =
|
||||||
|
!endif
|
||||||
|
!ifeq DEBUG_INFO 1
|
||||||
|
__DEBUGINFO_1 = debug all
|
||||||
|
!endif
|
||||||
|
__OPTIMIZEFLAG_2 =
|
||||||
|
!ifeq BUILD debug
|
||||||
|
__OPTIMIZEFLAG_2 = -od
|
||||||
|
!endif
|
||||||
|
!ifeq BUILD release
|
||||||
|
__OPTIMIZEFLAG_2 = -ot -ox
|
||||||
|
!endif
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREADSFLAG_5 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_THREADS 1
|
||||||
|
__THREADSFLAG_5 = -bm
|
||||||
|
!endif
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!ifeq RUNTIME_LIBS dynamic
|
||||||
|
__RUNTIME_LIBS_6 = -br
|
||||||
|
!endif
|
||||||
|
!ifeq RUNTIME_LIBS static
|
||||||
|
__RUNTIME_LIBS_6 =
|
||||||
|
!endif
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTIFLAG_7 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_RTTI 1
|
||||||
|
__RTTIFLAG_7 = -xr
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONSFLAG_8 =
|
||||||
|
!endif
|
||||||
|
!ifeq USE_EXCEPTIONS 1
|
||||||
|
__EXCEPTIONSFLAG_8 = -xs
|
||||||
|
!endif
|
||||||
|
__WXLIB_WEBVIEW_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_WEBVIEW_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_webview.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_STC_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_STC_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_stc.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_ADV_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_ADV_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_CORE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_CORE_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_BASE_p =
|
||||||
|
!ifeq MONOLITHIC 0
|
||||||
|
__WXLIB_BASE_p = &
|
||||||
|
wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__WXLIB_MONO_p =
|
||||||
|
!ifeq MONOLITHIC 1
|
||||||
|
__WXLIB_MONO_p = &
|
||||||
|
wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
|
||||||
|
!endif
|
||||||
|
__LIB_TIFF_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_JPEG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__LIB_PNG_p =
|
||||||
|
!ifeq USE_GUI 1
|
||||||
|
__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
|
||||||
|
!endif
|
||||||
|
__CAIRO_LIB_p =
|
||||||
|
!ifeq USE_CAIRO 1
|
||||||
|
__CAIRO_LIB_p = cairo.lib
|
||||||
|
!endif
|
||||||
|
____CAIRO_LIBDIR_FILENAMES_p =
|
||||||
|
!ifeq USE_CAIRO 1
|
||||||
|
____CAIRO_LIBDIR_FILENAMES_p = libpath $(CAIRO_ROOT)\lib
|
||||||
|
!endif
|
||||||
|
__WXUNIV_DEFINE_p =
|
||||||
|
!ifeq WXUNIV 1
|
||||||
|
__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
|
||||||
|
!endif
|
||||||
|
__DEBUG_DEFINE_p =
|
||||||
|
!ifeq DEBUG_FLAG 0
|
||||||
|
__DEBUG_DEFINE_p = -dwxDEBUG_LEVEL=0
|
||||||
|
!endif
|
||||||
|
__NDEBUG_DEFINE_p =
|
||||||
|
!ifeq BUILD release
|
||||||
|
__NDEBUG_DEFINE_p = -dNDEBUG
|
||||||
|
!endif
|
||||||
|
__EXCEPTIONS_DEFINE_p =
|
||||||
|
!ifeq USE_EXCEPTIONS 0
|
||||||
|
__EXCEPTIONS_DEFINE_p = -dwxNO_EXCEPTIONS
|
||||||
|
!endif
|
||||||
|
__RTTI_DEFINE_p =
|
||||||
|
!ifeq USE_RTTI 0
|
||||||
|
__RTTI_DEFINE_p = -dwxNO_RTTI
|
||||||
|
!endif
|
||||||
|
__THREAD_DEFINE_p =
|
||||||
|
!ifeq USE_THREADS 0
|
||||||
|
__THREAD_DEFINE_p = -dwxNO_THREADS
|
||||||
|
!endif
|
||||||
|
__UNICODE_DEFINE_p =
|
||||||
|
!ifeq UNICODE 0
|
||||||
|
__UNICODE_DEFINE_p = -dwxUSE_UNICODE=0
|
||||||
|
!endif
|
||||||
|
!ifeq UNICODE 1
|
||||||
|
__UNICODE_DEFINE_p = -d_UNICODE
|
||||||
|
!endif
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES =
|
||||||
|
!ifeq USE_CAIRO 1
|
||||||
|
____CAIRO_INCLUDEDIR_FILENAMES = -i=$(CAIRO_ROOT)\include\cairo
|
||||||
|
!endif
|
||||||
|
__DLLFLAG_p =
|
||||||
|
!ifeq SHARED 1
|
||||||
|
__DLLFLAG_p = -dWXUSINGDLL
|
||||||
|
!endif
|
||||||
|
|
||||||
|
### Variables: ###
|
||||||
|
|
||||||
|
WX_RELEASE_NODOT = 29
|
||||||
|
COMPILER_PREFIX = wat
|
||||||
|
OBJS = &
|
||||||
|
$(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
|
||||||
|
LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
|
||||||
|
SETUPHDIR = &
|
||||||
|
$(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
|
||||||
|
WEBVIEW_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_5) &
|
||||||
|
$(__RUNTIME_LIBS_6) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
|
||||||
|
$(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) &
|
||||||
|
$(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) &
|
||||||
|
-i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -wx -wcd=549 -wcd=656 &
|
||||||
|
-wcd=657 -wcd=667 -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH &
|
||||||
|
$(__RTTIFLAG_7) $(__EXCEPTIONSFLAG_8) $(CPPFLAGS) $(CXXFLAGS)
|
||||||
|
WEBVIEW_OBJECTS = &
|
||||||
|
$(OBJS)\webview_webview.obj
|
||||||
|
|
||||||
|
|
||||||
|
all : $(OBJS)
|
||||||
|
$(OBJS) :
|
||||||
|
-if not exist $(OBJS) mkdir $(OBJS)
|
||||||
|
|
||||||
|
### Targets: ###
|
||||||
|
|
||||||
|
all : .SYMBOLIC $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
clean : .SYMBOLIC
|
||||||
|
-if exist $(OBJS)\*.obj del $(OBJS)\*.obj
|
||||||
|
-if exist $(OBJS)\*.res del $(OBJS)\*.res
|
||||||
|
-if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
|
||||||
|
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
|
||||||
|
-if exist $(OBJS)\*.pch del $(OBJS)\*.pch
|
||||||
|
-if exist $(OBJS)\webview.exe del $(OBJS)\webview.exe
|
||||||
|
|
||||||
|
$(OBJS)\webview.exe : $(WEBVIEW_OBJECTS) $(OBJS)\webview_sample.res
|
||||||
|
@%create $(OBJS)\webview.lbc
|
||||||
|
@%append $(OBJS)\webview.lbc option quiet
|
||||||
|
@%append $(OBJS)\webview.lbc name $^@
|
||||||
|
@%append $(OBJS)\webview.lbc option caseexact
|
||||||
|
@%append $(OBJS)\webview.lbc $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16' $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS)
|
||||||
|
@for %i in ($(WEBVIEW_OBJECTS)) do @%append $(OBJS)\webview.lbc file %i
|
||||||
|
@for %i in ( $(__WXLIB_WEBVIEW_p) $(__WXLIB_STC_p) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) wxscintilla$(WXDEBUGFLAG).lib $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__CAIRO_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib) do @%append $(OBJS)\webview.lbc library %i
|
||||||
|
@%append $(OBJS)\webview.lbc option resource=$(OBJS)\webview_sample.res
|
||||||
|
@for %i in () do @%append $(OBJS)\webview.lbc option stack=%i
|
||||||
|
wlink @$(OBJS)\webview.lbc
|
||||||
|
|
||||||
|
$(OBJS)\webview_webview.obj : .AUTODEPEND .\webview.cpp
|
||||||
|
$(CXX) -bt=nt -zq -fo=$^@ $(WEBVIEW_CXXFLAGS) $<
|
||||||
|
|
||||||
|
$(OBJS)\webview_sample.res : .AUTODEPEND .\..\sample.rc
|
||||||
|
wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -i=$(SETUPHDIR) -i=.\..\..\include $(____CAIRO_INCLUDEDIR_FILENAMES) -i=. $(__DLLFLAG_p) -i=.\..\..\samples -dNOPCH $<
|
||||||
|
|
234
samples/webview/refresh.xpm
Normal file
234
samples/webview/refresh.xpm
Normal file
@@ -0,0 +1,234 @@
|
|||||||
|
/* XPM */
|
||||||
|
static const char * refresh_xpm[] = {
|
||||||
|
"24 24 207 2",
|
||||||
|
" c None",
|
||||||
|
". c #3162A2",
|
||||||
|
"+ c #507BB3",
|
||||||
|
"@ c #6A90C0",
|
||||||
|
"# c #7296C4",
|
||||||
|
"$ c #7397C4",
|
||||||
|
"% c #7094C2",
|
||||||
|
"& c #648BBD",
|
||||||
|
"* c #507CB3",
|
||||||
|
"= c #3061A2",
|
||||||
|
"- c #8EACD1",
|
||||||
|
"; c #B3CBE4",
|
||||||
|
"> c #B7CEE6",
|
||||||
|
", c #B8CEE6",
|
||||||
|
"' c #B5CDE5",
|
||||||
|
") c #B4CBE5",
|
||||||
|
"! c #B0C9E3",
|
||||||
|
"~ c #AEC6E1",
|
||||||
|
"{ c #9FBBDB",
|
||||||
|
"] c #648DBE",
|
||||||
|
"^ c #2F60A2",
|
||||||
|
"/ c #3262A4",
|
||||||
|
"( c #3364A3",
|
||||||
|
"_ c #3C6BA8",
|
||||||
|
": c #A7C0DD",
|
||||||
|
"< c #C1D6EA",
|
||||||
|
"[ c #BAD0E7",
|
||||||
|
"} c #B6CDE5",
|
||||||
|
"| c #B6CCE6",
|
||||||
|
"1 c #B5CDE6",
|
||||||
|
"2 c #B3CBE5",
|
||||||
|
"3 c #AFC8E3",
|
||||||
|
"4 c #AAC5E2",
|
||||||
|
"5 c #ABC6E2",
|
||||||
|
"6 c #A0BCDB",
|
||||||
|
"7 c #4975AF",
|
||||||
|
"8 c #3666A5",
|
||||||
|
"9 c #89ACD3",
|
||||||
|
"0 c #2C5EA0",
|
||||||
|
"a c #82A3CB",
|
||||||
|
"b c #B5CCE4",
|
||||||
|
"c c #7095C3",
|
||||||
|
"d c #658CBC",
|
||||||
|
"e c #678EBE",
|
||||||
|
"f c #7196C2",
|
||||||
|
"g c #84A4CC",
|
||||||
|
"h c #A9C3E0",
|
||||||
|
"i c #B8CFE7",
|
||||||
|
"j c #ACC6E3",
|
||||||
|
"k c #A0BEDE",
|
||||||
|
"l c #9CBCDD",
|
||||||
|
"m c #9EBDDE",
|
||||||
|
"n c #6C93C1",
|
||||||
|
"o c #7B9FCA",
|
||||||
|
"p c #ABC7E3",
|
||||||
|
"q c #2B5DA0",
|
||||||
|
"r c #4976AE",
|
||||||
|
"s c #8EADD0",
|
||||||
|
"t c #4975AE",
|
||||||
|
"u c #3667A6",
|
||||||
|
"v c #3666A6",
|
||||||
|
"w c #4170AB",
|
||||||
|
"x c #5B83B6",
|
||||||
|
"y c #9BB9DA",
|
||||||
|
"z c #97B9DC",
|
||||||
|
"A c #7EA7D3",
|
||||||
|
"B c #7CA5D2",
|
||||||
|
"C c #88AED6",
|
||||||
|
"D c #8AAFD6",
|
||||||
|
"E c #A4C1E0",
|
||||||
|
"F c #406DAB",
|
||||||
|
"G c #4F7BB2",
|
||||||
|
"H c #4A77B3",
|
||||||
|
"I c #4C79B4",
|
||||||
|
"J c #2E5EA2",
|
||||||
|
"K c #6F95C3",
|
||||||
|
"L c #95B6D9",
|
||||||
|
"M c #7FA8D3",
|
||||||
|
"N c #76A1D0",
|
||||||
|
"O c #709DCE",
|
||||||
|
"P c #2B5DA1",
|
||||||
|
"Q c #3667A5",
|
||||||
|
"R c #4D7AB4",
|
||||||
|
"S c #648DC3",
|
||||||
|
"T c #4A78B3",
|
||||||
|
"U c #3262A2",
|
||||||
|
"V c #2C5FA0",
|
||||||
|
"W c #6B91C0",
|
||||||
|
"X c #97B8DB",
|
||||||
|
"Y c #74A0CF",
|
||||||
|
"Z c #709ECE",
|
||||||
|
"` c #ACC7E3",
|
||||||
|
" . c #2D5EA0",
|
||||||
|
".. c #3767A6",
|
||||||
|
"+. c #5985BD",
|
||||||
|
"@. c #78A3D0",
|
||||||
|
"#. c #6C9BCC",
|
||||||
|
"$. c #AEC9E5",
|
||||||
|
"%. c #3263A3",
|
||||||
|
"&. c #3768A7",
|
||||||
|
"*. c #9BB8DA",
|
||||||
|
"=. c #9CB9DA",
|
||||||
|
"-. c #9CBADA",
|
||||||
|
";. c #9FBBDC",
|
||||||
|
">. c #A8C1DF",
|
||||||
|
",. c #2D5FA0",
|
||||||
|
"'. c #22569B",
|
||||||
|
"). c #23579C",
|
||||||
|
"!. c #21569A",
|
||||||
|
"~. c #21559B",
|
||||||
|
"{. c #275A9E",
|
||||||
|
"]. c #3364A4",
|
||||||
|
"^. c #24589C",
|
||||||
|
"/. c #24579C",
|
||||||
|
"(. c #416FAB",
|
||||||
|
"_. c #C0D3E8",
|
||||||
|
":. c #B8CCE4",
|
||||||
|
"<. c #B5CBE3",
|
||||||
|
"[. c #AFC7E1",
|
||||||
|
"}. c #B0C8E2",
|
||||||
|
"|. c #88A9CF",
|
||||||
|
"1. c #4471AC",
|
||||||
|
"2. c #B9D1E8",
|
||||||
|
"3. c #94B6DA",
|
||||||
|
"4. c #95B7DB",
|
||||||
|
"5. c #A3C1DF",
|
||||||
|
"6. c #A4BEDC",
|
||||||
|
"7. c #2D60A0",
|
||||||
|
"8. c #BBD1E9",
|
||||||
|
"9. c #BCD1E8",
|
||||||
|
"0. c #416EA9",
|
||||||
|
"a. c #3868A7",
|
||||||
|
"b. c #BAD1E9",
|
||||||
|
"c. c #96B7DB",
|
||||||
|
"d. c #98B9DC",
|
||||||
|
"e. c #A2C0DF",
|
||||||
|
"f. c #AAC4DF",
|
||||||
|
"g. c #5F88BA",
|
||||||
|
"h. c #80A8D7",
|
||||||
|
"i. c #CDDCEC",
|
||||||
|
"j. c #7A9FC8",
|
||||||
|
"k. c #4273B1",
|
||||||
|
"l. c #3465A4",
|
||||||
|
"m. c #4371AC",
|
||||||
|
"n. c #B9D1E9",
|
||||||
|
"o. c #B4CCE5",
|
||||||
|
"p. c #9DBCDD",
|
||||||
|
"q. c #8EB2D8",
|
||||||
|
"r. c #91B3D9",
|
||||||
|
"s. c #719AC8",
|
||||||
|
"t. c #4171AC",
|
||||||
|
"u. c #3A6AA8",
|
||||||
|
"v. c #3A75BD",
|
||||||
|
"w. c #9CBBDB",
|
||||||
|
"x. c #608BC1",
|
||||||
|
"y. c #3A6EAD",
|
||||||
|
"z. c #4C80BB",
|
||||||
|
"A. c #3365A4",
|
||||||
|
"B. c #C6DAED",
|
||||||
|
"C. c #6F94C1",
|
||||||
|
"D. c #8CABD1",
|
||||||
|
"E. c #9BBBDD",
|
||||||
|
"F. c #6C9ACD",
|
||||||
|
"G. c #6596CA",
|
||||||
|
"H. c #709DCF",
|
||||||
|
"I. c #7AA4D2",
|
||||||
|
"J. c #6A96C8",
|
||||||
|
"K. c #5885BB",
|
||||||
|
"L. c #4F7EB7",
|
||||||
|
"M. c #497AB6",
|
||||||
|
"N. c #487AB6",
|
||||||
|
"O. c #4275B5",
|
||||||
|
"P. c #4C7FBB",
|
||||||
|
"Q. c #578BC6",
|
||||||
|
"R. c #396CAA",
|
||||||
|
"S. c #789CC6",
|
||||||
|
"T. c #5681B6",
|
||||||
|
"U. c #8AAFD7",
|
||||||
|
"V. c #77A2D1",
|
||||||
|
"W. c #6496CA",
|
||||||
|
"X. c #6294C9",
|
||||||
|
"Y. c #6395CA",
|
||||||
|
"Z. c #5F92C9",
|
||||||
|
"`. c #5C8FC7",
|
||||||
|
" + c #598DC6",
|
||||||
|
".+ c #588DC7",
|
||||||
|
"++ c #4175B2",
|
||||||
|
"@+ c #31619F",
|
||||||
|
"#+ c #6089BB",
|
||||||
|
"$+ c #77A0CE",
|
||||||
|
"%+ c #6E9CCD",
|
||||||
|
"&+ c #6696CA",
|
||||||
|
"*+ c #6193C9",
|
||||||
|
"=+ c #5F91C8",
|
||||||
|
"-+ c #5C90C7",
|
||||||
|
";+ c #5A8EC6",
|
||||||
|
">+ c #558AC3",
|
||||||
|
",+ c #4072AF",
|
||||||
|
"'+ c #27528A",
|
||||||
|
")+ c #2A5285",
|
||||||
|
"!+ c #3C6599",
|
||||||
|
"~+ c #4B77B0",
|
||||||
|
"{+ c #4E7DB6",
|
||||||
|
"]+ c #4C7CB7",
|
||||||
|
"^+ c #4877B2",
|
||||||
|
"/+ c #3B69A2",
|
||||||
|
"(+ c #3361A0",
|
||||||
|
" ",
|
||||||
|
" . + @ # $ % & * ",
|
||||||
|
" = - ; > , ' ) ! ~ { ] ^ / ( ",
|
||||||
|
" _ : < [ } | 1 2 3 4 5 > 6 7 8 9 0 ",
|
||||||
|
" a b a c d e f g h i j k l m n o p q ",
|
||||||
|
" r s t u v w x y z A B C D E q ",
|
||||||
|
" F G H I J K L M N O 4 P ",
|
||||||
|
" Q R S T U V W X Y Z ` . ",
|
||||||
|
" ..+. t L @.Z #.$.0 ",
|
||||||
|
" %. &.{ *.=.-.;.>.,. ",
|
||||||
|
" '.).!.~.~.{.]. %.^./.^./.).'. ",
|
||||||
|
" (._.:.<.[.}.|.V ]. ",
|
||||||
|
" 1.2.3.4.5.6.7. %. ",
|
||||||
|
" 1.8.X l 9.0. a.( ",
|
||||||
|
" 1.b.c.d.e.f.g. h.i.j.k.l. ",
|
||||||
|
" m.n.o.p.3.q.r.s.t.u. v.w.x.y.z.A. ",
|
||||||
|
" m.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R. ",
|
||||||
|
" (.S. T.U.V.W.X.Y.Y.X.Z.`. +.+++ ",
|
||||||
|
" ]. @+#+$+%+&+*+=+-+;+>+,+ ",
|
||||||
|
" '+)+!+~+{+]+^+/+(+ ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "};
|
331
samples/webview/stop.xpm
Normal file
331
samples/webview/stop.xpm
Normal file
@@ -0,0 +1,331 @@
|
|||||||
|
/* XPM */
|
||||||
|
static const char * stop_xpm[] = {
|
||||||
|
"24 24 304 2",
|
||||||
|
" c None",
|
||||||
|
". c #920F0F",
|
||||||
|
"+ c #931212",
|
||||||
|
"@ c #931111",
|
||||||
|
"# c #8F0909",
|
||||||
|
"$ c #981414",
|
||||||
|
"% c #DC6666",
|
||||||
|
"& c #F07575",
|
||||||
|
"* c #EF7272",
|
||||||
|
"= c #EE7171",
|
||||||
|
"- c #EE6F6F",
|
||||||
|
"; c #EE6D6D",
|
||||||
|
"> c #EE6C6C",
|
||||||
|
", c #E46969",
|
||||||
|
"' c #980F0F",
|
||||||
|
") c #8E0606",
|
||||||
|
"! c #EA7B7B",
|
||||||
|
"~ c #E25858",
|
||||||
|
"{ c #D84040",
|
||||||
|
"] c #D83F3F",
|
||||||
|
"^ c #D83E3E",
|
||||||
|
"/ c #D83D3D",
|
||||||
|
"( c #D73C3C",
|
||||||
|
"_ c #D73A3A",
|
||||||
|
": c #DD4A4A",
|
||||||
|
"< c #EC7272",
|
||||||
|
"[ c #950909",
|
||||||
|
"} c #9A1616",
|
||||||
|
"| c #EB7C7C",
|
||||||
|
"1 c #E15959",
|
||||||
|
"2 c #D74040",
|
||||||
|
"3 c #D94444",
|
||||||
|
"4 c #D94343",
|
||||||
|
"5 c #D94242",
|
||||||
|
"6 c #D94141",
|
||||||
|
"7 c #D93F3F",
|
||||||
|
"8 c #D73D3D",
|
||||||
|
"9 c #D73939",
|
||||||
|
"0 c #DD4747",
|
||||||
|
"a c #E96D6D",
|
||||||
|
"b c #A21818",
|
||||||
|
"c c #9D1717",
|
||||||
|
"d c #DC6868",
|
||||||
|
"e c #E25959",
|
||||||
|
"f c #D94545",
|
||||||
|
"g c #D84545",
|
||||||
|
"h c #DA4545",
|
||||||
|
"i c #D84242",
|
||||||
|
"j c #D84141",
|
||||||
|
"k c #D63D3D",
|
||||||
|
"l c #D73B3B",
|
||||||
|
"m c #D63838",
|
||||||
|
"n c #DC4747",
|
||||||
|
"o c #D95555",
|
||||||
|
"p c #9D1414",
|
||||||
|
"q c #940909",
|
||||||
|
"r c #E15757",
|
||||||
|
"s c #DC4848",
|
||||||
|
"t c #F64949",
|
||||||
|
"u c #D94747",
|
||||||
|
"v c #D94646",
|
||||||
|
"w c #D73F3F",
|
||||||
|
"x c #EA4141",
|
||||||
|
"y c #E53D3D",
|
||||||
|
"z c #D53A3A",
|
||||||
|
"A c #D43838",
|
||||||
|
"B c #DB4747",
|
||||||
|
"C c #E66161",
|
||||||
|
"D c #920606",
|
||||||
|
"E c #9D1818",
|
||||||
|
"F c #EC7C7C",
|
||||||
|
"G c #DF5353",
|
||||||
|
"H c #DC4545",
|
||||||
|
"I c #F15A5A",
|
||||||
|
"J c #EEB2B2",
|
||||||
|
"K c #F55757",
|
||||||
|
"L c #DB4545",
|
||||||
|
"M c #EA4545",
|
||||||
|
"N c #F38383",
|
||||||
|
"O c #F27979",
|
||||||
|
"P c #DC3D3D",
|
||||||
|
"Q c #D33838",
|
||||||
|
"R c #D13535",
|
||||||
|
"S c #D84343",
|
||||||
|
"T c #E35C5C",
|
||||||
|
"U c #980E0E",
|
||||||
|
"V c #BD4949",
|
||||||
|
"W c #E25656",
|
||||||
|
"X c #D74343",
|
||||||
|
"Y c #F44F4F",
|
||||||
|
"Z c #EBBFBF",
|
||||||
|
"` c #E4EBEB",
|
||||||
|
" . c #EBC7C7",
|
||||||
|
".. c #F15D5D",
|
||||||
|
"+. c #DB4141",
|
||||||
|
"@. c #EA4747",
|
||||||
|
"#. c #F09C9C",
|
||||||
|
"$. c #E4EFEF",
|
||||||
|
"%. c #E5DDDD",
|
||||||
|
"&. c #FC5858",
|
||||||
|
"*. c #D53939",
|
||||||
|
"=. c #D13737",
|
||||||
|
"-. c #CE3333",
|
||||||
|
";. c #B93434",
|
||||||
|
">. c #DC4949",
|
||||||
|
",. c #E34545",
|
||||||
|
"'. c #F48F8F",
|
||||||
|
"). c #E7E6E6",
|
||||||
|
"!. c #E8E9E9",
|
||||||
|
"~. c #EDCBCB",
|
||||||
|
"{. c #F45A5A",
|
||||||
|
"]. c #EA4C4C",
|
||||||
|
"^. c #F2A3A3",
|
||||||
|
"/. c #E9E9E9",
|
||||||
|
"(. c #E7E9E9",
|
||||||
|
"_. c #F0B0B0",
|
||||||
|
":. c #E74848",
|
||||||
|
"<. c #CF3636",
|
||||||
|
"[. c #CE3535",
|
||||||
|
"}. c #D23A3A",
|
||||||
|
"|. c #BC4949",
|
||||||
|
"1. c #DD4848",
|
||||||
|
"2. c #E74444",
|
||||||
|
"3. c #F29E9E",
|
||||||
|
"4. c #EAE9E9",
|
||||||
|
"5. c #EBF0F0",
|
||||||
|
"6. c #F0CECE",
|
||||||
|
"7. c #F79191",
|
||||||
|
"8. c #EAF4F4",
|
||||||
|
"9. c #EBECEC",
|
||||||
|
"0. c #EFC4C4",
|
||||||
|
"a. c #EA4B4B",
|
||||||
|
"b. c #D13939",
|
||||||
|
"c. c #CF3737",
|
||||||
|
"d. c #CD3434",
|
||||||
|
"e. c #D13A3A",
|
||||||
|
"f. c #B83333",
|
||||||
|
"g. c #D73E3E",
|
||||||
|
"h. c #E74646",
|
||||||
|
"i. c #F59E9E",
|
||||||
|
"j. c #EFE8E8",
|
||||||
|
"k. c #EEF1F1",
|
||||||
|
"l. c #EEF5F5",
|
||||||
|
"m. c #F3BABA",
|
||||||
|
"n. c #EA5050",
|
||||||
|
"o. c #D23B3B",
|
||||||
|
"p. c #D03A3A",
|
||||||
|
"q. c #CF3939",
|
||||||
|
"r. c #CC3535",
|
||||||
|
"s. c #CA3131",
|
||||||
|
"t. c #B83232",
|
||||||
|
"u. c #BD4848",
|
||||||
|
"v. c #D83A3A",
|
||||||
|
"w. c #F05D5D",
|
||||||
|
"x. c #F5BEBE",
|
||||||
|
"y. c #F1F2F2",
|
||||||
|
"z. c #F2E6E6",
|
||||||
|
"A. c #FE7A7A",
|
||||||
|
"B. c #CF3434",
|
||||||
|
"C. c #C92121",
|
||||||
|
"D. c #C61212",
|
||||||
|
"E. c #C10707",
|
||||||
|
"F. c #C00505",
|
||||||
|
"G. c #BE0404",
|
||||||
|
"H. c #C30C0C",
|
||||||
|
"I. c #B72222",
|
||||||
|
"J. c #BC4848",
|
||||||
|
"K. c #DC4343",
|
||||||
|
"L. c #D73838",
|
||||||
|
"M. c #E95A5A",
|
||||||
|
"N. c #F8ADAD",
|
||||||
|
"O. c #F2F9F9",
|
||||||
|
"P. c #F3F3F3",
|
||||||
|
"Q. c #F4F2F2",
|
||||||
|
"R. c #F3F7F7",
|
||||||
|
"S. c #F2D5D5",
|
||||||
|
"T. c #F05050",
|
||||||
|
"U. c #C30000",
|
||||||
|
"V. c #BF0000",
|
||||||
|
"W. c #BE0000",
|
||||||
|
"X. c #BD0000",
|
||||||
|
"Y. c #BB0000",
|
||||||
|
"Z. c #C00707",
|
||||||
|
"`. c #B71F1F",
|
||||||
|
" + c #BC4646",
|
||||||
|
".+ c #DC4141",
|
||||||
|
"++ c #D63636",
|
||||||
|
"@+ c #D63737",
|
||||||
|
"#+ c #EA5C5C",
|
||||||
|
"$+ c #F6B9B9",
|
||||||
|
"%+ c #F4FAFA",
|
||||||
|
"&+ c #F9C5C5",
|
||||||
|
"*+ c #FCACAC",
|
||||||
|
"=+ c #F4F0F0",
|
||||||
|
"-+ c #F1F6F6",
|
||||||
|
";+ c #EB5F5F",
|
||||||
|
">+ c #C00101",
|
||||||
|
",+ c #B90000",
|
||||||
|
"'+ c #BF0707",
|
||||||
|
")+ c #B61D1D",
|
||||||
|
"!+ c #BC4545",
|
||||||
|
"~+ c #DA3E3E",
|
||||||
|
"{+ c #D73535",
|
||||||
|
"]+ c #D63434",
|
||||||
|
"^+ c #EA6363",
|
||||||
|
"/+ c #F5BFBF",
|
||||||
|
"(+ c #F1F1F1",
|
||||||
|
"_+ c #F5F6F6",
|
||||||
|
":+ c #FAC9C9",
|
||||||
|
"<+ c #DF3C3C",
|
||||||
|
"[+ c #D21B1B",
|
||||||
|
"}+ c #FBADAD",
|
||||||
|
"|+ c #F5F4F4",
|
||||||
|
"1+ c #F2F2F2",
|
||||||
|
"2+ c #F1D7D7",
|
||||||
|
"3+ c #F07373",
|
||||||
|
"4+ c #B80000",
|
||||||
|
"5+ c #BD0707",
|
||||||
|
"6+ c #B61C1C",
|
||||||
|
"7+ c #B53B3B",
|
||||||
|
"8+ c #E75D5D",
|
||||||
|
"9+ c #D63333",
|
||||||
|
"0+ c #D53333",
|
||||||
|
"a+ c #D42F2F",
|
||||||
|
"b+ c #F58686",
|
||||||
|
"c+ c #F3D4D4",
|
||||||
|
"d+ c #F2F3F3",
|
||||||
|
"e+ c #F6D3D3",
|
||||||
|
"f+ c #E44343",
|
||||||
|
"g+ c #C40000",
|
||||||
|
"h+ c #C20000",
|
||||||
|
"i+ c #D82C2C",
|
||||||
|
"j+ c #F7B7B7",
|
||||||
|
"k+ c #F0E9E9",
|
||||||
|
"l+ c #FA8F8F",
|
||||||
|
"m+ c #BE0A0A",
|
||||||
|
"n+ c #B70000",
|
||||||
|
"o+ c #B60000",
|
||||||
|
"p+ c #C20C0C",
|
||||||
|
"q+ c #B41919",
|
||||||
|
"r+ c #8B0101",
|
||||||
|
"s+ c #C44848",
|
||||||
|
"t+ c #EC5F5F",
|
||||||
|
"u+ c #D52A2A",
|
||||||
|
"v+ c #D22424",
|
||||||
|
"w+ c #CE1C1C",
|
||||||
|
"x+ c #E96969",
|
||||||
|
"y+ c #FBC4C4",
|
||||||
|
"z+ c #E44949",
|
||||||
|
"A+ c #C40101",
|
||||||
|
"B+ c #C10000",
|
||||||
|
"C+ c #D53131",
|
||||||
|
"D+ c #FBBEBE",
|
||||||
|
"E+ c #F09292",
|
||||||
|
"F+ c #C00E0E",
|
||||||
|
"G+ c #B50000",
|
||||||
|
"H+ c #C71212",
|
||||||
|
"I+ c #980707",
|
||||||
|
"J+ c #890101",
|
||||||
|
"K+ c #B52828",
|
||||||
|
"L+ c #E63D3D",
|
||||||
|
"M+ c #C90202",
|
||||||
|
"N+ c #C70000",
|
||||||
|
"O+ c #C80505",
|
||||||
|
"P+ c #D32424",
|
||||||
|
"Q+ c #C61B1B",
|
||||||
|
"R+ c #C11111",
|
||||||
|
"S+ c #C81313",
|
||||||
|
"T+ c #8C0101",
|
||||||
|
"U+ c #880000",
|
||||||
|
"V+ c #BE2E2E",
|
||||||
|
"W+ c #DC2D2D",
|
||||||
|
"X+ c #C50000",
|
||||||
|
"Y+ c #BC0000",
|
||||||
|
"Z+ c #C30D0D",
|
||||||
|
"`+ c #CE2424",
|
||||||
|
" @ c #850000",
|
||||||
|
".@ c #BE2B2B",
|
||||||
|
"+@ c #E33434",
|
||||||
|
"@@ c #C00000",
|
||||||
|
"#@ c #CC1616",
|
||||||
|
"$@ c #CB2222",
|
||||||
|
"%@ c #910404",
|
||||||
|
"&@ c #790000",
|
||||||
|
"*@ c #B21D1D",
|
||||||
|
"=@ c #E03131",
|
||||||
|
"-@ c #B40000",
|
||||||
|
";@ c #CD1818",
|
||||||
|
">@ c #C61F1F",
|
||||||
|
",@ c #830000",
|
||||||
|
"'@ c #730000",
|
||||||
|
")@ c #B92525",
|
||||||
|
"!@ c #E14444",
|
||||||
|
"~@ c #E04141",
|
||||||
|
"{@ c #DF3F3F",
|
||||||
|
"]@ c #DE3C3C",
|
||||||
|
"^@ c #DE3A3A",
|
||||||
|
"/@ c #DE3737",
|
||||||
|
"(@ c #DD3535",
|
||||||
|
"_@ c #DD3232",
|
||||||
|
":@ c #C42121",
|
||||||
|
"<@ c #7E0000",
|
||||||
|
"[@ c #720000",
|
||||||
|
"}@ c #770000",
|
||||||
|
" . + + + + + + @ @ # ",
|
||||||
|
" $ % & * * * = - ; > , ' ",
|
||||||
|
" ) ! ~ { { { ] ^ / ( _ : < [ ",
|
||||||
|
" } | 1 2 3 3 4 5 6 7 ^ 8 9 0 a b ",
|
||||||
|
" c d e 6 f g f h 4 i j 7 k l m n o p ",
|
||||||
|
" q | r 4 f s t u v h i 6 w x y z A B C D ",
|
||||||
|
" E F G w 4 H I J K L f i j M N O P Q R S T U ",
|
||||||
|
" V W / 6 X Y Z ` ...+.j @.#.$.%.&.*.=.-.f ;. ",
|
||||||
|
" V >.7 { i ,.'.).!.~.{.].^./.(._.:.=.<.[.}.;. ",
|
||||||
|
" |.1.^ ] 7 { 2.3.4.5.6.7.8.9.0.a.b.c.[.d.e.f. ",
|
||||||
|
" |.0 ( 8 ^ ] g.h.i.j.k.l.k.m.n.o.p.q.r.s.<.t. ",
|
||||||
|
" u.H v.l ( / / *.w.x.y.y.z.A.B.C.D.E.F.G.H.I. ",
|
||||||
|
" J.K.L.9 _ _ _ M.N.O.P.Q.R.S.T.U.V.W.X.Y.Z.`. ",
|
||||||
|
" +.+++@+L.@+#+$+O.%+&+*+=+-+S.;+>+X.Y.,+'+)+ ",
|
||||||
|
" !+~+{+{+]+^+/+(+_+:+<+[+}+|+1+2+3+Y.,+4+5+6+ ",
|
||||||
|
" 7+8+9+0+a+b+c+d+e+f+g+h+i+j+P.k+l+m+n+o+p+q+ ",
|
||||||
|
" r+s+t+u+v+w+x+y+z+A+h+B+X.C+D+E+F+n+G+H+v+I+ ",
|
||||||
|
" J+K+L+M+N+O+P+A+h+B+V.X.Y.Q+R+4+o+S+v+T+ ",
|
||||||
|
" U+V+W+N+X+U.h+B+V.X.Y+Y.,+4+o+Z+`+T+ ",
|
||||||
|
" @.@+@A+h+@@W.X.Y+Y.,+4+G+#@$@%@ ",
|
||||||
|
" &@*@=@V.Y+Y.,+4+o+G+-@;@>@,@ ",
|
||||||
|
" '@)@!@~@{@]@^@/@(@_@:@<@ ",
|
||||||
|
" [@&@&@&@&@&@&@&@&@}@ ",
|
||||||
|
" "};
|
24
samples/webview/webview.bkl
Normal file
24
samples/webview/webview.bkl
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!-- $Id: widgets.bkl 59311 2009-03-04 11:47:32Z FM $ -->
|
||||||
|
<makefile>
|
||||||
|
|
||||||
|
<include file="../../build/bakefiles/common_samples.bkl"/>
|
||||||
|
|
||||||
|
<exe id="webview" template="wx_sample" template_append="wx_append">
|
||||||
|
<sources>
|
||||||
|
webview.cpp
|
||||||
|
</sources>
|
||||||
|
<headers></headers>
|
||||||
|
<wx-lib>webview</wx-lib>
|
||||||
|
<wx-lib>stc</wx-lib>
|
||||||
|
<wx-lib>adv</wx-lib>
|
||||||
|
<wx-lib>core</wx-lib>
|
||||||
|
<wx-lib>base</wx-lib>
|
||||||
|
<win32-res>../sample.rc</win32-res>
|
||||||
|
|
||||||
|
<if cond="OUT_OF_TREE_MAKEFILES=='0'">
|
||||||
|
<sys-lib>$(LIB_SCINTILLA)</sys-lib>
|
||||||
|
</if>
|
||||||
|
</exe>
|
||||||
|
|
||||||
|
</makefile>
|
836
samples/webview/webview.cpp
Normal file
836
samples/webview/webview.cpp
Normal file
@@ -0,0 +1,836 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webview.cpp
|
||||||
|
// Purpose: wxWebView sample
|
||||||
|
// Author: Marianne Gagnon
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// headers
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes "wx/wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/wx.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/artprov.h"
|
||||||
|
#include "wx/notifmsg.h"
|
||||||
|
#include "wx/settings.h"
|
||||||
|
#include "wx/webview.h"
|
||||||
|
#include "wx/webviewarchivehandler.h"
|
||||||
|
#include "wx/infobar.h"
|
||||||
|
#include "wx/filesys.h"
|
||||||
|
#include "wx/fs_arc.h"
|
||||||
|
|
||||||
|
#if !defined(__WXMSW__) && !defined(__WXPM__)
|
||||||
|
#include "../sample.xpm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_STC
|
||||||
|
#include "wx/stc/stc.h"
|
||||||
|
#else
|
||||||
|
#error "wxStyledTextControl is needed by this sample"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__WXMSW__) || defined(__WXOSX__)
|
||||||
|
#include "stop.xpm"
|
||||||
|
#include "refresh.xpm"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wxlogo.xpm"
|
||||||
|
|
||||||
|
|
||||||
|
//We map menu items to their history items
|
||||||
|
WX_DECLARE_HASH_MAP(int, wxSharedPtr<wxWebViewHistoryItem>,
|
||||||
|
wxIntegerHash, wxIntegerEqual, wxMenuHistoryMap);
|
||||||
|
|
||||||
|
class WebApp : public wxApp
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual bool OnInit();
|
||||||
|
};
|
||||||
|
|
||||||
|
class WebFrame : public wxFrame
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WebFrame();
|
||||||
|
|
||||||
|
void OnAnimationTimer(wxTimerEvent& evt);
|
||||||
|
void UpdateState();
|
||||||
|
void OnUrl(wxCommandEvent& evt);
|
||||||
|
void OnBack(wxCommandEvent& evt);
|
||||||
|
void OnForward(wxCommandEvent& evt);
|
||||||
|
void OnStop(wxCommandEvent& evt);
|
||||||
|
void OnReload(wxCommandEvent& evt);
|
||||||
|
void OnClearHistory(wxCommandEvent& evt);
|
||||||
|
void OnEnableHistory(wxCommandEvent& evt);
|
||||||
|
void OnNavigationRequest(wxWebViewEvent& evt);
|
||||||
|
void OnNavigationComplete(wxWebViewEvent& evt);
|
||||||
|
void OnDocumentLoaded(wxWebViewEvent& evt);
|
||||||
|
void OnNewWindow(wxWebViewEvent& evt);
|
||||||
|
void OnTitleChanged(wxWebViewEvent& evt);
|
||||||
|
void OnViewSourceRequest(wxCommandEvent& evt);
|
||||||
|
void OnToolsClicked(wxCommandEvent& evt);
|
||||||
|
void OnSetZoom(wxCommandEvent& evt);
|
||||||
|
void OnError(wxWebViewEvent& evt);
|
||||||
|
void OnPrint(wxCommandEvent& evt);
|
||||||
|
void OnCut(wxCommandEvent& evt);
|
||||||
|
void OnCopy(wxCommandEvent& evt);
|
||||||
|
void OnPaste(wxCommandEvent& evt);
|
||||||
|
void OnUndo(wxCommandEvent& evt);
|
||||||
|
void OnRedo(wxCommandEvent& evt);
|
||||||
|
void OnMode(wxCommandEvent& evt);
|
||||||
|
void OnZoomLayout(wxCommandEvent& evt);
|
||||||
|
void OnHistory(wxCommandEvent& evt);
|
||||||
|
void OnRunScript(wxCommandEvent& evt);
|
||||||
|
void OnClearSelection(wxCommandEvent& evt);
|
||||||
|
void OnDeleteSelection(wxCommandEvent& evt);
|
||||||
|
void OnSelectAll(wxCommandEvent& evt);
|
||||||
|
void OnLoadScheme(wxCommandEvent& evt);
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxTextCtrl* m_url;
|
||||||
|
wxWebView* m_browser;
|
||||||
|
|
||||||
|
wxToolBar* m_toolbar;
|
||||||
|
wxToolBarToolBase* m_toolbar_back;
|
||||||
|
wxToolBarToolBase* m_toolbar_forward;
|
||||||
|
wxToolBarToolBase* m_toolbar_stop;
|
||||||
|
wxToolBarToolBase* m_toolbar_reload;
|
||||||
|
wxToolBarToolBase* m_toolbar_tools;
|
||||||
|
|
||||||
|
wxMenu* m_tools_menu;
|
||||||
|
wxMenu* m_tools_history_menu;
|
||||||
|
wxMenuItem* m_tools_layout;
|
||||||
|
wxMenuItem* m_tools_tiny;
|
||||||
|
wxMenuItem* m_tools_small;
|
||||||
|
wxMenuItem* m_tools_medium;
|
||||||
|
wxMenuItem* m_tools_large;
|
||||||
|
wxMenuItem* m_tools_largest;
|
||||||
|
wxMenuItem* m_tools_handle_navigation;
|
||||||
|
wxMenuItem* m_tools_handle_new_window;
|
||||||
|
wxMenuItem* m_tools_enable_history;
|
||||||
|
wxMenuItem* m_edit_cut;
|
||||||
|
wxMenuItem* m_edit_copy;
|
||||||
|
wxMenuItem* m_edit_paste;
|
||||||
|
wxMenuItem* m_edit_undo;
|
||||||
|
wxMenuItem* m_edit_redo;
|
||||||
|
wxMenuItem* m_edit_mode;
|
||||||
|
wxMenuItem* m_selection_clear;
|
||||||
|
wxMenuItem* m_selection_delete;
|
||||||
|
|
||||||
|
wxTimer* m_timer;
|
||||||
|
int m_animation_angle;
|
||||||
|
|
||||||
|
wxInfoBar *m_info;
|
||||||
|
wxStaticText* m_info_text;
|
||||||
|
|
||||||
|
wxMenuHistoryMap m_histMenuItems;
|
||||||
|
};
|
||||||
|
|
||||||
|
class SourceViewDialog : public wxDialog
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
SourceViewDialog(wxWindow* parent, wxString source);
|
||||||
|
};
|
||||||
|
|
||||||
|
IMPLEMENT_APP(WebApp)
|
||||||
|
|
||||||
|
// ============================================================================
|
||||||
|
// implementation
|
||||||
|
// ============================================================================
|
||||||
|
|
||||||
|
bool WebApp::OnInit()
|
||||||
|
{
|
||||||
|
if ( !wxApp::OnInit() )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
WebFrame *frame = new WebFrame();
|
||||||
|
frame->Show();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
WebFrame::WebFrame() : wxFrame(NULL, wxID_ANY, "wxWebView Sample")
|
||||||
|
{
|
||||||
|
//Required from virtual file system archive support
|
||||||
|
wxFileSystem::AddHandler(new wxArchiveFSHandler);
|
||||||
|
|
||||||
|
// set the frame icon
|
||||||
|
SetIcon(wxICON(sample));
|
||||||
|
SetTitle("wxWebView Sample");
|
||||||
|
|
||||||
|
m_timer = NULL;
|
||||||
|
m_animation_angle = 0;
|
||||||
|
|
||||||
|
|
||||||
|
wxBoxSizer* topsizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
// Create the toolbar
|
||||||
|
m_toolbar = CreateToolBar(wxTB_TEXT);
|
||||||
|
m_toolbar->SetToolBitmapSize(wxSize(32, 32));
|
||||||
|
|
||||||
|
wxBitmap back = wxArtProvider::GetBitmap(wxART_GO_BACK , wxART_TOOLBAR);
|
||||||
|
wxBitmap forward = wxArtProvider::GetBitmap(wxART_GO_FORWARD , wxART_TOOLBAR);
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
wxBitmap stop = wxArtProvider::GetBitmap("gtk-stop", wxART_TOOLBAR);
|
||||||
|
#else
|
||||||
|
wxBitmap stop = wxBitmap(stop_xpm);
|
||||||
|
#endif
|
||||||
|
#ifdef __WXGTK__
|
||||||
|
wxBitmap refresh = wxArtProvider::GetBitmap("gtk-refresh", wxART_TOOLBAR);
|
||||||
|
#else
|
||||||
|
wxBitmap refresh = wxBitmap(refresh_xpm);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
m_toolbar_back = m_toolbar->AddTool(wxID_ANY, _("Back"), back);
|
||||||
|
m_toolbar_forward = m_toolbar->AddTool(wxID_ANY, _("Forward"), forward);
|
||||||
|
m_toolbar_stop = m_toolbar->AddTool(wxID_ANY, _("Stop"), stop);
|
||||||
|
m_toolbar_reload = m_toolbar->AddTool(wxID_ANY, _("Reload"), refresh);
|
||||||
|
m_url = new wxTextCtrl(m_toolbar, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(400, -1), wxTE_PROCESS_ENTER );
|
||||||
|
m_toolbar->AddControl(m_url, _("URL"));
|
||||||
|
m_toolbar_tools = m_toolbar->AddTool(wxID_ANY, _("Menu"), wxBitmap(wxlogo_xpm));
|
||||||
|
|
||||||
|
m_toolbar->Realize();
|
||||||
|
|
||||||
|
// Create the info panel
|
||||||
|
m_info = new wxInfoBar(this);
|
||||||
|
topsizer->Add(m_info, wxSizerFlags().Expand());
|
||||||
|
|
||||||
|
// Create the webview
|
||||||
|
m_browser = wxWebView::New(this, wxID_ANY, "http://www.wxwidgets.org");
|
||||||
|
topsizer->Add(m_browser, wxSizerFlags().Expand().Proportion(1));
|
||||||
|
|
||||||
|
//We register the wxfs:// protocol for testing purposes
|
||||||
|
m_browser->RegisterHandler(wxSharedPtr<wxWebViewHandler>(new wxWebViewArchiveHandler("wxfs")));
|
||||||
|
|
||||||
|
SetSizer(topsizer);
|
||||||
|
|
||||||
|
//Set a more sensible size for web browsing
|
||||||
|
SetSize(wxSize(800, 600));
|
||||||
|
|
||||||
|
// Create a log window
|
||||||
|
new wxLogWindow(this, _("Logging"));
|
||||||
|
|
||||||
|
// Create the Tools menu
|
||||||
|
m_tools_menu = new wxMenu();
|
||||||
|
wxMenuItem* print = m_tools_menu->Append(wxID_ANY , _("Print"));
|
||||||
|
wxMenuItem* viewSource = m_tools_menu->Append(wxID_ANY , _("View Source"));
|
||||||
|
m_tools_menu->AppendSeparator();
|
||||||
|
m_tools_layout = m_tools_menu->AppendCheckItem(wxID_ANY, _("Use Layout Zoom"));
|
||||||
|
m_tools_tiny = m_tools_menu->AppendCheckItem(wxID_ANY, _("Tiny"));
|
||||||
|
m_tools_small = m_tools_menu->AppendCheckItem(wxID_ANY, _("Small"));
|
||||||
|
m_tools_medium = m_tools_menu->AppendCheckItem(wxID_ANY, _("Medium"));
|
||||||
|
m_tools_large = m_tools_menu->AppendCheckItem(wxID_ANY, _("Large"));
|
||||||
|
m_tools_largest = m_tools_menu->AppendCheckItem(wxID_ANY, _("Largest"));
|
||||||
|
m_tools_menu->AppendSeparator();
|
||||||
|
m_tools_handle_navigation = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle Navigation"));
|
||||||
|
m_tools_handle_new_window = m_tools_menu->AppendCheckItem(wxID_ANY, _("Handle New Windows"));
|
||||||
|
m_tools_menu->AppendSeparator();
|
||||||
|
|
||||||
|
//History menu
|
||||||
|
m_tools_history_menu = new wxMenu();
|
||||||
|
wxMenuItem* clearhist = m_tools_history_menu->Append(wxID_ANY, _("Clear History"));
|
||||||
|
m_tools_enable_history = m_tools_history_menu->AppendCheckItem(wxID_ANY, _("Enable History"));
|
||||||
|
m_tools_history_menu->AppendSeparator();
|
||||||
|
|
||||||
|
m_tools_menu->AppendSubMenu(m_tools_history_menu, "History");
|
||||||
|
|
||||||
|
//Create an editing menu
|
||||||
|
wxMenu* editmenu = new wxMenu();
|
||||||
|
m_edit_cut = editmenu->Append(wxID_ANY, _("Cut"));
|
||||||
|
m_edit_copy = editmenu->Append(wxID_ANY, _("Copy"));
|
||||||
|
m_edit_paste = editmenu->Append(wxID_ANY, _("Paste"));
|
||||||
|
editmenu->AppendSeparator();
|
||||||
|
m_edit_undo = editmenu->Append(wxID_ANY, _("Undo"));
|
||||||
|
m_edit_redo = editmenu->Append(wxID_ANY, _("Redo"));
|
||||||
|
editmenu->AppendSeparator();
|
||||||
|
m_edit_mode = editmenu->AppendCheckItem(wxID_ANY, _("Edit Mode"));
|
||||||
|
|
||||||
|
m_tools_menu->AppendSeparator();
|
||||||
|
m_tools_menu->AppendSubMenu(editmenu, "Edit");
|
||||||
|
|
||||||
|
wxMenuItem* script = m_tools_menu->Append(wxID_ANY, _("Run Script"));
|
||||||
|
|
||||||
|
//Selection menu
|
||||||
|
wxMenu* selection = new wxMenu();
|
||||||
|
m_selection_clear = selection->Append(wxID_ANY, _("Clear Selection"));
|
||||||
|
m_selection_delete = selection->Append(wxID_ANY, _("Delete Selection"));
|
||||||
|
wxMenuItem* selectall = selection->Append(wxID_ANY, _("Select All"));
|
||||||
|
|
||||||
|
editmenu->AppendSubMenu(selection, "Selection");
|
||||||
|
|
||||||
|
wxMenuItem* loadscheme = m_tools_menu->Append(wxID_ANY, _("Custom Scheme Example"));
|
||||||
|
|
||||||
|
//By default we want to handle navigation and new windows
|
||||||
|
m_tools_handle_navigation->Check();
|
||||||
|
m_tools_handle_new_window->Check();
|
||||||
|
m_tools_enable_history->Check();
|
||||||
|
if(!m_browser->CanSetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT))
|
||||||
|
m_tools_layout->Enable(false);
|
||||||
|
|
||||||
|
|
||||||
|
// Connect the toolbar events
|
||||||
|
Connect(m_toolbar_back->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnBack), NULL, this );
|
||||||
|
Connect(m_toolbar_forward->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnForward), NULL, this );
|
||||||
|
Connect(m_toolbar_stop->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnStop), NULL, this );
|
||||||
|
Connect(m_toolbar_reload->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnReload),NULL, this );
|
||||||
|
Connect(m_toolbar_tools->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnToolsClicked), NULL, this );
|
||||||
|
|
||||||
|
Connect(m_url->GetId(), wxEVT_COMMAND_TEXT_ENTER,
|
||||||
|
wxCommandEventHandler(WebFrame::OnUrl), NULL, this );
|
||||||
|
|
||||||
|
// Connect the webview events
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnNavigationRequest), NULL, this);
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnNavigationComplete), NULL, this);
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_LOADED,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnDocumentLoaded), NULL, this);
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_ERROR,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnError), NULL, this);
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnNewWindow), NULL, this);
|
||||||
|
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
|
||||||
|
wxWebViewEventHandler(WebFrame::OnTitleChanged), NULL, this);
|
||||||
|
|
||||||
|
// Connect the menu events
|
||||||
|
Connect(viewSource->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnViewSourceRequest), NULL, this );
|
||||||
|
Connect(print->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnPrint), NULL, this );
|
||||||
|
Connect(m_tools_layout->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnZoomLayout), NULL, this );
|
||||||
|
Connect(m_tools_tiny->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSetZoom), NULL, this );
|
||||||
|
Connect(m_tools_small->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSetZoom), NULL, this );
|
||||||
|
Connect(m_tools_medium->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSetZoom), NULL, this );
|
||||||
|
Connect(m_tools_large->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSetZoom), NULL, this );
|
||||||
|
Connect(m_tools_largest->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSetZoom), NULL, this );
|
||||||
|
Connect(clearhist->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnClearHistory), NULL, this );
|
||||||
|
Connect(m_tools_enable_history->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnEnableHistory), NULL, this );
|
||||||
|
Connect(m_edit_cut->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnCut), NULL, this );
|
||||||
|
Connect(m_edit_copy->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnCopy), NULL, this );
|
||||||
|
Connect(m_edit_paste->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnPaste), NULL, this );
|
||||||
|
Connect(m_edit_undo->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnUndo), NULL, this );
|
||||||
|
Connect(m_edit_redo->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnRedo), NULL, this );
|
||||||
|
Connect(m_edit_mode->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnMode), NULL, this );
|
||||||
|
Connect(script->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnRunScript), NULL, this );
|
||||||
|
Connect(m_selection_clear->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnClearSelection), NULL, this );
|
||||||
|
Connect(m_selection_delete->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnDeleteSelection), NULL, this );
|
||||||
|
Connect(selectall->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnSelectAll), NULL, this );
|
||||||
|
Connect(loadscheme->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnLoadScheme), NULL, this );
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnAnimationTimer(wxTimerEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_animation_angle += 15;
|
||||||
|
if (m_animation_angle > 360) m_animation_angle -= 360;
|
||||||
|
|
||||||
|
wxBitmap image(24, 24);
|
||||||
|
{
|
||||||
|
wxMemoryDC dc;
|
||||||
|
dc.SelectObject(image);
|
||||||
|
dc.SetBackground(wxBrush(wxColour(255,0,255)));
|
||||||
|
dc.Clear();
|
||||||
|
|
||||||
|
if (m_animation_angle >= 0 && m_animation_angle <= 180)
|
||||||
|
{
|
||||||
|
dc.SetBrush(*wxYELLOW_BRUSH);
|
||||||
|
dc.SetPen(*wxYELLOW_PEN);
|
||||||
|
dc.DrawCircle(16 - int(sin(m_animation_angle*0.01745f /* convert to radians */)*14.0f),
|
||||||
|
16 + int(cos(m_animation_angle*0.01745f /* convert to radians */)*14.0f), 3 );
|
||||||
|
}
|
||||||
|
|
||||||
|
dc.DrawBitmap(wxBitmap(wxlogo_xpm), 0, 0, true);
|
||||||
|
|
||||||
|
if (m_animation_angle > 180)
|
||||||
|
{
|
||||||
|
dc.SetBrush(*wxYELLOW_BRUSH);
|
||||||
|
dc.SetPen(*wxYELLOW_PEN);
|
||||||
|
dc.DrawCircle(16 - int(sin(m_animation_angle*0.01745f /* convert to radians */)*14.0f),
|
||||||
|
16 + int(cos(m_animation_angle*0.01745f /* convert to radians */)*14.0f), 3 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
image.SetMask(new wxMask(image, wxColour(255,0,255)));
|
||||||
|
m_toolbar->SetToolNormalBitmap(m_toolbar_tools->GetId(), image);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method that retrieves the current state from the web control and updates the GUI
|
||||||
|
* the reflect this current state.
|
||||||
|
*/
|
||||||
|
void WebFrame::UpdateState()
|
||||||
|
{
|
||||||
|
m_toolbar->EnableTool( m_toolbar_back->GetId(), m_browser->CanGoBack() );
|
||||||
|
m_toolbar->EnableTool( m_toolbar_forward->GetId(), m_browser->CanGoForward() );
|
||||||
|
|
||||||
|
if (m_browser->IsBusy())
|
||||||
|
{
|
||||||
|
if (m_timer == NULL)
|
||||||
|
{
|
||||||
|
m_timer = new wxTimer(this);
|
||||||
|
this->Connect(wxEVT_TIMER, wxTimerEventHandler(WebFrame::OnAnimationTimer), NULL, this);
|
||||||
|
}
|
||||||
|
m_timer->Start(100); // start animation timer
|
||||||
|
|
||||||
|
m_toolbar->EnableTool( m_toolbar_stop->GetId(), true );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (m_timer != NULL) m_timer->Stop(); // stop animation timer
|
||||||
|
m_toolbar->SetToolNormalBitmap(m_toolbar_tools->GetId(), wxBitmap(wxlogo_xpm));
|
||||||
|
m_toolbar->EnableTool( m_toolbar_stop->GetId(), false );
|
||||||
|
}
|
||||||
|
|
||||||
|
SetTitle( m_browser->GetCurrentTitle() );
|
||||||
|
m_url->SetValue( m_browser->GetCurrentURL() );
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when user entered an URL and pressed enter
|
||||||
|
*/
|
||||||
|
void WebFrame::OnUrl(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->LoadURL( m_url->GetValue() );
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when user pressed the "back" button
|
||||||
|
*/
|
||||||
|
void WebFrame::OnBack(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->GoBack();
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when user pressed the "forward" button
|
||||||
|
*/
|
||||||
|
void WebFrame::OnForward(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->GoForward();
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when user pressed the "stop" button
|
||||||
|
*/
|
||||||
|
void WebFrame::OnStop(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Stop();
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when user pressed the "reload" button
|
||||||
|
*/
|
||||||
|
void WebFrame::OnReload(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Reload();
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnClearHistory(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->ClearHistory();
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnEnableHistory(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->EnableHistory(m_tools_enable_history->IsChecked());
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnCut(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Cut();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnCopy(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Copy();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnPaste(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Paste();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnUndo(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Undo();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnRedo(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Redo();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnMode(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->SetEditable(m_edit_mode->IsChecked());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnLoadScheme(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
wxFileName helpfile("../help/doc.zip");
|
||||||
|
helpfile.MakeAbsolute();
|
||||||
|
wxString path = helpfile.GetFullPath();
|
||||||
|
//Under MSW we need to flip the slashes
|
||||||
|
path.Replace("\\", "/");
|
||||||
|
path = "wxfs:///" + path + ";protocol=zip/doc.htm";
|
||||||
|
m_browser->LoadURL(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when there is a request to load a new page (for instance
|
||||||
|
* when the user clicks a link)
|
||||||
|
*/
|
||||||
|
void WebFrame::OnNavigationRequest(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
if(m_info->IsShown())
|
||||||
|
{
|
||||||
|
m_info->Dismiss();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLogMessage("%s", "Navigation request to '" + evt.GetURL() + "' (target='" +
|
||||||
|
evt.GetTarget() + "')");
|
||||||
|
|
||||||
|
wxASSERT(m_browser->IsBusy());
|
||||||
|
|
||||||
|
//If we don't want to handle navigation then veto the event and navigation
|
||||||
|
//will not take place, we also need to stop the loading animation
|
||||||
|
if(!m_tools_handle_navigation->IsChecked())
|
||||||
|
{
|
||||||
|
evt.Veto();
|
||||||
|
if (m_timer != NULL) m_timer->Stop(); // stop animation timer
|
||||||
|
m_toolbar->SetToolNormalBitmap(m_toolbar_tools->GetId(), wxBitmap(wxlogo_xpm));
|
||||||
|
m_toolbar->EnableTool( m_toolbar_stop->GetId(), false );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when a navigation request was accepted
|
||||||
|
*/
|
||||||
|
void WebFrame::OnNavigationComplete(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
wxLogMessage("%s", "Navigation complete; url='" + evt.GetURL() + "'");
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when a page is finished loading
|
||||||
|
*/
|
||||||
|
void WebFrame::OnDocumentLoaded(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
//Only notify if the document is the main frame, not a subframe
|
||||||
|
if(evt.GetURL() == m_browser->GetCurrentURL())
|
||||||
|
{
|
||||||
|
wxLogMessage("%s", "Document loaded; url='" + evt.GetURL() + "'");
|
||||||
|
}
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* On new window, we veto to stop extra windows appearing
|
||||||
|
*/
|
||||||
|
void WebFrame::OnNewWindow(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'");
|
||||||
|
|
||||||
|
//If we handle new window events then just load them in this window as we
|
||||||
|
//are a single window browser
|
||||||
|
if(m_tools_handle_new_window->IsChecked())
|
||||||
|
m_browser->LoadURL(evt.GetURL());
|
||||||
|
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnTitleChanged(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'");
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoked when user selects the "View Source" menu item
|
||||||
|
*/
|
||||||
|
void WebFrame::OnViewSourceRequest(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
SourceViewDialog dlg(this, m_browser->GetPageSource());
|
||||||
|
dlg.ShowModal();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoked when user selects the "Menu" item
|
||||||
|
*/
|
||||||
|
void WebFrame::OnToolsClicked(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
if(m_browser->GetCurrentURL() == "")
|
||||||
|
return;
|
||||||
|
|
||||||
|
m_tools_tiny->Check(false);
|
||||||
|
m_tools_small->Check(false);
|
||||||
|
m_tools_medium->Check(false);
|
||||||
|
m_tools_large->Check(false);
|
||||||
|
m_tools_largest->Check(false);
|
||||||
|
|
||||||
|
wxWebViewZoom zoom = m_browser->GetZoom();
|
||||||
|
switch (zoom)
|
||||||
|
{
|
||||||
|
case wxWEB_VIEW_ZOOM_TINY:
|
||||||
|
m_tools_tiny->Check();
|
||||||
|
break;
|
||||||
|
case wxWEB_VIEW_ZOOM_SMALL:
|
||||||
|
m_tools_small->Check();
|
||||||
|
break;
|
||||||
|
case wxWEB_VIEW_ZOOM_MEDIUM:
|
||||||
|
m_tools_medium->Check();
|
||||||
|
break;
|
||||||
|
case wxWEB_VIEW_ZOOM_LARGE:
|
||||||
|
m_tools_large->Check();
|
||||||
|
break;
|
||||||
|
case wxWEB_VIEW_ZOOM_LARGEST:
|
||||||
|
m_tools_largest->Check();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_edit_cut->Enable(m_browser->CanCut());
|
||||||
|
m_edit_copy->Enable(m_browser->CanCopy());
|
||||||
|
m_edit_paste->Enable(m_browser->CanPaste());
|
||||||
|
|
||||||
|
m_edit_undo->Enable(m_browser->CanUndo());
|
||||||
|
m_edit_redo->Enable(m_browser->CanRedo());
|
||||||
|
|
||||||
|
m_selection_clear->Enable(m_browser->HasSelection());
|
||||||
|
m_selection_delete->Enable(m_browser->HasSelection());
|
||||||
|
|
||||||
|
//Firstly we clear the existing menu items, then we add the current ones
|
||||||
|
wxMenuHistoryMap::const_iterator it;
|
||||||
|
for( it = m_histMenuItems.begin(); it != m_histMenuItems.end(); ++it )
|
||||||
|
{
|
||||||
|
m_tools_history_menu->Destroy(it->first);
|
||||||
|
}
|
||||||
|
m_histMenuItems.clear();
|
||||||
|
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > back = m_browser->GetBackwardHistory();
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > forward = m_browser->GetForwardHistory();
|
||||||
|
|
||||||
|
wxMenuItem* item;
|
||||||
|
|
||||||
|
unsigned int i;
|
||||||
|
for(i = 0; i < back.size(); i++)
|
||||||
|
{
|
||||||
|
item = m_tools_history_menu->AppendRadioItem(wxID_ANY, back[i]->GetTitle());
|
||||||
|
m_histMenuItems[item->GetId()] = back[i];
|
||||||
|
Connect(item->GetId(), wxEVT_COMMAND_MENU_SELECTED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnHistory), NULL, this );
|
||||||
|
}
|
||||||
|
|
||||||
|
item = m_tools_history_menu->AppendRadioItem(wxID_ANY, m_browser->GetCurrentTitle());
|
||||||
|
item->Check();
|
||||||
|
|
||||||
|
//No need to connect the current item
|
||||||
|
m_histMenuItems[item->GetId()] = wxSharedPtr<wxWebViewHistoryItem>(new wxWebViewHistoryItem(m_browser->GetCurrentURL(), m_browser->GetCurrentTitle()));
|
||||||
|
|
||||||
|
for(i = 0; i < forward.size(); i++)
|
||||||
|
{
|
||||||
|
item = m_tools_history_menu->AppendRadioItem(wxID_ANY, forward[i]->GetTitle());
|
||||||
|
m_histMenuItems[item->GetId()] = forward[i];
|
||||||
|
Connect(item->GetId(), wxEVT_COMMAND_TOOL_CLICKED,
|
||||||
|
wxCommandEventHandler(WebFrame::OnHistory), NULL, this );
|
||||||
|
}
|
||||||
|
|
||||||
|
wxPoint position = ScreenToClient( wxGetMousePosition() );
|
||||||
|
PopupMenu(m_tools_menu, position.x, position.y);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoked when user selects the zoom size in the menu
|
||||||
|
*/
|
||||||
|
void WebFrame::OnSetZoom(wxCommandEvent& evt)
|
||||||
|
{
|
||||||
|
if (evt.GetId() == m_tools_tiny->GetId())
|
||||||
|
{
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_TINY);
|
||||||
|
}
|
||||||
|
else if (evt.GetId() == m_tools_small->GetId())
|
||||||
|
{
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_SMALL);
|
||||||
|
}
|
||||||
|
else if (evt.GetId() == m_tools_medium->GetId())
|
||||||
|
{
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_MEDIUM);
|
||||||
|
}
|
||||||
|
else if (evt.GetId() == m_tools_large->GetId())
|
||||||
|
{
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_LARGE);
|
||||||
|
}
|
||||||
|
else if (evt.GetId() == m_tools_largest->GetId())
|
||||||
|
{
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_LARGEST);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wxFAIL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnZoomLayout(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
if(m_tools_layout->IsChecked())
|
||||||
|
m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT);
|
||||||
|
else
|
||||||
|
m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_TEXT);
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnHistory(wxCommandEvent& evt)
|
||||||
|
{
|
||||||
|
m_browser->LoadHistoryItem(m_histMenuItems[evt.GetId()]);
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnRunScript(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
wxTextEntryDialog dialog(this, "Enter JavaScript to run.", wxGetTextFromUserPromptStr, "", wxOK|wxCANCEL|wxCENTRE|wxTE_MULTILINE);
|
||||||
|
if(dialog.ShowModal() == wxID_OK)
|
||||||
|
{
|
||||||
|
m_browser->RunScript(dialog.GetValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnClearSelection(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->ClearSelection();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnDeleteSelection(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->DeleteSelection();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebFrame::OnSelectAll(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->SelectAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Callback invoked when a loading error occurs
|
||||||
|
*/
|
||||||
|
void WebFrame::OnError(wxWebViewEvent& evt)
|
||||||
|
{
|
||||||
|
wxString errorCategory;
|
||||||
|
switch (evt.GetInt())
|
||||||
|
{
|
||||||
|
case wxWEB_NAV_ERR_CONNECTION:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_CONNECTION";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_CERTIFICATE:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_CERTIFICATE";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_AUTH:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_AUTH";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_SECURITY:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_SECURITY";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_NOT_FOUND:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_NOT_FOUND";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_REQUEST:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_REQUEST";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_USER_CANCELLED:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_USER_CANCELLED";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_NAV_ERR_OTHER:
|
||||||
|
errorCategory = "wxWEB_NAV_ERR_OTHER";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxLogMessage("Error; url='" + evt.GetURL() + "', error='" + errorCategory + "' (" + evt.GetString() + ")");
|
||||||
|
|
||||||
|
//Show the info bar with an error
|
||||||
|
m_info->ShowMessage(_("An error occurred loading ") + evt.GetURL() + "\n" +
|
||||||
|
"'" + errorCategory + "' (" + evt.GetString() + ")", wxICON_ERROR);
|
||||||
|
|
||||||
|
UpdateState();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Invoked when user selects "Print" from the menu
|
||||||
|
*/
|
||||||
|
void WebFrame::OnPrint(wxCommandEvent& WXUNUSED(evt))
|
||||||
|
{
|
||||||
|
m_browser->Print();
|
||||||
|
}
|
||||||
|
|
||||||
|
SourceViewDialog::SourceViewDialog(wxWindow* parent, wxString source) :
|
||||||
|
wxDialog(parent, wxID_ANY, "Source Code",
|
||||||
|
wxDefaultPosition, wxSize(700,500),
|
||||||
|
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER)
|
||||||
|
{
|
||||||
|
wxStyledTextCtrl* text = new wxStyledTextCtrl(this, wxID_ANY);
|
||||||
|
text->SetMarginWidth(1, 30);
|
||||||
|
text->SetMarginType(1, wxSTC_MARGIN_NUMBER);
|
||||||
|
text->SetText(source);
|
||||||
|
|
||||||
|
text->StyleClearAll();
|
||||||
|
text->SetLexer(wxSTC_LEX_HTML);
|
||||||
|
text->StyleSetForeground(wxSTC_H_DOUBLESTRING, wxColour(255,0,0));
|
||||||
|
text->StyleSetForeground(wxSTC_H_SINGLESTRING, wxColour(255,0,0));
|
||||||
|
text->StyleSetForeground(wxSTC_H_ENTITY, wxColour(255,0,0));
|
||||||
|
text->StyleSetForeground(wxSTC_H_TAG, wxColour(0,150,0));
|
||||||
|
text->StyleSetForeground(wxSTC_H_TAGUNKNOWN, wxColour(0,150,0));
|
||||||
|
text->StyleSetForeground(wxSTC_H_ATTRIBUTE, wxColour(0,0,150));
|
||||||
|
text->StyleSetForeground(wxSTC_H_ATTRIBUTEUNKNOWN, wxColour(0,0,150));
|
||||||
|
text->StyleSetForeground(wxSTC_H_COMMENT, wxColour(150,150,150));
|
||||||
|
|
||||||
|
wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
sizer->Add(text, 1, wxEXPAND);
|
||||||
|
SetSizer(sizer);
|
||||||
|
}
|
264
samples/webview/webview.dsp
Normal file
264
samples/webview/webview.dsp
Normal file
@@ -0,0 +1,264 @@
|
|||||||
|
# Microsoft Developer Studio Project File - Name="webview" - Package Owner=<4>
|
||||||
|
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||||
|
# ** DO NOT EDIT **
|
||||||
|
|
||||||
|
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||||
|
|
||||||
|
CFG=webview - Win32 Debug
|
||||||
|
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||||
|
!MESSAGE use the Export Makefile command and run
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "webview.mak".
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE You can specify a configuration when running NMAKE
|
||||||
|
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE NMAKE /f "webview.mak" CFG="webview - Win32 Debug"
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE Possible choices for configuration are:
|
||||||
|
!MESSAGE
|
||||||
|
!MESSAGE "webview - Win32 DLL Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 DLL Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 DLL Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 DLL Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 Universal Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 Universal Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 Release" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE "webview - Win32 Debug" (based on "Win32 (x86) Application")
|
||||||
|
!MESSAGE
|
||||||
|
|
||||||
|
# Begin Project
|
||||||
|
# PROP AllowPerConfigDependencies 0
|
||||||
|
# PROP Scc_ProjName ""
|
||||||
|
# PROP Scc_LocalPath ""
|
||||||
|
CPP=cl.exe
|
||||||
|
MTL=midl.exe
|
||||||
|
RSC=rc.exe
|
||||||
|
|
||||||
|
!IF "$(CFG)" == "webview - Win32 DLL Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivudll\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivudll\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Zi /Fdvc_mswunivudll\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Zi /Fdvc_mswunivudll\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivudll\webview.exe" /debug /pdb:"vc_mswunivudll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivudll\webview.exe" /debug /pdb:"vc_mswunivudll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 DLL Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivuddll\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivuddll\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Fdvc_mswunivuddll\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Fdvc_mswunivuddll\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_dll\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswunivud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivuddll\webview.exe" /debug /pdb:"vc_mswunivuddll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivuddll\webview.exe" /debug /pdb:"vc_mswunivuddll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 DLL Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswudll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswudll\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswudll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswudll\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Zi /Fdvc_mswudll\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Zi /Fdvc_mswudll\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_dll\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswu" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswudll\webview.exe" /debug /pdb:"vc_mswudll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswudll\webview.exe" /debug /pdb:"vc_mswudll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 DLL Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswuddll"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswuddll\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswuddll"
|
||||||
|
# PROP Intermediate_Dir "vc_mswuddll\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Fdvc_mswuddll\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Fdvc_mswuddll\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_dll\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "WXUSINGDLL" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_dll\mswud" /i ".\..\..\include" /i "." /d "WXUSINGDLL" /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswuddll\webview.exe" /debug /pdb:"vc_mswuddll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswuddll\webview.exe" /debug /pdb:"vc_mswuddll\webview.pdb" /libpath:".\..\..\lib\vc_dll" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 Universal Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivu\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivu\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Zi /Fdvc_mswunivu\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Zi /Fdvc_mswunivu\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivu\webview.exe" /debug /pdb:"vc_mswunivu\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivu\webview.exe" /debug /pdb:"vc_mswunivu\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 Universal Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswunivud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswunivud\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswunivud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswunivud\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Fdvc_mswunivud\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Fdvc_mswunivud\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_lib\mswunivud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "__WXUNIVERSAL__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "__WXUNIVERSAL__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswunivud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivud\webview.exe" /debug /pdb:"vc_mswunivud\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswunivud\webview.exe" /debug /pdb:"vc_mswunivud\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 Release"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswu"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswu\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswu"
|
||||||
|
# PROP Intermediate_Dir "vc_mswu\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MD /Zi /Fdvc_mswu\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MD /Zi /Fdvc_mswu\webview.pdb /opt:ref /opt:icf /O2 /GR /EHsc /I ".\..\..\lib\vc_lib\mswu" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "__WXMSW__" /D "NDEBUG" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "__WXMSW__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "__WXMSW__" /d "NDEBUG" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswu" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswu\webview.exe" /debug /pdb:"vc_mswu\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswu\webview.exe" /debug /pdb:"vc_mswu\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ELSEIF "$(CFG)" == "webview - Win32 Debug"
|
||||||
|
|
||||||
|
# PROP BASE Use_MFC 0
|
||||||
|
# PROP BASE Use_Debug_Libraries 1
|
||||||
|
# PROP BASE Output_Dir "vc_mswud"
|
||||||
|
# PROP BASE Intermediate_Dir "vc_mswud\webview"
|
||||||
|
# PROP BASE Target_Dir ""
|
||||||
|
# PROP Use_MFC 0
|
||||||
|
# PROP Use_Debug_Libraries 1
|
||||||
|
# PROP Output_Dir "vc_mswud"
|
||||||
|
# PROP Intermediate_Dir "vc_mswud\webview"
|
||||||
|
# PROP Target_Dir ""
|
||||||
|
# ADD BASE CPP /nologo /FD /MDd /Zi /Fdvc_mswud\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD CPP /nologo /FD /MDd /Zi /Fdvc_mswud\webview.pdb /Od /Gm /GR /EHsc /I ".\..\..\lib\vc_lib\mswud" /I ".\..\..\include" /W4 /I "." /I ".\..\..\samples" /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /c
|
||||||
|
# ADD BASE MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD MTL /nologo /D "WIN32" /D "_DEBUG" /D "__WXMSW__" /D "_UNICODE" /D "_WINDOWS" /D "NOPCH" /mktyplib203 /win32
|
||||||
|
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
# ADD RSC /l 0x409 /d "_DEBUG" /d "__WXMSW__" /d "_UNICODE" /i ".\..\..\lib\vc_lib\mswud" /i ".\..\..\include" /i "." /d "_WINDOWS" /i ".\..\..\samples" /d NOPCH
|
||||||
|
BSC32=bscmake.exe
|
||||||
|
# ADD BASE BSC32 /nologo
|
||||||
|
# ADD BSC32 /nologo
|
||||||
|
LINK32=link.exe
|
||||||
|
# ADD BASE LINK32 wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswud\webview.exe" /debug /pdb:"vc_mswud\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
# ADD LINK32 wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib /nologo /machine:i386 /out:"vc_mswud\webview.exe" /debug /pdb:"vc_mswud\webview.pdb" /libpath:".\..\..\lib\vc_lib" /subsystem:windows
|
||||||
|
|
||||||
|
!ENDIF
|
||||||
|
|
||||||
|
# Begin Target
|
||||||
|
|
||||||
|
# Name "webview - Win32 DLL Universal Release"
|
||||||
|
# Name "webview - Win32 DLL Universal Debug"
|
||||||
|
# Name "webview - Win32 DLL Release"
|
||||||
|
# Name "webview - Win32 DLL Debug"
|
||||||
|
# Name "webview - Win32 Universal Release"
|
||||||
|
# Name "webview - Win32 Universal Debug"
|
||||||
|
# Name "webview - Win32 Release"
|
||||||
|
# Name "webview - Win32 Debug"
|
||||||
|
# Begin Group "Source Files"
|
||||||
|
|
||||||
|
# PROP Default_Filter ""
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\..\sample.rc
|
||||||
|
# End Source File
|
||||||
|
# Begin Source File
|
||||||
|
|
||||||
|
SOURCE=.\webview.cpp
|
||||||
|
# End Source File
|
||||||
|
# End Group
|
||||||
|
# End Target
|
||||||
|
# End Project
|
||||||
|
|
561
samples/webview/webview_vc7.vcproj
Normal file
561
samples/webview/webview_vc7.vcproj
Normal file
@@ -0,0 +1,561 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This project was generated by
|
||||||
|
Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
Do not modify, all changes will be overwritten!
|
||||||
|
|
||||||
|
-->
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="7.10"
|
||||||
|
Name="webview"
|
||||||
|
ProjectGUID="{5AE6DA7C-2316-5AC1-824F-0093385C19A9}">
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"/>
|
||||||
|
</Platforms>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswud"
|
||||||
|
IntermediateDirectory="vc_mswud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="TRUE"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="vc_mswu"
|
||||||
|
IntermediateDirectory="vc_mswu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivud"
|
||||||
|
IntermediateDirectory="vc_mswunivud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="TRUE"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswunivud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswunivud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivu"
|
||||||
|
IntermediateDirectory="vc_mswunivu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswunivu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswunivu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswuddll"
|
||||||
|
IntermediateDirectory="vc_mswuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="TRUE"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Release|Win32"
|
||||||
|
OutputDirectory="vc_mswudll"
|
||||||
|
IntermediateDirectory="vc_mswudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivuddll"
|
||||||
|
IntermediateDirectory="vc_mswunivuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="TRUE"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="TRUE"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswunivuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswunivuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivudll"
|
||||||
|
IntermediateDirectory="vc_mswunivudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="FALSE"
|
||||||
|
CharacterSet="1">
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="TRUE"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="TRUE"
|
||||||
|
ObjectFile="vc_mswunivudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
Detect64BitPortabilityProblems="TRUE"
|
||||||
|
DebugInformationFormat="3"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="TRUE"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateDebugInformation="TRUE"
|
||||||
|
ProgramDatabaseFile="vc_mswunivudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedWrapperGeneratorTool"/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
|
||||||
|
<File
|
||||||
|
RelativePath=".\webview.cpp">
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}">
|
||||||
|
<File
|
||||||
|
RelativePath="..\sample.rc">
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
|
|
826
samples/webview/webview_vc8.vcproj
Normal file
826
samples/webview/webview_vc8.vcproj
Normal file
@@ -0,0 +1,826 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This project was generated by
|
||||||
|
Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
Do not modify, all changes will be overwritten!
|
||||||
|
|
||||||
|
-->
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="8.00"
|
||||||
|
Name="webview"
|
||||||
|
ProjectGUID="{8511275A-E88B-598A-B16B-091E4E6790C3}"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswud"
|
||||||
|
IntermediateDirectory="vc_mswud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswud\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="vc_mswu"
|
||||||
|
IntermediateDirectory="vc_mswu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswu\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivud"
|
||||||
|
IntermediateDirectory="vc_mswunivud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivud\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivu"
|
||||||
|
IntermediateDirectory="vc_mswunivu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivu\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswuddll"
|
||||||
|
IntermediateDirectory="vc_mswuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswuddll\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Release|Win32"
|
||||||
|
OutputDirectory="vc_mswudll"
|
||||||
|
IntermediateDirectory="vc_mswudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswudll\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivuddll"
|
||||||
|
IntermediateDirectory="vc_mswunivuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivuddll\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivudll"
|
||||||
|
IntermediateDirectory="vc_mswunivudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivudll\webview_vc8.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\webview.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\sample.rc"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
|
|
798
samples/webview/webview_vc9.vcproj
Normal file
798
samples/webview/webview_vc9.vcproj
Normal file
@@ -0,0 +1,798 @@
|
|||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
This project was generated by
|
||||||
|
Bakefile 0.2.9 (http://www.bakefile.org)
|
||||||
|
Do not modify, all changes will be overwritten!
|
||||||
|
|
||||||
|
-->
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="9.00"
|
||||||
|
Name="webview"
|
||||||
|
ProjectGUID="{47EFE0E4-1BE1-5DA7-8D91-072E5F2808B6}"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswud"
|
||||||
|
IntermediateDirectory="vc_mswud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswud\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Release|Win32"
|
||||||
|
OutputDirectory="vc_mswu"
|
||||||
|
IntermediateDirectory="vc_mswu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswu\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivud"
|
||||||
|
IntermediateDirectory="vc_mswunivud\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivud\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivud\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivud\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivud\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivud\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivu"
|
||||||
|
IntermediateDirectory="vc_mswunivu\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivu\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivu\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_lib\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivu\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_lib"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivu\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivu\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswuddll"
|
||||||
|
IntermediateDirectory="vc_mswuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29ud_webview.lib wxmsw29ud_stc.lib wxmsw29ud_adv.lib wxmsw29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswuddll\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Release|Win32"
|
||||||
|
OutputDirectory="vc_mswudll"
|
||||||
|
IntermediateDirectory="vc_mswudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmsw29u_webview.lib wxmsw29u_stc.lib wxmsw29u_adv.lib wxmsw29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswudll\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Debug|Win32"
|
||||||
|
OutputDirectory="vc_mswunivuddll"
|
||||||
|
IntermediateDirectory="vc_mswunivuddll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
BufferSecurityCheck="true"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivuddll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivuddll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="_DEBUG;__WXMSW__;__WXUNIVERSAL__;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivud;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29ud_webview.lib wxmswuniv29ud_stc.lib wxmswuniv29ud_adv.lib wxmswuniv29ud_core.lib wxbase29ud.lib wxscintillad.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivuddll\webview.exe"
|
||||||
|
LinkIncremental="2"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivuddll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivuddll\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="DLL Universal Release|Win32"
|
||||||
|
OutputDirectory="vc_mswunivudll"
|
||||||
|
IntermediateDirectory="vc_mswunivudll\webview"
|
||||||
|
ConfigurationType="1"
|
||||||
|
UseOfMFC="0"
|
||||||
|
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||||
|
CharacterSet="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/MP"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
PreprocessorDefinitions="WIN32;__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
ObjectFile="vc_mswunivudll\webview\"
|
||||||
|
ProgramDataBaseFileName="vc_mswunivudll\webview.pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
PreprocessorDefinitions="__WXMSW__;__WXUNIVERSAL__;NDEBUG;_UNICODE;WXUSINGDLL;_WINDOWS;NOPCH"
|
||||||
|
Culture="1033"
|
||||||
|
AdditionalIncludeDirectories=".\..\..\lib\vc_dll\mswunivu;.\..\..\include;.;.\..\..\samples"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalOptions=""
|
||||||
|
AdditionalDependencies="wxmswuniv29u_webview.lib wxmswuniv29u_stc.lib wxmswuniv29u_adv.lib wxmswuniv29u_core.lib wxbase29u.lib wxscintilla.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib wininet.lib"
|
||||||
|
OutputFile="vc_mswunivudll\webview.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
AdditionalLibraryDirectories=".\..\..\lib\vc_dll"
|
||||||
|
GenerateManifest="true"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
ProgramDatabaseFile="vc_mswunivudll\webview.pdb"
|
||||||
|
SubSystem="2"
|
||||||
|
TargetMachine="1"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
OutputFile="vc_mswunivudll\webview_vc9.bsc"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||||
|
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath=".\webview.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="Resource Files"
|
||||||
|
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
|
||||||
|
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\sample.rc"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
|
|
84
samples/webview/wxlogo.xpm
Normal file
84
samples/webview/wxlogo.xpm
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/* XPM */
|
||||||
|
static const char * wxlogo_xpm[] = {
|
||||||
|
"24 24 57 1",
|
||||||
|
" c None",
|
||||||
|
". c #000006",
|
||||||
|
"+ c #00003F",
|
||||||
|
"@ c #00003C",
|
||||||
|
"# c #000034",
|
||||||
|
"$ c #000000",
|
||||||
|
"% c #00000E",
|
||||||
|
"& c #000085",
|
||||||
|
"* c #000079",
|
||||||
|
"= c #000081",
|
||||||
|
"- c #000070",
|
||||||
|
"; c #00000D",
|
||||||
|
"> c #8686CB",
|
||||||
|
", c #FFFFFF",
|
||||||
|
"' c #000078",
|
||||||
|
") c #000080",
|
||||||
|
"! c #00006F",
|
||||||
|
"~ c #7F7FC7",
|
||||||
|
"{ c #00007F",
|
||||||
|
"] c #000083",
|
||||||
|
"^ c #000088",
|
||||||
|
"/ c #000076",
|
||||||
|
"( c #000047",
|
||||||
|
"_ c #000040",
|
||||||
|
": c #EDED00",
|
||||||
|
"< c #FFFF00",
|
||||||
|
"[ c #202000",
|
||||||
|
"} c #0E0000",
|
||||||
|
"| c #7F0000",
|
||||||
|
"1 c #770000",
|
||||||
|
"2 c #7E0000",
|
||||||
|
"3 c #E0E000",
|
||||||
|
"4 c #FFFF88",
|
||||||
|
"5 c #FFFF3F",
|
||||||
|
"6 c #1E1E00",
|
||||||
|
"7 c #1F0000",
|
||||||
|
"8 c #FF0000",
|
||||||
|
"9 c #FFFF80",
|
||||||
|
"0 c #1E0000",
|
||||||
|
"a c #FF8686",
|
||||||
|
"b c #00000F",
|
||||||
|
"c c #000082",
|
||||||
|
"d c #FFFF7F",
|
||||||
|
"e c #FF7F7F",
|
||||||
|
"f c #000007",
|
||||||
|
"g c #000044",
|
||||||
|
"h c #00003E",
|
||||||
|
"i c #00001F",
|
||||||
|
"j c #DE0000",
|
||||||
|
"k c #E00000",
|
||||||
|
"l c #C30000",
|
||||||
|
"m c #DEDE00",
|
||||||
|
"n c #DD0000",
|
||||||
|
"o c #DDDD00",
|
||||||
|
"p c #EAEA00",
|
||||||
|
"q c #780000",
|
||||||
|
"r c #680000",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" .+@@@@@@@#$ ",
|
||||||
|
" %&*======-$ ",
|
||||||
|
" ;>,')))))!$ ",
|
||||||
|
" ;~,')){]^/ ",
|
||||||
|
" ;~,'))=(%;$$$$$$$$",
|
||||||
|
" ;~,'))=_:<<<<<<<<[",
|
||||||
|
"}|1112;~,'))=_345<<<<<<6",
|
||||||
|
"788888;>,'))=_3,9<<<<<<6",
|
||||||
|
"0a,888b&*===c_3,d<<<<<<6",
|
||||||
|
"0e,888fg__h@@i3,d<<<<<<6",
|
||||||
|
"0e,888jkkl$ $m,d<<<<<<6",
|
||||||
|
"0e,888888n$ $o,9<<<<<<6",
|
||||||
|
"0e,888888n$ $o45<<<<<<6",
|
||||||
|
"0a,888888n$ $p<<<<<<<<[",
|
||||||
|
"788888888k$ $$$$$$$$$$",
|
||||||
|
"}|qqqqqqqr$ ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "};
|
@@ -328,6 +328,12 @@
|
|||||||
|
|
||||||
#define wxUSE_STC 0
|
#define wxUSE_STC 0
|
||||||
|
|
||||||
|
#define wxUSE_WEBVIEW 0
|
||||||
|
|
||||||
|
#define wxUSE_WEBVIEW_WEBKIT 0
|
||||||
|
|
||||||
|
#define wxUSE_WEBVIEW_IE 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
115
src/common/webview.cpp
Normal file
115
src/common/webview.cpp
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webview.cpp
|
||||||
|
// Purpose: Common interface and events for web view component
|
||||||
|
// Author: Marianne Gagnon
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/webview.h"
|
||||||
|
|
||||||
|
#include "wx/osx/webview_webkit.h"
|
||||||
|
#include "wx/gtk/webview_webkit.h"
|
||||||
|
#include "wx/msw/webview_ie.h"
|
||||||
|
|
||||||
|
// DLL options compatibility check:
|
||||||
|
#include "wx/app.h"
|
||||||
|
WX_CHECK_BUILD_OPTIONS("wxWEBVIEW")
|
||||||
|
|
||||||
|
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewNameStr[] = "wxWebView";
|
||||||
|
extern WXDLLIMPEXP_DATA_WEBVIEW(const char) wxWebViewDefaultURLStr[] = "about:blank";
|
||||||
|
|
||||||
|
wxIMPLEMENT_ABSTRACT_CLASS(wxWebView, wxControl);
|
||||||
|
wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewEvent, wxCommandEvent);
|
||||||
|
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebViewEvent );
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebViewEvent );
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebViewEvent );
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebViewEvent );
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebViewEvent );
|
||||||
|
wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebViewEvent );
|
||||||
|
|
||||||
|
// static
|
||||||
|
wxWebView* wxWebView::New(wxWebViewBackend backend)
|
||||||
|
{
|
||||||
|
switch (backend)
|
||||||
|
{
|
||||||
|
#if defined(wxUSE_WEBVIEW_WEBKIT) && \
|
||||||
|
(defined(__WXGTK__) || defined(__WXOSX__))
|
||||||
|
case wxWEB_VIEW_BACKEND_WEBKIT:
|
||||||
|
return new wxWebViewWebKit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE
|
||||||
|
case wxWEB_VIEW_BACKEND_IE:
|
||||||
|
return new wxWebViewIE();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case wxWEB_VIEW_BACKEND_DEFAULT:
|
||||||
|
|
||||||
|
#if defined(wxUSE_WEBVIEW_WEBKIT) && \
|
||||||
|
(defined(__WXGTK__) || defined(__WXOSX__))
|
||||||
|
return new wxWebViewWebKit();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE
|
||||||
|
return new wxWebViewIE();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// fall-through intended
|
||||||
|
default:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// static
|
||||||
|
wxWebView* wxWebView::New(wxWindow* parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString& url,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
wxWebViewBackend backend,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
switch (backend)
|
||||||
|
{
|
||||||
|
#if defined(wxUSE_WEBVIEW_WEBKIT) && \
|
||||||
|
(defined(__WXGTK__) || defined(__WXOSX__))
|
||||||
|
case wxWEB_VIEW_BACKEND_WEBKIT:
|
||||||
|
return new wxWebViewWebKit(parent, id, url, pos, size, style, name);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE
|
||||||
|
case wxWEB_VIEW_BACKEND_IE:
|
||||||
|
return new wxWebViewIE(parent, id, url, pos, size, style, name);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case wxWEB_VIEW_BACKEND_DEFAULT:
|
||||||
|
|
||||||
|
#if defined(wxUSE_WEBVIEW_WEBKIT) && \
|
||||||
|
(defined(__WXGTK__) || defined(__WXOSX__))
|
||||||
|
return new wxWebViewWebKit(parent, id, url, pos, size, style, name);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_IE
|
||||||
|
return new wxWebViewIE(parent, id, url, pos, size, style, name);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// fall-through intended
|
||||||
|
default:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW
|
113
src/common/webviewarchivehandler.cpp
Normal file
113
src/common/webviewarchivehandler.cpp
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: webviewfilehandler.cpp
|
||||||
|
// Purpose: Custom webview handler to allow archive browsing
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "wx/webviewarchivehandler.h"
|
||||||
|
#include "wx/filesys.h"
|
||||||
|
|
||||||
|
//Taken from wx/filesys.cpp
|
||||||
|
static wxString EscapeFileNameCharsInURL(const char *in)
|
||||||
|
{
|
||||||
|
wxString s;
|
||||||
|
|
||||||
|
for ( const unsigned char *p = (const unsigned char*)in; *p; ++p )
|
||||||
|
{
|
||||||
|
const unsigned char c = *p;
|
||||||
|
|
||||||
|
if ( c == '/' || c == '-' || c == '.' || c == '_' || c == '~' ||
|
||||||
|
(c >= '0' && c <= '9') ||
|
||||||
|
(c >= 'a' && c <= 'z') ||
|
||||||
|
(c >= 'A' && c <= 'Z') )
|
||||||
|
{
|
||||||
|
s << c;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
s << wxString::Format("%%%02x", c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxWebViewArchiveHandler::wxWebViewArchiveHandler(const wxString& scheme) :
|
||||||
|
wxWebViewHandler(scheme)
|
||||||
|
{
|
||||||
|
m_fileSystem = new wxFileSystem();
|
||||||
|
}
|
||||||
|
|
||||||
|
wxFSFile* wxWebViewArchiveHandler::GetFile(const wxString &uri)
|
||||||
|
{
|
||||||
|
//If there is a fragment at the end of the path then we need to strip it
|
||||||
|
//off as not all backends do this for us
|
||||||
|
wxString path = uri;
|
||||||
|
size_t hashloc = uri.find('#');
|
||||||
|
if(hashloc != wxString::npos)
|
||||||
|
{
|
||||||
|
path = uri.substr(0, hashloc);
|
||||||
|
}
|
||||||
|
|
||||||
|
//We iterate through the string to see if there is a protocol description
|
||||||
|
size_t start = wxString::npos;
|
||||||
|
for(size_t i = 0; i < path.length(); i++)
|
||||||
|
{
|
||||||
|
if(path[i] == ';' && path.substr(i, 10) == ";protocol=")
|
||||||
|
{
|
||||||
|
start = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//We do not have a protocol string so we just pass the path withouth the
|
||||||
|
if(start == wxString::npos)
|
||||||
|
{
|
||||||
|
size_t doubleslash = path.find("//");
|
||||||
|
//The path is incorrectly formed without // after the scheme
|
||||||
|
if(doubleslash == wxString::npos)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
wxString fspath = "file:" +
|
||||||
|
EscapeFileNameCharsInURL(path.substr(doubleslash + 2));
|
||||||
|
return m_fileSystem->OpenFile(fspath);
|
||||||
|
}
|
||||||
|
//Otherwise we need to extract the protocol
|
||||||
|
else
|
||||||
|
{
|
||||||
|
size_t end = path.find('/', start);
|
||||||
|
//For the path to be valid there must to a path after the protocol
|
||||||
|
if(end == wxString::npos)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
wxString mainpath = path.substr(0, start);
|
||||||
|
wxString archivepath = path.substr(end);
|
||||||
|
wxString protstring = path.substr(start, end - start);
|
||||||
|
wxString protocol = protstring.substr(10);
|
||||||
|
//We can now construct the correct path
|
||||||
|
size_t doubleslash = path.find("//");
|
||||||
|
//The path is incorrectly formed without // after the first protocol
|
||||||
|
if(doubleslash == wxString::npos)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
wxString fspath = "file:" +
|
||||||
|
EscapeFileNameCharsInURL(mainpath.substr(doubleslash + 2))
|
||||||
|
+ "#" + protocol +":" + archivepath;
|
||||||
|
return m_fileSystem->OpenFile(fspath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_WEBVIEW
|
933
src/gtk/webview_webkit.cpp
Normal file
933
src/gtk/webview_webkit.cpp
Normal file
@@ -0,0 +1,933 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: src/gtk/webview_webkit.cpp
|
||||||
|
// Purpose: GTK WebKit backend for web view component
|
||||||
|
// Author: Marianne Gagnon, Robert Roebling
|
||||||
|
// Id: $Id$
|
||||||
|
// Copyright: (c) 2010 Marianne Gagnon, 1998 Robert Roebling
|
||||||
|
// Licence: wxWindows licence
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW_WEBKIT
|
||||||
|
|
||||||
|
#include "wx/stockitem.h"
|
||||||
|
#include "wx/gtk/webview_webkit.h"
|
||||||
|
#include "wx/gtk/control.h"
|
||||||
|
#include "wx/gtk/private.h"
|
||||||
|
#include "wx/filesys.h"
|
||||||
|
#include "wx/base64.h"
|
||||||
|
#include "webkit/webkit.h"
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// GTK callbacks
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
extern "C"
|
||||||
|
{
|
||||||
|
|
||||||
|
static void
|
||||||
|
wxgtk_webview_webkit_load_status(GtkWidget* widget,
|
||||||
|
GParamSpec*,
|
||||||
|
wxWebViewWebKit *webKitCtrl)
|
||||||
|
{
|
||||||
|
if (!webKitCtrl->m_ready) return;
|
||||||
|
|
||||||
|
wxString url = webKitCtrl->GetCurrentURL();
|
||||||
|
|
||||||
|
WebKitLoadStatus status;
|
||||||
|
g_object_get(G_OBJECT(widget), "load-status", &status, NULL);
|
||||||
|
|
||||||
|
wxString target; // TODO: get target (if possible)
|
||||||
|
|
||||||
|
if (status == WEBKIT_LOAD_FINISHED)
|
||||||
|
{
|
||||||
|
WebKitWebBackForwardList* hist = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(widget));
|
||||||
|
WebKitWebHistoryItem* item = webkit_web_back_forward_list_get_current_item(hist);
|
||||||
|
//We have to check if we are actually storing history
|
||||||
|
//If the item isn't added we add it ourselves, it isn't added otherwise
|
||||||
|
//with a custom scheme.
|
||||||
|
if(WEBKIT_IS_WEB_HISTORY_ITEM(item) && webkit_web_history_item_get_uri(item) != url)
|
||||||
|
{
|
||||||
|
WebKitWebHistoryItem* newitem = webkit_web_history_item_new_with_data(url, webKitCtrl->GetCurrentTitle());
|
||||||
|
webkit_web_back_forward_list_add_item(hist, newitem);
|
||||||
|
}
|
||||||
|
|
||||||
|
webKitCtrl->m_busy = false;
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_LOADED,
|
||||||
|
webKitCtrl->GetId(),
|
||||||
|
url, target);
|
||||||
|
|
||||||
|
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||||
|
webKitCtrl->GetEventHandler()->ProcessEvent(event);
|
||||||
|
}
|
||||||
|
else if (status == WEBKIT_LOAD_COMMITTED)
|
||||||
|
{
|
||||||
|
webKitCtrl->m_busy = true;
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
|
||||||
|
webKitCtrl->GetId(),
|
||||||
|
url, target);
|
||||||
|
|
||||||
|
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||||
|
webKitCtrl->GetEventHandler()->ProcessEvent(event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
wxgtk_webview_webkit_navigation(WebKitWebView *,
|
||||||
|
WebKitWebFrame *frame,
|
||||||
|
WebKitNetworkRequest *request,
|
||||||
|
WebKitWebNavigationAction *,
|
||||||
|
WebKitWebPolicyDecision *policy_decision,
|
||||||
|
wxWebViewWebKit *webKitCtrl)
|
||||||
|
{
|
||||||
|
if(webKitCtrl->m_guard)
|
||||||
|
{
|
||||||
|
webKitCtrl->m_guard = false;
|
||||||
|
//We set this to make sure that we don't try to load the page again from
|
||||||
|
//the resource request callback
|
||||||
|
webKitCtrl->m_vfsurl = webkit_network_request_get_uri(request);
|
||||||
|
webkit_web_policy_decision_use(policy_decision);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
webKitCtrl->m_busy = true;
|
||||||
|
|
||||||
|
const gchar* uri = webkit_network_request_get_uri(request);
|
||||||
|
|
||||||
|
wxString target = webkit_web_frame_get_name (frame);
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
|
||||||
|
webKitCtrl->GetId(),
|
||||||
|
wxString( uri, wxConvUTF8 ),
|
||||||
|
target);
|
||||||
|
|
||||||
|
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||||
|
webKitCtrl->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
|
if (!event.IsAllowed())
|
||||||
|
{
|
||||||
|
webKitCtrl->m_busy = false;
|
||||||
|
webkit_web_policy_decision_ignore(policy_decision);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wxString wxuri = uri;
|
||||||
|
wxSharedPtr<wxWebViewHandler> handler;
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHandler> > hanlders = webKitCtrl->GetHandlers();
|
||||||
|
//We are not vetoed so see if we match one of the additional handlers
|
||||||
|
for(wxVector<wxSharedPtr<wxWebViewHandler> >::iterator it = hanlders.begin();
|
||||||
|
it != hanlders.end(); ++it)
|
||||||
|
{
|
||||||
|
if(wxuri.substr(0, (*it)->GetName().length()) == (*it)->GetName())
|
||||||
|
{
|
||||||
|
handler = (*it);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//If we found a handler we can then use it to load the file directly
|
||||||
|
//ourselves
|
||||||
|
if(handler)
|
||||||
|
{
|
||||||
|
webKitCtrl->m_guard = true;
|
||||||
|
wxFSFile* file = handler->GetFile(wxuri);
|
||||||
|
if(file)
|
||||||
|
{
|
||||||
|
webKitCtrl->SetPage(*file->GetStream(), wxuri);
|
||||||
|
}
|
||||||
|
//We need to throw some sort of error here if file is NULL
|
||||||
|
webkit_web_policy_decision_ignore(policy_decision);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
wxgtk_webview_webkit_error(WebKitWebView*,
|
||||||
|
WebKitWebFrame*,
|
||||||
|
gchar *uri,
|
||||||
|
gpointer web_error,
|
||||||
|
wxWebViewWebKit* webKitWindow)
|
||||||
|
{
|
||||||
|
webKitWindow->m_busy = false;
|
||||||
|
wxWebViewNavigationError type = wxWEB_NAV_ERR_OTHER;
|
||||||
|
|
||||||
|
GError* error = (GError*)web_error;
|
||||||
|
wxString description(error->message, wxConvUTF8);
|
||||||
|
|
||||||
|
if (strcmp(g_quark_to_string(error->domain), "soup_http_error_quark") == 0)
|
||||||
|
{
|
||||||
|
switch (error->code)
|
||||||
|
{
|
||||||
|
case SOUP_STATUS_CANCELLED:
|
||||||
|
type = wxWEB_NAV_ERR_USER_CANCELLED;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_CANT_RESOLVE:
|
||||||
|
case SOUP_STATUS_NOT_FOUND:
|
||||||
|
type = wxWEB_NAV_ERR_NOT_FOUND;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_CANT_RESOLVE_PROXY:
|
||||||
|
case SOUP_STATUS_CANT_CONNECT:
|
||||||
|
case SOUP_STATUS_CANT_CONNECT_PROXY:
|
||||||
|
case SOUP_STATUS_SSL_FAILED:
|
||||||
|
case SOUP_STATUS_IO_ERROR:
|
||||||
|
type = wxWEB_NAV_ERR_CONNECTION;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_MALFORMED:
|
||||||
|
//case SOUP_STATUS_TOO_MANY_REDIRECTS:
|
||||||
|
type = wxWEB_NAV_ERR_REQUEST;
|
||||||
|
break;
|
||||||
|
|
||||||
|
//case SOUP_STATUS_NO_CONTENT:
|
||||||
|
//case SOUP_STATUS_RESET_CONTENT:
|
||||||
|
|
||||||
|
case SOUP_STATUS_BAD_REQUEST:
|
||||||
|
type = wxWEB_NAV_ERR_REQUEST;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_UNAUTHORIZED:
|
||||||
|
case SOUP_STATUS_FORBIDDEN:
|
||||||
|
type = wxWEB_NAV_ERR_AUTH;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_METHOD_NOT_ALLOWED:
|
||||||
|
case SOUP_STATUS_NOT_ACCEPTABLE:
|
||||||
|
type = wxWEB_NAV_ERR_SECURITY;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_PROXY_AUTHENTICATION_REQUIRED:
|
||||||
|
type = wxWEB_NAV_ERR_AUTH;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_REQUEST_TIMEOUT:
|
||||||
|
type = wxWEB_NAV_ERR_CONNECTION;
|
||||||
|
break;
|
||||||
|
|
||||||
|
//case SOUP_STATUS_PAYMENT_REQUIRED:
|
||||||
|
case SOUP_STATUS_REQUEST_ENTITY_TOO_LARGE:
|
||||||
|
case SOUP_STATUS_REQUEST_URI_TOO_LONG:
|
||||||
|
case SOUP_STATUS_UNSUPPORTED_MEDIA_TYPE:
|
||||||
|
type = wxWEB_NAV_ERR_REQUEST;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_BAD_GATEWAY:
|
||||||
|
case SOUP_STATUS_SERVICE_UNAVAILABLE:
|
||||||
|
case SOUP_STATUS_GATEWAY_TIMEOUT:
|
||||||
|
type = wxWEB_NAV_ERR_CONNECTION;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED:
|
||||||
|
type = wxWEB_NAV_ERR_REQUEST;
|
||||||
|
break;
|
||||||
|
//case SOUP_STATUS_INSUFFICIENT_STORAGE:
|
||||||
|
//case SOUP_STATUS_NOT_EXTENDED:
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (strcmp(g_quark_to_string(error->domain),
|
||||||
|
"webkit-network-error-quark") == 0)
|
||||||
|
{
|
||||||
|
switch (error->code)
|
||||||
|
{
|
||||||
|
//WEBKIT_NETWORK_ERROR_FAILED:
|
||||||
|
//WEBKIT_NETWORK_ERROR_TRANSPORT:
|
||||||
|
|
||||||
|
case WEBKIT_NETWORK_ERROR_UNKNOWN_PROTOCOL:
|
||||||
|
type = wxWEB_NAV_ERR_REQUEST;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WEBKIT_NETWORK_ERROR_CANCELLED:
|
||||||
|
type = wxWEB_NAV_ERR_USER_CANCELLED;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST:
|
||||||
|
type = wxWEB_NAV_ERR_NOT_FOUND;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (strcmp(g_quark_to_string(error->domain),
|
||||||
|
"webkit-policy-error-quark") == 0)
|
||||||
|
{
|
||||||
|
switch (error->code)
|
||||||
|
{
|
||||||
|
//case WEBKIT_POLICY_ERROR_FAILED:
|
||||||
|
//case WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE:
|
||||||
|
//case WEBKIT_POLICY_ERROR_CANNOT_SHOW_URL:
|
||||||
|
//case WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE:
|
||||||
|
case WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT:
|
||||||
|
type = wxWEB_NAV_ERR_SECURITY;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
webkit_plugin_error_quark
|
||||||
|
else
|
||||||
|
{
|
||||||
|
printf("Error domain %s\n", g_quark_to_string(error->domain));
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_ERROR,
|
||||||
|
webKitWindow->GetId(),
|
||||||
|
uri, "");
|
||||||
|
event.SetString(description);
|
||||||
|
event.SetInt(type);
|
||||||
|
|
||||||
|
if (webKitWindow && webKitWindow->GetEventHandler())
|
||||||
|
{
|
||||||
|
webKitWindow->GetEventHandler()->ProcessEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
wxgtk_webview_webkit_new_window(WebKitWebView*,
|
||||||
|
WebKitWebFrame *frame,
|
||||||
|
WebKitNetworkRequest *request,
|
||||||
|
WebKitWebNavigationAction*,
|
||||||
|
WebKitWebPolicyDecision *policy_decision,
|
||||||
|
wxWebViewWebKit *webKitCtrl)
|
||||||
|
{
|
||||||
|
const gchar* uri = webkit_network_request_get_uri(request);
|
||||||
|
|
||||||
|
wxString target = webkit_web_frame_get_name (frame);
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
|
||||||
|
webKitCtrl->GetId(),
|
||||||
|
wxString( uri, wxConvUTF8 ),
|
||||||
|
target);
|
||||||
|
|
||||||
|
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||||
|
webKitCtrl->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
|
//We always want the user to handle this themselves
|
||||||
|
webkit_web_policy_decision_ignore(policy_decision);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
wxgtk_webview_webkit_title_changed(WebKitWebView*,
|
||||||
|
WebKitWebFrame*,
|
||||||
|
gchar *title,
|
||||||
|
wxWebViewWebKit *webKitCtrl)
|
||||||
|
{
|
||||||
|
wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
|
||||||
|
webKitCtrl->GetId(),
|
||||||
|
webKitCtrl->GetCurrentURL(),
|
||||||
|
"");
|
||||||
|
event.SetString(wxString(title, wxConvUTF8));
|
||||||
|
|
||||||
|
if (webKitCtrl && webKitCtrl->GetEventHandler())
|
||||||
|
webKitCtrl->GetEventHandler()->ProcessEvent(event);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
wxgtk_webview_webkit_resource_req(WebKitWebView *,
|
||||||
|
WebKitWebFrame *,
|
||||||
|
WebKitWebResource *,
|
||||||
|
WebKitNetworkRequest *request,
|
||||||
|
WebKitNetworkResponse *,
|
||||||
|
wxWebViewWebKit *webKitCtrl)
|
||||||
|
{
|
||||||
|
wxString uri = webkit_network_request_get_uri(request);
|
||||||
|
|
||||||
|
wxSharedPtr<wxWebViewHandler> handler;
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHandler> > hanlders = webKitCtrl->GetHandlers();
|
||||||
|
|
||||||
|
//We are not vetoed so see if we match one of the additional handlers
|
||||||
|
for(wxVector<wxSharedPtr<wxWebViewHandler> >::iterator it = hanlders.begin();
|
||||||
|
it != hanlders.end(); ++it)
|
||||||
|
{
|
||||||
|
if(uri.substr(0, (*it)->GetName().length()) == (*it)->GetName())
|
||||||
|
{
|
||||||
|
handler = (*it);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//If we found a handler we can then use it to load the file directly
|
||||||
|
//ourselves
|
||||||
|
if(handler)
|
||||||
|
{
|
||||||
|
//If it is requsting the page itself then return as we have already
|
||||||
|
//loaded it from the archive
|
||||||
|
if(webKitCtrl->m_vfsurl == uri)
|
||||||
|
return;
|
||||||
|
|
||||||
|
wxFSFile* file = handler->GetFile(uri);
|
||||||
|
if(file)
|
||||||
|
{
|
||||||
|
//We load the data into a data url to save it being written out again
|
||||||
|
size_t size = file->GetStream()->GetLength();
|
||||||
|
char *buffer = new char[size];
|
||||||
|
file->GetStream()->Read(buffer, size);
|
||||||
|
wxString data = wxBase64Encode(buffer, size);
|
||||||
|
delete[] buffer;
|
||||||
|
wxString mime = file->GetMimeType();
|
||||||
|
wxString path = "data:" + mime + ";base64," + data;
|
||||||
|
//Then we can redirect the call
|
||||||
|
webkit_network_request_set_uri(request, path);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} // extern "C"
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// wxWebViewWebKit
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewWebKit, wxWebView);
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::Create(wxWindow *parent,
|
||||||
|
wxWindowID id,
|
||||||
|
const wxString &url,
|
||||||
|
const wxPoint& pos,
|
||||||
|
const wxSize& size,
|
||||||
|
long style,
|
||||||
|
const wxString& name)
|
||||||
|
{
|
||||||
|
m_ready = false;
|
||||||
|
m_busy = false;
|
||||||
|
m_guard = false;
|
||||||
|
|
||||||
|
if (!PreCreation( parent, pos, size ) ||
|
||||||
|
!CreateBase( parent, id, pos, size, style, wxDefaultValidator, name ))
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( wxT("wxWebViewWebKit creation failed") );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget *scrolled_window = gtk_scrolled_window_new (NULL, NULL);
|
||||||
|
web_view = webkit_web_view_new ();
|
||||||
|
g_object_ref(web_view); // TODO: check memory management
|
||||||
|
|
||||||
|
m_widget = scrolled_window;
|
||||||
|
g_object_ref(m_widget); // TODO: check memory management
|
||||||
|
|
||||||
|
/* Place the WebKitWebView in the GtkScrolledWindow */
|
||||||
|
gtk_container_add (GTK_CONTAINER (scrolled_window), web_view);
|
||||||
|
gtk_widget_show(m_widget);
|
||||||
|
gtk_widget_show(web_view);
|
||||||
|
|
||||||
|
g_signal_connect_after(web_view, "notify::load-status",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_load_status),
|
||||||
|
this);
|
||||||
|
g_signal_connect_after(web_view, "navigation-policy-decision-requested",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_navigation),
|
||||||
|
this);
|
||||||
|
g_signal_connect_after(web_view, "load-error",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_error),
|
||||||
|
this);
|
||||||
|
|
||||||
|
g_signal_connect_after(web_view, "new-window-policy-decision-requested",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_new_window), this);
|
||||||
|
|
||||||
|
g_signal_connect_after(web_view, "title-changed",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_title_changed), this);
|
||||||
|
|
||||||
|
g_signal_connect_after(web_view, "resource-request-starting",
|
||||||
|
G_CALLBACK(wxgtk_webview_webkit_resource_req), this);
|
||||||
|
|
||||||
|
m_parent->DoAddChild( this );
|
||||||
|
|
||||||
|
PostCreation(size);
|
||||||
|
|
||||||
|
/* Open a webpage */
|
||||||
|
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), url);
|
||||||
|
|
||||||
|
//Get the initial history limit so we can enable and disable it later
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
m_historyLimit = webkit_web_back_forward_list_get_limit(history);
|
||||||
|
|
||||||
|
m_ready = true;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::Enable( bool enable )
|
||||||
|
{
|
||||||
|
if (!wxControl::Enable(enable))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
|
||||||
|
|
||||||
|
//if (enable)
|
||||||
|
// GTKFixSensitivity();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
GdkWindow*
|
||||||
|
wxWebViewWebKit::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const
|
||||||
|
{
|
||||||
|
GdkWindow* window = gtk_widget_get_parent_window(m_widget);
|
||||||
|
return window;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::ZoomIn()
|
||||||
|
{
|
||||||
|
webkit_web_view_zoom_in (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::ZoomOut()
|
||||||
|
{
|
||||||
|
webkit_web_view_zoom_out (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SetWebkitZoom(float level)
|
||||||
|
{
|
||||||
|
webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW(web_view), level);
|
||||||
|
}
|
||||||
|
|
||||||
|
float wxWebViewWebKit::GetWebkitZoom() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_get_zoom_level (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Stop()
|
||||||
|
{
|
||||||
|
webkit_web_view_stop_loading (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Reload(wxWebViewReloadFlags flags)
|
||||||
|
{
|
||||||
|
if (flags & wxWEB_VIEW_RELOAD_NO_CACHE)
|
||||||
|
{
|
||||||
|
webkit_web_view_reload_bypass_cache (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
webkit_web_view_reload (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::LoadURL(const wxString& url)
|
||||||
|
{
|
||||||
|
webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), wxGTK_CONV(url));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxWebViewWebKit::GoBack()
|
||||||
|
{
|
||||||
|
webkit_web_view_go_back (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::GoForward()
|
||||||
|
{
|
||||||
|
webkit_web_view_go_forward (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanGoBack() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_go_back (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanGoForward() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_go_forward (WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::ClearHistory()
|
||||||
|
{
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
webkit_web_back_forward_list_clear(history);
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::EnableHistory(bool enable)
|
||||||
|
{
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
if(enable)
|
||||||
|
{
|
||||||
|
webkit_web_back_forward_list_set_limit(history, m_historyLimit);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
webkit_web_back_forward_list_set_limit(history, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > wxWebViewWebKit::GetBackwardHistory()
|
||||||
|
{
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > backhist;
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
GList* list = webkit_web_back_forward_list_get_back_list_with_limit(history,
|
||||||
|
m_historyLimit);
|
||||||
|
//We need to iterate in reverse to get the order we desire
|
||||||
|
for(int i = g_list_length(list) - 1; i >= 0 ; i--)
|
||||||
|
{
|
||||||
|
WebKitWebHistoryItem* gtkitem = (WebKitWebHistoryItem*)g_list_nth_data(list, i);
|
||||||
|
wxWebViewHistoryItem* wxitem = new wxWebViewHistoryItem(
|
||||||
|
webkit_web_history_item_get_uri(gtkitem),
|
||||||
|
webkit_web_history_item_get_title(gtkitem));
|
||||||
|
wxitem->m_histItem = gtkitem;
|
||||||
|
wxSharedPtr<wxWebViewHistoryItem> item(wxitem);
|
||||||
|
backhist.push_back(item);
|
||||||
|
}
|
||||||
|
return backhist;
|
||||||
|
}
|
||||||
|
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > wxWebViewWebKit::GetForwardHistory()
|
||||||
|
{
|
||||||
|
wxVector<wxSharedPtr<wxWebViewHistoryItem> > forwardhist;
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
GList* list = webkit_web_back_forward_list_get_forward_list_with_limit(history,
|
||||||
|
m_historyLimit);
|
||||||
|
for(guint i = 0; i < g_list_length(list); i++)
|
||||||
|
{
|
||||||
|
WebKitWebHistoryItem* gtkitem = (WebKitWebHistoryItem*)g_list_nth_data(list, i);
|
||||||
|
wxWebViewHistoryItem* wxitem = new wxWebViewHistoryItem(
|
||||||
|
webkit_web_history_item_get_uri(gtkitem),
|
||||||
|
webkit_web_history_item_get_title(gtkitem));
|
||||||
|
wxitem->m_histItem = gtkitem;
|
||||||
|
wxSharedPtr<wxWebViewHistoryItem> item(wxitem);
|
||||||
|
forwardhist.push_back(item);
|
||||||
|
}
|
||||||
|
return forwardhist;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item)
|
||||||
|
{
|
||||||
|
WebKitWebHistoryItem* gtkitem = item->m_histItem;
|
||||||
|
if(gtkitem)
|
||||||
|
{
|
||||||
|
WebKitWebBackForwardList* history;
|
||||||
|
history = webkit_web_view_get_back_forward_list(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
webkit_web_view_go_to_back_forward_item(WEBKIT_WEB_VIEW(web_view),
|
||||||
|
WEBKIT_WEB_HISTORY_ITEM(gtkitem));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanCut() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_cut_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanCopy() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_copy_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanPaste() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_paste_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Cut()
|
||||||
|
{
|
||||||
|
webkit_web_view_cut_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Copy()
|
||||||
|
{
|
||||||
|
webkit_web_view_copy_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Paste()
|
||||||
|
{
|
||||||
|
webkit_web_view_paste_clipboard(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanUndo() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_undo(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanRedo() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_can_redo(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Undo()
|
||||||
|
{
|
||||||
|
webkit_web_view_undo(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Redo()
|
||||||
|
{
|
||||||
|
webkit_web_view_redo(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetCurrentURL() const
|
||||||
|
{
|
||||||
|
// FIXME: check which encoding the web kit control uses instead of
|
||||||
|
// assuming UTF8 (here and elsewhere too)
|
||||||
|
return wxString::FromUTF8(webkit_web_view_get_uri(
|
||||||
|
WEBKIT_WEB_VIEW(web_view)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetCurrentTitle() const
|
||||||
|
{
|
||||||
|
return wxString::FromUTF8(webkit_web_view_get_title(
|
||||||
|
WEBKIT_WEB_VIEW(web_view)));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetPageSource() const
|
||||||
|
{
|
||||||
|
WebKitWebFrame* frame = webkit_web_view_get_main_frame(
|
||||||
|
WEBKIT_WEB_VIEW(web_view));
|
||||||
|
WebKitWebDataSource* src = webkit_web_frame_get_data_source (frame);
|
||||||
|
|
||||||
|
// TODO: check encoding with
|
||||||
|
// const gchar*
|
||||||
|
// webkit_web_data_source_get_encoding(WebKitWebDataSource *data_source);
|
||||||
|
return wxString(webkit_web_data_source_get_data (src)->str, wxConvUTF8);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxWebViewZoom wxWebViewWebKit::GetZoom() const
|
||||||
|
{
|
||||||
|
float zoom = GetWebkitZoom();
|
||||||
|
|
||||||
|
// arbitrary way to map float zoom to our common zoom enum
|
||||||
|
if (zoom <= 0.65)
|
||||||
|
{
|
||||||
|
return wxWEB_VIEW_ZOOM_TINY;
|
||||||
|
}
|
||||||
|
else if (zoom > 0.65 && zoom <= 0.90)
|
||||||
|
{
|
||||||
|
return wxWEB_VIEW_ZOOM_SMALL;
|
||||||
|
}
|
||||||
|
else if (zoom > 0.90 && zoom <= 1.15)
|
||||||
|
{
|
||||||
|
return wxWEB_VIEW_ZOOM_MEDIUM;
|
||||||
|
}
|
||||||
|
else if (zoom > 1.15 && zoom <= 1.45)
|
||||||
|
{
|
||||||
|
return wxWEB_VIEW_ZOOM_LARGE;
|
||||||
|
}
|
||||||
|
else if (zoom > 1.45)
|
||||||
|
{
|
||||||
|
return wxWEB_VIEW_ZOOM_LARGEST;
|
||||||
|
}
|
||||||
|
|
||||||
|
// to shut up compilers, this can never be reached logically
|
||||||
|
wxASSERT(false);
|
||||||
|
return wxWEB_VIEW_ZOOM_MEDIUM;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SetZoom(wxWebViewZoom zoom)
|
||||||
|
{
|
||||||
|
// arbitrary way to map our common zoom enum to float zoom
|
||||||
|
switch (zoom)
|
||||||
|
{
|
||||||
|
case wxWEB_VIEW_ZOOM_TINY:
|
||||||
|
SetWebkitZoom(0.6f);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_VIEW_ZOOM_SMALL:
|
||||||
|
SetWebkitZoom(0.8f);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_VIEW_ZOOM_MEDIUM:
|
||||||
|
SetWebkitZoom(1.0f);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_VIEW_ZOOM_LARGE:
|
||||||
|
SetWebkitZoom(1.3);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case wxWEB_VIEW_ZOOM_LARGEST:
|
||||||
|
SetWebkitZoom(1.6);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
wxASSERT(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SetZoomType(wxWebViewZoomType type)
|
||||||
|
{
|
||||||
|
webkit_web_view_set_full_content_zoom(WEBKIT_WEB_VIEW(web_view),
|
||||||
|
(type == wxWEB_VIEW_ZOOM_TYPE_LAYOUT ?
|
||||||
|
TRUE : FALSE));
|
||||||
|
}
|
||||||
|
|
||||||
|
wxWebViewZoomType wxWebViewWebKit::GetZoomType() const
|
||||||
|
{
|
||||||
|
gboolean fczoom = webkit_web_view_get_full_content_zoom(
|
||||||
|
WEBKIT_WEB_VIEW(web_view));
|
||||||
|
|
||||||
|
if (fczoom) return wxWEB_VIEW_ZOOM_TYPE_LAYOUT;
|
||||||
|
else return wxWEB_VIEW_ZOOM_TYPE_TEXT;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::CanSetZoomType(wxWebViewZoomType) const
|
||||||
|
{
|
||||||
|
// this port supports all zoom types
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SetPage(const wxString& html, const wxString& baseUri)
|
||||||
|
{
|
||||||
|
webkit_web_view_load_string (WEBKIT_WEB_VIEW(web_view),
|
||||||
|
html.mb_str(wxConvUTF8),
|
||||||
|
"text/html",
|
||||||
|
"UTF-8",
|
||||||
|
baseUri.mb_str(wxConvUTF8));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::Print()
|
||||||
|
{
|
||||||
|
WebKitWebFrame* frame = webkit_web_view_get_main_frame(
|
||||||
|
WEBKIT_WEB_VIEW(web_view));
|
||||||
|
webkit_web_frame_print (frame);
|
||||||
|
|
||||||
|
// GtkPrintOperationResult webkit_web_frame_print_full
|
||||||
|
// (WebKitWebFrame *frame,
|
||||||
|
// GtkPrintOperation *operation,
|
||||||
|
// GtkPrintOperationAction action,
|
||||||
|
// GError **error);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::IsBusy() const
|
||||||
|
{
|
||||||
|
return m_busy;
|
||||||
|
|
||||||
|
// This code looks nice but returns true after a page was cancelled
|
||||||
|
/*
|
||||||
|
WebKitLoadStatus status = webkit_web_view_get_load_status
|
||||||
|
(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
|
||||||
|
|
||||||
|
#if WEBKIT_CHECK_VERSION(1,1,16)
|
||||||
|
// WEBKIT_LOAD_FAILED is new in webkit 1.1.16
|
||||||
|
if (status == WEBKIT_LOAD_FAILED)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
if (status == WEBKIT_LOAD_FINISHED)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SetEditable(bool enable)
|
||||||
|
{
|
||||||
|
webkit_web_view_set_editable(WEBKIT_WEB_VIEW(web_view), enable);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::IsEditable() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_get_editable(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::DeleteSelection()
|
||||||
|
{
|
||||||
|
webkit_web_view_delete_selection(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool wxWebViewWebKit::HasSelection() const
|
||||||
|
{
|
||||||
|
return webkit_web_view_has_selection(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::SelectAll()
|
||||||
|
{
|
||||||
|
webkit_web_view_select_all(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetSelectedText() const
|
||||||
|
{
|
||||||
|
WebKitDOMDocument* doc;
|
||||||
|
WebKitDOMDOMWindow* win;
|
||||||
|
WebKitDOMDOMSelection* sel;
|
||||||
|
WebKitDOMRange* range;
|
||||||
|
|
||||||
|
doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
win = webkit_dom_document_get_default_view(WEBKIT_DOM_DOCUMENT(doc));
|
||||||
|
sel = webkit_dom_dom_window_get_selection(WEBKIT_DOM_DOM_WINDOW(win));
|
||||||
|
range = webkit_dom_dom_selection_get_range_at(WEBKIT_DOM_DOM_SELECTION(sel),
|
||||||
|
0, NULL);
|
||||||
|
return wxString(webkit_dom_range_get_text(WEBKIT_DOM_RANGE(range)),
|
||||||
|
wxConvUTF8);
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetSelectedSource() const
|
||||||
|
{
|
||||||
|
WebKitDOMDocument* doc;
|
||||||
|
WebKitDOMDOMWindow* win;
|
||||||
|
WebKitDOMDOMSelection* sel;
|
||||||
|
WebKitDOMRange* range;
|
||||||
|
WebKitDOMElement* div;
|
||||||
|
WebKitDOMDocumentFragment* clone;
|
||||||
|
WebKitDOMHTMLElement* html;
|
||||||
|
|
||||||
|
doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
win = webkit_dom_document_get_default_view(WEBKIT_DOM_DOCUMENT(doc));
|
||||||
|
sel = webkit_dom_dom_window_get_selection(WEBKIT_DOM_DOM_WINDOW(win));
|
||||||
|
range = webkit_dom_dom_selection_get_range_at(WEBKIT_DOM_DOM_SELECTION(sel),
|
||||||
|
0, NULL);
|
||||||
|
div = webkit_dom_document_create_element(WEBKIT_DOM_DOCUMENT(doc), "div", NULL);
|
||||||
|
|
||||||
|
clone = webkit_dom_range_clone_contents(WEBKIT_DOM_RANGE(range), NULL);
|
||||||
|
webkit_dom_node_append_child(&div->parent_instance, &clone->parent_instance, NULL);
|
||||||
|
html = (WebKitDOMHTMLElement*)div;
|
||||||
|
|
||||||
|
return wxString(webkit_dom_html_element_get_inner_html(WEBKIT_DOM_HTML_ELEMENT(html)),
|
||||||
|
wxConvUTF8);
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::ClearSelection()
|
||||||
|
{
|
||||||
|
WebKitDOMDocument* doc;
|
||||||
|
WebKitDOMDOMWindow* win;
|
||||||
|
WebKitDOMDOMSelection* sel;
|
||||||
|
|
||||||
|
doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
win = webkit_dom_document_get_default_view(WEBKIT_DOM_DOCUMENT(doc));
|
||||||
|
sel = webkit_dom_dom_window_get_selection(WEBKIT_DOM_DOM_WINDOW(win));
|
||||||
|
webkit_dom_dom_selection_remove_all_ranges(WEBKIT_DOM_DOM_SELECTION(sel));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
wxString wxWebViewWebKit::GetPageText() const
|
||||||
|
{
|
||||||
|
WebKitDOMDocument* doc;
|
||||||
|
WebKitDOMHTMLElement* body;
|
||||||
|
|
||||||
|
doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(web_view));
|
||||||
|
body = webkit_dom_document_get_body(WEBKIT_DOM_DOCUMENT(doc));
|
||||||
|
return wxString(webkit_dom_html_element_get_inner_text(WEBKIT_DOM_HTML_ELEMENT(body)),
|
||||||
|
wxConvUTF8);
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::RunScript(const wxString& javascript)
|
||||||
|
{
|
||||||
|
webkit_web_view_execute_script(WEBKIT_WEB_VIEW(web_view),
|
||||||
|
javascript.mb_str(wxConvUTF8));
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxWebViewWebKit::RegisterHandler(wxSharedPtr<wxWebViewHandler> handler)
|
||||||
|
{
|
||||||
|
m_handlerList.push_back(handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
// static
|
||||||
|
wxVisualAttributes
|
||||||
|
wxWebViewWebKit::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
|
||||||
|
{
|
||||||
|
return GetDefaultAttributesFromGTKWidget(webkit_web_view_new);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // wxHAVE_WEB_BACKEND_GTK_WEBKIT
|
1137
src/msw/webview_ie.cpp
Normal file
1137
src/msw/webview_ie.cpp
Normal file
File diff suppressed because it is too large
Load Diff
1318
src/osx/webview_webkit.mm
Normal file
1318
src/osx/webview_webkit.mm
Normal file
File diff suppressed because it is too large
Load Diff
247
tests/controls/webtest.cpp
Normal file
247
tests/controls/webtest.cpp
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: tests/controls/webtest.cpp
|
||||||
|
// Purpose: wxWebView unit test
|
||||||
|
// Author: Steven Lamerton
|
||||||
|
// Created: 2011-07-08
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) 2011 Steven Lamerton
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "testprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_WEBVIEW
|
||||||
|
|
||||||
|
#ifdef __BORLANDC__
|
||||||
|
#pragma hdrstop
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/app.h"
|
||||||
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
|
#include "testableframe.h"
|
||||||
|
#include "wx/uiaction.h"
|
||||||
|
#include "wx/webview.h"
|
||||||
|
#include "asserthelper.h"
|
||||||
|
|
||||||
|
class WebTestCase : public CppUnit::TestCase
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WebTestCase() { }
|
||||||
|
|
||||||
|
void setUp();
|
||||||
|
void tearDown();
|
||||||
|
|
||||||
|
private:
|
||||||
|
CPPUNIT_TEST_SUITE( WebTestCase );
|
||||||
|
CPPUNIT_TEST( Title );
|
||||||
|
CPPUNIT_TEST( Url );
|
||||||
|
CPPUNIT_TEST( History );
|
||||||
|
CPPUNIT_TEST( HistoryEnable );
|
||||||
|
CPPUNIT_TEST( HistoryClear );
|
||||||
|
CPPUNIT_TEST( HistoryList );
|
||||||
|
CPPUNIT_TEST( Editable );
|
||||||
|
CPPUNIT_TEST( Selection );
|
||||||
|
CPPUNIT_TEST( Zoom );
|
||||||
|
CPPUNIT_TEST( RunScript );
|
||||||
|
CPPUNIT_TEST_SUITE_END();
|
||||||
|
|
||||||
|
void Title();
|
||||||
|
void Url();
|
||||||
|
void History();
|
||||||
|
void HistoryEnable();
|
||||||
|
void HistoryClear();
|
||||||
|
void HistoryList();
|
||||||
|
void Editable();
|
||||||
|
void Selection();
|
||||||
|
void Zoom();
|
||||||
|
void RunScript();
|
||||||
|
void LoadUrl(int times = 1);
|
||||||
|
|
||||||
|
wxWebView* m_browser;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(WebTestCase)
|
||||||
|
};
|
||||||
|
|
||||||
|
// register in the unnamed registry so that these tests are run by default
|
||||||
|
CPPUNIT_TEST_SUITE_REGISTRATION( WebTestCase );
|
||||||
|
|
||||||
|
// also include in its own registry so that these tests can be run alone
|
||||||
|
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( WebTestCase, "WebTestCase" );
|
||||||
|
|
||||||
|
void WebTestCase::setUp()
|
||||||
|
{
|
||||||
|
m_browser = wxWebView::New(wxTheApp->GetTopWindow(), wxID_ANY);
|
||||||
|
//We yield to let the initial page load
|
||||||
|
wxYield();
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::tearDown()
|
||||||
|
{
|
||||||
|
wxDELETE(m_browser);
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::LoadUrl(int times)
|
||||||
|
{
|
||||||
|
//We alternate between urls as otherwise webkit merges them in the history
|
||||||
|
//we use about and about blank to avoid the need for a network connection
|
||||||
|
for(int i = 0; i < times; i++)
|
||||||
|
{
|
||||||
|
if(i % 2 == 1)
|
||||||
|
m_browser->LoadUrl("about:blank");
|
||||||
|
else
|
||||||
|
m_browser->LoadUrl("about:");
|
||||||
|
wxYield();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::Title()
|
||||||
|
{
|
||||||
|
CPPUNIT_ASSERT_EQUAL("", m_browser->GetCurrentTitle());
|
||||||
|
|
||||||
|
//Test title after loading raw html
|
||||||
|
m_browser->SetPage("<html><title>Title</title><body>Text</body></html>", "");
|
||||||
|
wxYield();
|
||||||
|
CPPUNIT_ASSERT_EQUAL("Title", m_browser->GetCurrentTitle());
|
||||||
|
|
||||||
|
//Test title after loading a url, we yield to let events process
|
||||||
|
LoadUrl();
|
||||||
|
CPPUNIT_ASSERT_EQUAL("", m_browser->GetCurrentTitle());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::Url()
|
||||||
|
{
|
||||||
|
CPPUNIT_ASSERT_EQUAL("about:blank", m_browser->GetCurrentURL());
|
||||||
|
|
||||||
|
//After first loading about:blank the next in the sequence is about:
|
||||||
|
LoadUrl();
|
||||||
|
CPPUNIT_ASSERT_EQUAL("about:", m_browser->GetCurrentURL());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::History()
|
||||||
|
{
|
||||||
|
LoadUrl(3);
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoBack());
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoForward());
|
||||||
|
|
||||||
|
m_browser->GoBack();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoBack());
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoForward());
|
||||||
|
|
||||||
|
m_browser->GoBack();
|
||||||
|
m_browser->GoBack();
|
||||||
|
|
||||||
|
//We should now be at the start of the history
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoBack());
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoForward());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::HistoryEnable()
|
||||||
|
{
|
||||||
|
LoadUrl();
|
||||||
|
m_browser->EnableHistory(false);
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoForward());
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoBack());
|
||||||
|
|
||||||
|
LoadUrl();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoForward());
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoBack());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::HistoryClear()
|
||||||
|
{
|
||||||
|
LoadUrl(2);
|
||||||
|
|
||||||
|
//Now we are in the 'middle' of the history
|
||||||
|
m_browser->GoBack();
|
||||||
|
wxYield();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoForward());
|
||||||
|
CPPUNIT_ASSERT(m_browser->CanGoBack());
|
||||||
|
|
||||||
|
m_browser->ClearHistory();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoForward());
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoBack());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::HistoryList()
|
||||||
|
{
|
||||||
|
LoadUrl(2);
|
||||||
|
m_browser->GoBack();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT_EQUAL(1, m_browser->GetBackwardHistory().size());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(1, m_browser->GetForwardHistory().size());
|
||||||
|
|
||||||
|
m_browser->LoadHistoryItem(m_browser->GetForwardHistory()[0]);
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(!m_browser->CanGoForward());
|
||||||
|
CPPUNIT_ASSERT_EQUAL(2, m_browser->GetBackwardHistory().size());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::Editable()
|
||||||
|
{
|
||||||
|
CPPUNIT_ASSERT(!m_browser->IsEditable());
|
||||||
|
|
||||||
|
m_browser->SetEditable(true);
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(m_browser->IsEditable());
|
||||||
|
|
||||||
|
m_browser->SetEditable(false);
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(!m_browser->IsEditable());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::Selection()
|
||||||
|
{
|
||||||
|
m_browser->SetPage("<html><body>Some <strong>strong</strong> text</body></html>", "");
|
||||||
|
wxYield();
|
||||||
|
CPPUNIT_ASSERT(!m_browser->HasSelection());
|
||||||
|
|
||||||
|
m_browser->SelectAll();
|
||||||
|
|
||||||
|
CPPUNIT_ASSERT(m_browser->HasSelection());
|
||||||
|
CPPUNIT_ASSERT_EQUAL("Some strong text", m_browser->GetSelectedText());
|
||||||
|
//We lower case the result as ie returns tags in uppercase
|
||||||
|
CPPUNIT_ASSERT_EQUAL("some <strong>strong</strong> text",
|
||||||
|
m_browser->GetSelectedSource().Lower());
|
||||||
|
|
||||||
|
m_browser->ClearSelection();
|
||||||
|
CPPUNIT_ASSERT(!m_browser->HasSelection());
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::Zoom()
|
||||||
|
{
|
||||||
|
if(m_browser->CanSetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT))
|
||||||
|
{
|
||||||
|
m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_LAYOUT);
|
||||||
|
CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TYPE_LAYOUT, m_browser->GetZoomType());
|
||||||
|
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_TINY);
|
||||||
|
CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TINY, m_browser->GetZoom());
|
||||||
|
}
|
||||||
|
|
||||||
|
//Reset the zoom level
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_MEDIUM);
|
||||||
|
|
||||||
|
if(m_browser->CanSetZoomType(wxWEB_VIEW_ZOOM_TYPE_TEXT))
|
||||||
|
{
|
||||||
|
m_browser->SetZoomType(wxWEB_VIEW_ZOOM_TYPE_TEXT);
|
||||||
|
CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TYPE_TEXT, m_browser->GetZoomType());
|
||||||
|
|
||||||
|
m_browser->SetZoom(wxWEB_VIEW_ZOOM_TINY);
|
||||||
|
CPPUNIT_ASSERT_EQUAL(wxWEB_VIEW_ZOOM_TINY, m_browser->GetZoom());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void WebTestCase::RunScript()
|
||||||
|
{
|
||||||
|
m_browser->RunScript("document.write(\"Hello World!\");");
|
||||||
|
CPPUNIT_ASSERT_EQUAL("Hello World!", m_browser->GetPageText());
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //wxUSE_WEBVIEW
|
@@ -182,6 +182,7 @@
|
|||||||
controls/treectrltest.cpp
|
controls/treectrltest.cpp
|
||||||
controls/treelistctrltest.cpp
|
controls/treelistctrltest.cpp
|
||||||
controls/virtlistctrltest.cpp
|
controls/virtlistctrltest.cpp
|
||||||
|
controls/webtest.cpp
|
||||||
controls/windowtest.cpp
|
controls/windowtest.cpp
|
||||||
events/clone.cpp
|
events/clone.cpp
|
||||||
events/propagation.cpp
|
events/propagation.cpp
|
||||||
@@ -211,6 +212,7 @@
|
|||||||
window/setsize.cpp
|
window/setsize.cpp
|
||||||
xml/xrctest.cpp
|
xml/xrctest.cpp
|
||||||
</sources>
|
</sources>
|
||||||
|
<wx-lib>webview</wx-lib>
|
||||||
<wx-lib>richtext</wx-lib>
|
<wx-lib>richtext</wx-lib>
|
||||||
<wx-lib>media</wx-lib>
|
<wx-lib>media</wx-lib>
|
||||||
<wx-lib>xrc</wx-lib>
|
<wx-lib>xrc</wx-lib>
|
||||||
|
Reference in New Issue
Block a user