39#define MIN_PAGE_SIZE_MILS 1000
40#define MAX_PAGE_SIZE_PCBNEW_MILS 48000
41#define MAX_PAGE_SIZE_EESCHEMA_MILS 120000
62 static const wxChar
A5[];
63 static const wxChar
A4[];
64 static const wxChar
A3[];
65 static const wxChar
A2[];
66 static const wxChar
A1[];
67 static const wxChar
A0[];
68 static const wxChar
A[];
69 static const wxChar
B[];
70 static const wxChar
C[];
71 static const wxChar
D[];
72 static const wxChar
E[];
93 bool SetType(
const wxString& aStandardPageDescriptionName,
bool aIsPortrait =
false );
201 PAGE_INFO(
const VECTOR2I& aSizeMils,
const wxString& aName, wxPaperSize aPaperId );
Describe the page size and margins of a paper page on which to eventually print or plot.
static const wxChar USLedger[]
static const wxChar USLetter[]
static const PAGE_INFO pageD
static const wxChar USLegal[]
static void SetCustomWidthMils(int aWidthInMils)
Set the width of Custom page in mils for any custom page constructed or made via SetType() after maki...
static const PAGE_INFO pageC
bool m_portrait
true if portrait, false if landscape
void SetWidthMils(int aWidthInMils)
static const PAGE_INFO pageA5
void Format(OUTPUTFORMATTER *aFormatter, int aNestLevel, int aControlBits) const
Output the page class to aFormatter in s-expression form.
void SetPortrait(bool aIsPortrait)
Rotate the paper page 90 degrees.
int GetHeightIU(double aIUScale) const
Gets the page height in IU.
static const wxChar Custom[]
"User" defined page type
static const PAGE_INFO pageUSLedger
static const PAGE_INFO pageE
static const PAGE_INFO pageA4
static const PAGE_INFO pageUser
static const PAGE_INFO pageUSLetter
void SetHeightMils(int aHeightInMils)
static int GetCustomHeightMils()
static void SetCustomHeightMils(int aHeightInMils)
Set the height of Custom page in mils for any custom page constructed or made via SetType() after mak...
const VECTOR2I & GetSizeMils() const
wxPrintOrientation GetWxOrientation() const
const VECTOR2I GetSizeIU(double aIUScale) const
Gets the page size in internal units.
wxString m_type
paper type: A4, A3, etc.
int GetHeightMils() const
wxPaperSize GetPaperId() const
static const PAGE_INFO pageB
static const PAGE_INFO pageA3
static const wxChar GERBER[]
const wxString & GetType() const
static const PAGE_INFO pageA
static const PAGE_INFO pageA1
int GetWidthIU(double aIUScale) const
Gets the page width in IU.
static const PAGE_INFO pageA0
static const PAGE_INFO pageUSLegal
static const PAGE_INFO pageA2
wxPaperSize m_paper_id
wx' style paper id.
static int GetCustomWidthMils()
static const PAGE_INFO pageGERBER
bool SetType(const wxString &aStandardPageDescriptionName, bool aIsPortrait=false)
Set the name of the page type and also the sizes and margins commonly associated with that type name.