]> git.saurik.com Git - wxWidgets.git/commitdiff
documentation for wxHtmlWindow::OnOpeningURL
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 19 Jan 2002 23:23:28 +0000 (23:23 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 19 Jan 2002 23:23:28 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/htwindow.tex
docs/latex/wx/htwinprs.tex

index 0d4ce6ecb4b43ef82ded9eac63c731cc6e0d3df0..ed1f0344d9de49fd35598a62f50e016986249617 100644 (file)
@@ -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}
 
index cfdb392f39cdd9a833ec9e9ad4af0c616be89bbd..473a8cd0ea8ca66c3eb0c07cba75ddf9b2c22f9b 100644 (file)
@@ -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