- wxHtmlImageMapAreaCell( celltype t, wxString &coords );
- virtual wxString GetLink( int x = 0, int y = 0 ) const;
+ wxHtmlImageMapAreaCell( celltype t, wxString &coords, double pixel_scale = 1.0);
+ virtual wxHtmlLinkInfo *GetLink( int x = 0, int y = 0 ) const;
wxString x = incoords, y;
type = t;
while ((i = x.Find( ',' )) != -1) {
wxString x = incoords, y;
type = t;
while ((i = x.Find( ',' )) != -1) {
- int intersects = 0;
- int wherex = x;
- int wherey = y;
- int totalv = coords.GetCount() / 2;
- int totalc = totalv * 2;
- int xval = coords[totalc - 2];
- int yval = coords[totalc - 1];
- int end = totalc;
- int pointer = 1;
+ int intersects = 0;
+ int wherex = x;
+ int wherey = y;
+ int totalv = coords.GetCount() / 2;
+ int totalc = totalv * 2;
+ int xval = coords[totalc - 2];
+ int yval = coords[totalc - 1];
+ int end = totalc;
+ int pointer = 1;
if ((yval >= wherey) != (coords[pointer] >= wherey)) {
if ((xval >= wherex) == (coords[0] >= wherex)) {
if ((yval >= wherey) != (coords[pointer] >= wherey)) {
if ((xval >= wherex) == (coords[0] >= wherex)) {
if (a)
return a->GetLink( x, y );
return wxHtmlCell::GetLink( x, y );
if (a)
return a->GetLink( x, y );
return wxHtmlCell::GetLink( x, y );
wxHtmlImageCell(wxFSFile *input, int w = -1, int h = -1, int align = wxHTML_ALIGN_BOTTOM, wxString mapname = wxEmptyString);
~wxHtmlImageCell() {if (m_Image) delete m_Image; }
void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
wxHtmlImageCell(wxFSFile *input, int w = -1, int h = -1, int align = wxHTML_ALIGN_BOTTOM, wxString mapname = wxEmptyString);
~wxHtmlImageCell() {if (m_Image) delete m_Image; }
void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
wxHtmlCell::Draw(dc, x, y, view_y1, view_y2);
}
wxHtmlCell::Draw(dc, x, y, view_y1, view_y2);
}
- cel = new wxHtmlImageCell(str, w, h, al, mn);
+ cel = new wxHtmlImageCell(str,
+ (int)(m_WParser -> GetPixelScale() * (double)w),
+ (int)(m_WParser -> GetPixelScale() * (double)h),
+ al, mn);
if (tag.GetName() == "AREA") {
if (tag.HasParam("SHAPE")) {
wxString tmp = tag.GetParam("SHAPE");
if (tag.GetName() == "AREA") {
if (tag.HasParam("SHAPE")) {
wxString tmp = tag.GetParam("SHAPE");
tmp.MakeUpper();
wxHtmlImageMapAreaCell *cel = NULL;
if (tag.HasParam("COORDS")) {
coords = tag.GetParam("COORDS");
}
if (tmp == "POLY") {
tmp.MakeUpper();
wxHtmlImageMapAreaCell *cel = NULL;
if (tag.HasParam("COORDS")) {
coords = tag.GetParam("COORDS");
}
if (tmp == "POLY") {