Document wxPrintData::SetPaperSize().

Also remove strange (probably out of date?) comment from this method in the
header.

Closes #17035.
This commit is contained in:
Vadim Zeitlin
2015-06-21 01:47:01 +02:00
parent f72aa7b1c9
commit 3195a0e538
2 changed files with 11 additions and 2 deletions

View File

@@ -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; }

View File

@@ -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.