Process review comments in wxSVGFileDC
This commit is contained in:
@@ -85,9 +85,9 @@ public:
|
||||
class WXDLLIMPEXP_CORE wxSVGFileDCImpl : public wxDCImpl
|
||||
{
|
||||
public:
|
||||
wxSVGFileDCImpl(wxSVGFileDC *owner, const wxString &filename,
|
||||
wxSVGFileDCImpl(wxSVGFileDC* owner, const wxString& filename,
|
||||
int width = 320, int height = 240, double dpi = 72.0,
|
||||
const wxString &title = wxString());
|
||||
const wxString& title = wxString());
|
||||
|
||||
virtual ~wxSVGFileDCImpl();
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
virtual wxCoord GetCharWidth() const wxOVERRIDE;
|
||||
|
||||
#if wxUSE_PALETTE
|
||||
virtual void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE
|
||||
virtual void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::SetPalette not implemented"));
|
||||
}
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
m_graphics_changed = true;
|
||||
}
|
||||
|
||||
virtual void SetBackground(const wxBrush &brush) wxOVERRIDE;
|
||||
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE;
|
||||
virtual void SetBackgroundMode(int mode) wxOVERRIDE;
|
||||
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE;
|
||||
virtual void SetFont(const wxFont& font) wxOVERRIDE;
|
||||
@@ -158,13 +158,13 @@ public:
|
||||
void SetShapeRenderingMode(wxSVGShapeRenderingMode renderingMode);
|
||||
|
||||
private:
|
||||
virtual bool DoGetPixel(wxCoord, wxCoord, wxColour *) const wxOVERRIDE
|
||||
virtual bool DoGetPixel(wxCoord, wxCoord, wxColour*) const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::DoGetPixel Call not implemented"));
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool DoBlit(wxCoord, wxCoord, wxCoord, wxCoord, wxDC *,
|
||||
virtual bool DoBlit(wxCoord, wxCoord, wxCoord, wxCoord, wxDC*,
|
||||
wxCoord, wxCoord, wxRasterOperationMode = wxCOPY,
|
||||
bool = 0, int = -1, int = -1) wxOVERRIDE;
|
||||
|
||||
@@ -175,7 +175,7 @@ private:
|
||||
|
||||
virtual void DoDrawArc(wxCoord, wxCoord, wxCoord, wxCoord, wxCoord, wxCoord) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawBitmap(const wxBitmap &, wxCoord, wxCoord, bool = false) wxOVERRIDE;
|
||||
virtual void DoDrawBitmap(const wxBitmap&, wxCoord, wxCoord, bool = false) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE;
|
||||
|
||||
@@ -184,7 +184,7 @@ private:
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawIcon(const wxIcon &, wxCoord, wxCoord) wxOVERRIDE;
|
||||
virtual void DoDrawIcon(const wxIcon&, wxCoord, wxCoord) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE;
|
||||
|
||||
@@ -226,11 +226,11 @@ private:
|
||||
wxDirection nDirection = wxEAST) wxOVERRIDE;
|
||||
|
||||
virtual void DoGradientFillConcentric(const wxRect& rect,
|
||||
const wxColour& initialColour,
|
||||
const wxColour& destColour,
|
||||
const wxPoint& circleCenter) wxOVERRIDE;
|
||||
const wxColour& initialColour,
|
||||
const wxColour& destColour,
|
||||
const wxPoint& circleCenter) wxOVERRIDE;
|
||||
|
||||
virtual void DoGetSize(int * x, int *y) const wxOVERRIDE
|
||||
virtual void DoGetSize(int* x, int*y) const wxOVERRIDE
|
||||
{
|
||||
if ( x )
|
||||
*x = m_width;
|
||||
@@ -238,10 +238,10 @@ private:
|
||||
*y = m_height;
|
||||
}
|
||||
|
||||
virtual void DoGetTextExtent(const wxString& string, wxCoord *w, wxCoord *h,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *font = NULL) const wxOVERRIDE;
|
||||
virtual void DoGetTextExtent(const wxString& string, wxCoord* w, wxCoord* h,
|
||||
wxCoord* descent = NULL,
|
||||
wxCoord* externalLeading = NULL,
|
||||
const wxFont* font = NULL) const wxOVERRIDE;
|
||||
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& region) wxOVERRIDE
|
||||
{
|
||||
@@ -251,14 +251,14 @@ private:
|
||||
|
||||
virtual void DoSetClippingRegion(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
||||
virtual void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;
|
||||
virtual void DoGetSizeMM(int* width, int* height) const wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
void Init(const wxString &filename, int width, int height,
|
||||
double dpi, const wxString &title);
|
||||
void Init(const wxString& filename, int width, int height,
|
||||
double dpi, const wxString& title);
|
||||
|
||||
void write(const wxString &s);
|
||||
void write(const wxString& s);
|
||||
|
||||
private:
|
||||
// If m_graphics_changed is true, close the current <g> element and start a
|
||||
|
Reference in New Issue
Block a user