Added some anchor related methods to wxHtmlWindow as suggested on the
wxPython-users list. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c6ebc32af0
commit
e5d41db01a
@ -443,10 +443,19 @@ public:
|
||||
: wxHtmlWindow(parent, id, pos, size, style, name) {};
|
||||
wxPyHtmlWindow() : wxHtmlWindow() {};
|
||||
|
||||
bool ScrollToAnchor(const wxString& anchor) {
|
||||
return wxHtmlWindow::ScrollToAnchor(anchor);
|
||||
}
|
||||
|
||||
bool HasAnchor(const wxString& anchor) {
|
||||
const wxHtmlCell *c = m_Cell->Find(wxHTML_COND_ISANCHOR, &anchor);
|
||||
return c!=NULL;
|
||||
}
|
||||
|
||||
void OnLinkClicked(const wxHtmlLinkInfo& link);
|
||||
void base_OnLinkClicked(const wxHtmlLinkInfo& link);
|
||||
|
||||
wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,
|
||||
wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,
|
||||
const wxString& url,
|
||||
wxString *redirect) const;
|
||||
|
||||
@ -573,6 +582,9 @@ public:
|
||||
wxHtmlContainerCell* GetInternalRepresentation();
|
||||
wxHtmlWinParser* GetParser();
|
||||
|
||||
bool ScrollToAnchor(const wxString& anchor);
|
||||
bool HasAnchor(const wxString& anchor);
|
||||
|
||||
void base_OnLinkClicked(const wxHtmlLinkInfo& link);
|
||||
void base_OnSetTitle(const char* title);
|
||||
void base_OnCellMouseHover(wxHtmlCell *cell, wxCoord x, wxCoord y);
|
||||
|
Loading…
Reference in New Issue
Block a user