]> git.saurik.com Git - wxWidgets.git/commitdiff
Added some anchor related methods to wxHtmlWindow as suggested on the
authorRobin Dunn <robin@alldunn.com>
Thu, 7 Mar 2002 20:33:58 +0000 (20:33 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 7 Mar 2002 20:33:58 +0000 (20:33 +0000)
wxPython-users list.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/html.i

index 59e6dc9c33be1c7786854fc05148ef9c036a02de..a79ef162ee0513832837bc0fe0424e1a747f89ab 100644 (file)
@@ -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);