PrintFramework fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-10 01:19:08 +00:00
parent 610926ab51
commit d88d4683f3
2 changed files with 29 additions and 13 deletions

View File

@@ -164,7 +164,9 @@ public:
class wxPrintDialogData : public wxObject {
public:
%nokwargs wxPrintDialogData;
wxPrintDialogData();
wxPrintDialogData(const wxPrintData& printData);
~wxPrintDialogData();
int GetFromPage() const;
@@ -458,9 +460,13 @@ public:
class wxPrintPreview : public wxObject {
public:
%nokwargs wxPrintPreview;
wxPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data=NULL);
wxPrintDialogData *data=NULL);
wxPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data);
virtual bool SetCurrentPage(int pageNum);
int GetCurrentPage();
@@ -545,6 +551,11 @@ class wxPyPrintPreview : public wxPrintPreview
{
DECLARE_CLASS(wxPyPrintPreview)
public:
wxPyPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintDialogData* data=NULL)
: wxPrintPreview(printout, printoutForPrinting, data)
{}
wxPyPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data=NULL)
@@ -585,10 +596,13 @@ class wxPyPrintPreview : public wxPrintPreview
{
public:
%pythonAppend wxPyPrintPreview "self._setCallbackInfo(self, PyPrintPreview)"
%nokwargs wxPyPrintPreview;
wxPyPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data=NULL);
wxPrintDialogData* data=NULL);
wxPyPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data);
void _setCallbackInfo(PyObject* self, PyObject* _class);