wxIScan
wxLinkInBrowserHtmlWindow Class Reference

A (slightly) extended html window class. More...

#include <wxiscanabout.h>

List of all members.

Public Member Functions

 wxLinkInBrowserHtmlWindow (wxWindow *poParent, wxWindowID nId=wxID_ANY, const wxPoint &oPos=wxDefaultPosition, const wxSize &oSize=wxDefaultSize, long nStyle=wxHW_DEFAULT_STYLE, const wxString &strName=wxT("wxLinkInBrowserHtmlWindow"))
 Standard constructor copied from wxHtmlWindow.

Private Member Functions

void OnLinkClicked (wxHtmlLinkEvent &oEvent)
 Handler for clicking on a link events.

Detailed Description

A (slightly) extended html window class.

It extends wxHtmlWindow in the way that clicks on links are caught and an external browser is started with the link instead of onpening the link in the html window itself.

Definition at line 82 of file wxiscanabout.h.


Constructor & Destructor Documentation

wxLinkInBrowserHtmlWindow::wxLinkInBrowserHtmlWindow ( wxWindow *  poParent,
wxWindowID  nId = wxID_ANY,
const wxPoint &  oPos = wxDefaultPosition,
const wxSize &  oSize = wxDefaultSize,
long  nStyle = wxHW_DEFAULT_STYLE,
const wxString &  strName = wxT( "wxLinkInBrowserHtmlWindow" ) 
) [inline]

Standard constructor copied from wxHtmlWindow.

Parameters:
poParenta pointer to the parent window
nIdthe window id, defaults to wxID_ANY
oPosthe window position on the screen, defaults to wxDefaultPosition
oSizethe window size, defaults to wxDefaultSize
nStylethe (html) window style, defaults to wxHW_DEFAULT_STYLE
strNamethe class name, defaults to "wxLinkInBrowserHtmlWindow"

Definition at line 93 of file wxiscanabout.h.

      : wxHtmlWindow( poParent, nId, oPos, oSize, nStyle, strName )
    {
    }

Member Function Documentation

void wxLinkInBrowserHtmlWindow::OnLinkClicked ( wxHtmlLinkEvent &  oEvent) [inline, private]

Handler for clicking on a link events.

It passes the link to an external browser (the system's default browser). This prevents the html window (e. g. an about dialog) to show the linked page itself.

Definition at line 111 of file wxiscanabout.h.

    {
        ::wxLaunchDefaultBrowser( oEvent.GetLinkInfo().GetHref() );
    }

The documentation for this class was generated from the following file: