37#define MIN_PAGE_SIZE_MILS 1000
38#define MAX_PAGE_SIZE_PCBNEW_MILS 48000
39#define MAX_PAGE_SIZE_EESCHEMA_MILS 120000
42#define MIN_PAGE_SIZE_MM 25.4
43#define MAX_PAGE_SIZE_PCBNEW_MM 48000*.0254
44#define MAX_PAGE_SIZE_EESCHEMA_MM 120000*.0254
66 static const wxChar
A5[];
67 static const wxChar
A4[];
68 static const wxChar
A3[];
69 static const wxChar
A2[];
70 static const wxChar
A1[];
71 static const wxChar
A0[];
72 static const wxChar
A[];
73 static const wxChar
B[];
74 static const wxChar
C[];
75 static const wxChar
D[];
76 static const wxChar
E[];
97 bool SetType(
const wxString& aStandardPageDescriptionName,
bool aIsPortrait =
false );
209 PAGE_INFO(
const VECTOR2D& 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 const PAGE_INFO pageC
bool m_portrait
true if portrait, false if landscape
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 void SetCustomWidthMils(double aWidthInMils)
Set the width of Custom page in mils for any custom page constructed or made via SetType() after maki...
static const wxChar Custom[]
"User" defined page type
static const PAGE_INFO pageUSLedger
static const PAGE_INFO pageE
void SetWidthMM(double aWidthInMM)
static double s_user_width
static const PAGE_INFO pageA4
static const PAGE_INFO pageUser
void SetHeightMils(double aHeightInMils)
static double s_user_height
static const PAGE_INFO pageUSLetter
void SetHeightMM(double aHeightInMM)
double GetHeightMM() const
double GetWidthMM() const
const VECTOR2D & GetSizeMils() const
wxPrintOrientation GetWxOrientation() const
static double GetCustomHeightMils()
const VECTOR2D GetSizeIU(double aIUScale) const
Gets the page size in internal units.
wxString m_type
paper type: A4, A3, etc.
double 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.
double GetWidthMils() const
void SetWidthMils(double aWidthInMils)
static double GetCustomWidthMils()
static const PAGE_INFO pageA0
static void SetCustomHeightMils(double aHeightInMils)
Set the height of Custom page in mils for any custom page constructed or made via SetType() after mak...
static const PAGE_INFO pageUSLegal
static const PAGE_INFO pageA2
wxPaperSize m_paper_id
wx' style paper id.
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.
VECTOR2< double > VECTOR2D