From e03ca426818f6c9fc2608644fc2c99a9acefb6bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 19 Jan 2002 23:23:28 +0000 Subject: [PATCH] documentation for wxHtmlWindow::OnOpeningURL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/htwindow.tex | 9 +++++++++ docs/latex/wx/htwinprs.tex | 12 ++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docs/latex/wx/htwindow.tex b/docs/latex/wx/htwindow.tex index 0d4ce6ecb4..ed1f0344d9 100644 --- a/docs/latex/wx/htwindow.tex +++ b/docs/latex/wx/htwindow.tex @@ -198,6 +198,15 @@ Called when user clicks on hypertext link. Default behaviour is to call Also see \helpref{wxHtmlLinkInfo}{wxhtmllinkinfo}. +\membersection{wxHtmlWindow::OnOpeningURL}\label{wxhtmlwindowonopeningurl} + +\func{virtual bool}{OnOpeningURL}{\param{const wxString\& }{url}} + +Called when an URL is being opened (either when the user clicks on a link or +an image is loaded). If the function returns FALSE, the URL won't be fetched. +Default behaviour is to return TRUE. + +Also see \helpref{wxHtmlWinParser::CanOpenURL}{wxhtmlwinparsercanopenurl}. \membersection{wxHtmlWindow::OnSetTitle}\label{wxhtmlwindowonsettitle} diff --git a/docs/latex/wx/htwinprs.tex b/docs/latex/wx/htwinprs.tex index cfdb392f39..473a8cd0ea 100644 --- a/docs/latex/wx/htwinprs.tex +++ b/docs/latex/wx/htwinprs.tex @@ -32,7 +32,7 @@ The product of parsing is a wxHtmlCell (resp. wxHtmlContainer) object. \func{}{wxHtmlWinParser}{\void} -\func{}{wxHtmlWinParser}{\param{wxWindow }{*wnd}} +\func{}{wxHtmlWinParser}{\param{wxHtmlWindow }{*wnd}} Constructor. Don't use the default one, use constructor with {\it wnd} paremeter ({\it wnd} is pointer to associated \helpref{wxHtmlWindow}{wxhtmlwindow}) @@ -43,6 +43,14 @@ Constructor. Don't use the default one, use constructor with Adds \helpref{module}{handlers} to the list of wxHtmlWinParser tag handler. +\membersection{wxHtmlWinParser::CanOpenURL}\label{wxhtmlwinparsercanopenurl} + +\func{virtual bool}{CanOpenURL}{\param{const wxString\& }{url}} + +Call this function to determine whether you are allowed to open given URL. +Default behaviour is to call \helpref{wxHtmlWindow::OnOpeningURL}{wxhtmlwindowonopeningurl} +of the associated wxHtmlWindow object. + \membersection{wxHtmlWinParser::CloseContainer}\label{wxhtmlwinparserclosecontainer} \func{wxHtmlContainerCell*}{CloseContainer}{\void} @@ -185,7 +193,7 @@ that is supported by operating system. \membersection{wxHtmlWinParser::GetWindow}\label{wxhtmlwinparsergetwindow} -\func{wxWindow*}{GetWindow}{\void} +\func{wxHtmlWindow*}{GetWindow}{\void} Returns associated window (wxHtmlWindow). This may be NULL! (You should always test if it is non-NULL. For example {\tt TITLE} handler sets window -- 2.45.2