Add wxHtmlPrintout::SetMargins(wxPageSetupDialogData) overload

Make it simpler to set the user-configured margins.

Closes #16872.
This commit is contained in:
Troels Knakkergaard
2016-03-05 03:33:08 +01:00
committed by Vadim Zeitlin
parent 10a2049093
commit c9a3a23e5a
3 changed files with 18 additions and 7 deletions

View File

@@ -156,9 +156,11 @@ public:
void SetMargins(float top = 25.2f, float bottom = 25.2f, float left = 25.2f, float right = 25.2f,
float spaces = 5);
// sets margins in milimeters. Defaults to 1 inch for margins and 0.5cm for space
// sets margins in millimeters. Defaults to 1 inch for margins and 0.5cm for space
// between text and header and/or footer
void SetMargins(const wxPageSetupDialogData& pageSetupData);
// wxPrintout stuff:
bool OnPrintPage(int page) wxOVERRIDE;
bool HasPage(int page) wxOVERRIDE;