Contents Up Previous Next

wxHtmlLinkInfo

This class stores all necessary information about hypertext links (as represented by <A> tag in HTML documents). In current implementation it stores URL and target frame name. Note that frames are not currently supported by wxHTML!

Derived from

wxObject

Include files

<wx/html/htmlcell.h>

Members

wxHtmlLinkInfo::wxHtmlLinkInfo
wxHtmlLinkInfo::GetEvent
wxHtmlLinkInfo::GetHtmlCell
wxHtmlLinkInfo::GetHref
wxHtmlLinkInfo::GetTarget


wxHtmlLinkInfo::wxHtmlLinkInfo

wxHtmlLinkInfo()

Default ctor.

wxHtmlLinkInfo(const wxString& href, const wxString& target = wxEmptyString)

Construct hypertext link from HREF (aka URL) and TARGET (name of target frame).


wxHtmlLinkInfo::GetEvent

const wxMouseEvent * GetEvent()

Return pointer to event that generated OnLinkClicked event. Valid only within wxHtmlWindow::OnLinkClicked, NULL otherwise.


wxHtmlLinkInfo::GetHtmlCell

const wxHtmlCell * GetHtmlCell()

Return pointer to the cell that was clicked. Valid only within wxHtmlWindow::OnLinkClicked, NULL otherwise.


wxHtmlLinkInfo::GetHref

wxString GetHref()

Return HREF value of the <A> tag.


wxHtmlLinkInfo::GetTarget

wxString GetTarget()

Return TARGET value of the <A> tag (this value is used to specify in which frame should be the page pointed by Href opened).