X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5526e819eca4465ed5520d49bccfebc6a28045e0..275abf24e140159f2ac19b64b76737a6903b1319:/src/html/htmlcell.cpp diff --git a/src/html/htmlcell.cpp b/src/html/htmlcell.cpp index c70e0a281c..4e58006621 100644 --- a/src/html/htmlcell.cpp +++ b/src/html/htmlcell.cpp @@ -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 +#include "wx/wxprec.h" -#include "wx/defs.h" #if wxUSE_HTML #ifdef __BORDLANDC__ @@ -21,25 +20,27 @@ #endif #ifndef WXPRECOMP -#include +#include "wx/wx.h" #endif -#include -#include +#include "wx/html/htmlcell.h" +#include "wx/html/htmlwin.h" #include - - //----------------------------------------------------------------------------- // 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 //-----------------------------------------------------------------------------