Reorgainize the wrappers for wxPrintDialogData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -218,38 +218,47 @@ public:
|
|||||||
wxPrintDialogData();
|
wxPrintDialogData();
|
||||||
~wxPrintDialogData();
|
~wxPrintDialogData();
|
||||||
|
|
||||||
void EnableHelp(bool flag);
|
int GetFromPage() const;
|
||||||
void EnablePageNumbers(bool flag);
|
int GetToPage() const;
|
||||||
|
int GetMinPage() const;
|
||||||
|
int GetMaxPage() const;
|
||||||
|
int GetNoCopies() const;
|
||||||
|
bool GetAllPages() const;
|
||||||
|
bool GetSelection() const;
|
||||||
|
bool GetCollate() const;
|
||||||
|
bool GetPrintToFile() const;
|
||||||
|
bool GetSetupDialog() const;
|
||||||
|
|
||||||
|
void SetFromPage(int v);
|
||||||
|
void SetToPage(int v);
|
||||||
|
void SetMinPage(int v);
|
||||||
|
void SetMaxPage(int v);
|
||||||
|
void SetNoCopies(int v);
|
||||||
|
void SetAllPages(bool flag);
|
||||||
|
void SetSelection(bool flag);
|
||||||
|
void SetCollate(bool flag);
|
||||||
|
void SetPrintToFile(bool flag);
|
||||||
|
void SetSetupDialog(bool flag);
|
||||||
|
|
||||||
void EnablePrintToFile(bool flag);
|
void EnablePrintToFile(bool flag);
|
||||||
void EnableSelection(bool flag);
|
void EnableSelection(bool flag);
|
||||||
bool GetAllPages();
|
void EnablePageNumbers(bool flag);
|
||||||
bool GetCollate();
|
void EnableHelp(bool flag);
|
||||||
int GetFromPage();
|
|
||||||
int GetMaxPage();
|
bool GetEnablePrintToFile() const;
|
||||||
int GetMinPage();
|
bool GetEnableSelection() const;
|
||||||
int GetNoCopies();
|
bool GetEnablePageNumbers() const;
|
||||||
bool GetSelection();
|
bool GetEnableHelp() const;
|
||||||
|
|
||||||
|
// Is this data OK for showing the print dialog?
|
||||||
|
bool Ok() const;
|
||||||
|
|
||||||
%addmethods {
|
%addmethods {
|
||||||
%new wxPrintData* GetPrintData() {
|
%new wxPrintData* GetPrintData() {
|
||||||
return new wxPrintData(self->GetPrintData()); // force a copy
|
return new wxPrintData(self->GetPrintData()); // force a copy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool GetPrintToFile();
|
|
||||||
int GetToPage();
|
|
||||||
|
|
||||||
bool Ok();
|
|
||||||
|
|
||||||
void SetCollate(bool flag);
|
|
||||||
void SetAllPages(bool flag);
|
|
||||||
void SetFromPage(int page);
|
|
||||||
void SetMaxPage(int page);
|
|
||||||
void SetMinPage(int page);
|
|
||||||
void SetNoCopies(int n);
|
|
||||||
void SetPrintData(const wxPrintData& printData);
|
void SetPrintData(const wxPrintData& printData);
|
||||||
void SetPrintToFile(bool flag);
|
|
||||||
void SetSelection(bool flag);
|
|
||||||
void SetSetupDialog(bool flag);
|
|
||||||
void SetToPage(int page);
|
|
||||||
|
|
||||||
%pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
|
%pragma(python) addtoclass = "def __nonzero__(self): return self.Ok()"
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user