From 3195a0e538d0a952cab0980d0f5cb2199611c243 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 21 Jun 2015 01:47:01 +0200 Subject: [PATCH] Document wxPrintData::SetPaperSize(). Also remove strange (probably out of date?) comment from this method in the header. Closes #17035. --- include/wx/cmndata.h | 3 +-- interface/wx/cmndata.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/include/wx/cmndata.h b/include/wx/cmndata.h index 9c93012567..db647824d7 100644 --- a/include/wx/cmndata.h +++ b/include/wx/cmndata.h @@ -71,8 +71,7 @@ public: bool GetColour() const { return m_colour; } wxDuplexMode GetDuplex() const { return m_duplexMode; } wxPaperSize GetPaperId() const { return m_paperId; } - const wxSize& GetPaperSize() const { return m_paperSize; } // Not used yet: confusable with paper size - // in wxPageSetupDialogData + const wxSize& GetPaperSize() const { return m_paperSize; } wxPrintQuality GetQuality() const { return m_printQuality; } wxPrintBin GetBin() const { return m_bin; } wxPrintMode GetPrintMode() const { return m_printMode; } diff --git a/interface/wx/cmndata.h b/interface/wx/cmndata.h index 67b0169359..3375f8dcfe 100644 --- a/interface/wx/cmndata.h +++ b/interface/wx/cmndata.h @@ -384,9 +384,19 @@ public: Sets the paper id. This indicates the type of paper to be used. For a mapping between paper id, paper size and string name, see wxPrintPaperDatabase in @c "paper.h" (not yet documented). + + @see SetPaperSize() */ void SetPaperId(wxPaperSize paperId); + /** + Sets custom paper size. + + This method can be used to set up custom paper size. When using a + standard size, prefer to use SetPaperId() instead. + */ + void SetPaperSize(const wxSize& size); + /** Sets the printer name. This can be the empty string to indicate that the default printer should be used.