101 bool SetType(
const wxString& aPageSize,
bool aIsPortrait =
false );
103 wxString GetTypeAsString()
const;
115 bool IsCustom()
const;
127 void SetPortrait(
bool aIsPortrait );
141 void SetWidthMils(
double aWidthInMils );
146 void SetHeightMils(
double aHeightInMils );
186 static void SetCustomWidthMils(
double aWidthInMils );
192 static void SetCustomHeightMils(
double aHeightInMils );
212 static const std::vector<PAGE_INFO>& GetPageFormatsList();
217 const wxString& aDescription = wxEmptyString );
219 void updatePortrait();
222 static std::vector<PAGE_INFO> standardPageSizes;
Describe the page size and margins of a paper page on which to eventually print or plot.
bool m_portrait
true if portrait, false if landscape
int GetHeightIU(double aIUScale) const
Gets the page height in IU.
bool SetType(PAGE_SIZE_TYPE aPageSize, bool aIsPortrait=false)
Set the name of the page type and also the sizes and margins commonly associated with that type name.
void SetWidthMM(double aWidthInMM)
static double s_user_width
void SetHeightMils(double aHeightInMils)
static double s_user_height
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.
double GetHeightMils() const
PAGE_INFO(PAGE_SIZE_TYPE aType=PAGE_SIZE_TYPE::A3, bool IsPortrait=false)
wxPaperSize GetPaperId() const
wxString m_description
more human friendly description of page size
const wxString & GetPageFormatDescription() const
int GetWidthIU(double aIUScale) const
Gets the page width in IU.
double GetWidthMils() const
void SetWidthMils(double aWidthInMils)
static double GetCustomWidthMils()
const PAGE_SIZE_TYPE & GetType() const
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.