bool GetAbort();
static wxPrinterError GetLastError();
+
};
class wxPyPrintout : public wxObject {
public:
%pythonAppend wxPyPrintout "self._setCallbackInfo(self, Printout)"
+ %typemap(out) wxPyPrintout*; // turn off this typemap
wxPyPrintout(const wxString& title = wxPyPrintoutTitleStr);
- //~wxPyPrintout(); wxPrintPreview object takes ownership...
+ ~wxPyPrintout();
+ // Turn it back on again
+ %typemap(out) wxPyPrintout* { $result = wxPyMake_wxObject($1, $owner); }
+
void _setCallbackInfo(PyObject* self, PyObject* _class);
class wxPreviewFrame : public wxFrame {
public:
+ %disownarg(wxPrintPreview*);
+
%pythonAppend wxPreviewFrame "self._setOORInfo(self)"
-
wxPreviewFrame(wxPrintPreview* preview, wxFrame* parent, const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxPyFrameNameStr);
+ %cleardisown(wxPrintPreview*);
+
void Initialize();
void CreateControlBar();
void CreateCanvas();
class wxPrintPreview : public wxObject {
public:
+ %disownarg(wxPyPrintout*);
+
%nokwargs wxPrintPreview;
wxPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPyPrintout* printoutForPrinting,
wxPrintData* data);
+ ~wxPrintPreview();
+
virtual bool SetCurrentPage(int pageNum);
int GetCurrentPage();
wxPyPrintout *GetPrintout();
wxPyPrintout *GetPrintoutForPrinting();
+ %cleardisown(wxPyPrintout*);
+
void SetFrame(wxFrame *frame);
void SetCanvas(wxPreviewCanvas *canvas);
class wxPyPrintPreview : public wxPrintPreview
{
public:
+ %disownarg(wxPyPrintout*);
+
%pythonAppend wxPyPrintPreview "self._setCallbackInfo(self, PyPrintPreview)"
%nokwargs wxPyPrintPreview;
wxPyPrintPreview(wxPyPrintout* printout,
wxPyPrintout* printoutForPrinting,
wxPrintData* data);
+ %cleardisown(wxPyPrintout*);
+
void _setCallbackInfo(PyObject* self, PyObject* _class);
bool SetCurrentPage(int pageNum);