Overhaul IE zoom functions to support both text and optical zoom.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Steve Lamerton
2011-07-14 09:58:33 +00:00
parent 241b769f96
commit c5f417cb50
2 changed files with 83 additions and 91 deletions

View File

@@ -112,19 +112,11 @@ public:
bool IsOfflineMode();
void SetOfflineMode(bool offline);
/**
* Get text zoom
* @return text zoom from 0 to 4
*/
int GetIETextZoom();
wxWebViewZoom GetIETextZoom();
void SetIETextZoom(wxWebViewZoom level);
/**
* @param level 0 to 4
*/
void SetIETextZoom(int level);
void SetIEOpticalZoom(float zoom);
float GetIEOpticalZoom();
wxWebViewZoom GetIEOpticalZoom();
void SetIEOpticalZoom(wxWebViewZoom level);
void onActiveXEvent(wxActiveXEvent& evt);
void onEraseBg(wxEraseEvent&) {}
@@ -139,6 +131,9 @@ private:
bool m_canNavigateBack;
bool m_canNavigateForward;
//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.