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).