From 9a0774600bfb08f46a3e3b9874648027f32e826a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 4 Oct 2011 07:45:08 +0000 Subject: [PATCH] Interface fixes for Phoenix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/apptrait.h | 2 +- interface/wx/cmndata.h | 4 ++++ interface/wx/dc.h | 12 ++++++++++-- interface/wx/dcps.h | 14 ++------------ 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/interface/wx/apptrait.h b/interface/wx/apptrait.h index 15dd77450b..a531847a2b 100644 --- a/interface/wx/apptrait.h +++ b/interface/wx/apptrait.h @@ -97,7 +97,7 @@ public: The returned reference is to a @c wxStandardPathsBase class but you can consider it to be equivalent to wxStandardPaths (which is documented). */ - virtual wxStandardPathsBase& GetStandardPaths(); + virtual wxStandardPaths& GetStandardPaths(); /** Returns the wxWidgets port ID used by the running program and eventually diff --git a/interface/wx/cmndata.h b/interface/wx/cmndata.h index eb43b0056b..6a655569f6 100644 --- a/interface/wx/cmndata.h +++ b/interface/wx/cmndata.h @@ -446,6 +446,10 @@ public: Assigns print data to this object. */ wxPrintData& operator =(const wxPrintData& data); + + + wxString GetFilename() const; + void SetFilename( const wxString &filename ); }; diff --git a/interface/wx/dc.h b/interface/wx/dc.h index 9d77e88e3e..eeeb907f6d 100644 --- a/interface/wx/dc.h +++ b/interface/wx/dc.h @@ -380,7 +380,7 @@ public: character with the given index if it is != -1 and return the bounding rectangle if required. */ - void DrawLabel(const wxString& text, const wxBitmap& image, + void DrawLabel(const wxString& text, const wxBitmap& bitmap, const wxRect& rect, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1, wxRect* rectBounding = NULL); @@ -1562,6 +1562,14 @@ public: void ResetTransformMatrix(); //@} + + + void SetLogicalScale(double x, double y); + void GetLogicalScale(double *x, double *y) const; + void SetLogicalOrigin(wxCoord x, wxCoord y); + void GetLogicalOrigin(wxCoord *x, wxCoord *y) const; + wxPoint GetLogicalOrigin() const; + }; @@ -1604,7 +1612,7 @@ public: The clipping region is automatically unset when this object is destroyed. */ - wxDCClipper(wxDC& dc, const wxRegion& r); + wxDCClipper(wxDC& dc, const wxRegion& region); wxDCClipper(wxDC& dc, const wxRect& rect); wxDCClipper(wxDC& dc, wxCoord x, wxCoord y, wxCoord w, wxCoord h); //@} diff --git a/interface/wx/dcps.h b/interface/wx/dcps.h index b533506563..f98b7968db 100644 --- a/interface/wx/dcps.h +++ b/interface/wx/dcps.h @@ -19,22 +19,12 @@ class wxPostScriptDC : public wxDC { public: + wxPostScriptDC(); + /** Constructs a PostScript printer device context from a wxPrintData object. */ wxPostScriptDC(const wxPrintData& printData); - /** - Return resolution used in PostScript output. - - @see SetResolution() - */ - virtual int GetResolution() const; - - /** - Set resolution (in pixels per inch) that will be used in PostScript - output. Default is 720ppi. - */ - virtual wxRect GetPaperRect() const; }; -- 2.47.2