Make wxPORTRAIT and wxLANDSCAPE elements of wxPrintOrientation enum.
Change wxPrintData::SetOrientation() to take wxPrintOrientation instead of int. Closes #11393. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -567,7 +567,7 @@ public:
|
||||
/**
|
||||
Gets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
|
||||
*/
|
||||
int GetOrientation() const;
|
||||
wxPrintOrientation GetOrientation() const;
|
||||
|
||||
/**
|
||||
Returns the paper size id.
|
||||
@@ -634,7 +634,7 @@ public:
|
||||
/**
|
||||
Sets the orientation. This can be wxLANDSCAPE or wxPORTRAIT.
|
||||
*/
|
||||
void SetOrientation(int orientation);
|
||||
void SetOrientation(wxPrintOrientation orientation);
|
||||
|
||||
/**
|
||||
Sets the paper id. This indicates the type of paper to be used. For a
|
||||
|
@@ -778,6 +778,15 @@ enum wxPaperSize
|
||||
wxPAPER_PENV_10_ROTATED ///< PRC Envelope #10 Rotated 458 x 324 m
|
||||
};
|
||||
|
||||
/**
|
||||
Printing orientation
|
||||
*/
|
||||
|
||||
enum wxPrintOrientation
|
||||
{
|
||||
wxPORTRAIT,
|
||||
wxLANDSCAPE
|
||||
};
|
||||
|
||||
/**
|
||||
Duplex printing modes.
|
||||
|
Reference in New Issue
Block a user