Added some alternate constructors for the data classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,6 +133,7 @@ public:
|
|||||||
%nokwargs wxPageSetupDialogData;
|
%nokwargs wxPageSetupDialogData;
|
||||||
wxPageSetupDialogData();
|
wxPageSetupDialogData();
|
||||||
wxPageSetupDialogData(const wxPageSetupDialogData& data); // for making copies
|
wxPageSetupDialogData(const wxPageSetupDialogData& data); // for making copies
|
||||||
|
wxPageSetupDialogData(const wxPrintData& data);
|
||||||
~wxPageSetupDialogData();
|
~wxPageSetupDialogData();
|
||||||
|
|
||||||
void EnableHelp(bool flag);
|
void EnableHelp(bool flag);
|
||||||
@@ -140,6 +141,7 @@ public:
|
|||||||
void EnableOrientation(bool flag);
|
void EnableOrientation(bool flag);
|
||||||
void EnablePaper(bool flag);
|
void EnablePaper(bool flag);
|
||||||
void EnablePrinter(bool flag);
|
void EnablePrinter(bool flag);
|
||||||
|
|
||||||
bool GetDefaultMinMargins();
|
bool GetDefaultMinMargins();
|
||||||
bool GetEnableMargins();
|
bool GetEnableMargins();
|
||||||
bool GetEnableOrientation();
|
bool GetEnableOrientation();
|
||||||
@@ -155,11 +157,6 @@ public:
|
|||||||
wxSize GetPaperSize();
|
wxSize GetPaperSize();
|
||||||
|
|
||||||
wxPrintData& GetPrintData();
|
wxPrintData& GetPrintData();
|
||||||
// %addmethods {
|
|
||||||
// %new wxPrintData* GetPrintData() {
|
|
||||||
// return new wxPrintData(self->GetPrintData()); // force a copy
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
bool Ok();
|
bool Ok();
|
||||||
|
|
||||||
@@ -171,8 +168,16 @@ public:
|
|||||||
void SetMinMarginBottomRight(const wxPoint& pt);
|
void SetMinMarginBottomRight(const wxPoint& pt);
|
||||||
void SetPaperId(wxPaperSize id);
|
void SetPaperId(wxPaperSize id);
|
||||||
void SetPaperSize(const wxSize& size);
|
void SetPaperSize(const wxSize& size);
|
||||||
|
|
||||||
void SetPrintData(const wxPrintData& printData);
|
void SetPrintData(const wxPrintData& printData);
|
||||||
|
|
||||||
|
// Use paper size defined in this object to set the wxPrintData
|
||||||
|
// paper id
|
||||||
|
void CalculateIdFromPaperSize();
|
||||||
|
|
||||||
|
// Use paper id in wxPrintData to set this object's paper size
|
||||||
|
void CalculatePaperSizeFromId();
|
||||||
|
|
||||||
%pythoncode { def __nonzero__(self): return self.Ok() }
|
%pythoncode { def __nonzero__(self): return self.Ok() }
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -201,7 +206,8 @@ class wxPrintDialogData : public wxObject {
|
|||||||
public:
|
public:
|
||||||
%nokwargs wxPrintDialogData;
|
%nokwargs wxPrintDialogData;
|
||||||
wxPrintDialogData();
|
wxPrintDialogData();
|
||||||
wxPrintDialogData(const wxPrintData& printData); // for making copies
|
wxPrintDialogData(const wxPrintData& printData);
|
||||||
|
wxPrintDialogData(const wxPrintDialogData& printData); // for making copies
|
||||||
~wxPrintDialogData();
|
~wxPrintDialogData();
|
||||||
|
|
||||||
int GetFromPage() const;
|
int GetFromPage() const;
|
||||||
|
Reference in New Issue
Block a user