new rendering customization api fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-06-03 23:32:10 +00:00
parent 5de2429102
commit 285f58ab66
3 changed files with 8 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ class wxHtmlLineCell : public wxHtmlCell
public: public:
wxHtmlLineCell(int size, bool shading) : wxHtmlCell() {m_Height = size; m_HasShading = shading;} wxHtmlLineCell(int size, bool shading) : wxHtmlCell() {m_Height = size; m_HasShading = shading;}
void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2, void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2,
wxHtmlRenderingState& state); wxHtmlRenderingInfo& info);
void Layout(int w) void Layout(int w)
{ m_Width = w; wxHtmlCell::Layout(w); } { m_Width = w; wxHtmlCell::Layout(w); }
@@ -55,7 +55,7 @@ class wxHtmlLineCell : public wxHtmlCell
void wxHtmlLineCell::Draw(wxDC& dc, int x, int y, void wxHtmlLineCell::Draw(wxDC& dc, int x, int y,
int WXUNUSED(view_y1), int WXUNUSED(view_y2), int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingState& WXUNUSED(state)) wxHtmlRenderingInfo& WXUNUSED(info))
{ {
wxBrush mybrush(wxT("GREY"), (m_HasShading) ? wxTRANSPARENT : wxSOLID); wxBrush mybrush(wxT("GREY"), (m_HasShading) ? wxTRANSPARENT : wxSOLID);
wxPen mypen(wxT("GREY"), 1, wxSOLID); wxPen mypen(wxT("GREY"), 1, wxSOLID);

View File

@@ -70,7 +70,7 @@ class wxHtmlImageMapAreaCell : public wxHtmlCell
void Draw(wxDC& WXUNUSED(dc), void Draw(wxDC& WXUNUSED(dc),
int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(x), int WXUNUSED(y),
int WXUNUSED(view_y1), int WXUNUSED(view_y2), int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingState& WXUNUSED(state)) {} wxHtmlRenderingInfo& WXUNUSED(info)) {}
}; };
@@ -246,7 +246,7 @@ class wxHtmlImageMapCell : public wxHtmlCell
void Draw(wxDC& WXUNUSED(dc), void Draw(wxDC& WXUNUSED(dc),
int WXUNUSED(x), int WXUNUSED(y), int WXUNUSED(x), int WXUNUSED(y),
int WXUNUSED(view_y1), int WXUNUSED(view_y2), int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingState& WXUNUSED(state)) {} wxHtmlRenderingInfo& WXUNUSED(info)) {}
}; };
@@ -291,7 +291,7 @@ public:
const wxString& mapname = wxEmptyString); const wxString& mapname = wxEmptyString);
~wxHtmlImageCell(); ~wxHtmlImageCell();
void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2, void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2,
wxHtmlRenderingState& state); wxHtmlRenderingInfo& info);
virtual wxHtmlLinkInfo *GetLink(int x = 0, int y = 0) const; virtual wxHtmlLinkInfo *GetLink(int x = 0, int y = 0) const;
void SetImage(const wxImage& img); void SetImage(const wxImage& img);
@@ -530,7 +530,7 @@ wxHtmlImageCell::~wxHtmlImageCell()
void wxHtmlImageCell::Draw(wxDC& dc, int x, int y, void wxHtmlImageCell::Draw(wxDC& dc, int x, int y,
int WXUNUSED(view_y1), int WXUNUSED(view_y2), int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingState& WXUNUSED(state)) wxHtmlRenderingInfo& WXUNUSED(info))
{ {
if ( m_showFrame ) if ( m_showFrame )
{ {

View File

@@ -44,7 +44,7 @@ class wxHtmlListmarkCell : public wxHtmlCell
public: public:
wxHtmlListmarkCell(wxDC *dc, const wxColour& clr); wxHtmlListmarkCell(wxDC *dc, const wxColour& clr);
void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2, void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2,
wxHtmlRenderingState& state); wxHtmlRenderingInfo& info);
}; };
wxHtmlListmarkCell::wxHtmlListmarkCell(wxDC* dc, const wxColour& clr) : wxHtmlCell(), m_Brush(clr, wxSOLID) wxHtmlListmarkCell::wxHtmlListmarkCell(wxDC* dc, const wxColour& clr) : wxHtmlCell(), m_Brush(clr, wxSOLID)
@@ -58,7 +58,7 @@ wxHtmlListmarkCell::wxHtmlListmarkCell(wxDC* dc, const wxColour& clr) : wxHtmlCe
void wxHtmlListmarkCell::Draw(wxDC& dc, int x, int y, void wxHtmlListmarkCell::Draw(wxDC& dc, int x, int y,
int WXUNUSED(view_y1), int WXUNUSED(view_y2), int WXUNUSED(view_y1), int WXUNUSED(view_y2),
wxHtmlRenderingState& WXUNUSED(state)) wxHtmlRenderingInfo& WXUNUSED(info))
{ {
dc.SetBrush(m_Brush); dc.SetBrush(m_Brush);
dc.DrawEllipse(x + m_PosX + m_Width / 3, y + m_PosY + m_Height / 3, dc.DrawEllipse(x + m_PosX + m_Width / 3, y + m_PosY + m_Height / 3,