]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/htmlcell.cpp
wxDialUpManager fixes
[wxWidgets.git] / src / html / htmlcell.cpp
index c70e0a281c92182a6dc1c890ad5f817f23ab2279..4e5800662102849069dd691572cba9ce40664e07 100644 (file)
@@ -2,18 +2,17 @@
 // Name:        htmlcell.cpp
 // Purpose:     wxHtmlCell - basic element of HTML output
 // Author:      Vaclav Slavik
+// RCS-ID:      $Id$
 // Copyright:   (c) 1999 Vaclav Slavik
 // Licence:     wxWindows Licence
 /////////////////////////////////////////////////////////////////////////////
 
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
-#include "wx/defs.h"
 #if wxUSE_HTML
 
 #ifdef __BORDLANDC__
 #endif
 
 #ifndef WXPRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
 #endif
 
-#include <wx/html/htmlcell.h>
-#include <wx/html/htmlwin.h>
+#include "wx/html/htmlcell.h"
+#include "wx/html/htmlwin.h"
 #include <stdlib.h>
 
 
-
-
 //-----------------------------------------------------------------------------
 // wxHtmlCell
 //-----------------------------------------------------------------------------
 
 
-void wxHtmlCell::OnMouseClick(wxWindow *parent, int x, int y, bool left, bool middle, bool right)
+void wxHtmlCell::OnMouseClick(wxWindow *parent, int x, int y,
+                              bool WXUNUSED(left),
+                              bool WXUNUSED(middle),
+                              bool WXUNUSED(right))
 {
-    if (GetLink() != wxEmptyString)
-        ((wxHtmlWindow*)parent) -> OnLinkClicked(GetLink());
+    wxString lnk = GetLink(x, y);
+    if (lnk != wxEmptyString)
+        ((wxHtmlWindow*)parent) -> OnLinkClicked(lnk);
         // note : this overcasting is legal because parent is *always* wxHtmlWindow
 }
 
@@ -70,10 +71,6 @@ void wxHtmlWordCell::Draw(wxDC& dc, int x, int y, int view_y1, int view_y2)
 
 
 
-
-
-
-
 //-----------------------------------------------------------------------------
 // wxHtmlContainerCell
 //-----------------------------------------------------------------------------