]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/printfw.cpp
SWIGged update for wxGTK
[wxWidgets.git] / wxPython / src / gtk / printfw.cpp
1 /*
2 * FILE : src/gtk/printfw.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initprintfwc
54
55 #define SWIG_name "printfwc"
56
57 #include "helpers.h"
58 #include <wx/print.h>
59 #include <wx/printdlg.h>
60 #include <wx/dcps.h>
61
62 #include "printfw.h"
63
64 // Put some wx default wxChar* values into wxStrings.
65 static const wxChar* wxPrintoutTitleStr = wxT("Printout");
66 DECLARE_DEF_STRING(PrintoutTitleStr);
67 static const wxChar* wxPreviewCanvasNameStr = wxT("previewcanvas");
68 DECLARE_DEF_STRING(PreviewCanvasNameStr);
69
70 DECLARE_DEF_STRING(FrameNameStr);
71 DECLARE_DEF_STRING(PanelNameStr);
72 DECLARE_DEF_STRING(DialogNameStr);
73
74
75
76 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
77 PyObject* o2;
78 PyObject* o3;
79
80 if (!target) {
81 target = o;
82 } else if (target == Py_None) {
83 Py_DECREF(Py_None);
84 target = o;
85 } else {
86 if (!PyTuple_Check(target)) {
87 o2 = target;
88 target = PyTuple_New(1);
89 PyTuple_SetItem(target, 0, o2);
90 }
91 o3 = PyTuple_New(1);
92 PyTuple_SetItem(o3, 0, o);
93
94 o2 = target;
95 target = PySequence_Concat(o2, o3);
96 Py_DECREF(o2);
97 Py_DECREF(o3);
98 }
99 return target;
100 }
101
102
103
104 // Since this one would be tough and ugly to do with the Macros...
105 void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
106 bool hadErr = FALSE;
107 bool found;
108
109 wxPyBeginBlockThreads();
110 if ((found = m_myInst.findCallback("GetPageInfo"))) {
111 PyObject* result = m_myInst.callCallbackObj(Py_BuildValue("()"));
112 if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) {
113 PyObject* val;
114
115 val = PyTuple_GetItem(result, 0);
116 if (PyInt_Check(val)) *minPage = PyInt_AsLong(val);
117 else hadErr = TRUE;
118
119 val = PyTuple_GetItem(result, 1);
120 if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val);
121 else hadErr = TRUE;
122
123 val = PyTuple_GetItem(result, 2);
124 if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val);
125 else hadErr = TRUE;
126
127 val = PyTuple_GetItem(result, 3);
128 if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val);
129 else hadErr = TRUE;
130 }
131 else
132 hadErr = TRUE;
133
134 if (hadErr) {
135 PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers.");
136 PyErr_Print();
137 }
138 Py_DECREF(result);
139 }
140 wxPyEndBlockThreads();
141 if (! found)
142 wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
143 }
144
145 void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
146 wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
147 }
148
149
150 IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument);
151 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument);
152 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting);
153 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting);
154 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting);
155 IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage);
156 IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage);
157
158
159
160
161 #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \
162 bool CBNAME(wxPreviewCanvas* a, wxDC& b); \
163 bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b)
164
165
166 #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \
167 bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \
168 bool rval=FALSE; \
169 bool found; \
170 wxPyBeginBlockThreads(); \
171 if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \
172 PyObject* win = wxPyMake_wxObject(a); \
173 PyObject* dc = wxPyMake_wxObject(&b); \
174 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\
175 Py_DECREF(win); \
176 Py_DECREF(dc); \
177 } \
178 wxPyEndBlockThreads(); \
179 if (! found) \
180 rval = PCLASS::CBNAME(a, b); \
181 return rval; \
182 } \
183 bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \
184 return PCLASS::CBNAME(a, b); \
185 }
186
187
188
189
190 class wxPyPrintPreview : public wxPrintPreview
191 {
192 DECLARE_CLASS(wxPyPrintPreview)
193 public:
194 wxPyPrintPreview(wxPyPrintout* printout,
195 wxPyPrintout* printoutForPrinting,
196 wxPrintData* data=NULL)
197 : wxPrintPreview(printout, printoutForPrinting, data)
198 {}
199
200 DEC_PYCALLBACK_BOOL_INT(SetCurrentPage);
201 DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage);
202 DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage);
203 DEC_PYCALLBACK_BOOL_INT(RenderPage);
204 DEC_PYCALLBACK_VOID_INT(SetZoom);
205 DEC_PYCALLBACK_BOOL_BOOL(Print);
206 DEC_PYCALLBACK_VOID_(DetermineScaling);
207
208 PYPRIVATE;
209 };
210
211 // Stupid renamed classes... Fix this in 2.5...
212 #if defined(__WXMSW__)
213 IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview );
214 #elif defined(__WXMAC__)
215 IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview );
216 #else
217 IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview );
218 #endif
219
220 IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage);
221 IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage);
222 IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage);
223 IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage);
224 IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom);
225 IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print);
226 IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling);
227
228 class wxPyPreviewFrame : public wxPreviewFrame
229 {
230 DECLARE_CLASS(wxPyPreviewFrame);
231 public:
232 wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent,
233 const wxString& title,
234 const wxPoint& pos = wxDefaultPosition,
235 const wxSize& size = wxDefaultSize,
236 long style = wxDEFAULT_FRAME_STYLE,
237 const wxString& name = wxPyFrameNameStr)
238 : wxPreviewFrame(preview, parent, title, pos, size, style, name)
239 {}
240
241 void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; }
242 void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; }
243
244 DEC_PYCALLBACK_VOID_(Initialize);
245 DEC_PYCALLBACK_VOID_(CreateCanvas);
246 DEC_PYCALLBACK_VOID_(CreateControlBar);
247
248 PYPRIVATE;
249 };
250
251 IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame);
252
253 IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize);
254 IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas);
255 IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar);
256
257 class wxPyPreviewControlBar : public wxPreviewControlBar
258 {
259 DECLARE_CLASS(wxPyPreviewControlBar);
260 public:
261 wxPyPreviewControlBar(wxPrintPreview *preview,
262 long buttons,
263 wxWindow *parent,
264 const wxPoint& pos = wxDefaultPosition,
265 const wxSize& size = wxDefaultSize,
266 long style = 0,
267 const wxString& name = wxPyPanelNameStr)
268 : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name)
269 {}
270
271 void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; }
272
273 DEC_PYCALLBACK_VOID_(CreateButtons);
274 DEC_PYCALLBACK_VOID_INT(SetZoomControl);
275
276 PYPRIVATE;
277 };
278
279 IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar);
280 IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons);
281 IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl);
282 #ifdef __cplusplus
283 extern "C" {
284 #endif
285 static void *SwigwxPrintDataTowxObject(void *ptr) {
286 wxPrintData *src;
287 wxObject *dest;
288 src = (wxPrintData *) ptr;
289 dest = (wxObject *) src;
290 return (void *) dest;
291 }
292
293 #define new_wxPrintData() (new wxPrintData())
294 static PyObject *_wrap_new_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
295 PyObject * _resultobj;
296 wxPrintData * _result;
297 char *_kwnames[] = { NULL };
298 char _ptemp[128];
299
300 self = self;
301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintData",_kwnames))
302 return NULL;
303 {
304 PyThreadState* __tstate = wxPyBeginAllowThreads();
305 _result = (wxPrintData *)new_wxPrintData();
306
307 wxPyEndAllowThreads(__tstate);
308 if (PyErr_Occurred()) return NULL;
309 } if (_result) {
310 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
311 _resultobj = Py_BuildValue("s",_ptemp);
312 } else {
313 Py_INCREF(Py_None);
314 _resultobj = Py_None;
315 }
316 return _resultobj;
317 }
318
319 #define delete_wxPrintData(_swigobj) (delete _swigobj)
320 static PyObject *_wrap_delete_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
321 PyObject * _resultobj;
322 wxPrintData * _arg0;
323 PyObject * _argo0 = 0;
324 char *_kwnames[] = { "self", NULL };
325
326 self = self;
327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintData",_kwnames,&_argo0))
328 return NULL;
329 if (_argo0) {
330 if (_argo0 == Py_None) { _arg0 = NULL; }
331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintData. Expected _wxPrintData_p.");
333 return NULL;
334 }
335 }
336 {
337 PyThreadState* __tstate = wxPyBeginAllowThreads();
338 delete_wxPrintData(_arg0);
339
340 wxPyEndAllowThreads(__tstate);
341 if (PyErr_Occurred()) return NULL;
342 } Py_INCREF(Py_None);
343 _resultobj = Py_None;
344 return _resultobj;
345 }
346
347 #define wxPrintData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
348 static PyObject *_wrap_wxPrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
349 PyObject * _resultobj;
350 int _result;
351 wxPrintData * _arg0;
352 PyObject * _argo0 = 0;
353 char *_kwnames[] = { "self", NULL };
354
355 self = self;
356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetNoCopies",_kwnames,&_argo0))
357 return NULL;
358 if (_argo0) {
359 if (_argo0 == Py_None) { _arg0 = NULL; }
360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetNoCopies. Expected _wxPrintData_p.");
362 return NULL;
363 }
364 }
365 {
366 PyThreadState* __tstate = wxPyBeginAllowThreads();
367 _result = (int )wxPrintData_GetNoCopies(_arg0);
368
369 wxPyEndAllowThreads(__tstate);
370 if (PyErr_Occurred()) return NULL;
371 } _resultobj = Py_BuildValue("i",_result);
372 return _resultobj;
373 }
374
375 #define wxPrintData_GetCollate(_swigobj) (_swigobj->GetCollate())
376 static PyObject *_wrap_wxPrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
377 PyObject * _resultobj;
378 bool _result;
379 wxPrintData * _arg0;
380 PyObject * _argo0 = 0;
381 char *_kwnames[] = { "self", NULL };
382
383 self = self;
384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetCollate",_kwnames,&_argo0))
385 return NULL;
386 if (_argo0) {
387 if (_argo0 == Py_None) { _arg0 = NULL; }
388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetCollate. Expected _wxPrintData_p.");
390 return NULL;
391 }
392 }
393 {
394 PyThreadState* __tstate = wxPyBeginAllowThreads();
395 _result = (bool )wxPrintData_GetCollate(_arg0);
396
397 wxPyEndAllowThreads(__tstate);
398 if (PyErr_Occurred()) return NULL;
399 } _resultobj = Py_BuildValue("i",_result);
400 return _resultobj;
401 }
402
403 #define wxPrintData_GetOrientation(_swigobj) (_swigobj->GetOrientation())
404 static PyObject *_wrap_wxPrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
405 PyObject * _resultobj;
406 int _result;
407 wxPrintData * _arg0;
408 PyObject * _argo0 = 0;
409 char *_kwnames[] = { "self", NULL };
410
411 self = self;
412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetOrientation",_kwnames,&_argo0))
413 return NULL;
414 if (_argo0) {
415 if (_argo0 == Py_None) { _arg0 = NULL; }
416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetOrientation. Expected _wxPrintData_p.");
418 return NULL;
419 }
420 }
421 {
422 PyThreadState* __tstate = wxPyBeginAllowThreads();
423 _result = (int )wxPrintData_GetOrientation(_arg0);
424
425 wxPyEndAllowThreads(__tstate);
426 if (PyErr_Occurred()) return NULL;
427 } _resultobj = Py_BuildValue("i",_result);
428 return _resultobj;
429 }
430
431 #define wxPrintData_Ok(_swigobj) (_swigobj->Ok())
432 static PyObject *_wrap_wxPrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
433 PyObject * _resultobj;
434 bool _result;
435 wxPrintData * _arg0;
436 PyObject * _argo0 = 0;
437 char *_kwnames[] = { "self", NULL };
438
439 self = self;
440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_Ok",_kwnames,&_argo0))
441 return NULL;
442 if (_argo0) {
443 if (_argo0 == Py_None) { _arg0 = NULL; }
444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_Ok. Expected _wxPrintData_p.");
446 return NULL;
447 }
448 }
449 {
450 PyThreadState* __tstate = wxPyBeginAllowThreads();
451 _result = (bool )wxPrintData_Ok(_arg0);
452
453 wxPyEndAllowThreads(__tstate);
454 if (PyErr_Occurred()) return NULL;
455 } _resultobj = Py_BuildValue("i",_result);
456 return _resultobj;
457 }
458
459 #define wxPrintData_GetPrinterName(_swigobj) (_swigobj->GetPrinterName())
460 static PyObject *_wrap_wxPrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) {
461 PyObject * _resultobj;
462 wxString * _result;
463 wxPrintData * _arg0;
464 PyObject * _argo0 = 0;
465 char *_kwnames[] = { "self", NULL };
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterName",_kwnames,&_argo0))
469 return NULL;
470 if (_argo0) {
471 if (_argo0 == Py_None) { _arg0 = NULL; }
472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterName. Expected _wxPrintData_p.");
474 return NULL;
475 }
476 }
477 {
478 PyThreadState* __tstate = wxPyBeginAllowThreads();
479 const wxString & _result_ref = wxPrintData_GetPrinterName(_arg0);
480 _result = (wxString *) &_result_ref;
481
482 wxPyEndAllowThreads(__tstate);
483 if (PyErr_Occurred()) return NULL;
484 }{
485 #if wxUSE_UNICODE
486 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
487 #else
488 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
489 #endif
490 }
491 return _resultobj;
492 }
493
494 #define wxPrintData_GetColour(_swigobj) (_swigobj->GetColour())
495 static PyObject *_wrap_wxPrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
496 PyObject * _resultobj;
497 bool _result;
498 wxPrintData * _arg0;
499 PyObject * _argo0 = 0;
500 char *_kwnames[] = { "self", NULL };
501
502 self = self;
503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetColour",_kwnames,&_argo0))
504 return NULL;
505 if (_argo0) {
506 if (_argo0 == Py_None) { _arg0 = NULL; }
507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetColour. Expected _wxPrintData_p.");
509 return NULL;
510 }
511 }
512 {
513 PyThreadState* __tstate = wxPyBeginAllowThreads();
514 _result = (bool )wxPrintData_GetColour(_arg0);
515
516 wxPyEndAllowThreads(__tstate);
517 if (PyErr_Occurred()) return NULL;
518 } _resultobj = Py_BuildValue("i",_result);
519 return _resultobj;
520 }
521
522 #define wxPrintData_GetDuplex(_swigobj) (_swigobj->GetDuplex())
523 static PyObject *_wrap_wxPrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) {
524 PyObject * _resultobj;
525 wxDuplexMode _result;
526 wxPrintData * _arg0;
527 PyObject * _argo0 = 0;
528 char *_kwnames[] = { "self", NULL };
529
530 self = self;
531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetDuplex",_kwnames,&_argo0))
532 return NULL;
533 if (_argo0) {
534 if (_argo0 == Py_None) { _arg0 = NULL; }
535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetDuplex. Expected _wxPrintData_p.");
537 return NULL;
538 }
539 }
540 {
541 PyThreadState* __tstate = wxPyBeginAllowThreads();
542 _result = (wxDuplexMode )wxPrintData_GetDuplex(_arg0);
543
544 wxPyEndAllowThreads(__tstate);
545 if (PyErr_Occurred()) return NULL;
546 } _resultobj = Py_BuildValue("i",_result);
547 return _resultobj;
548 }
549
550 #define wxPrintData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
551 static PyObject *_wrap_wxPrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
552 PyObject * _resultobj;
553 wxPaperSize _result;
554 wxPrintData * _arg0;
555 PyObject * _argo0 = 0;
556 char *_kwnames[] = { "self", NULL };
557
558 self = self;
559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperId",_kwnames,&_argo0))
560 return NULL;
561 if (_argo0) {
562 if (_argo0 == Py_None) { _arg0 = NULL; }
563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperId. Expected _wxPrintData_p.");
565 return NULL;
566 }
567 }
568 {
569 PyThreadState* __tstate = wxPyBeginAllowThreads();
570 _result = (wxPaperSize )wxPrintData_GetPaperId(_arg0);
571
572 wxPyEndAllowThreads(__tstate);
573 if (PyErr_Occurred()) return NULL;
574 } _resultobj = Py_BuildValue("i",_result);
575 return _resultobj;
576 }
577
578 #define wxPrintData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
579 static PyObject *_wrap_wxPrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
580 PyObject * _resultobj;
581 wxSize * _result;
582 wxPrintData * _arg0;
583 PyObject * _argo0 = 0;
584 char *_kwnames[] = { "self", NULL };
585 char _ptemp[128];
586
587 self = self;
588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperSize",_kwnames,&_argo0))
589 return NULL;
590 if (_argo0) {
591 if (_argo0 == Py_None) { _arg0 = NULL; }
592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperSize. Expected _wxPrintData_p.");
594 return NULL;
595 }
596 }
597 {
598 PyThreadState* __tstate = wxPyBeginAllowThreads();
599 const wxSize & _result_ref = wxPrintData_GetPaperSize(_arg0);
600 _result = (wxSize *) &_result_ref;
601
602 wxPyEndAllowThreads(__tstate);
603 if (PyErr_Occurred()) return NULL;
604 } if (_result) {
605 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p");
606 _resultobj = Py_BuildValue("s",_ptemp);
607 } else {
608 Py_INCREF(Py_None);
609 _resultobj = Py_None;
610 }
611 return _resultobj;
612 }
613
614 #define wxPrintData_GetQuality(_swigobj) (_swigobj->GetQuality())
615 static PyObject *_wrap_wxPrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
616 PyObject * _resultobj;
617 wxPrintQuality _result;
618 wxPrintData * _arg0;
619 PyObject * _argo0 = 0;
620 char *_kwnames[] = { "self", NULL };
621
622 self = self;
623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetQuality",_kwnames,&_argo0))
624 return NULL;
625 if (_argo0) {
626 if (_argo0 == Py_None) { _arg0 = NULL; }
627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetQuality. Expected _wxPrintData_p.");
629 return NULL;
630 }
631 }
632 {
633 PyThreadState* __tstate = wxPyBeginAllowThreads();
634 _result = (wxPrintQuality )wxPrintData_GetQuality(_arg0);
635
636 wxPyEndAllowThreads(__tstate);
637 if (PyErr_Occurred()) return NULL;
638 } _resultobj = Py_BuildValue("i",_result);
639 return _resultobj;
640 }
641
642 #define wxPrintData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
643 static PyObject *_wrap_wxPrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
644 PyObject * _resultobj;
645 wxPrintData * _arg0;
646 int _arg1;
647 PyObject * _argo0 = 0;
648 char *_kwnames[] = { "self","v", NULL };
649
650 self = self;
651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetNoCopies",_kwnames,&_argo0,&_arg1))
652 return NULL;
653 if (_argo0) {
654 if (_argo0 == Py_None) { _arg0 = NULL; }
655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetNoCopies. Expected _wxPrintData_p.");
657 return NULL;
658 }
659 }
660 {
661 PyThreadState* __tstate = wxPyBeginAllowThreads();
662 wxPrintData_SetNoCopies(_arg0,_arg1);
663
664 wxPyEndAllowThreads(__tstate);
665 if (PyErr_Occurred()) return NULL;
666 } Py_INCREF(Py_None);
667 _resultobj = Py_None;
668 return _resultobj;
669 }
670
671 #define wxPrintData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
672 static PyObject *_wrap_wxPrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
673 PyObject * _resultobj;
674 wxPrintData * _arg0;
675 bool _arg1;
676 PyObject * _argo0 = 0;
677 int tempbool1;
678 char *_kwnames[] = { "self","flag", NULL };
679
680 self = self;
681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetCollate",_kwnames,&_argo0,&tempbool1))
682 return NULL;
683 if (_argo0) {
684 if (_argo0 == Py_None) { _arg0 = NULL; }
685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetCollate. Expected _wxPrintData_p.");
687 return NULL;
688 }
689 }
690 _arg1 = (bool ) tempbool1;
691 {
692 PyThreadState* __tstate = wxPyBeginAllowThreads();
693 wxPrintData_SetCollate(_arg0,_arg1);
694
695 wxPyEndAllowThreads(__tstate);
696 if (PyErr_Occurred()) return NULL;
697 } Py_INCREF(Py_None);
698 _resultobj = Py_None;
699 return _resultobj;
700 }
701
702 #define wxPrintData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
703 static PyObject *_wrap_wxPrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
704 PyObject * _resultobj;
705 wxPrintData * _arg0;
706 int _arg1;
707 PyObject * _argo0 = 0;
708 char *_kwnames[] = { "self","orient", NULL };
709
710 self = self;
711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetOrientation",_kwnames,&_argo0,&_arg1))
712 return NULL;
713 if (_argo0) {
714 if (_argo0 == Py_None) { _arg0 = NULL; }
715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetOrientation. Expected _wxPrintData_p.");
717 return NULL;
718 }
719 }
720 {
721 PyThreadState* __tstate = wxPyBeginAllowThreads();
722 wxPrintData_SetOrientation(_arg0,_arg1);
723
724 wxPyEndAllowThreads(__tstate);
725 if (PyErr_Occurred()) return NULL;
726 } Py_INCREF(Py_None);
727 _resultobj = Py_None;
728 return _resultobj;
729 }
730
731 #define wxPrintData_SetPrinterName(_swigobj,_swigarg0) (_swigobj->SetPrinterName(_swigarg0))
732 static PyObject *_wrap_wxPrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) {
733 PyObject * _resultobj;
734 wxPrintData * _arg0;
735 wxString * _arg1;
736 PyObject * _argo0 = 0;
737 PyObject * _obj1 = 0;
738 char *_kwnames[] = { "self","name", NULL };
739
740 self = self;
741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterName",_kwnames,&_argo0,&_obj1))
742 return NULL;
743 if (_argo0) {
744 if (_argo0 == Py_None) { _arg0 = NULL; }
745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterName. Expected _wxPrintData_p.");
747 return NULL;
748 }
749 }
750 {
751 _arg1 = wxString_in_helper(_obj1);
752 if (_arg1 == NULL)
753 return NULL;
754 }
755 {
756 PyThreadState* __tstate = wxPyBeginAllowThreads();
757 wxPrintData_SetPrinterName(_arg0,*_arg1);
758
759 wxPyEndAllowThreads(__tstate);
760 if (PyErr_Occurred()) return NULL;
761 } Py_INCREF(Py_None);
762 _resultobj = Py_None;
763 {
764 if (_obj1)
765 delete _arg1;
766 }
767 return _resultobj;
768 }
769
770 #define wxPrintData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
771 static PyObject *_wrap_wxPrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
772 PyObject * _resultobj;
773 wxPrintData * _arg0;
774 bool _arg1;
775 PyObject * _argo0 = 0;
776 int tempbool1;
777 char *_kwnames[] = { "self","colour", NULL };
778
779 self = self;
780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetColour",_kwnames,&_argo0,&tempbool1))
781 return NULL;
782 if (_argo0) {
783 if (_argo0 == Py_None) { _arg0 = NULL; }
784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetColour. Expected _wxPrintData_p.");
786 return NULL;
787 }
788 }
789 _arg1 = (bool ) tempbool1;
790 {
791 PyThreadState* __tstate = wxPyBeginAllowThreads();
792 wxPrintData_SetColour(_arg0,_arg1);
793
794 wxPyEndAllowThreads(__tstate);
795 if (PyErr_Occurred()) return NULL;
796 } Py_INCREF(Py_None);
797 _resultobj = Py_None;
798 return _resultobj;
799 }
800
801 #define wxPrintData_SetDuplex(_swigobj,_swigarg0) (_swigobj->SetDuplex(_swigarg0))
802 static PyObject *_wrap_wxPrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) {
803 PyObject * _resultobj;
804 wxPrintData * _arg0;
805 wxDuplexMode _arg1;
806 PyObject * _argo0 = 0;
807 char *_kwnames[] = { "self","duplex", NULL };
808
809 self = self;
810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetDuplex",_kwnames,&_argo0,&_arg1))
811 return NULL;
812 if (_argo0) {
813 if (_argo0 == Py_None) { _arg0 = NULL; }
814 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
815 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetDuplex. Expected _wxPrintData_p.");
816 return NULL;
817 }
818 }
819 {
820 PyThreadState* __tstate = wxPyBeginAllowThreads();
821 wxPrintData_SetDuplex(_arg0,_arg1);
822
823 wxPyEndAllowThreads(__tstate);
824 if (PyErr_Occurred()) return NULL;
825 } Py_INCREF(Py_None);
826 _resultobj = Py_None;
827 return _resultobj;
828 }
829
830 #define wxPrintData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
831 static PyObject *_wrap_wxPrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
832 PyObject * _resultobj;
833 wxPrintData * _arg0;
834 wxPaperSize _arg1;
835 PyObject * _argo0 = 0;
836 char *_kwnames[] = { "self","sizeId", NULL };
837
838 self = self;
839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPaperId",_kwnames,&_argo0,&_arg1))
840 return NULL;
841 if (_argo0) {
842 if (_argo0 == Py_None) { _arg0 = NULL; }
843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperId. Expected _wxPrintData_p.");
845 return NULL;
846 }
847 }
848 {
849 PyThreadState* __tstate = wxPyBeginAllowThreads();
850 wxPrintData_SetPaperId(_arg0,_arg1);
851
852 wxPyEndAllowThreads(__tstate);
853 if (PyErr_Occurred()) return NULL;
854 } Py_INCREF(Py_None);
855 _resultobj = Py_None;
856 return _resultobj;
857 }
858
859 #define wxPrintData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
860 static PyObject *_wrap_wxPrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
861 PyObject * _resultobj;
862 wxPrintData * _arg0;
863 wxSize * _arg1;
864 PyObject * _argo0 = 0;
865 wxSize temp;
866 PyObject * _obj1 = 0;
867 char *_kwnames[] = { "self","sz", NULL };
868
869 self = self;
870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPaperSize",_kwnames,&_argo0,&_obj1))
871 return NULL;
872 if (_argo0) {
873 if (_argo0 == Py_None) { _arg0 = NULL; }
874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperSize. Expected _wxPrintData_p.");
876 return NULL;
877 }
878 }
879 {
880 _arg1 = &temp;
881 if (! wxSize_helper(_obj1, &_arg1))
882 return NULL;
883 }
884 {
885 PyThreadState* __tstate = wxPyBeginAllowThreads();
886 wxPrintData_SetPaperSize(_arg0,*_arg1);
887
888 wxPyEndAllowThreads(__tstate);
889 if (PyErr_Occurred()) return NULL;
890 } Py_INCREF(Py_None);
891 _resultobj = Py_None;
892 return _resultobj;
893 }
894
895 #define wxPrintData_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
896 static PyObject *_wrap_wxPrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
897 PyObject * _resultobj;
898 wxPrintData * _arg0;
899 wxPrintQuality _arg1;
900 PyObject * _argo0 = 0;
901 char *_kwnames[] = { "self","quality", NULL };
902
903 self = self;
904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetQuality",_kwnames,&_argo0,&_arg1))
905 return NULL;
906 if (_argo0) {
907 if (_argo0 == Py_None) { _arg0 = NULL; }
908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetQuality. Expected _wxPrintData_p.");
910 return NULL;
911 }
912 }
913 {
914 PyThreadState* __tstate = wxPyBeginAllowThreads();
915 wxPrintData_SetQuality(_arg0,_arg1);
916
917 wxPyEndAllowThreads(__tstate);
918 if (PyErr_Occurred()) return NULL;
919 } Py_INCREF(Py_None);
920 _resultobj = Py_None;
921 return _resultobj;
922 }
923
924 #define wxPrintData_GetPrinterCommand(_swigobj) (_swigobj->GetPrinterCommand())
925 static PyObject *_wrap_wxPrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
926 PyObject * _resultobj;
927 wxString * _result;
928 wxPrintData * _arg0;
929 PyObject * _argo0 = 0;
930 char *_kwnames[] = { "self", NULL };
931
932 self = self;
933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterCommand",_kwnames,&_argo0))
934 return NULL;
935 if (_argo0) {
936 if (_argo0 == Py_None) { _arg0 = NULL; }
937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterCommand. Expected _wxPrintData_p.");
939 return NULL;
940 }
941 }
942 {
943 PyThreadState* __tstate = wxPyBeginAllowThreads();
944 const wxString & _result_ref = wxPrintData_GetPrinterCommand(_arg0);
945 _result = (wxString *) &_result_ref;
946
947 wxPyEndAllowThreads(__tstate);
948 if (PyErr_Occurred()) return NULL;
949 }{
950 #if wxUSE_UNICODE
951 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
952 #else
953 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
954 #endif
955 }
956 return _resultobj;
957 }
958
959 #define wxPrintData_GetPrinterOptions(_swigobj) (_swigobj->GetPrinterOptions())
960 static PyObject *_wrap_wxPrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
961 PyObject * _resultobj;
962 wxString * _result;
963 wxPrintData * _arg0;
964 PyObject * _argo0 = 0;
965 char *_kwnames[] = { "self", NULL };
966
967 self = self;
968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterOptions",_kwnames,&_argo0))
969 return NULL;
970 if (_argo0) {
971 if (_argo0 == Py_None) { _arg0 = NULL; }
972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterOptions. Expected _wxPrintData_p.");
974 return NULL;
975 }
976 }
977 {
978 PyThreadState* __tstate = wxPyBeginAllowThreads();
979 const wxString & _result_ref = wxPrintData_GetPrinterOptions(_arg0);
980 _result = (wxString *) &_result_ref;
981
982 wxPyEndAllowThreads(__tstate);
983 if (PyErr_Occurred()) return NULL;
984 }{
985 #if wxUSE_UNICODE
986 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
987 #else
988 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
989 #endif
990 }
991 return _resultobj;
992 }
993
994 #define wxPrintData_GetPreviewCommand(_swigobj) (_swigobj->GetPreviewCommand())
995 static PyObject *_wrap_wxPrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
996 PyObject * _resultobj;
997 wxString * _result;
998 wxPrintData * _arg0;
999 PyObject * _argo0 = 0;
1000 char *_kwnames[] = { "self", NULL };
1001
1002 self = self;
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPreviewCommand",_kwnames,&_argo0))
1004 return NULL;
1005 if (_argo0) {
1006 if (_argo0 == Py_None) { _arg0 = NULL; }
1007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPreviewCommand. Expected _wxPrintData_p.");
1009 return NULL;
1010 }
1011 }
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 const wxString & _result_ref = wxPrintData_GetPreviewCommand(_arg0);
1015 _result = (wxString *) &_result_ref;
1016
1017 wxPyEndAllowThreads(__tstate);
1018 if (PyErr_Occurred()) return NULL;
1019 }{
1020 #if wxUSE_UNICODE
1021 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1022 #else
1023 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1024 #endif
1025 }
1026 return _resultobj;
1027 }
1028
1029 #define wxPrintData_GetFilename(_swigobj) (_swigobj->GetFilename())
1030 static PyObject *_wrap_wxPrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject * _resultobj;
1032 wxString * _result;
1033 wxPrintData * _arg0;
1034 PyObject * _argo0 = 0;
1035 char *_kwnames[] = { "self", NULL };
1036
1037 self = self;
1038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetFilename",_kwnames,&_argo0))
1039 return NULL;
1040 if (_argo0) {
1041 if (_argo0 == Py_None) { _arg0 = NULL; }
1042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFilename. Expected _wxPrintData_p.");
1044 return NULL;
1045 }
1046 }
1047 {
1048 PyThreadState* __tstate = wxPyBeginAllowThreads();
1049 const wxString & _result_ref = wxPrintData_GetFilename(_arg0);
1050 _result = (wxString *) &_result_ref;
1051
1052 wxPyEndAllowThreads(__tstate);
1053 if (PyErr_Occurred()) return NULL;
1054 }{
1055 #if wxUSE_UNICODE
1056 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1057 #else
1058 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1059 #endif
1060 }
1061 return _resultobj;
1062 }
1063
1064 #define wxPrintData_GetFontMetricPath(_swigobj) (_swigobj->GetFontMetricPath())
1065 static PyObject *_wrap_wxPrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1066 PyObject * _resultobj;
1067 wxString * _result;
1068 wxPrintData * _arg0;
1069 PyObject * _argo0 = 0;
1070 char *_kwnames[] = { "self", NULL };
1071
1072 self = self;
1073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetFontMetricPath",_kwnames,&_argo0))
1074 return NULL;
1075 if (_argo0) {
1076 if (_argo0 == Py_None) { _arg0 = NULL; }
1077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFontMetricPath. Expected _wxPrintData_p.");
1079 return NULL;
1080 }
1081 }
1082 {
1083 PyThreadState* __tstate = wxPyBeginAllowThreads();
1084 const wxString & _result_ref = wxPrintData_GetFontMetricPath(_arg0);
1085 _result = (wxString *) &_result_ref;
1086
1087 wxPyEndAllowThreads(__tstate);
1088 if (PyErr_Occurred()) return NULL;
1089 }{
1090 #if wxUSE_UNICODE
1091 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
1092 #else
1093 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1094 #endif
1095 }
1096 return _resultobj;
1097 }
1098
1099 #define wxPrintData_GetPrinterScaleX(_swigobj) (_swigobj->GetPrinterScaleX())
1100 static PyObject *_wrap_wxPrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
1101 PyObject * _resultobj;
1102 double _result;
1103 wxPrintData * _arg0;
1104 PyObject * _argo0 = 0;
1105 char *_kwnames[] = { "self", NULL };
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleX",_kwnames,&_argo0))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleX. Expected _wxPrintData_p.");
1114 return NULL;
1115 }
1116 }
1117 {
1118 PyThreadState* __tstate = wxPyBeginAllowThreads();
1119 _result = (double )wxPrintData_GetPrinterScaleX(_arg0);
1120
1121 wxPyEndAllowThreads(__tstate);
1122 if (PyErr_Occurred()) return NULL;
1123 } _resultobj = Py_BuildValue("d",_result);
1124 return _resultobj;
1125 }
1126
1127 #define wxPrintData_GetPrinterScaleY(_swigobj) (_swigobj->GetPrinterScaleY())
1128 static PyObject *_wrap_wxPrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
1129 PyObject * _resultobj;
1130 double _result;
1131 wxPrintData * _arg0;
1132 PyObject * _argo0 = 0;
1133 char *_kwnames[] = { "self", NULL };
1134
1135 self = self;
1136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleY",_kwnames,&_argo0))
1137 return NULL;
1138 if (_argo0) {
1139 if (_argo0 == Py_None) { _arg0 = NULL; }
1140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleY. Expected _wxPrintData_p.");
1142 return NULL;
1143 }
1144 }
1145 {
1146 PyThreadState* __tstate = wxPyBeginAllowThreads();
1147 _result = (double )wxPrintData_GetPrinterScaleY(_arg0);
1148
1149 wxPyEndAllowThreads(__tstate);
1150 if (PyErr_Occurred()) return NULL;
1151 } _resultobj = Py_BuildValue("d",_result);
1152 return _resultobj;
1153 }
1154
1155 #define wxPrintData_GetPrinterTranslateX(_swigobj) (_swigobj->GetPrinterTranslateX())
1156 static PyObject *_wrap_wxPrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) {
1157 PyObject * _resultobj;
1158 long _result;
1159 wxPrintData * _arg0;
1160 PyObject * _argo0 = 0;
1161 char *_kwnames[] = { "self", NULL };
1162
1163 self = self;
1164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateX",_kwnames,&_argo0))
1165 return NULL;
1166 if (_argo0) {
1167 if (_argo0 == Py_None) { _arg0 = NULL; }
1168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterTranslateX. Expected _wxPrintData_p.");
1170 return NULL;
1171 }
1172 }
1173 {
1174 PyThreadState* __tstate = wxPyBeginAllowThreads();
1175 _result = (long )wxPrintData_GetPrinterTranslateX(_arg0);
1176
1177 wxPyEndAllowThreads(__tstate);
1178 if (PyErr_Occurred()) return NULL;
1179 } _resultobj = Py_BuildValue("l",_result);
1180 return _resultobj;
1181 }
1182
1183 #define wxPrintData_GetPrinterTranslateY(_swigobj) (_swigobj->GetPrinterTranslateY())
1184 static PyObject *_wrap_wxPrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) {
1185 PyObject * _resultobj;
1186 long _result;
1187 wxPrintData * _arg0;
1188 PyObject * _argo0 = 0;
1189 char *_kwnames[] = { "self", NULL };
1190
1191 self = self;
1192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateY",_kwnames,&_argo0))
1193 return NULL;
1194 if (_argo0) {
1195 if (_argo0 == Py_None) { _arg0 = NULL; }
1196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterTranslateY. Expected _wxPrintData_p.");
1198 return NULL;
1199 }
1200 }
1201 {
1202 PyThreadState* __tstate = wxPyBeginAllowThreads();
1203 _result = (long )wxPrintData_GetPrinterTranslateY(_arg0);
1204
1205 wxPyEndAllowThreads(__tstate);
1206 if (PyErr_Occurred()) return NULL;
1207 } _resultobj = Py_BuildValue("l",_result);
1208 return _resultobj;
1209 }
1210
1211 #define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
1212 static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1213 PyObject * _resultobj;
1214 wxPrintMode _result;
1215 wxPrintData * _arg0;
1216 PyObject * _argo0 = 0;
1217 char *_kwnames[] = { "self", NULL };
1218
1219 self = self;
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrintMode",_kwnames,&_argo0))
1221 return NULL;
1222 if (_argo0) {
1223 if (_argo0 == Py_None) { _arg0 = NULL; }
1224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrintMode. Expected _wxPrintData_p.");
1226 return NULL;
1227 }
1228 }
1229 {
1230 PyThreadState* __tstate = wxPyBeginAllowThreads();
1231 _result = (wxPrintMode )wxPrintData_GetPrintMode(_arg0);
1232
1233 wxPyEndAllowThreads(__tstate);
1234 if (PyErr_Occurred()) return NULL;
1235 } _resultobj = Py_BuildValue("i",_result);
1236 return _resultobj;
1237 }
1238
1239 #define wxPrintData_SetPrinterCommand(_swigobj,_swigarg0) (_swigobj->SetPrinterCommand(_swigarg0))
1240 static PyObject *_wrap_wxPrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
1241 PyObject * _resultobj;
1242 wxPrintData * _arg0;
1243 wxString * _arg1;
1244 PyObject * _argo0 = 0;
1245 PyObject * _obj1 = 0;
1246 char *_kwnames[] = { "self","command", NULL };
1247
1248 self = self;
1249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterCommand",_kwnames,&_argo0,&_obj1))
1250 return NULL;
1251 if (_argo0) {
1252 if (_argo0 == Py_None) { _arg0 = NULL; }
1253 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1254 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterCommand. Expected _wxPrintData_p.");
1255 return NULL;
1256 }
1257 }
1258 {
1259 _arg1 = wxString_in_helper(_obj1);
1260 if (_arg1 == NULL)
1261 return NULL;
1262 }
1263 {
1264 PyThreadState* __tstate = wxPyBeginAllowThreads();
1265 wxPrintData_SetPrinterCommand(_arg0,*_arg1);
1266
1267 wxPyEndAllowThreads(__tstate);
1268 if (PyErr_Occurred()) return NULL;
1269 } Py_INCREF(Py_None);
1270 _resultobj = Py_None;
1271 {
1272 if (_obj1)
1273 delete _arg1;
1274 }
1275 return _resultobj;
1276 }
1277
1278 #define wxPrintData_SetPrinterOptions(_swigobj,_swigarg0) (_swigobj->SetPrinterOptions(_swigarg0))
1279 static PyObject *_wrap_wxPrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1280 PyObject * _resultobj;
1281 wxPrintData * _arg0;
1282 wxString * _arg1;
1283 PyObject * _argo0 = 0;
1284 PyObject * _obj1 = 0;
1285 char *_kwnames[] = { "self","options", NULL };
1286
1287 self = self;
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterOptions",_kwnames,&_argo0,&_obj1))
1289 return NULL;
1290 if (_argo0) {
1291 if (_argo0 == Py_None) { _arg0 = NULL; }
1292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterOptions. Expected _wxPrintData_p.");
1294 return NULL;
1295 }
1296 }
1297 {
1298 _arg1 = wxString_in_helper(_obj1);
1299 if (_arg1 == NULL)
1300 return NULL;
1301 }
1302 {
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
1304 wxPrintData_SetPrinterOptions(_arg0,*_arg1);
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) return NULL;
1308 } Py_INCREF(Py_None);
1309 _resultobj = Py_None;
1310 {
1311 if (_obj1)
1312 delete _arg1;
1313 }
1314 return _resultobj;
1315 }
1316
1317 #define wxPrintData_SetPreviewCommand(_swigobj,_swigarg0) (_swigobj->SetPreviewCommand(_swigarg0))
1318 static PyObject *_wrap_wxPrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
1319 PyObject * _resultobj;
1320 wxPrintData * _arg0;
1321 wxString * _arg1;
1322 PyObject * _argo0 = 0;
1323 PyObject * _obj1 = 0;
1324 char *_kwnames[] = { "self","command", NULL };
1325
1326 self = self;
1327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPreviewCommand",_kwnames,&_argo0,&_obj1))
1328 return NULL;
1329 if (_argo0) {
1330 if (_argo0 == Py_None) { _arg0 = NULL; }
1331 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1332 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPreviewCommand. Expected _wxPrintData_p.");
1333 return NULL;
1334 }
1335 }
1336 {
1337 _arg1 = wxString_in_helper(_obj1);
1338 if (_arg1 == NULL)
1339 return NULL;
1340 }
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 wxPrintData_SetPreviewCommand(_arg0,*_arg1);
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) return NULL;
1347 } Py_INCREF(Py_None);
1348 _resultobj = Py_None;
1349 {
1350 if (_obj1)
1351 delete _arg1;
1352 }
1353 return _resultobj;
1354 }
1355
1356 #define wxPrintData_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0))
1357 static PyObject *_wrap_wxPrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
1358 PyObject * _resultobj;
1359 wxPrintData * _arg0;
1360 wxString * _arg1;
1361 PyObject * _argo0 = 0;
1362 PyObject * _obj1 = 0;
1363 char *_kwnames[] = { "self","filename", NULL };
1364
1365 self = self;
1366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFilename",_kwnames,&_argo0,&_obj1))
1367 return NULL;
1368 if (_argo0) {
1369 if (_argo0 == Py_None) { _arg0 = NULL; }
1370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFilename. Expected _wxPrintData_p.");
1372 return NULL;
1373 }
1374 }
1375 {
1376 _arg1 = wxString_in_helper(_obj1);
1377 if (_arg1 == NULL)
1378 return NULL;
1379 }
1380 {
1381 PyThreadState* __tstate = wxPyBeginAllowThreads();
1382 wxPrintData_SetFilename(_arg0,*_arg1);
1383
1384 wxPyEndAllowThreads(__tstate);
1385 if (PyErr_Occurred()) return NULL;
1386 } Py_INCREF(Py_None);
1387 _resultobj = Py_None;
1388 {
1389 if (_obj1)
1390 delete _arg1;
1391 }
1392 return _resultobj;
1393 }
1394
1395 #define wxPrintData_SetFontMetricPath(_swigobj,_swigarg0) (_swigobj->SetFontMetricPath(_swigarg0))
1396 static PyObject *_wrap_wxPrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1397 PyObject * _resultobj;
1398 wxPrintData * _arg0;
1399 wxString * _arg1;
1400 PyObject * _argo0 = 0;
1401 PyObject * _obj1 = 0;
1402 char *_kwnames[] = { "self","path", NULL };
1403
1404 self = self;
1405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFontMetricPath",_kwnames,&_argo0,&_obj1))
1406 return NULL;
1407 if (_argo0) {
1408 if (_argo0 == Py_None) { _arg0 = NULL; }
1409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFontMetricPath. Expected _wxPrintData_p.");
1411 return NULL;
1412 }
1413 }
1414 {
1415 _arg1 = wxString_in_helper(_obj1);
1416 if (_arg1 == NULL)
1417 return NULL;
1418 }
1419 {
1420 PyThreadState* __tstate = wxPyBeginAllowThreads();
1421 wxPrintData_SetFontMetricPath(_arg0,*_arg1);
1422
1423 wxPyEndAllowThreads(__tstate);
1424 if (PyErr_Occurred()) return NULL;
1425 } Py_INCREF(Py_None);
1426 _resultobj = Py_None;
1427 {
1428 if (_obj1)
1429 delete _arg1;
1430 }
1431 return _resultobj;
1432 }
1433
1434 #define wxPrintData_SetPrinterScaleX(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleX(_swigarg0))
1435 static PyObject *_wrap_wxPrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
1436 PyObject * _resultobj;
1437 wxPrintData * _arg0;
1438 double _arg1;
1439 PyObject * _argo0 = 0;
1440 char *_kwnames[] = { "self","x", NULL };
1441
1442 self = self;
1443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleX",_kwnames,&_argo0,&_arg1))
1444 return NULL;
1445 if (_argo0) {
1446 if (_argo0 == Py_None) { _arg0 = NULL; }
1447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleX. Expected _wxPrintData_p.");
1449 return NULL;
1450 }
1451 }
1452 {
1453 PyThreadState* __tstate = wxPyBeginAllowThreads();
1454 wxPrintData_SetPrinterScaleX(_arg0,_arg1);
1455
1456 wxPyEndAllowThreads(__tstate);
1457 if (PyErr_Occurred()) return NULL;
1458 } Py_INCREF(Py_None);
1459 _resultobj = Py_None;
1460 return _resultobj;
1461 }
1462
1463 #define wxPrintData_SetPrinterScaleY(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleY(_swigarg0))
1464 static PyObject *_wrap_wxPrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
1465 PyObject * _resultobj;
1466 wxPrintData * _arg0;
1467 double _arg1;
1468 PyObject * _argo0 = 0;
1469 char *_kwnames[] = { "self","y", NULL };
1470
1471 self = self;
1472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleY",_kwnames,&_argo0,&_arg1))
1473 return NULL;
1474 if (_argo0) {
1475 if (_argo0 == Py_None) { _arg0 = NULL; }
1476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleY. Expected _wxPrintData_p.");
1478 return NULL;
1479 }
1480 }
1481 {
1482 PyThreadState* __tstate = wxPyBeginAllowThreads();
1483 wxPrintData_SetPrinterScaleY(_arg0,_arg1);
1484
1485 wxPyEndAllowThreads(__tstate);
1486 if (PyErr_Occurred()) return NULL;
1487 } Py_INCREF(Py_None);
1488 _resultobj = Py_None;
1489 return _resultobj;
1490 }
1491
1492 #define wxPrintData_SetPrinterScaling(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterScaling(_swigarg0,_swigarg1))
1493 static PyObject *_wrap_wxPrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) {
1494 PyObject * _resultobj;
1495 wxPrintData * _arg0;
1496 double _arg1;
1497 double _arg2;
1498 PyObject * _argo0 = 0;
1499 char *_kwnames[] = { "self","x","y", NULL };
1500
1501 self = self;
1502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPrintData_SetPrinterScaling",_kwnames,&_argo0,&_arg1,&_arg2))
1503 return NULL;
1504 if (_argo0) {
1505 if (_argo0 == Py_None) { _arg0 = NULL; }
1506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaling. Expected _wxPrintData_p.");
1508 return NULL;
1509 }
1510 }
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 wxPrintData_SetPrinterScaling(_arg0,_arg1,_arg2);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) return NULL;
1517 } Py_INCREF(Py_None);
1518 _resultobj = Py_None;
1519 return _resultobj;
1520 }
1521
1522 #define wxPrintData_SetPrinterTranslateX(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateX(_swigarg0))
1523 static PyObject *_wrap_wxPrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) {
1524 PyObject * _resultobj;
1525 wxPrintData * _arg0;
1526 long _arg1;
1527 PyObject * _argo0 = 0;
1528 char *_kwnames[] = { "self","x", NULL };
1529
1530 self = self;
1531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateX",_kwnames,&_argo0,&_arg1))
1532 return NULL;
1533 if (_argo0) {
1534 if (_argo0 == Py_None) { _arg0 = NULL; }
1535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateX. Expected _wxPrintData_p.");
1537 return NULL;
1538 }
1539 }
1540 {
1541 PyThreadState* __tstate = wxPyBeginAllowThreads();
1542 wxPrintData_SetPrinterTranslateX(_arg0,_arg1);
1543
1544 wxPyEndAllowThreads(__tstate);
1545 if (PyErr_Occurred()) return NULL;
1546 } Py_INCREF(Py_None);
1547 _resultobj = Py_None;
1548 return _resultobj;
1549 }
1550
1551 #define wxPrintData_SetPrinterTranslateY(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateY(_swigarg0))
1552 static PyObject *_wrap_wxPrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) {
1553 PyObject * _resultobj;
1554 wxPrintData * _arg0;
1555 long _arg1;
1556 PyObject * _argo0 = 0;
1557 char *_kwnames[] = { "self","y", NULL };
1558
1559 self = self;
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateY",_kwnames,&_argo0,&_arg1))
1561 return NULL;
1562 if (_argo0) {
1563 if (_argo0 == Py_None) { _arg0 = NULL; }
1564 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1565 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateY. Expected _wxPrintData_p.");
1566 return NULL;
1567 }
1568 }
1569 {
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 wxPrintData_SetPrinterTranslateY(_arg0,_arg1);
1572
1573 wxPyEndAllowThreads(__tstate);
1574 if (PyErr_Occurred()) return NULL;
1575 } Py_INCREF(Py_None);
1576 _resultobj = Py_None;
1577 return _resultobj;
1578 }
1579
1580 #define wxPrintData_SetPrinterTranslation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterTranslation(_swigarg0,_swigarg1))
1581 static PyObject *_wrap_wxPrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) {
1582 PyObject * _resultobj;
1583 wxPrintData * _arg0;
1584 long _arg1;
1585 long _arg2;
1586 PyObject * _argo0 = 0;
1587 char *_kwnames[] = { "self","x","y", NULL };
1588
1589 self = self;
1590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPrintData_SetPrinterTranslation",_kwnames,&_argo0,&_arg1,&_arg2))
1591 return NULL;
1592 if (_argo0) {
1593 if (_argo0 == Py_None) { _arg0 = NULL; }
1594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslation. Expected _wxPrintData_p.");
1596 return NULL;
1597 }
1598 }
1599 {
1600 PyThreadState* __tstate = wxPyBeginAllowThreads();
1601 wxPrintData_SetPrinterTranslation(_arg0,_arg1,_arg2);
1602
1603 wxPyEndAllowThreads(__tstate);
1604 if (PyErr_Occurred()) return NULL;
1605 } Py_INCREF(Py_None);
1606 _resultobj = Py_None;
1607 return _resultobj;
1608 }
1609
1610 #define wxPrintData_SetPrintMode(_swigobj,_swigarg0) (_swigobj->SetPrintMode(_swigarg0))
1611 static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1612 PyObject * _resultobj;
1613 wxPrintData * _arg0;
1614 wxPrintMode _arg1;
1615 PyObject * _argo0 = 0;
1616 char *_kwnames[] = { "self","printMode", NULL };
1617
1618 self = self;
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPrintMode",_kwnames,&_argo0,&_arg1))
1620 return NULL;
1621 if (_argo0) {
1622 if (_argo0 == Py_None) { _arg0 = NULL; }
1623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrintMode. Expected _wxPrintData_p.");
1625 return NULL;
1626 }
1627 }
1628 {
1629 PyThreadState* __tstate = wxPyBeginAllowThreads();
1630 wxPrintData_SetPrintMode(_arg0,_arg1);
1631
1632 wxPyEndAllowThreads(__tstate);
1633 if (PyErr_Occurred()) return NULL;
1634 } Py_INCREF(Py_None);
1635 _resultobj = Py_None;
1636 return _resultobj;
1637 }
1638
1639 static void *SwigwxPostScriptDCTowxDC(void *ptr) {
1640 wxPostScriptDC *src;
1641 wxDC *dest;
1642 src = (wxPostScriptDC *) ptr;
1643 dest = (wxDC *) src;
1644 return (void *) dest;
1645 }
1646
1647 static void *SwigwxPostScriptDCTowxObject(void *ptr) {
1648 wxPostScriptDC *src;
1649 wxObject *dest;
1650 src = (wxPostScriptDC *) ptr;
1651 dest = (wxObject *) src;
1652 return (void *) dest;
1653 }
1654
1655 #define new_wxPostScriptDC(_swigarg0) (new wxPostScriptDC(_swigarg0))
1656 static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
1657 PyObject * _resultobj;
1658 wxPostScriptDC * _result;
1659 wxPrintData * _arg0;
1660 PyObject * _argo0 = 0;
1661 char *_kwnames[] = { "printData", NULL };
1662 char _ptemp[128];
1663
1664 self = self;
1665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPostScriptDC",_kwnames,&_argo0))
1666 return NULL;
1667 if (_argo0) {
1668 if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPostScriptDC. Expected _wxPrintData_p.");
1670 return NULL;
1671 }
1672 }
1673 {
1674 PyThreadState* __tstate = wxPyBeginAllowThreads();
1675 _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0);
1676
1677 wxPyEndAllowThreads(__tstate);
1678 if (PyErr_Occurred()) return NULL;
1679 } if (_result) {
1680 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
1681 _resultobj = Py_BuildValue("s",_ptemp);
1682 } else {
1683 Py_INCREF(Py_None);
1684 _resultobj = Py_None;
1685 }
1686 return _resultobj;
1687 }
1688
1689 #define wxPostScriptDC_GetPrintData(_swigobj) (_swigobj->GetPrintData())
1690 static PyObject *_wrap_wxPostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
1691 PyObject * _resultobj;
1692 wxPrintData * _result;
1693 wxPostScriptDC * _arg0;
1694 PyObject * _argo0 = 0;
1695 char *_kwnames[] = { "self", NULL };
1696 char _ptemp[128];
1697
1698 self = self;
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPostScriptDC_GetPrintData",_kwnames,&_argo0))
1700 return NULL;
1701 if (_argo0) {
1702 if (_argo0 == Py_None) { _arg0 = NULL; }
1703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
1704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_GetPrintData. Expected _wxPostScriptDC_p.");
1705 return NULL;
1706 }
1707 }
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 wxPrintData & _result_ref = wxPostScriptDC_GetPrintData(_arg0);
1711 _result = (wxPrintData *) &_result_ref;
1712
1713 wxPyEndAllowThreads(__tstate);
1714 if (PyErr_Occurred()) return NULL;
1715 } if (_result) {
1716 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
1717 _resultobj = Py_BuildValue("s",_ptemp);
1718 } else {
1719 Py_INCREF(Py_None);
1720 _resultobj = Py_None;
1721 }
1722 return _resultobj;
1723 }
1724
1725 #define wxPostScriptDC_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
1726 static PyObject *_wrap_wxPostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
1727 PyObject * _resultobj;
1728 wxPostScriptDC * _arg0;
1729 wxPrintData * _arg1;
1730 PyObject * _argo0 = 0;
1731 PyObject * _argo1 = 0;
1732 char *_kwnames[] = { "self","data", NULL };
1733
1734 self = self;
1735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostScriptDC_SetPrintData",_kwnames,&_argo0,&_argo1))
1736 return NULL;
1737 if (_argo0) {
1738 if (_argo0 == Py_None) { _arg0 = NULL; }
1739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
1740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_SetPrintData. Expected _wxPostScriptDC_p.");
1741 return NULL;
1742 }
1743 }
1744 if (_argo1) {
1745 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
1746 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostScriptDC_SetPrintData. Expected _wxPrintData_p.");
1747 return NULL;
1748 }
1749 }
1750 {
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 wxPostScriptDC_SetPrintData(_arg0,*_arg1);
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) return NULL;
1756 } Py_INCREF(Py_None);
1757 _resultobj = Py_None;
1758 return _resultobj;
1759 }
1760
1761 static PyObject *_wrap_wxPostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
1762 PyObject * _resultobj;
1763 int _arg0;
1764 char *_kwnames[] = { "ppi", NULL };
1765
1766 self = self;
1767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxPostScriptDC_SetResolution",_kwnames,&_arg0))
1768 return NULL;
1769 {
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 wxPostScriptDC::SetResolution(_arg0);
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) return NULL;
1775 } Py_INCREF(Py_None);
1776 _resultobj = Py_None;
1777 return _resultobj;
1778 }
1779
1780 static PyObject *_wrap_wxPostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
1781 PyObject * _resultobj;
1782 int _result;
1783 char *_kwnames[] = { NULL };
1784
1785 self = self;
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPostScriptDC_GetResolution",_kwnames))
1787 return NULL;
1788 {
1789 PyThreadState* __tstate = wxPyBeginAllowThreads();
1790 _result = (int )wxPostScriptDC::GetResolution();
1791
1792 wxPyEndAllowThreads(__tstate);
1793 if (PyErr_Occurred()) return NULL;
1794 } _resultobj = Py_BuildValue("i",_result);
1795 return _resultobj;
1796 }
1797
1798 static void *SwigwxPageSetupDialogDataTowxObject(void *ptr) {
1799 wxPageSetupDialogData *src;
1800 wxObject *dest;
1801 src = (wxPageSetupDialogData *) ptr;
1802 dest = (wxObject *) src;
1803 return (void *) dest;
1804 }
1805
1806 #define new_wxPageSetupDialogData() (new wxPageSetupDialogData())
1807 static PyObject *_wrap_new_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
1808 PyObject * _resultobj;
1809 wxPageSetupDialogData * _result;
1810 char *_kwnames[] = { NULL };
1811 char _ptemp[128];
1812
1813 self = self;
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPageSetupDialogData",_kwnames))
1815 return NULL;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 _result = (wxPageSetupDialogData *)new_wxPageSetupDialogData();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) return NULL;
1822 } if (_result) {
1823 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
1824 _resultobj = Py_BuildValue("s",_ptemp);
1825 } else {
1826 Py_INCREF(Py_None);
1827 _resultobj = Py_None;
1828 }
1829 return _resultobj;
1830 }
1831
1832 #define delete_wxPageSetupDialogData(_swigobj) (delete _swigobj)
1833 static PyObject *_wrap_delete_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
1834 PyObject * _resultobj;
1835 wxPageSetupDialogData * _arg0;
1836 PyObject * _argo0 = 0;
1837 char *_kwnames[] = { "self", NULL };
1838
1839 self = self;
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPageSetupDialogData",_kwnames,&_argo0))
1841 return NULL;
1842 if (_argo0) {
1843 if (_argo0 == Py_None) { _arg0 = NULL; }
1844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPageSetupDialogData. Expected _wxPageSetupDialogData_p.");
1846 return NULL;
1847 }
1848 }
1849 {
1850 PyThreadState* __tstate = wxPyBeginAllowThreads();
1851 delete_wxPageSetupDialogData(_arg0);
1852
1853 wxPyEndAllowThreads(__tstate);
1854 if (PyErr_Occurred()) return NULL;
1855 } Py_INCREF(Py_None);
1856 _resultobj = Py_None;
1857 return _resultobj;
1858 }
1859
1860 #define wxPageSetupDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
1861 static PyObject *_wrap_wxPageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1862 PyObject * _resultobj;
1863 wxPageSetupDialogData * _arg0;
1864 bool _arg1;
1865 PyObject * _argo0 = 0;
1866 int tempbool1;
1867 char *_kwnames[] = { "self","flag", NULL };
1868
1869 self = self;
1870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1))
1871 return NULL;
1872 if (_argo0) {
1873 if (_argo0 == Py_None) { _arg0 = NULL; }
1874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableHelp. Expected _wxPageSetupDialogData_p.");
1876 return NULL;
1877 }
1878 }
1879 _arg1 = (bool ) tempbool1;
1880 {
1881 PyThreadState* __tstate = wxPyBeginAllowThreads();
1882 wxPageSetupDialogData_EnableHelp(_arg0,_arg1);
1883
1884 wxPyEndAllowThreads(__tstate);
1885 if (PyErr_Occurred()) return NULL;
1886 } Py_INCREF(Py_None);
1887 _resultobj = Py_None;
1888 return _resultobj;
1889 }
1890
1891 #define wxPageSetupDialogData_EnableMargins(_swigobj,_swigarg0) (_swigobj->EnableMargins(_swigarg0))
1892 static PyObject *_wrap_wxPageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1893 PyObject * _resultobj;
1894 wxPageSetupDialogData * _arg0;
1895 bool _arg1;
1896 PyObject * _argo0 = 0;
1897 int tempbool1;
1898 char *_kwnames[] = { "self","flag", NULL };
1899
1900 self = self;
1901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableMargins",_kwnames,&_argo0,&tempbool1))
1902 return NULL;
1903 if (_argo0) {
1904 if (_argo0 == Py_None) { _arg0 = NULL; }
1905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableMargins. Expected _wxPageSetupDialogData_p.");
1907 return NULL;
1908 }
1909 }
1910 _arg1 = (bool ) tempbool1;
1911 {
1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
1913 wxPageSetupDialogData_EnableMargins(_arg0,_arg1);
1914
1915 wxPyEndAllowThreads(__tstate);
1916 if (PyErr_Occurred()) return NULL;
1917 } Py_INCREF(Py_None);
1918 _resultobj = Py_None;
1919 return _resultobj;
1920 }
1921
1922 #define wxPageSetupDialogData_EnableOrientation(_swigobj,_swigarg0) (_swigobj->EnableOrientation(_swigarg0))
1923 static PyObject *_wrap_wxPageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
1924 PyObject * _resultobj;
1925 wxPageSetupDialogData * _arg0;
1926 bool _arg1;
1927 PyObject * _argo0 = 0;
1928 int tempbool1;
1929 char *_kwnames[] = { "self","flag", NULL };
1930
1931 self = self;
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableOrientation",_kwnames,&_argo0,&tempbool1))
1933 return NULL;
1934 if (_argo0) {
1935 if (_argo0 == Py_None) { _arg0 = NULL; }
1936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableOrientation. Expected _wxPageSetupDialogData_p.");
1938 return NULL;
1939 }
1940 }
1941 _arg1 = (bool ) tempbool1;
1942 {
1943 PyThreadState* __tstate = wxPyBeginAllowThreads();
1944 wxPageSetupDialogData_EnableOrientation(_arg0,_arg1);
1945
1946 wxPyEndAllowThreads(__tstate);
1947 if (PyErr_Occurred()) return NULL;
1948 } Py_INCREF(Py_None);
1949 _resultobj = Py_None;
1950 return _resultobj;
1951 }
1952
1953 #define wxPageSetupDialogData_EnablePaper(_swigobj,_swigarg0) (_swigobj->EnablePaper(_swigarg0))
1954 static PyObject *_wrap_wxPageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject * _resultobj;
1956 wxPageSetupDialogData * _arg0;
1957 bool _arg1;
1958 PyObject * _argo0 = 0;
1959 int tempbool1;
1960 char *_kwnames[] = { "self","flag", NULL };
1961
1962 self = self;
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePaper",_kwnames,&_argo0,&tempbool1))
1964 return NULL;
1965 if (_argo0) {
1966 if (_argo0 == Py_None) { _arg0 = NULL; }
1967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePaper. Expected _wxPageSetupDialogData_p.");
1969 return NULL;
1970 }
1971 }
1972 _arg1 = (bool ) tempbool1;
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 wxPageSetupDialogData_EnablePaper(_arg0,_arg1);
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) return NULL;
1979 } Py_INCREF(Py_None);
1980 _resultobj = Py_None;
1981 return _resultobj;
1982 }
1983
1984 #define wxPageSetupDialogData_EnablePrinter(_swigobj,_swigarg0) (_swigobj->EnablePrinter(_swigarg0))
1985 static PyObject *_wrap_wxPageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 wxPageSetupDialogData * _arg0;
1988 bool _arg1;
1989 PyObject * _argo0 = 0;
1990 int tempbool1;
1991 char *_kwnames[] = { "self","flag", NULL };
1992
1993 self = self;
1994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePrinter",_kwnames,&_argo0,&tempbool1))
1995 return NULL;
1996 if (_argo0) {
1997 if (_argo0 == Py_None) { _arg0 = NULL; }
1998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePrinter. Expected _wxPageSetupDialogData_p.");
2000 return NULL;
2001 }
2002 }
2003 _arg1 = (bool ) tempbool1;
2004 {
2005 PyThreadState* __tstate = wxPyBeginAllowThreads();
2006 wxPageSetupDialogData_EnablePrinter(_arg0,_arg1);
2007
2008 wxPyEndAllowThreads(__tstate);
2009 if (PyErr_Occurred()) return NULL;
2010 } Py_INCREF(Py_None);
2011 _resultobj = Py_None;
2012 return _resultobj;
2013 }
2014
2015 #define wxPageSetupDialogData_GetDefaultMinMargins(_swigobj) (_swigobj->GetDefaultMinMargins())
2016 static PyObject *_wrap_wxPageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2017 PyObject * _resultobj;
2018 bool _result;
2019 wxPageSetupDialogData * _arg0;
2020 PyObject * _argo0 = 0;
2021 char *_kwnames[] = { "self", NULL };
2022
2023 self = self;
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultMinMargins",_kwnames,&_argo0))
2025 return NULL;
2026 if (_argo0) {
2027 if (_argo0 == Py_None) { _arg0 = NULL; }
2028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
2030 return NULL;
2031 }
2032 }
2033 {
2034 PyThreadState* __tstate = wxPyBeginAllowThreads();
2035 _result = (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0);
2036
2037 wxPyEndAllowThreads(__tstate);
2038 if (PyErr_Occurred()) return NULL;
2039 } _resultobj = Py_BuildValue("i",_result);
2040 return _resultobj;
2041 }
2042
2043 #define wxPageSetupDialogData_GetEnableMargins(_swigobj) (_swigobj->GetEnableMargins())
2044 static PyObject *_wrap_wxPageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject * _resultobj;
2046 bool _result;
2047 wxPageSetupDialogData * _arg0;
2048 PyObject * _argo0 = 0;
2049 char *_kwnames[] = { "self", NULL };
2050
2051 self = self;
2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableMargins",_kwnames,&_argo0))
2053 return NULL;
2054 if (_argo0) {
2055 if (_argo0 == Py_None) { _arg0 = NULL; }
2056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableMargins. Expected _wxPageSetupDialogData_p.");
2058 return NULL;
2059 }
2060 }
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 _result = (bool )wxPageSetupDialogData_GetEnableMargins(_arg0);
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) return NULL;
2067 } _resultobj = Py_BuildValue("i",_result);
2068 return _resultobj;
2069 }
2070
2071 #define wxPageSetupDialogData_GetEnableOrientation(_swigobj) (_swigobj->GetEnableOrientation())
2072 static PyObject *_wrap_wxPageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject * _resultobj;
2074 bool _result;
2075 wxPageSetupDialogData * _arg0;
2076 PyObject * _argo0 = 0;
2077 char *_kwnames[] = { "self", NULL };
2078
2079 self = self;
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableOrientation",_kwnames,&_argo0))
2081 return NULL;
2082 if (_argo0) {
2083 if (_argo0 == Py_None) { _arg0 = NULL; }
2084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableOrientation. Expected _wxPageSetupDialogData_p.");
2086 return NULL;
2087 }
2088 }
2089 {
2090 PyThreadState* __tstate = wxPyBeginAllowThreads();
2091 _result = (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0);
2092
2093 wxPyEndAllowThreads(__tstate);
2094 if (PyErr_Occurred()) return NULL;
2095 } _resultobj = Py_BuildValue("i",_result);
2096 return _resultobj;
2097 }
2098
2099 #define wxPageSetupDialogData_GetEnablePaper(_swigobj) (_swigobj->GetEnablePaper())
2100 static PyObject *_wrap_wxPageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject * _resultobj;
2102 bool _result;
2103 wxPageSetupDialogData * _arg0;
2104 PyObject * _argo0 = 0;
2105 char *_kwnames[] = { "self", NULL };
2106
2107 self = self;
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePaper",_kwnames,&_argo0))
2109 return NULL;
2110 if (_argo0) {
2111 if (_argo0 == Py_None) { _arg0 = NULL; }
2112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePaper. Expected _wxPageSetupDialogData_p.");
2114 return NULL;
2115 }
2116 }
2117 {
2118 PyThreadState* __tstate = wxPyBeginAllowThreads();
2119 _result = (bool )wxPageSetupDialogData_GetEnablePaper(_arg0);
2120
2121 wxPyEndAllowThreads(__tstate);
2122 if (PyErr_Occurred()) return NULL;
2123 } _resultobj = Py_BuildValue("i",_result);
2124 return _resultobj;
2125 }
2126
2127 #define wxPageSetupDialogData_GetEnablePrinter(_swigobj) (_swigobj->GetEnablePrinter())
2128 static PyObject *_wrap_wxPageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
2129 PyObject * _resultobj;
2130 bool _result;
2131 wxPageSetupDialogData * _arg0;
2132 PyObject * _argo0 = 0;
2133 char *_kwnames[] = { "self", NULL };
2134
2135 self = self;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePrinter",_kwnames,&_argo0))
2137 return NULL;
2138 if (_argo0) {
2139 if (_argo0 == Py_None) { _arg0 = NULL; }
2140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePrinter. Expected _wxPageSetupDialogData_p.");
2142 return NULL;
2143 }
2144 }
2145 {
2146 PyThreadState* __tstate = wxPyBeginAllowThreads();
2147 _result = (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0);
2148
2149 wxPyEndAllowThreads(__tstate);
2150 if (PyErr_Occurred()) return NULL;
2151 } _resultobj = Py_BuildValue("i",_result);
2152 return _resultobj;
2153 }
2154
2155 #define wxPageSetupDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp())
2156 static PyObject *_wrap_wxPageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2157 PyObject * _resultobj;
2158 bool _result;
2159 wxPageSetupDialogData * _arg0;
2160 PyObject * _argo0 = 0;
2161 char *_kwnames[] = { "self", NULL };
2162
2163 self = self;
2164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableHelp",_kwnames,&_argo0))
2165 return NULL;
2166 if (_argo0) {
2167 if (_argo0 == Py_None) { _arg0 = NULL; }
2168 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2169 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableHelp. Expected _wxPageSetupDialogData_p.");
2170 return NULL;
2171 }
2172 }
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 _result = (bool )wxPageSetupDialogData_GetEnableHelp(_arg0);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) return NULL;
2179 } _resultobj = Py_BuildValue("i",_result);
2180 return _resultobj;
2181 }
2182
2183 #define wxPageSetupDialogData_GetDefaultInfo(_swigobj) (_swigobj->GetDefaultInfo())
2184 static PyObject *_wrap_wxPageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2185 PyObject * _resultobj;
2186 bool _result;
2187 wxPageSetupDialogData * _arg0;
2188 PyObject * _argo0 = 0;
2189 char *_kwnames[] = { "self", NULL };
2190
2191 self = self;
2192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultInfo",_kwnames,&_argo0))
2193 return NULL;
2194 if (_argo0) {
2195 if (_argo0 == Py_None) { _arg0 = NULL; }
2196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultInfo. Expected _wxPageSetupDialogData_p.");
2198 return NULL;
2199 }
2200 }
2201 {
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 _result = (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0);
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) return NULL;
2207 } _resultobj = Py_BuildValue("i",_result);
2208 return _resultobj;
2209 }
2210
2211 #define wxPageSetupDialogData_GetMarginTopLeft(_swigobj) (_swigobj->GetMarginTopLeft())
2212 static PyObject *_wrap_wxPageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject * _resultobj;
2214 wxPoint * _result;
2215 wxPageSetupDialogData * _arg0;
2216 PyObject * _argo0 = 0;
2217 char *_kwnames[] = { "self", NULL };
2218 char _ptemp[128];
2219
2220 self = self;
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginTopLeft",_kwnames,&_argo0))
2222 return NULL;
2223 if (_argo0) {
2224 if (_argo0 == Py_None) { _arg0 = NULL; }
2225 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2226 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2227 return NULL;
2228 }
2229 }
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 _result = new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0));
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) return NULL;
2236 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2237 _resultobj = Py_BuildValue("s",_ptemp);
2238 return _resultobj;
2239 }
2240
2241 #define wxPageSetupDialogData_GetMarginBottomRight(_swigobj) (_swigobj->GetMarginBottomRight())
2242 static PyObject *_wrap_wxPageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2243 PyObject * _resultobj;
2244 wxPoint * _result;
2245 wxPageSetupDialogData * _arg0;
2246 PyObject * _argo0 = 0;
2247 char *_kwnames[] = { "self", NULL };
2248 char _ptemp[128];
2249
2250 self = self;
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginBottomRight",_kwnames,&_argo0))
2252 return NULL;
2253 if (_argo0) {
2254 if (_argo0 == Py_None) { _arg0 = NULL; }
2255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2257 return NULL;
2258 }
2259 }
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
2262 _result = new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0));
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) return NULL;
2266 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2267 _resultobj = Py_BuildValue("s",_ptemp);
2268 return _resultobj;
2269 }
2270
2271 #define wxPageSetupDialogData_GetMinMarginTopLeft(_swigobj) (_swigobj->GetMinMarginTopLeft())
2272 static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2273 PyObject * _resultobj;
2274 wxPoint * _result;
2275 wxPageSetupDialogData * _arg0;
2276 PyObject * _argo0 = 0;
2277 char *_kwnames[] = { "self", NULL };
2278 char _ptemp[128];
2279
2280 self = self;
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMinMarginTopLeft",_kwnames,&_argo0))
2282 return NULL;
2283 if (_argo0) {
2284 if (_argo0 == Py_None) { _arg0 = NULL; }
2285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2287 return NULL;
2288 }
2289 }
2290 {
2291 PyThreadState* __tstate = wxPyBeginAllowThreads();
2292 _result = new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0));
2293
2294 wxPyEndAllowThreads(__tstate);
2295 if (PyErr_Occurred()) return NULL;
2296 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2297 _resultobj = Py_BuildValue("s",_ptemp);
2298 return _resultobj;
2299 }
2300
2301 #define wxPageSetupDialogData_GetMinMarginBottomRight(_swigobj) (_swigobj->GetMinMarginBottomRight())
2302 static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2303 PyObject * _resultobj;
2304 wxPoint * _result;
2305 wxPageSetupDialogData * _arg0;
2306 PyObject * _argo0 = 0;
2307 char *_kwnames[] = { "self", NULL };
2308 char _ptemp[128];
2309
2310 self = self;
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMinMarginBottomRight",_kwnames,&_argo0))
2312 return NULL;
2313 if (_argo0) {
2314 if (_argo0 == Py_None) { _arg0 = NULL; }
2315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2317 return NULL;
2318 }
2319 }
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 _result = new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0));
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) return NULL;
2326 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2327 _resultobj = Py_BuildValue("s",_ptemp);
2328 return _resultobj;
2329 }
2330
2331 #define wxPageSetupDialogData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
2332 static PyObject *_wrap_wxPageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject * _resultobj;
2334 wxPaperSize _result;
2335 wxPageSetupDialogData * _arg0;
2336 PyObject * _argo0 = 0;
2337 char *_kwnames[] = { "self", NULL };
2338
2339 self = self;
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperId",_kwnames,&_argo0))
2341 return NULL;
2342 if (_argo0) {
2343 if (_argo0 == Py_None) { _arg0 = NULL; }
2344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperId. Expected _wxPageSetupDialogData_p.");
2346 return NULL;
2347 }
2348 }
2349 {
2350 PyThreadState* __tstate = wxPyBeginAllowThreads();
2351 _result = (wxPaperSize )wxPageSetupDialogData_GetPaperId(_arg0);
2352
2353 wxPyEndAllowThreads(__tstate);
2354 if (PyErr_Occurred()) return NULL;
2355 } _resultobj = Py_BuildValue("i",_result);
2356 return _resultobj;
2357 }
2358
2359 #define wxPageSetupDialogData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
2360 static PyObject *_wrap_wxPageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2361 PyObject * _resultobj;
2362 wxSize * _result;
2363 wxPageSetupDialogData * _arg0;
2364 PyObject * _argo0 = 0;
2365 char *_kwnames[] = { "self", NULL };
2366 char _ptemp[128];
2367
2368 self = self;
2369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperSize",_kwnames,&_argo0))
2370 return NULL;
2371 if (_argo0) {
2372 if (_argo0 == Py_None) { _arg0 = NULL; }
2373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperSize. Expected _wxPageSetupDialogData_p.");
2375 return NULL;
2376 }
2377 }
2378 {
2379 PyThreadState* __tstate = wxPyBeginAllowThreads();
2380 _result = new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0));
2381
2382 wxPyEndAllowThreads(__tstate);
2383 if (PyErr_Occurred()) return NULL;
2384 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2385 _resultobj = Py_BuildValue("s",_ptemp);
2386 return _resultobj;
2387 }
2388
2389 static wxPrintData * wxPageSetupDialogData_GetPrintData(wxPageSetupDialogData *self) {
2390 return new wxPrintData(self->GetPrintData()); // force a copy
2391 }
2392 static PyObject *_wrap_wxPageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
2393 PyObject * _resultobj;
2394 wxPrintData * _result;
2395 wxPageSetupDialogData * _arg0;
2396 PyObject * _argo0 = 0;
2397 char *_kwnames[] = { "self", NULL };
2398 char _ptemp[128];
2399
2400 self = self;
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPrintData",_kwnames,&_argo0))
2402 return NULL;
2403 if (_argo0) {
2404 if (_argo0 == Py_None) { _arg0 = NULL; }
2405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPrintData. Expected _wxPageSetupDialogData_p.");
2407 return NULL;
2408 }
2409 }
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 _result = (wxPrintData *)wxPageSetupDialogData_GetPrintData(_arg0);
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) return NULL;
2416 } if (_result) {
2417 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
2418 _resultobj = Py_BuildValue("s",_ptemp);
2419 } else {
2420 Py_INCREF(Py_None);
2421 _resultobj = Py_None;
2422 }
2423 return _resultobj;
2424 }
2425
2426 #define wxPageSetupDialogData_Ok(_swigobj) (_swigobj->Ok())
2427 static PyObject *_wrap_wxPageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject * _resultobj;
2429 bool _result;
2430 wxPageSetupDialogData * _arg0;
2431 PyObject * _argo0 = 0;
2432 char *_kwnames[] = { "self", NULL };
2433
2434 self = self;
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_Ok",_kwnames,&_argo0))
2436 return NULL;
2437 if (_argo0) {
2438 if (_argo0 == Py_None) { _arg0 = NULL; }
2439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_Ok. Expected _wxPageSetupDialogData_p.");
2441 return NULL;
2442 }
2443 }
2444 {
2445 PyThreadState* __tstate = wxPyBeginAllowThreads();
2446 _result = (bool )wxPageSetupDialogData_Ok(_arg0);
2447
2448 wxPyEndAllowThreads(__tstate);
2449 if (PyErr_Occurred()) return NULL;
2450 } _resultobj = Py_BuildValue("i",_result);
2451 return _resultobj;
2452 }
2453
2454 #define wxPageSetupDialogData_SetDefaultInfo(_swigobj,_swigarg0) (_swigobj->SetDefaultInfo(_swigarg0))
2455 static PyObject *_wrap_wxPageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2456 PyObject * _resultobj;
2457 wxPageSetupDialogData * _arg0;
2458 bool _arg1;
2459 PyObject * _argo0 = 0;
2460 int tempbool1;
2461 char *_kwnames[] = { "self","flag", NULL };
2462
2463 self = self;
2464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultInfo",_kwnames,&_argo0,&tempbool1))
2465 return NULL;
2466 if (_argo0) {
2467 if (_argo0 == Py_None) { _arg0 = NULL; }
2468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultInfo. Expected _wxPageSetupDialogData_p.");
2470 return NULL;
2471 }
2472 }
2473 _arg1 = (bool ) tempbool1;
2474 {
2475 PyThreadState* __tstate = wxPyBeginAllowThreads();
2476 wxPageSetupDialogData_SetDefaultInfo(_arg0,_arg1);
2477
2478 wxPyEndAllowThreads(__tstate);
2479 if (PyErr_Occurred()) return NULL;
2480 } Py_INCREF(Py_None);
2481 _resultobj = Py_None;
2482 return _resultobj;
2483 }
2484
2485 #define wxPageSetupDialogData_SetDefaultMinMargins(_swigobj,_swigarg0) (_swigobj->SetDefaultMinMargins(_swigarg0))
2486 static PyObject *_wrap_wxPageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2487 PyObject * _resultobj;
2488 wxPageSetupDialogData * _arg0;
2489 bool _arg1;
2490 PyObject * _argo0 = 0;
2491 int tempbool1;
2492 char *_kwnames[] = { "self","flag", NULL };
2493
2494 self = self;
2495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultMinMargins",_kwnames,&_argo0,&tempbool1))
2496 return NULL;
2497 if (_argo0) {
2498 if (_argo0 == Py_None) { _arg0 = NULL; }
2499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
2501 return NULL;
2502 }
2503 }
2504 _arg1 = (bool ) tempbool1;
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 wxPageSetupDialogData_SetDefaultMinMargins(_arg0,_arg1);
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) return NULL;
2511 } Py_INCREF(Py_None);
2512 _resultobj = Py_None;
2513 return _resultobj;
2514 }
2515
2516 #define wxPageSetupDialogData_SetMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMarginTopLeft(_swigarg0))
2517 static PyObject *_wrap_wxPageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2518 PyObject * _resultobj;
2519 wxPageSetupDialogData * _arg0;
2520 wxPoint * _arg1;
2521 PyObject * _argo0 = 0;
2522 wxPoint temp;
2523 PyObject * _obj1 = 0;
2524 char *_kwnames[] = { "self","pt", NULL };
2525
2526 self = self;
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginTopLeft",_kwnames,&_argo0,&_obj1))
2528 return NULL;
2529 if (_argo0) {
2530 if (_argo0 == Py_None) { _arg0 = NULL; }
2531 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2532 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2533 return NULL;
2534 }
2535 }
2536 {
2537 _arg1 = &temp;
2538 if (! wxPoint_helper(_obj1, &_arg1))
2539 return NULL;
2540 }
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 wxPageSetupDialogData_SetMarginTopLeft(_arg0,*_arg1);
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) return NULL;
2547 } Py_INCREF(Py_None);
2548 _resultobj = Py_None;
2549 return _resultobj;
2550 }
2551
2552 #define wxPageSetupDialogData_SetMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMarginBottomRight(_swigarg0))
2553 static PyObject *_wrap_wxPageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2554 PyObject * _resultobj;
2555 wxPageSetupDialogData * _arg0;
2556 wxPoint * _arg1;
2557 PyObject * _argo0 = 0;
2558 wxPoint temp;
2559 PyObject * _obj1 = 0;
2560 char *_kwnames[] = { "self","pt", NULL };
2561
2562 self = self;
2563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginBottomRight",_kwnames,&_argo0,&_obj1))
2564 return NULL;
2565 if (_argo0) {
2566 if (_argo0 == Py_None) { _arg0 = NULL; }
2567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2569 return NULL;
2570 }
2571 }
2572 {
2573 _arg1 = &temp;
2574 if (! wxPoint_helper(_obj1, &_arg1))
2575 return NULL;
2576 }
2577 {
2578 PyThreadState* __tstate = wxPyBeginAllowThreads();
2579 wxPageSetupDialogData_SetMarginBottomRight(_arg0,*_arg1);
2580
2581 wxPyEndAllowThreads(__tstate);
2582 if (PyErr_Occurred()) return NULL;
2583 } Py_INCREF(Py_None);
2584 _resultobj = Py_None;
2585 return _resultobj;
2586 }
2587
2588 #define wxPageSetupDialogData_SetMinMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMinMarginTopLeft(_swigarg0))
2589 static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2590 PyObject * _resultobj;
2591 wxPageSetupDialogData * _arg0;
2592 wxPoint * _arg1;
2593 PyObject * _argo0 = 0;
2594 wxPoint temp;
2595 PyObject * _obj1 = 0;
2596 char *_kwnames[] = { "self","pt", NULL };
2597
2598 self = self;
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginTopLeft",_kwnames,&_argo0,&_obj1))
2600 return NULL;
2601 if (_argo0) {
2602 if (_argo0 == Py_None) { _arg0 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 _arg1 = &temp;
2610 if (! wxPoint_helper(_obj1, &_arg1))
2611 return NULL;
2612 }
2613 {
2614 PyThreadState* __tstate = wxPyBeginAllowThreads();
2615 wxPageSetupDialogData_SetMinMarginTopLeft(_arg0,*_arg1);
2616
2617 wxPyEndAllowThreads(__tstate);
2618 if (PyErr_Occurred()) return NULL;
2619 } Py_INCREF(Py_None);
2620 _resultobj = Py_None;
2621 return _resultobj;
2622 }
2623
2624 #define wxPageSetupDialogData_SetMinMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMinMarginBottomRight(_swigarg0))
2625 static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2626 PyObject * _resultobj;
2627 wxPageSetupDialogData * _arg0;
2628 wxPoint * _arg1;
2629 PyObject * _argo0 = 0;
2630 wxPoint temp;
2631 PyObject * _obj1 = 0;
2632 char *_kwnames[] = { "self","pt", NULL };
2633
2634 self = self;
2635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginBottomRight",_kwnames,&_argo0,&_obj1))
2636 return NULL;
2637 if (_argo0) {
2638 if (_argo0 == Py_None) { _arg0 = NULL; }
2639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2641 return NULL;
2642 }
2643 }
2644 {
2645 _arg1 = &temp;
2646 if (! wxPoint_helper(_obj1, &_arg1))
2647 return NULL;
2648 }
2649 {
2650 PyThreadState* __tstate = wxPyBeginAllowThreads();
2651 wxPageSetupDialogData_SetMinMarginBottomRight(_arg0,*_arg1);
2652
2653 wxPyEndAllowThreads(__tstate);
2654 if (PyErr_Occurred()) return NULL;
2655 } Py_INCREF(Py_None);
2656 _resultobj = Py_None;
2657 return _resultobj;
2658 }
2659
2660 #define wxPageSetupDialogData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
2661 static PyObject *_wrap_wxPageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject * _resultobj;
2663 wxPageSetupDialogData * _arg0;
2664 wxPaperSize _arg1;
2665 PyObject * _argo0 = 0;
2666 char *_kwnames[] = { "self","id", NULL };
2667
2668 self = self;
2669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetPaperId",_kwnames,&_argo0,&_arg1))
2670 return NULL;
2671 if (_argo0) {
2672 if (_argo0 == Py_None) { _arg0 = NULL; }
2673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperId. Expected _wxPageSetupDialogData_p.");
2675 return NULL;
2676 }
2677 }
2678 {
2679 PyThreadState* __tstate = wxPyBeginAllowThreads();
2680 wxPageSetupDialogData_SetPaperId(_arg0,_arg1);
2681
2682 wxPyEndAllowThreads(__tstate);
2683 if (PyErr_Occurred()) return NULL;
2684 } Py_INCREF(Py_None);
2685 _resultobj = Py_None;
2686 return _resultobj;
2687 }
2688
2689 #define wxPageSetupDialogData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
2690 static PyObject *_wrap_wxPageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2691 PyObject * _resultobj;
2692 wxPageSetupDialogData * _arg0;
2693 wxSize * _arg1;
2694 PyObject * _argo0 = 0;
2695 wxSize temp;
2696 PyObject * _obj1 = 0;
2697 char *_kwnames[] = { "self","size", NULL };
2698
2699 self = self;
2700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPaperSize",_kwnames,&_argo0,&_obj1))
2701 return NULL;
2702 if (_argo0) {
2703 if (_argo0 == Py_None) { _arg0 = NULL; }
2704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperSize. Expected _wxPageSetupDialogData_p.");
2706 return NULL;
2707 }
2708 }
2709 {
2710 _arg1 = &temp;
2711 if (! wxSize_helper(_obj1, &_arg1))
2712 return NULL;
2713 }
2714 {
2715 PyThreadState* __tstate = wxPyBeginAllowThreads();
2716 wxPageSetupDialogData_SetPaperSize(_arg0,*_arg1);
2717
2718 wxPyEndAllowThreads(__tstate);
2719 if (PyErr_Occurred()) return NULL;
2720 } Py_INCREF(Py_None);
2721 _resultobj = Py_None;
2722 return _resultobj;
2723 }
2724
2725 #define wxPageSetupDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
2726 static PyObject *_wrap_wxPageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
2727 PyObject * _resultobj;
2728 wxPageSetupDialogData * _arg0;
2729 wxPrintData * _arg1;
2730 PyObject * _argo0 = 0;
2731 PyObject * _argo1 = 0;
2732 char *_kwnames[] = { "self","printData", NULL };
2733
2734 self = self;
2735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPrintData",_kwnames,&_argo0,&_argo1))
2736 return NULL;
2737 if (_argo0) {
2738 if (_argo0 == Py_None) { _arg0 = NULL; }
2739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPrintData. Expected _wxPageSetupDialogData_p.");
2741 return NULL;
2742 }
2743 }
2744 if (_argo1) {
2745 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
2746 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupDialogData_SetPrintData. Expected _wxPrintData_p.");
2747 return NULL;
2748 }
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 wxPageSetupDialogData_SetPrintData(_arg0,*_arg1);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) return NULL;
2756 } Py_INCREF(Py_None);
2757 _resultobj = Py_None;
2758 return _resultobj;
2759 }
2760
2761 static void *SwigwxPageSetupDialogTowxDialog(void *ptr) {
2762 wxPageSetupDialog *src;
2763 wxDialog *dest;
2764 src = (wxPageSetupDialog *) ptr;
2765 dest = (wxDialog *) src;
2766 return (void *) dest;
2767 }
2768
2769 static void *SwigwxPageSetupDialogTowxTopLevelWindow(void *ptr) {
2770 wxPageSetupDialog *src;
2771 wxTopLevelWindow *dest;
2772 src = (wxPageSetupDialog *) ptr;
2773 dest = (wxTopLevelWindow *) src;
2774 return (void *) dest;
2775 }
2776
2777 static void *SwigwxPageSetupDialogTowxWindow(void *ptr) {
2778 wxPageSetupDialog *src;
2779 wxWindow *dest;
2780 src = (wxPageSetupDialog *) ptr;
2781 dest = (wxWindow *) src;
2782 return (void *) dest;
2783 }
2784
2785 static void *SwigwxPageSetupDialogTowxEvtHandler(void *ptr) {
2786 wxPageSetupDialog *src;
2787 wxEvtHandler *dest;
2788 src = (wxPageSetupDialog *) ptr;
2789 dest = (wxEvtHandler *) src;
2790 return (void *) dest;
2791 }
2792
2793 static void *SwigwxPageSetupDialogTowxObject(void *ptr) {
2794 wxPageSetupDialog *src;
2795 wxObject *dest;
2796 src = (wxPageSetupDialog *) ptr;
2797 dest = (wxObject *) src;
2798 return (void *) dest;
2799 }
2800
2801 #define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1))
2802 static PyObject *_wrap_new_wxPageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject * _resultobj;
2804 wxPageSetupDialog * _result;
2805 wxWindow * _arg0;
2806 wxPageSetupDialogData * _arg1 = (wxPageSetupDialogData *) NULL;
2807 PyObject * _argo0 = 0;
2808 PyObject * _argo1 = 0;
2809 char *_kwnames[] = { "parent","data", NULL };
2810 char _ptemp[128];
2811
2812 self = self;
2813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPageSetupDialog",_kwnames,&_argo0,&_argo1))
2814 return NULL;
2815 if (_argo0) {
2816 if (_argo0 == Py_None) { _arg0 = NULL; }
2817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPageSetupDialog. Expected _wxWindow_p.");
2819 return NULL;
2820 }
2821 }
2822 if (_argo1) {
2823 if (_argo1 == Py_None) { _arg1 = NULL; }
2824 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPageSetupDialogData_p")) {
2825 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPageSetupDialog. Expected _wxPageSetupDialogData_p.");
2826 return NULL;
2827 }
2828 }
2829 {
2830 PyThreadState* __tstate = wxPyBeginAllowThreads();
2831 _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1);
2832
2833 wxPyEndAllowThreads(__tstate);
2834 if (PyErr_Occurred()) return NULL;
2835 } if (_result) {
2836 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialog_p");
2837 _resultobj = Py_BuildValue("s",_ptemp);
2838 } else {
2839 Py_INCREF(Py_None);
2840 _resultobj = Py_None;
2841 }
2842 return _resultobj;
2843 }
2844
2845 #define wxPageSetupDialog_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData())
2846 static PyObject *_wrap_wxPageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) {
2847 PyObject * _resultobj;
2848 wxPageSetupDialogData * _result;
2849 wxPageSetupDialog * _arg0;
2850 PyObject * _argo0 = 0;
2851 char *_kwnames[] = { "self", NULL };
2852 char _ptemp[128];
2853
2854 self = self;
2855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_GetPageSetupData",_kwnames,&_argo0))
2856 return NULL;
2857 if (_argo0) {
2858 if (_argo0 == Py_None) { _arg0 = NULL; }
2859 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) {
2860 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_GetPageSetupData. Expected _wxPageSetupDialog_p.");
2861 return NULL;
2862 }
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 wxPageSetupDialogData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0);
2867 _result = (wxPageSetupDialogData *) &_result_ref;
2868
2869 wxPyEndAllowThreads(__tstate);
2870 if (PyErr_Occurred()) return NULL;
2871 } if (_result) {
2872 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
2873 _resultobj = Py_BuildValue("s",_ptemp);
2874 } else {
2875 Py_INCREF(Py_None);
2876 _resultobj = Py_None;
2877 }
2878 return _resultobj;
2879 }
2880
2881 #define wxPageSetupDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2882 static PyObject *_wrap_wxPageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2883 PyObject * _resultobj;
2884 int _result;
2885 wxPageSetupDialog * _arg0;
2886 PyObject * _argo0 = 0;
2887 char *_kwnames[] = { "self", NULL };
2888
2889 self = self;
2890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_ShowModal",_kwnames,&_argo0))
2891 return NULL;
2892 if (_argo0) {
2893 if (_argo0 == Py_None) { _arg0 = NULL; }
2894 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) {
2895 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_ShowModal. Expected _wxPageSetupDialog_p.");
2896 return NULL;
2897 }
2898 }
2899 {
2900 PyThreadState* __tstate = wxPyBeginAllowThreads();
2901 _result = (int )wxPageSetupDialog_ShowModal(_arg0);
2902
2903 wxPyEndAllowThreads(__tstate);
2904 if (PyErr_Occurred()) return NULL;
2905 } _resultobj = Py_BuildValue("i",_result);
2906 return _resultobj;
2907 }
2908
2909 static void *SwigwxPrintDialogDataTowxObject(void *ptr) {
2910 wxPrintDialogData *src;
2911 wxObject *dest;
2912 src = (wxPrintDialogData *) ptr;
2913 dest = (wxObject *) src;
2914 return (void *) dest;
2915 }
2916
2917 #define new_wxPrintDialogData() (new wxPrintDialogData())
2918 static PyObject *_wrap_new_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
2919 PyObject * _resultobj;
2920 wxPrintDialogData * _result;
2921 char *_kwnames[] = { NULL };
2922 char _ptemp[128];
2923
2924 self = self;
2925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintDialogData",_kwnames))
2926 return NULL;
2927 {
2928 PyThreadState* __tstate = wxPyBeginAllowThreads();
2929 _result = (wxPrintDialogData *)new_wxPrintDialogData();
2930
2931 wxPyEndAllowThreads(__tstate);
2932 if (PyErr_Occurred()) return NULL;
2933 } if (_result) {
2934 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
2935 _resultobj = Py_BuildValue("s",_ptemp);
2936 } else {
2937 Py_INCREF(Py_None);
2938 _resultobj = Py_None;
2939 }
2940 return _resultobj;
2941 }
2942
2943 #define delete_wxPrintDialogData(_swigobj) (delete _swigobj)
2944 static PyObject *_wrap_delete_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
2945 PyObject * _resultobj;
2946 wxPrintDialogData * _arg0;
2947 PyObject * _argo0 = 0;
2948 char *_kwnames[] = { "self", NULL };
2949
2950 self = self;
2951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintDialogData",_kwnames,&_argo0))
2952 return NULL;
2953 if (_argo0) {
2954 if (_argo0 == Py_None) { _arg0 = NULL; }
2955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintDialogData. Expected _wxPrintDialogData_p.");
2957 return NULL;
2958 }
2959 }
2960 {
2961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2962 delete_wxPrintDialogData(_arg0);
2963
2964 wxPyEndAllowThreads(__tstate);
2965 if (PyErr_Occurred()) return NULL;
2966 } Py_INCREF(Py_None);
2967 _resultobj = Py_None;
2968 return _resultobj;
2969 }
2970
2971 #define wxPrintDialogData_GetFromPage(_swigobj) (_swigobj->GetFromPage())
2972 static PyObject *_wrap_wxPrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
2973 PyObject * _resultobj;
2974 int _result;
2975 wxPrintDialogData * _arg0;
2976 PyObject * _argo0 = 0;
2977 char *_kwnames[] = { "self", NULL };
2978
2979 self = self;
2980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetFromPage",_kwnames,&_argo0))
2981 return NULL;
2982 if (_argo0) {
2983 if (_argo0 == Py_None) { _arg0 = NULL; }
2984 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2985 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetFromPage. Expected _wxPrintDialogData_p.");
2986 return NULL;
2987 }
2988 }
2989 {
2990 PyThreadState* __tstate = wxPyBeginAllowThreads();
2991 _result = (int )wxPrintDialogData_GetFromPage(_arg0);
2992
2993 wxPyEndAllowThreads(__tstate);
2994 if (PyErr_Occurred()) return NULL;
2995 } _resultobj = Py_BuildValue("i",_result);
2996 return _resultobj;
2997 }
2998
2999 #define wxPrintDialogData_GetToPage(_swigobj) (_swigobj->GetToPage())
3000 static PyObject *_wrap_wxPrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3001 PyObject * _resultobj;
3002 int _result;
3003 wxPrintDialogData * _arg0;
3004 PyObject * _argo0 = 0;
3005 char *_kwnames[] = { "self", NULL };
3006
3007 self = self;
3008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetToPage",_kwnames,&_argo0))
3009 return NULL;
3010 if (_argo0) {
3011 if (_argo0 == Py_None) { _arg0 = NULL; }
3012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetToPage. Expected _wxPrintDialogData_p.");
3014 return NULL;
3015 }
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 _result = (int )wxPrintDialogData_GetToPage(_arg0);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) return NULL;
3023 } _resultobj = Py_BuildValue("i",_result);
3024 return _resultobj;
3025 }
3026
3027 #define wxPrintDialogData_GetMinPage(_swigobj) (_swigobj->GetMinPage())
3028 static PyObject *_wrap_wxPrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3029 PyObject * _resultobj;
3030 int _result;
3031 wxPrintDialogData * _arg0;
3032 PyObject * _argo0 = 0;
3033 char *_kwnames[] = { "self", NULL };
3034
3035 self = self;
3036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMinPage",_kwnames,&_argo0))
3037 return NULL;
3038 if (_argo0) {
3039 if (_argo0 == Py_None) { _arg0 = NULL; }
3040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMinPage. Expected _wxPrintDialogData_p.");
3042 return NULL;
3043 }
3044 }
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 _result = (int )wxPrintDialogData_GetMinPage(_arg0);
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) return NULL;
3051 } _resultobj = Py_BuildValue("i",_result);
3052 return _resultobj;
3053 }
3054
3055 #define wxPrintDialogData_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
3056 static PyObject *_wrap_wxPrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject * _resultobj;
3058 int _result;
3059 wxPrintDialogData * _arg0;
3060 PyObject * _argo0 = 0;
3061 char *_kwnames[] = { "self", NULL };
3062
3063 self = self;
3064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMaxPage",_kwnames,&_argo0))
3065 return NULL;
3066 if (_argo0) {
3067 if (_argo0 == Py_None) { _arg0 = NULL; }
3068 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3069 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMaxPage. Expected _wxPrintDialogData_p.");
3070 return NULL;
3071 }
3072 }
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 _result = (int )wxPrintDialogData_GetMaxPage(_arg0);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) return NULL;
3079 } _resultobj = Py_BuildValue("i",_result);
3080 return _resultobj;
3081 }
3082
3083 #define wxPrintDialogData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
3084 static PyObject *_wrap_wxPrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
3085 PyObject * _resultobj;
3086 int _result;
3087 wxPrintDialogData * _arg0;
3088 PyObject * _argo0 = 0;
3089 char *_kwnames[] = { "self", NULL };
3090
3091 self = self;
3092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetNoCopies",_kwnames,&_argo0))
3093 return NULL;
3094 if (_argo0) {
3095 if (_argo0 == Py_None) { _arg0 = NULL; }
3096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetNoCopies. Expected _wxPrintDialogData_p.");
3098 return NULL;
3099 }
3100 }
3101 {
3102 PyThreadState* __tstate = wxPyBeginAllowThreads();
3103 _result = (int )wxPrintDialogData_GetNoCopies(_arg0);
3104
3105 wxPyEndAllowThreads(__tstate);
3106 if (PyErr_Occurred()) return NULL;
3107 } _resultobj = Py_BuildValue("i",_result);
3108 return _resultobj;
3109 }
3110
3111 #define wxPrintDialogData_GetAllPages(_swigobj) (_swigobj->GetAllPages())
3112 static PyObject *_wrap_wxPrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
3113 PyObject * _resultobj;
3114 bool _result;
3115 wxPrintDialogData * _arg0;
3116 PyObject * _argo0 = 0;
3117 char *_kwnames[] = { "self", NULL };
3118
3119 self = self;
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetAllPages",_kwnames,&_argo0))
3121 return NULL;
3122 if (_argo0) {
3123 if (_argo0 == Py_None) { _arg0 = NULL; }
3124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetAllPages. Expected _wxPrintDialogData_p.");
3126 return NULL;
3127 }
3128 }
3129 {
3130 PyThreadState* __tstate = wxPyBeginAllowThreads();
3131 _result = (bool )wxPrintDialogData_GetAllPages(_arg0);
3132
3133 wxPyEndAllowThreads(__tstate);
3134 if (PyErr_Occurred()) return NULL;
3135 } _resultobj = Py_BuildValue("i",_result);
3136 return _resultobj;
3137 }
3138
3139 #define wxPrintDialogData_GetSelection(_swigobj) (_swigobj->GetSelection())
3140 static PyObject *_wrap_wxPrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3141 PyObject * _resultobj;
3142 bool _result;
3143 wxPrintDialogData * _arg0;
3144 PyObject * _argo0 = 0;
3145 char *_kwnames[] = { "self", NULL };
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetSelection",_kwnames,&_argo0))
3149 return NULL;
3150 if (_argo0) {
3151 if (_argo0 == Py_None) { _arg0 = NULL; }
3152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetSelection. Expected _wxPrintDialogData_p.");
3154 return NULL;
3155 }
3156 }
3157 {
3158 PyThreadState* __tstate = wxPyBeginAllowThreads();
3159 _result = (bool )wxPrintDialogData_GetSelection(_arg0);
3160
3161 wxPyEndAllowThreads(__tstate);
3162 if (PyErr_Occurred()) return NULL;
3163 } _resultobj = Py_BuildValue("i",_result);
3164 return _resultobj;
3165 }
3166
3167 #define wxPrintDialogData_GetCollate(_swigobj) (_swigobj->GetCollate())
3168 static PyObject *_wrap_wxPrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
3169 PyObject * _resultobj;
3170 bool _result;
3171 wxPrintDialogData * _arg0;
3172 PyObject * _argo0 = 0;
3173 char *_kwnames[] = { "self", NULL };
3174
3175 self = self;
3176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetCollate",_kwnames,&_argo0))
3177 return NULL;
3178 if (_argo0) {
3179 if (_argo0 == Py_None) { _arg0 = NULL; }
3180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetCollate. Expected _wxPrintDialogData_p.");
3182 return NULL;
3183 }
3184 }
3185 {
3186 PyThreadState* __tstate = wxPyBeginAllowThreads();
3187 _result = (bool )wxPrintDialogData_GetCollate(_arg0);
3188
3189 wxPyEndAllowThreads(__tstate);
3190 if (PyErr_Occurred()) return NULL;
3191 } _resultobj = Py_BuildValue("i",_result);
3192 return _resultobj;
3193 }
3194
3195 #define wxPrintDialogData_GetPrintToFile(_swigobj) (_swigobj->GetPrintToFile())
3196 static PyObject *_wrap_wxPrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject * _resultobj;
3198 bool _result;
3199 wxPrintDialogData * _arg0;
3200 PyObject * _argo0 = 0;
3201 char *_kwnames[] = { "self", NULL };
3202
3203 self = self;
3204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintToFile",_kwnames,&_argo0))
3205 return NULL;
3206 if (_argo0) {
3207 if (_argo0 == Py_None) { _arg0 = NULL; }
3208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintToFile. Expected _wxPrintDialogData_p.");
3210 return NULL;
3211 }
3212 }
3213 {
3214 PyThreadState* __tstate = wxPyBeginAllowThreads();
3215 _result = (bool )wxPrintDialogData_GetPrintToFile(_arg0);
3216
3217 wxPyEndAllowThreads(__tstate);
3218 if (PyErr_Occurred()) return NULL;
3219 } _resultobj = Py_BuildValue("i",_result);
3220 return _resultobj;
3221 }
3222
3223 #define wxPrintDialogData_GetSetupDialog(_swigobj) (_swigobj->GetSetupDialog())
3224 static PyObject *_wrap_wxPrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject * _resultobj;
3226 bool _result;
3227 wxPrintDialogData * _arg0;
3228 PyObject * _argo0 = 0;
3229 char *_kwnames[] = { "self", NULL };
3230
3231 self = self;
3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetSetupDialog",_kwnames,&_argo0))
3233 return NULL;
3234 if (_argo0) {
3235 if (_argo0 == Py_None) { _arg0 = NULL; }
3236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetSetupDialog. Expected _wxPrintDialogData_p.");
3238 return NULL;
3239 }
3240 }
3241 {
3242 PyThreadState* __tstate = wxPyBeginAllowThreads();
3243 _result = (bool )wxPrintDialogData_GetSetupDialog(_arg0);
3244
3245 wxPyEndAllowThreads(__tstate);
3246 if (PyErr_Occurred()) return NULL;
3247 } _resultobj = Py_BuildValue("i",_result);
3248 return _resultobj;
3249 }
3250
3251 #define wxPrintDialogData_SetFromPage(_swigobj,_swigarg0) (_swigobj->SetFromPage(_swigarg0))
3252 static PyObject *_wrap_wxPrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3253 PyObject * _resultobj;
3254 wxPrintDialogData * _arg0;
3255 int _arg1;
3256 PyObject * _argo0 = 0;
3257 char *_kwnames[] = { "self","v", NULL };
3258
3259 self = self;
3260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetFromPage",_kwnames,&_argo0,&_arg1))
3261 return NULL;
3262 if (_argo0) {
3263 if (_argo0 == Py_None) { _arg0 = NULL; }
3264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetFromPage. Expected _wxPrintDialogData_p.");
3266 return NULL;
3267 }
3268 }
3269 {
3270 PyThreadState* __tstate = wxPyBeginAllowThreads();
3271 wxPrintDialogData_SetFromPage(_arg0,_arg1);
3272
3273 wxPyEndAllowThreads(__tstate);
3274 if (PyErr_Occurred()) return NULL;
3275 } Py_INCREF(Py_None);
3276 _resultobj = Py_None;
3277 return _resultobj;
3278 }
3279
3280 #define wxPrintDialogData_SetToPage(_swigobj,_swigarg0) (_swigobj->SetToPage(_swigarg0))
3281 static PyObject *_wrap_wxPrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject * _resultobj;
3283 wxPrintDialogData * _arg0;
3284 int _arg1;
3285 PyObject * _argo0 = 0;
3286 char *_kwnames[] = { "self","v", NULL };
3287
3288 self = self;
3289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetToPage",_kwnames,&_argo0,&_arg1))
3290 return NULL;
3291 if (_argo0) {
3292 if (_argo0 == Py_None) { _arg0 = NULL; }
3293 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3294 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetToPage. Expected _wxPrintDialogData_p.");
3295 return NULL;
3296 }
3297 }
3298 {
3299 PyThreadState* __tstate = wxPyBeginAllowThreads();
3300 wxPrintDialogData_SetToPage(_arg0,_arg1);
3301
3302 wxPyEndAllowThreads(__tstate);
3303 if (PyErr_Occurred()) return NULL;
3304 } Py_INCREF(Py_None);
3305 _resultobj = Py_None;
3306 return _resultobj;
3307 }
3308
3309 #define wxPrintDialogData_SetMinPage(_swigobj,_swigarg0) (_swigobj->SetMinPage(_swigarg0))
3310 static PyObject *_wrap_wxPrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3311 PyObject * _resultobj;
3312 wxPrintDialogData * _arg0;
3313 int _arg1;
3314 PyObject * _argo0 = 0;
3315 char *_kwnames[] = { "self","v", NULL };
3316
3317 self = self;
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMinPage",_kwnames,&_argo0,&_arg1))
3319 return NULL;
3320 if (_argo0) {
3321 if (_argo0 == Py_None) { _arg0 = NULL; }
3322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMinPage. Expected _wxPrintDialogData_p.");
3324 return NULL;
3325 }
3326 }
3327 {
3328 PyThreadState* __tstate = wxPyBeginAllowThreads();
3329 wxPrintDialogData_SetMinPage(_arg0,_arg1);
3330
3331 wxPyEndAllowThreads(__tstate);
3332 if (PyErr_Occurred()) return NULL;
3333 } Py_INCREF(Py_None);
3334 _resultobj = Py_None;
3335 return _resultobj;
3336 }
3337
3338 #define wxPrintDialogData_SetMaxPage(_swigobj,_swigarg0) (_swigobj->SetMaxPage(_swigarg0))
3339 static PyObject *_wrap_wxPrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3340 PyObject * _resultobj;
3341 wxPrintDialogData * _arg0;
3342 int _arg1;
3343 PyObject * _argo0 = 0;
3344 char *_kwnames[] = { "self","v", NULL };
3345
3346 self = self;
3347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMaxPage",_kwnames,&_argo0,&_arg1))
3348 return NULL;
3349 if (_argo0) {
3350 if (_argo0 == Py_None) { _arg0 = NULL; }
3351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMaxPage. Expected _wxPrintDialogData_p.");
3353 return NULL;
3354 }
3355 }
3356 {
3357 PyThreadState* __tstate = wxPyBeginAllowThreads();
3358 wxPrintDialogData_SetMaxPage(_arg0,_arg1);
3359
3360 wxPyEndAllowThreads(__tstate);
3361 if (PyErr_Occurred()) return NULL;
3362 } Py_INCREF(Py_None);
3363 _resultobj = Py_None;
3364 return _resultobj;
3365 }
3366
3367 #define wxPrintDialogData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
3368 static PyObject *_wrap_wxPrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
3369 PyObject * _resultobj;
3370 wxPrintDialogData * _arg0;
3371 int _arg1;
3372 PyObject * _argo0 = 0;
3373 char *_kwnames[] = { "self","v", NULL };
3374
3375 self = self;
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetNoCopies",_kwnames,&_argo0,&_arg1))
3377 return NULL;
3378 if (_argo0) {
3379 if (_argo0 == Py_None) { _arg0 = NULL; }
3380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetNoCopies. Expected _wxPrintDialogData_p.");
3382 return NULL;
3383 }
3384 }
3385 {
3386 PyThreadState* __tstate = wxPyBeginAllowThreads();
3387 wxPrintDialogData_SetNoCopies(_arg0,_arg1);
3388
3389 wxPyEndAllowThreads(__tstate);
3390 if (PyErr_Occurred()) return NULL;
3391 } Py_INCREF(Py_None);
3392 _resultobj = Py_None;
3393 return _resultobj;
3394 }
3395
3396 #define wxPrintDialogData_SetAllPages(_swigobj,_swigarg0) (_swigobj->SetAllPages(_swigarg0))
3397 static PyObject *_wrap_wxPrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
3398 PyObject * _resultobj;
3399 wxPrintDialogData * _arg0;
3400 bool _arg1;
3401 PyObject * _argo0 = 0;
3402 int tempbool1;
3403 char *_kwnames[] = { "self","flag", NULL };
3404
3405 self = self;
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetAllPages",_kwnames,&_argo0,&tempbool1))
3407 return NULL;
3408 if (_argo0) {
3409 if (_argo0 == Py_None) { _arg0 = NULL; }
3410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetAllPages. Expected _wxPrintDialogData_p.");
3412 return NULL;
3413 }
3414 }
3415 _arg1 = (bool ) tempbool1;
3416 {
3417 PyThreadState* __tstate = wxPyBeginAllowThreads();
3418 wxPrintDialogData_SetAllPages(_arg0,_arg1);
3419
3420 wxPyEndAllowThreads(__tstate);
3421 if (PyErr_Occurred()) return NULL;
3422 } Py_INCREF(Py_None);
3423 _resultobj = Py_None;
3424 return _resultobj;
3425 }
3426
3427 #define wxPrintDialogData_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0))
3428 static PyObject *_wrap_wxPrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject * _resultobj;
3430 wxPrintDialogData * _arg0;
3431 bool _arg1;
3432 PyObject * _argo0 = 0;
3433 int tempbool1;
3434 char *_kwnames[] = { "self","flag", NULL };
3435
3436 self = self;
3437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetSelection",_kwnames,&_argo0,&tempbool1))
3438 return NULL;
3439 if (_argo0) {
3440 if (_argo0 == Py_None) { _arg0 = NULL; }
3441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetSelection. Expected _wxPrintDialogData_p.");
3443 return NULL;
3444 }
3445 }
3446 _arg1 = (bool ) tempbool1;
3447 {
3448 PyThreadState* __tstate = wxPyBeginAllowThreads();
3449 wxPrintDialogData_SetSelection(_arg0,_arg1);
3450
3451 wxPyEndAllowThreads(__tstate);
3452 if (PyErr_Occurred()) return NULL;
3453 } Py_INCREF(Py_None);
3454 _resultobj = Py_None;
3455 return _resultobj;
3456 }
3457
3458 #define wxPrintDialogData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
3459 static PyObject *_wrap_wxPrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
3460 PyObject * _resultobj;
3461 wxPrintDialogData * _arg0;
3462 bool _arg1;
3463 PyObject * _argo0 = 0;
3464 int tempbool1;
3465 char *_kwnames[] = { "self","flag", NULL };
3466
3467 self = self;
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetCollate",_kwnames,&_argo0,&tempbool1))
3469 return NULL;
3470 if (_argo0) {
3471 if (_argo0 == Py_None) { _arg0 = NULL; }
3472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetCollate. Expected _wxPrintDialogData_p.");
3474 return NULL;
3475 }
3476 }
3477 _arg1 = (bool ) tempbool1;
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 wxPrintDialogData_SetCollate(_arg0,_arg1);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) return NULL;
3484 } Py_INCREF(Py_None);
3485 _resultobj = Py_None;
3486 return _resultobj;
3487 }
3488
3489 #define wxPrintDialogData_SetPrintToFile(_swigobj,_swigarg0) (_swigobj->SetPrintToFile(_swigarg0))
3490 static PyObject *_wrap_wxPrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject * _resultobj;
3492 wxPrintDialogData * _arg0;
3493 bool _arg1;
3494 PyObject * _argo0 = 0;
3495 int tempbool1;
3496 char *_kwnames[] = { "self","flag", NULL };
3497
3498 self = self;
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetPrintToFile",_kwnames,&_argo0,&tempbool1))
3500 return NULL;
3501 if (_argo0) {
3502 if (_argo0 == Py_None) { _arg0 = NULL; }
3503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintToFile. Expected _wxPrintDialogData_p.");
3505 return NULL;
3506 }
3507 }
3508 _arg1 = (bool ) tempbool1;
3509 {
3510 PyThreadState* __tstate = wxPyBeginAllowThreads();
3511 wxPrintDialogData_SetPrintToFile(_arg0,_arg1);
3512
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) return NULL;
3515 } Py_INCREF(Py_None);
3516 _resultobj = Py_None;
3517 return _resultobj;
3518 }
3519
3520 #define wxPrintDialogData_SetSetupDialog(_swigobj,_swigarg0) (_swigobj->SetSetupDialog(_swigarg0))
3521 static PyObject *_wrap_wxPrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3522 PyObject * _resultobj;
3523 wxPrintDialogData * _arg0;
3524 bool _arg1;
3525 PyObject * _argo0 = 0;
3526 int tempbool1;
3527 char *_kwnames[] = { "self","flag", NULL };
3528
3529 self = self;
3530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetSetupDialog",_kwnames,&_argo0,&tempbool1))
3531 return NULL;
3532 if (_argo0) {
3533 if (_argo0 == Py_None) { _arg0 = NULL; }
3534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetSetupDialog. Expected _wxPrintDialogData_p.");
3536 return NULL;
3537 }
3538 }
3539 _arg1 = (bool ) tempbool1;
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 wxPrintDialogData_SetSetupDialog(_arg0,_arg1);
3543
3544 wxPyEndAllowThreads(__tstate);
3545 if (PyErr_Occurred()) return NULL;
3546 } Py_INCREF(Py_None);
3547 _resultobj = Py_None;
3548 return _resultobj;
3549 }
3550
3551 #define wxPrintDialogData_EnablePrintToFile(_swigobj,_swigarg0) (_swigobj->EnablePrintToFile(_swigarg0))
3552 static PyObject *_wrap_wxPrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3553 PyObject * _resultobj;
3554 wxPrintDialogData * _arg0;
3555 bool _arg1;
3556 PyObject * _argo0 = 0;
3557 int tempbool1;
3558 char *_kwnames[] = { "self","flag", NULL };
3559
3560 self = self;
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePrintToFile",_kwnames,&_argo0,&tempbool1))
3562 return NULL;
3563 if (_argo0) {
3564 if (_argo0 == Py_None) { _arg0 = NULL; }
3565 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3566 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePrintToFile. Expected _wxPrintDialogData_p.");
3567 return NULL;
3568 }
3569 }
3570 _arg1 = (bool ) tempbool1;
3571 {
3572 PyThreadState* __tstate = wxPyBeginAllowThreads();
3573 wxPrintDialogData_EnablePrintToFile(_arg0,_arg1);
3574
3575 wxPyEndAllowThreads(__tstate);
3576 if (PyErr_Occurred()) return NULL;
3577 } Py_INCREF(Py_None);
3578 _resultobj = Py_None;
3579 return _resultobj;
3580 }
3581
3582 #define wxPrintDialogData_EnableSelection(_swigobj,_swigarg0) (_swigobj->EnableSelection(_swigarg0))
3583 static PyObject *_wrap_wxPrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3584 PyObject * _resultobj;
3585 wxPrintDialogData * _arg0;
3586 bool _arg1;
3587 PyObject * _argo0 = 0;
3588 int tempbool1;
3589 char *_kwnames[] = { "self","flag", NULL };
3590
3591 self = self;
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableSelection",_kwnames,&_argo0,&tempbool1))
3593 return NULL;
3594 if (_argo0) {
3595 if (_argo0 == Py_None) { _arg0 = NULL; }
3596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableSelection. Expected _wxPrintDialogData_p.");
3598 return NULL;
3599 }
3600 }
3601 _arg1 = (bool ) tempbool1;
3602 {
3603 PyThreadState* __tstate = wxPyBeginAllowThreads();
3604 wxPrintDialogData_EnableSelection(_arg0,_arg1);
3605
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) return NULL;
3608 } Py_INCREF(Py_None);
3609 _resultobj = Py_None;
3610 return _resultobj;
3611 }
3612
3613 #define wxPrintDialogData_EnablePageNumbers(_swigobj,_swigarg0) (_swigobj->EnablePageNumbers(_swigarg0))
3614 static PyObject *_wrap_wxPrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) {
3615 PyObject * _resultobj;
3616 wxPrintDialogData * _arg0;
3617 bool _arg1;
3618 PyObject * _argo0 = 0;
3619 int tempbool1;
3620 char *_kwnames[] = { "self","flag", NULL };
3621
3622 self = self;
3623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePageNumbers",_kwnames,&_argo0,&tempbool1))
3624 return NULL;
3625 if (_argo0) {
3626 if (_argo0 == Py_None) { _arg0 = NULL; }
3627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePageNumbers. Expected _wxPrintDialogData_p.");
3629 return NULL;
3630 }
3631 }
3632 _arg1 = (bool ) tempbool1;
3633 {
3634 PyThreadState* __tstate = wxPyBeginAllowThreads();
3635 wxPrintDialogData_EnablePageNumbers(_arg0,_arg1);
3636
3637 wxPyEndAllowThreads(__tstate);
3638 if (PyErr_Occurred()) return NULL;
3639 } Py_INCREF(Py_None);
3640 _resultobj = Py_None;
3641 return _resultobj;
3642 }
3643
3644 #define wxPrintDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
3645 static PyObject *_wrap_wxPrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
3646 PyObject * _resultobj;
3647 wxPrintDialogData * _arg0;
3648 bool _arg1;
3649 PyObject * _argo0 = 0;
3650 int tempbool1;
3651 char *_kwnames[] = { "self","flag", NULL };
3652
3653 self = self;
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1))
3655 return NULL;
3656 if (_argo0) {
3657 if (_argo0 == Py_None) { _arg0 = NULL; }
3658 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3659 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableHelp. Expected _wxPrintDialogData_p.");
3660 return NULL;
3661 }
3662 }
3663 _arg1 = (bool ) tempbool1;
3664 {
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 wxPrintDialogData_EnableHelp(_arg0,_arg1);
3667
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) return NULL;
3670 } Py_INCREF(Py_None);
3671 _resultobj = Py_None;
3672 return _resultobj;
3673 }
3674
3675 #define wxPrintDialogData_GetEnablePrintToFile(_swigobj) (_swigobj->GetEnablePrintToFile())
3676 static PyObject *_wrap_wxPrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject * _resultobj;
3678 bool _result;
3679 wxPrintDialogData * _arg0;
3680 PyObject * _argo0 = 0;
3681 char *_kwnames[] = { "self", NULL };
3682
3683 self = self;
3684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnablePrintToFile",_kwnames,&_argo0))
3685 return NULL;
3686 if (_argo0) {
3687 if (_argo0 == Py_None) { _arg0 = NULL; }
3688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnablePrintToFile. Expected _wxPrintDialogData_p.");
3690 return NULL;
3691 }
3692 }
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 _result = (bool )wxPrintDialogData_GetEnablePrintToFile(_arg0);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) return NULL;
3699 } _resultobj = Py_BuildValue("i",_result);
3700 return _resultobj;
3701 }
3702
3703 #define wxPrintDialogData_GetEnableSelection(_swigobj) (_swigobj->GetEnableSelection())
3704 static PyObject *_wrap_wxPrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject * _resultobj;
3706 bool _result;
3707 wxPrintDialogData * _arg0;
3708 PyObject * _argo0 = 0;
3709 char *_kwnames[] = { "self", NULL };
3710
3711 self = self;
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnableSelection",_kwnames,&_argo0))
3713 return NULL;
3714 if (_argo0) {
3715 if (_argo0 == Py_None) { _arg0 = NULL; }
3716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnableSelection. Expected _wxPrintDialogData_p.");
3718 return NULL;
3719 }
3720 }
3721 {
3722 PyThreadState* __tstate = wxPyBeginAllowThreads();
3723 _result = (bool )wxPrintDialogData_GetEnableSelection(_arg0);
3724
3725 wxPyEndAllowThreads(__tstate);
3726 if (PyErr_Occurred()) return NULL;
3727 } _resultobj = Py_BuildValue("i",_result);
3728 return _resultobj;
3729 }
3730
3731 #define wxPrintDialogData_GetEnablePageNumbers(_swigobj) (_swigobj->GetEnablePageNumbers())
3732 static PyObject *_wrap_wxPrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject * _resultobj;
3734 bool _result;
3735 wxPrintDialogData * _arg0;
3736 PyObject * _argo0 = 0;
3737 char *_kwnames[] = { "self", NULL };
3738
3739 self = self;
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnablePageNumbers",_kwnames,&_argo0))
3741 return NULL;
3742 if (_argo0) {
3743 if (_argo0 == Py_None) { _arg0 = NULL; }
3744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnablePageNumbers. Expected _wxPrintDialogData_p.");
3746 return NULL;
3747 }
3748 }
3749 {
3750 PyThreadState* __tstate = wxPyBeginAllowThreads();
3751 _result = (bool )wxPrintDialogData_GetEnablePageNumbers(_arg0);
3752
3753 wxPyEndAllowThreads(__tstate);
3754 if (PyErr_Occurred()) return NULL;
3755 } _resultobj = Py_BuildValue("i",_result);
3756 return _resultobj;
3757 }
3758
3759 #define wxPrintDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp())
3760 static PyObject *_wrap_wxPrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
3761 PyObject * _resultobj;
3762 bool _result;
3763 wxPrintDialogData * _arg0;
3764 PyObject * _argo0 = 0;
3765 char *_kwnames[] = { "self", NULL };
3766
3767 self = self;
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnableHelp",_kwnames,&_argo0))
3769 return NULL;
3770 if (_argo0) {
3771 if (_argo0 == Py_None) { _arg0 = NULL; }
3772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnableHelp. Expected _wxPrintDialogData_p.");
3774 return NULL;
3775 }
3776 }
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 _result = (bool )wxPrintDialogData_GetEnableHelp(_arg0);
3780
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) return NULL;
3783 } _resultobj = Py_BuildValue("i",_result);
3784 return _resultobj;
3785 }
3786
3787 #define wxPrintDialogData_Ok(_swigobj) (_swigobj->Ok())
3788 static PyObject *_wrap_wxPrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3789 PyObject * _resultobj;
3790 bool _result;
3791 wxPrintDialogData * _arg0;
3792 PyObject * _argo0 = 0;
3793 char *_kwnames[] = { "self", NULL };
3794
3795 self = self;
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_Ok",_kwnames,&_argo0))
3797 return NULL;
3798 if (_argo0) {
3799 if (_argo0 == Py_None) { _arg0 = NULL; }
3800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_Ok. Expected _wxPrintDialogData_p.");
3802 return NULL;
3803 }
3804 }
3805 {
3806 PyThreadState* __tstate = wxPyBeginAllowThreads();
3807 _result = (bool )wxPrintDialogData_Ok(_arg0);
3808
3809 wxPyEndAllowThreads(__tstate);
3810 if (PyErr_Occurred()) return NULL;
3811 } _resultobj = Py_BuildValue("i",_result);
3812 return _resultobj;
3813 }
3814
3815 static wxPrintData * wxPrintDialogData_GetPrintData(wxPrintDialogData *self) {
3816 return new wxPrintData(self->GetPrintData()); // force a copy
3817 }
3818 static PyObject *_wrap_wxPrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
3819 PyObject * _resultobj;
3820 wxPrintData * _result;
3821 wxPrintDialogData * _arg0;
3822 PyObject * _argo0 = 0;
3823 char *_kwnames[] = { "self", NULL };
3824 char _ptemp[128];
3825
3826 self = self;
3827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintData",_kwnames,&_argo0))
3828 return NULL;
3829 if (_argo0) {
3830 if (_argo0 == Py_None) { _arg0 = NULL; }
3831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintData. Expected _wxPrintDialogData_p.");
3833 return NULL;
3834 }
3835 }
3836 {
3837 PyThreadState* __tstate = wxPyBeginAllowThreads();
3838 _result = (wxPrintData *)wxPrintDialogData_GetPrintData(_arg0);
3839
3840 wxPyEndAllowThreads(__tstate);
3841 if (PyErr_Occurred()) return NULL;
3842 } if (_result) {
3843 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
3844 _resultobj = Py_BuildValue("s",_ptemp);
3845 } else {
3846 Py_INCREF(Py_None);
3847 _resultobj = Py_None;
3848 }
3849 return _resultobj;
3850 }
3851
3852 #define wxPrintDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
3853 static PyObject *_wrap_wxPrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
3854 PyObject * _resultobj;
3855 wxPrintDialogData * _arg0;
3856 wxPrintData * _arg1;
3857 PyObject * _argo0 = 0;
3858 PyObject * _argo1 = 0;
3859 char *_kwnames[] = { "self","printData", NULL };
3860
3861 self = self;
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintDialogData_SetPrintData",_kwnames,&_argo0,&_argo1))
3863 return NULL;
3864 if (_argo0) {
3865 if (_argo0 == Py_None) { _arg0 = NULL; }
3866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintData. Expected _wxPrintDialogData_p.");
3868 return NULL;
3869 }
3870 }
3871 if (_argo1) {
3872 if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
3873 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintDialogData_SetPrintData. Expected _wxPrintData_p.");
3874 return NULL;
3875 }
3876 }
3877 {
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 wxPrintDialogData_SetPrintData(_arg0,*_arg1);
3880
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) return NULL;
3883 } Py_INCREF(Py_None);
3884 _resultobj = Py_None;
3885 return _resultobj;
3886 }
3887
3888 static void *SwigwxPrintDialogTowxDialog(void *ptr) {
3889 wxPrintDialog *src;
3890 wxDialog *dest;
3891 src = (wxPrintDialog *) ptr;
3892 dest = (wxDialog *) src;
3893 return (void *) dest;
3894 }
3895
3896 static void *SwigwxPrintDialogTowxTopLevelWindow(void *ptr) {
3897 wxPrintDialog *src;
3898 wxTopLevelWindow *dest;
3899 src = (wxPrintDialog *) ptr;
3900 dest = (wxTopLevelWindow *) src;
3901 return (void *) dest;
3902 }
3903
3904 static void *SwigwxPrintDialogTowxWindow(void *ptr) {
3905 wxPrintDialog *src;
3906 wxWindow *dest;
3907 src = (wxPrintDialog *) ptr;
3908 dest = (wxWindow *) src;
3909 return (void *) dest;
3910 }
3911
3912 static void *SwigwxPrintDialogTowxEvtHandler(void *ptr) {
3913 wxPrintDialog *src;
3914 wxEvtHandler *dest;
3915 src = (wxPrintDialog *) ptr;
3916 dest = (wxEvtHandler *) src;
3917 return (void *) dest;
3918 }
3919
3920 static void *SwigwxPrintDialogTowxObject(void *ptr) {
3921 wxPrintDialog *src;
3922 wxObject *dest;
3923 src = (wxPrintDialog *) ptr;
3924 dest = (wxObject *) src;
3925 return (void *) dest;
3926 }
3927
3928 #define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1))
3929 static PyObject *_wrap_new_wxPrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3930 PyObject * _resultobj;
3931 wxPrintDialog * _result;
3932 wxWindow * _arg0;
3933 wxPrintDialogData * _arg1 = (wxPrintDialogData *) NULL;
3934 PyObject * _argo0 = 0;
3935 PyObject * _argo1 = 0;
3936 char *_kwnames[] = { "parent","data", NULL };
3937 char _ptemp[128];
3938
3939 self = self;
3940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPrintDialog",_kwnames,&_argo0,&_argo1))
3941 return NULL;
3942 if (_argo0) {
3943 if (_argo0 == Py_None) { _arg0 = NULL; }
3944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintDialog. Expected _wxWindow_p.");
3946 return NULL;
3947 }
3948 }
3949 if (_argo1) {
3950 if (_argo1 == Py_None) { _arg1 = NULL; }
3951 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintDialogData_p")) {
3952 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintDialog. Expected _wxPrintDialogData_p.");
3953 return NULL;
3954 }
3955 }
3956 {
3957 PyThreadState* __tstate = wxPyBeginAllowThreads();
3958 _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1);
3959
3960 wxPyEndAllowThreads(__tstate);
3961 if (PyErr_Occurred()) return NULL;
3962 } if (_result) {
3963 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialog_p");
3964 _resultobj = Py_BuildValue("s",_ptemp);
3965 } else {
3966 Py_INCREF(Py_None);
3967 _resultobj = Py_None;
3968 }
3969 return _resultobj;
3970 }
3971
3972 #define wxPrintDialog_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
3973 static PyObject *_wrap_wxPrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
3974 PyObject * _resultobj;
3975 wxPrintDialogData * _result;
3976 wxPrintDialog * _arg0;
3977 PyObject * _argo0 = 0;
3978 char *_kwnames[] = { "self", NULL };
3979 char _ptemp[128];
3980
3981 self = self;
3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDialogData",_kwnames,&_argo0))
3983 return NULL;
3984 if (_argo0) {
3985 if (_argo0 == Py_None) { _arg0 = NULL; }
3986 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
3987 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDialogData. Expected _wxPrintDialog_p.");
3988 return NULL;
3989 }
3990 }
3991 {
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 wxPrintDialogData & _result_ref = wxPrintDialog_GetPrintDialogData(_arg0);
3994 _result = (wxPrintDialogData *) &_result_ref;
3995
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) return NULL;
3998 } if (_result) {
3999 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
4000 _resultobj = Py_BuildValue("s",_ptemp);
4001 } else {
4002 Py_INCREF(Py_None);
4003 _resultobj = Py_None;
4004 }
4005 return _resultobj;
4006 }
4007
4008 #define wxPrintDialog_GetPrintDC(_swigobj) (_swigobj->GetPrintDC())
4009 static PyObject *_wrap_wxPrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
4010 PyObject * _resultobj;
4011 wxDC * _result;
4012 wxPrintDialog * _arg0;
4013 PyObject * _argo0 = 0;
4014 char *_kwnames[] = { "self", NULL };
4015
4016 self = self;
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDC",_kwnames,&_argo0))
4018 return NULL;
4019 if (_argo0) {
4020 if (_argo0 == Py_None) { _arg0 = NULL; }
4021 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
4022 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDC. Expected _wxPrintDialog_p.");
4023 return NULL;
4024 }
4025 }
4026 {
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0);
4029
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) return NULL;
4032 }{ _resultobj = wxPyMake_wxObject(_result); }
4033 return _resultobj;
4034 }
4035
4036 #define wxPrintDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
4037 static PyObject *_wrap_wxPrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
4038 PyObject * _resultobj;
4039 int _result;
4040 wxPrintDialog * _arg0;
4041 PyObject * _argo0 = 0;
4042 char *_kwnames[] = { "self", NULL };
4043
4044 self = self;
4045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_ShowModal",_kwnames,&_argo0))
4046 return NULL;
4047 if (_argo0) {
4048 if (_argo0 == Py_None) { _arg0 = NULL; }
4049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
4050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_ShowModal. Expected _wxPrintDialog_p.");
4051 return NULL;
4052 }
4053 }
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 _result = (int )wxPrintDialog_ShowModal(_arg0);
4057
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) return NULL;
4060 } _resultobj = Py_BuildValue("i",_result);
4061 return _resultobj;
4062 }
4063
4064 static void *SwigwxPyPrintoutTowxObject(void *ptr) {
4065 wxPyPrintout *src;
4066 wxObject *dest;
4067 src = (wxPyPrintout *) ptr;
4068 dest = (wxObject *) src;
4069 return (void *) dest;
4070 }
4071
4072 #define new_wxPrintout(_swigarg0) (new wxPyPrintout(_swigarg0))
4073 static PyObject *_wrap_new_wxPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject * _resultobj;
4075 wxPyPrintout * _result;
4076 wxString * _arg0 = (wxString *) &wxPyPrintoutTitleStr;
4077 PyObject * _obj0 = 0;
4078 char *_kwnames[] = { "title", NULL };
4079 char _ptemp[128];
4080
4081 self = self;
4082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrintout",_kwnames,&_obj0))
4083 return NULL;
4084 if (_obj0)
4085 {
4086 _arg0 = wxString_in_helper(_obj0);
4087 if (_arg0 == NULL)
4088 return NULL;
4089 }
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 _result = (wxPyPrintout *)new_wxPrintout(*_arg0);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) return NULL;
4096 } if (_result) {
4097 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p");
4098 _resultobj = Py_BuildValue("s",_ptemp);
4099 } else {
4100 Py_INCREF(Py_None);
4101 _resultobj = Py_None;
4102 }
4103 {
4104 if (_obj0)
4105 delete _arg0;
4106 }
4107 return _resultobj;
4108 }
4109
4110 #define wxPrintout__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
4111 static PyObject *_wrap_wxPrintout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4112 PyObject * _resultobj;
4113 wxPyPrintout * _arg0;
4114 PyObject * _arg1;
4115 PyObject * _arg2;
4116 PyObject * _argo0 = 0;
4117 PyObject * _obj1 = 0;
4118 PyObject * _obj2 = 0;
4119 char *_kwnames[] = { "self","self","_class", NULL };
4120
4121 self = self;
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintout__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
4123 return NULL;
4124 if (_argo0) {
4125 if (_argo0 == Py_None) { _arg0 = NULL; }
4126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout__setCallbackInfo. Expected _wxPyPrintout_p.");
4128 return NULL;
4129 }
4130 }
4131 {
4132 _arg1 = _obj1;
4133 }
4134 {
4135 _arg2 = _obj2;
4136 }
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 wxPrintout__setCallbackInfo(_arg0,_arg1,_arg2);
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) return NULL;
4143 } Py_INCREF(Py_None);
4144 _resultobj = Py_None;
4145 return _resultobj;
4146 }
4147
4148 static void wxPyPrintout_Destroy(wxPyPrintout *self) { delete self; }
4149 static PyObject *_wrap_wxPrintout_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject * _resultobj;
4151 wxPyPrintout * _arg0;
4152 PyObject * _argo0 = 0;
4153 char *_kwnames[] = { "self", NULL };
4154
4155 self = self;
4156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_Destroy",_kwnames,&_argo0))
4157 return NULL;
4158 if (_argo0) {
4159 if (_argo0 == Py_None) { _arg0 = NULL; }
4160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_Destroy. Expected _wxPyPrintout_p.");
4162 return NULL;
4163 }
4164 }
4165 {
4166 PyThreadState* __tstate = wxPyBeginAllowThreads();
4167 wxPyPrintout_Destroy(_arg0);
4168
4169 wxPyEndAllowThreads(__tstate);
4170 if (PyErr_Occurred()) return NULL;
4171 } Py_INCREF(Py_None);
4172 _resultobj = Py_None;
4173 return _resultobj;
4174 }
4175
4176 #define wxPrintout_GetDC(_swigobj) (_swigobj->GetDC())
4177 static PyObject *_wrap_wxPrintout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
4178 PyObject * _resultobj;
4179 wxDC * _result;
4180 wxPyPrintout * _arg0;
4181 PyObject * _argo0 = 0;
4182 char *_kwnames[] = { "self", NULL };
4183
4184 self = self;
4185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetDC",_kwnames,&_argo0))
4186 return NULL;
4187 if (_argo0) {
4188 if (_argo0 == Py_None) { _arg0 = NULL; }
4189 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4190 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetDC. Expected _wxPyPrintout_p.");
4191 return NULL;
4192 }
4193 }
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 _result = (wxDC *)wxPrintout_GetDC(_arg0);
4197
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) return NULL;
4200 }{ _resultobj = wxPyMake_wxObject(_result); }
4201 return _resultobj;
4202 }
4203
4204 #define wxPrintout_GetPageSizeMM(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizeMM(_swigarg0,_swigarg1))
4205 static PyObject *_wrap_wxPrintout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4206 PyObject * _resultobj;
4207 wxPyPrintout * _arg0;
4208 int * _arg1;
4209 int temp;
4210 int * _arg2;
4211 int temp0;
4212 PyObject * _argo0 = 0;
4213 char *_kwnames[] = { "self", NULL };
4214
4215 self = self;
4216 {
4217 _arg1 = &temp;
4218 }
4219 {
4220 _arg2 = &temp0;
4221 }
4222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizeMM",_kwnames,&_argo0))
4223 return NULL;
4224 if (_argo0) {
4225 if (_argo0 == Py_None) { _arg0 = NULL; }
4226 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4227 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizeMM. Expected _wxPyPrintout_p.");
4228 return NULL;
4229 }
4230 }
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 wxPrintout_GetPageSizeMM(_arg0,_arg1,_arg2);
4234
4235 wxPyEndAllowThreads(__tstate);
4236 if (PyErr_Occurred()) return NULL;
4237 } Py_INCREF(Py_None);
4238 _resultobj = Py_None;
4239 {
4240 PyObject *o;
4241 o = PyInt_FromLong((long) (*_arg1));
4242 _resultobj = t_output_helper(_resultobj, o);
4243 }
4244 {
4245 PyObject *o;
4246 o = PyInt_FromLong((long) (*_arg2));
4247 _resultobj = t_output_helper(_resultobj, o);
4248 }
4249 return _resultobj;
4250 }
4251
4252 #define wxPrintout_GetPageSizePixels(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizePixels(_swigarg0,_swigarg1))
4253 static PyObject *_wrap_wxPrintout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject * _resultobj;
4255 wxPyPrintout * _arg0;
4256 int * _arg1;
4257 int temp;
4258 int * _arg2;
4259 int temp0;
4260 PyObject * _argo0 = 0;
4261 char *_kwnames[] = { "self", NULL };
4262
4263 self = self;
4264 {
4265 _arg1 = &temp;
4266 }
4267 {
4268 _arg2 = &temp0;
4269 }
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizePixels",_kwnames,&_argo0))
4271 return NULL;
4272 if (_argo0) {
4273 if (_argo0 == Py_None) { _arg0 = NULL; }
4274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizePixels. Expected _wxPyPrintout_p.");
4276 return NULL;
4277 }
4278 }
4279 {
4280 PyThreadState* __tstate = wxPyBeginAllowThreads();
4281 wxPrintout_GetPageSizePixels(_arg0,_arg1,_arg2);
4282
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) return NULL;
4285 } Py_INCREF(Py_None);
4286 _resultobj = Py_None;
4287 {
4288 PyObject *o;
4289 o = PyInt_FromLong((long) (*_arg1));
4290 _resultobj = t_output_helper(_resultobj, o);
4291 }
4292 {
4293 PyObject *o;
4294 o = PyInt_FromLong((long) (*_arg2));
4295 _resultobj = t_output_helper(_resultobj, o);
4296 }
4297 return _resultobj;
4298 }
4299
4300 #define wxPrintout_GetPPIPrinter(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIPrinter(_swigarg0,_swigarg1))
4301 static PyObject *_wrap_wxPrintout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
4302 PyObject * _resultobj;
4303 wxPyPrintout * _arg0;
4304 int * _arg1;
4305 int temp;
4306 int * _arg2;
4307 int temp0;
4308 PyObject * _argo0 = 0;
4309 char *_kwnames[] = { "self", NULL };
4310
4311 self = self;
4312 {
4313 _arg1 = &temp;
4314 }
4315 {
4316 _arg2 = &temp0;
4317 }
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIPrinter",_kwnames,&_argo0))
4319 return NULL;
4320 if (_argo0) {
4321 if (_argo0 == Py_None) { _arg0 = NULL; }
4322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIPrinter. Expected _wxPyPrintout_p.");
4324 return NULL;
4325 }
4326 }
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 wxPrintout_GetPPIPrinter(_arg0,_arg1,_arg2);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) return NULL;
4333 } Py_INCREF(Py_None);
4334 _resultobj = Py_None;
4335 {
4336 PyObject *o;
4337 o = PyInt_FromLong((long) (*_arg1));
4338 _resultobj = t_output_helper(_resultobj, o);
4339 }
4340 {
4341 PyObject *o;
4342 o = PyInt_FromLong((long) (*_arg2));
4343 _resultobj = t_output_helper(_resultobj, o);
4344 }
4345 return _resultobj;
4346 }
4347
4348 #define wxPrintout_GetPPIScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIScreen(_swigarg0,_swigarg1))
4349 static PyObject *_wrap_wxPrintout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
4350 PyObject * _resultobj;
4351 wxPyPrintout * _arg0;
4352 int * _arg1;
4353 int temp;
4354 int * _arg2;
4355 int temp0;
4356 PyObject * _argo0 = 0;
4357 char *_kwnames[] = { "self", NULL };
4358
4359 self = self;
4360 {
4361 _arg1 = &temp;
4362 }
4363 {
4364 _arg2 = &temp0;
4365 }
4366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIScreen",_kwnames,&_argo0))
4367 return NULL;
4368 if (_argo0) {
4369 if (_argo0 == Py_None) { _arg0 = NULL; }
4370 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4371 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIScreen. Expected _wxPyPrintout_p.");
4372 return NULL;
4373 }
4374 }
4375 {
4376 PyThreadState* __tstate = wxPyBeginAllowThreads();
4377 wxPrintout_GetPPIScreen(_arg0,_arg1,_arg2);
4378
4379 wxPyEndAllowThreads(__tstate);
4380 if (PyErr_Occurred()) return NULL;
4381 } Py_INCREF(Py_None);
4382 _resultobj = Py_None;
4383 {
4384 PyObject *o;
4385 o = PyInt_FromLong((long) (*_arg1));
4386 _resultobj = t_output_helper(_resultobj, o);
4387 }
4388 {
4389 PyObject *o;
4390 o = PyInt_FromLong((long) (*_arg2));
4391 _resultobj = t_output_helper(_resultobj, o);
4392 }
4393 return _resultobj;
4394 }
4395
4396 #define wxPrintout_IsPreview(_swigobj) (_swigobj->IsPreview())
4397 static PyObject *_wrap_wxPrintout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
4398 PyObject * _resultobj;
4399 bool _result;
4400 wxPyPrintout * _arg0;
4401 PyObject * _argo0 = 0;
4402 char *_kwnames[] = { "self", NULL };
4403
4404 self = self;
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_IsPreview",_kwnames,&_argo0))
4406 return NULL;
4407 if (_argo0) {
4408 if (_argo0 == Py_None) { _arg0 = NULL; }
4409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_IsPreview. Expected _wxPyPrintout_p.");
4411 return NULL;
4412 }
4413 }
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 _result = (bool )wxPrintout_IsPreview(_arg0);
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) return NULL;
4420 } _resultobj = Py_BuildValue("i",_result);
4421 return _resultobj;
4422 }
4423
4424 #define wxPrintout_base_OnBeginDocument(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginDocument(_swigarg0,_swigarg1))
4425 static PyObject *_wrap_wxPrintout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
4426 PyObject * _resultobj;
4427 bool _result;
4428 wxPyPrintout * _arg0;
4429 int _arg1;
4430 int _arg2;
4431 PyObject * _argo0 = 0;
4432 char *_kwnames[] = { "self","startPage","endPage", NULL };
4433
4434 self = self;
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPrintout_base_OnBeginDocument",_kwnames,&_argo0,&_arg1,&_arg2))
4436 return NULL;
4437 if (_argo0) {
4438 if (_argo0 == Py_None) { _arg0 = NULL; }
4439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginDocument. Expected _wxPyPrintout_p.");
4441 return NULL;
4442 }
4443 }
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 _result = (bool )wxPrintout_base_OnBeginDocument(_arg0,_arg1,_arg2);
4447
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) return NULL;
4450 } _resultobj = Py_BuildValue("i",_result);
4451 return _resultobj;
4452 }
4453
4454 #define wxPrintout_base_OnEndDocument(_swigobj) (_swigobj->base_OnEndDocument())
4455 static PyObject *_wrap_wxPrintout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
4456 PyObject * _resultobj;
4457 wxPyPrintout * _arg0;
4458 PyObject * _argo0 = 0;
4459 char *_kwnames[] = { "self", NULL };
4460
4461 self = self;
4462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndDocument",_kwnames,&_argo0))
4463 return NULL;
4464 if (_argo0) {
4465 if (_argo0 == Py_None) { _arg0 = NULL; }
4466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndDocument. Expected _wxPyPrintout_p.");
4468 return NULL;
4469 }
4470 }
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 wxPrintout_base_OnEndDocument(_arg0);
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) return NULL;
4477 } Py_INCREF(Py_None);
4478 _resultobj = Py_None;
4479 return _resultobj;
4480 }
4481
4482 #define wxPrintout_base_OnBeginPrinting(_swigobj) (_swigobj->base_OnBeginPrinting())
4483 static PyObject *_wrap_wxPrintout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject * _resultobj;
4485 wxPyPrintout * _arg0;
4486 PyObject * _argo0 = 0;
4487 char *_kwnames[] = { "self", NULL };
4488
4489 self = self;
4490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnBeginPrinting",_kwnames,&_argo0))
4491 return NULL;
4492 if (_argo0) {
4493 if (_argo0 == Py_None) { _arg0 = NULL; }
4494 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4495 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginPrinting. Expected _wxPyPrintout_p.");
4496 return NULL;
4497 }
4498 }
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 wxPrintout_base_OnBeginPrinting(_arg0);
4502
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) return NULL;
4505 } Py_INCREF(Py_None);
4506 _resultobj = Py_None;
4507 return _resultobj;
4508 }
4509
4510 #define wxPrintout_base_OnEndPrinting(_swigobj) (_swigobj->base_OnEndPrinting())
4511 static PyObject *_wrap_wxPrintout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4512 PyObject * _resultobj;
4513 wxPyPrintout * _arg0;
4514 PyObject * _argo0 = 0;
4515 char *_kwnames[] = { "self", NULL };
4516
4517 self = self;
4518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndPrinting",_kwnames,&_argo0))
4519 return NULL;
4520 if (_argo0) {
4521 if (_argo0 == Py_None) { _arg0 = NULL; }
4522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndPrinting. Expected _wxPyPrintout_p.");
4524 return NULL;
4525 }
4526 }
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 wxPrintout_base_OnEndPrinting(_arg0);
4530
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) return NULL;
4533 } Py_INCREF(Py_None);
4534 _resultobj = Py_None;
4535 return _resultobj;
4536 }
4537
4538 #define wxPrintout_base_OnPreparePrinting(_swigobj) (_swigobj->base_OnPreparePrinting())
4539 static PyObject *_wrap_wxPrintout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4540 PyObject * _resultobj;
4541 wxPyPrintout * _arg0;
4542 PyObject * _argo0 = 0;
4543 char *_kwnames[] = { "self", NULL };
4544
4545 self = self;
4546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnPreparePrinting",_kwnames,&_argo0))
4547 return NULL;
4548 if (_argo0) {
4549 if (_argo0 == Py_None) { _arg0 = NULL; }
4550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnPreparePrinting. Expected _wxPyPrintout_p.");
4552 return NULL;
4553 }
4554 }
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 wxPrintout_base_OnPreparePrinting(_arg0);
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) return NULL;
4561 } Py_INCREF(Py_None);
4562 _resultobj = Py_None;
4563 return _resultobj;
4564 }
4565
4566 #define wxPrintout_base_GetPageInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_GetPageInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4567 static PyObject *_wrap_wxPrintout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4568 PyObject * _resultobj;
4569 wxPyPrintout * _arg0;
4570 int * _arg1;
4571 int temp;
4572 int * _arg2;
4573 int temp0;
4574 int * _arg3;
4575 int temp1;
4576 int * _arg4;
4577 int temp2;
4578 PyObject * _argo0 = 0;
4579 char *_kwnames[] = { "self", NULL };
4580
4581 self = self;
4582 {
4583 _arg1 = &temp;
4584 }
4585 {
4586 _arg2 = &temp0;
4587 }
4588 {
4589 _arg3 = &temp1;
4590 }
4591 {
4592 _arg4 = &temp2;
4593 }
4594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_GetPageInfo",_kwnames,&_argo0))
4595 return NULL;
4596 if (_argo0) {
4597 if (_argo0 == Py_None) { _arg0 = NULL; }
4598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_GetPageInfo. Expected _wxPyPrintout_p.");
4600 return NULL;
4601 }
4602 }
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 wxPrintout_base_GetPageInfo(_arg0,_arg1,_arg2,_arg3,_arg4);
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) return NULL;
4609 } Py_INCREF(Py_None);
4610 _resultobj = Py_None;
4611 {
4612 PyObject *o;
4613 o = PyInt_FromLong((long) (*_arg1));
4614 _resultobj = t_output_helper(_resultobj, o);
4615 }
4616 {
4617 PyObject *o;
4618 o = PyInt_FromLong((long) (*_arg2));
4619 _resultobj = t_output_helper(_resultobj, o);
4620 }
4621 {
4622 PyObject *o;
4623 o = PyInt_FromLong((long) (*_arg3));
4624 _resultobj = t_output_helper(_resultobj, o);
4625 }
4626 {
4627 PyObject *o;
4628 o = PyInt_FromLong((long) (*_arg4));
4629 _resultobj = t_output_helper(_resultobj, o);
4630 }
4631 return _resultobj;
4632 }
4633
4634 #define wxPrintout_base_HasPage(_swigobj,_swigarg0) (_swigobj->base_HasPage(_swigarg0))
4635 static PyObject *_wrap_wxPrintout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4636 PyObject * _resultobj;
4637 bool _result;
4638 wxPyPrintout * _arg0;
4639 int _arg1;
4640 PyObject * _argo0 = 0;
4641 char *_kwnames[] = { "self","page", NULL };
4642
4643 self = self;
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintout_base_HasPage",_kwnames,&_argo0,&_arg1))
4645 return NULL;
4646 if (_argo0) {
4647 if (_argo0 == Py_None) { _arg0 = NULL; }
4648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_HasPage. Expected _wxPyPrintout_p.");
4650 return NULL;
4651 }
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 _result = (bool )wxPrintout_base_HasPage(_arg0,_arg1);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) return NULL;
4659 } _resultobj = Py_BuildValue("i",_result);
4660 return _resultobj;
4661 }
4662
4663 static void *SwigwxPrinterTowxObject(void *ptr) {
4664 wxPrinter *src;
4665 wxObject *dest;
4666 src = (wxPrinter *) ptr;
4667 dest = (wxObject *) src;
4668 return (void *) dest;
4669 }
4670
4671 #define new_wxPrinter(_swigarg0) (new wxPrinter(_swigarg0))
4672 static PyObject *_wrap_new_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
4673 PyObject * _resultobj;
4674 wxPrinter * _result;
4675 wxPrintDialogData * _arg0 = (wxPrintDialogData *) NULL;
4676 PyObject * _argo0 = 0;
4677 char *_kwnames[] = { "data", NULL };
4678 char _ptemp[128];
4679
4680 self = self;
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrinter",_kwnames,&_argo0))
4682 return NULL;
4683 if (_argo0) {
4684 if (_argo0 == Py_None) { _arg0 = NULL; }
4685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
4686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrinter. Expected _wxPrintDialogData_p.");
4687 return NULL;
4688 }
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 _result = (wxPrinter *)new_wxPrinter(_arg0);
4693
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) return NULL;
4696 } if (_result) {
4697 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinter_p");
4698 _resultobj = Py_BuildValue("s",_ptemp);
4699 } else {
4700 Py_INCREF(Py_None);
4701 _resultobj = Py_None;
4702 }
4703 return _resultobj;
4704 }
4705
4706 #define delete_wxPrinter(_swigobj) (delete _swigobj)
4707 static PyObject *_wrap_delete_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
4708 PyObject * _resultobj;
4709 wxPrinter * _arg0;
4710 PyObject * _argo0 = 0;
4711 char *_kwnames[] = { "self", NULL };
4712
4713 self = self;
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrinter",_kwnames,&_argo0))
4715 return NULL;
4716 if (_argo0) {
4717 if (_argo0 == Py_None) { _arg0 = NULL; }
4718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrinter. Expected _wxPrinter_p.");
4720 return NULL;
4721 }
4722 }
4723 {
4724 PyThreadState* __tstate = wxPyBeginAllowThreads();
4725 delete_wxPrinter(_arg0);
4726
4727 wxPyEndAllowThreads(__tstate);
4728 if (PyErr_Occurred()) return NULL;
4729 } Py_INCREF(Py_None);
4730 _resultobj = Py_None;
4731 return _resultobj;
4732 }
4733
4734 #define wxPrinter_CreateAbortWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateAbortWindow(_swigarg0,_swigarg1))
4735 static PyObject *_wrap_wxPrinter_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4736 PyObject * _resultobj;
4737 wxPrinter * _arg0;
4738 wxWindow * _arg1;
4739 wxPyPrintout * _arg2;
4740 PyObject * _argo0 = 0;
4741 PyObject * _argo1 = 0;
4742 PyObject * _argo2 = 0;
4743 char *_kwnames[] = { "self","parent","printout", NULL };
4744
4745 self = self;
4746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrinter_CreateAbortWindow",_kwnames,&_argo0,&_argo1,&_argo2))
4747 return NULL;
4748 if (_argo0) {
4749 if (_argo0 == Py_None) { _arg0 = NULL; }
4750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_CreateAbortWindow. Expected _wxPrinter_p.");
4752 return NULL;
4753 }
4754 }
4755 if (_argo1) {
4756 if (_argo1 == Py_None) { _arg1 = NULL; }
4757 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4758 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_CreateAbortWindow. Expected _wxWindow_p.");
4759 return NULL;
4760 }
4761 }
4762 if (_argo2) {
4763 if (_argo2 == Py_None) { _arg2 = NULL; }
4764 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4765 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_CreateAbortWindow. Expected _wxPyPrintout_p.");
4766 return NULL;
4767 }
4768 }
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 wxPrinter_CreateAbortWindow(_arg0,_arg1,_arg2);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) return NULL;
4775 } Py_INCREF(Py_None);
4776 _resultobj = Py_None;
4777 return _resultobj;
4778 }
4779
4780 #define wxPrinter_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
4781 static PyObject *_wrap_wxPrinter_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
4782 PyObject * _resultobj;
4783 wxPrintDialogData * _result;
4784 wxPrinter * _arg0;
4785 PyObject * _argo0 = 0;
4786 char *_kwnames[] = { "self", NULL };
4787 char _ptemp[128];
4788
4789 self = self;
4790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrinter_GetPrintDialogData",_kwnames,&_argo0))
4791 return NULL;
4792 if (_argo0) {
4793 if (_argo0 == Py_None) { _arg0 = NULL; }
4794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_GetPrintDialogData. Expected _wxPrinter_p.");
4796 return NULL;
4797 }
4798 }
4799 {
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 wxPrintDialogData & _result_ref = wxPrinter_GetPrintDialogData(_arg0);
4802 _result = (wxPrintDialogData *) &_result_ref;
4803
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) return NULL;
4806 } if (_result) {
4807 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
4808 _resultobj = Py_BuildValue("s",_ptemp);
4809 } else {
4810 Py_INCREF(Py_None);
4811 _resultobj = Py_None;
4812 }
4813 return _resultobj;
4814 }
4815
4816 #define wxPrinter_Print(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Print(_swigarg0,_swigarg1,_swigarg2))
4817 static PyObject *_wrap_wxPrinter_Print(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject * _resultobj;
4819 bool _result;
4820 wxPrinter * _arg0;
4821 wxWindow * _arg1;
4822 wxPyPrintout * _arg2;
4823 int _arg3 = (int ) TRUE;
4824 PyObject * _argo0 = 0;
4825 PyObject * _argo1 = 0;
4826 PyObject * _argo2 = 0;
4827 char *_kwnames[] = { "self","parent","printout","prompt", NULL };
4828
4829 self = self;
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPrinter_Print",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
4831 return NULL;
4832 if (_argo0) {
4833 if (_argo0 == Py_None) { _arg0 = NULL; }
4834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Print. Expected _wxPrinter_p.");
4836 return NULL;
4837 }
4838 }
4839 if (_argo1) {
4840 if (_argo1 == Py_None) { _arg1 = NULL; }
4841 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4842 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Print. Expected _wxWindow_p.");
4843 return NULL;
4844 }
4845 }
4846 if (_argo2) {
4847 if (_argo2 == Py_None) { _arg2 = NULL; }
4848 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4849 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_Print. Expected _wxPyPrintout_p.");
4850 return NULL;
4851 }
4852 }
4853 {
4854 PyThreadState* __tstate = wxPyBeginAllowThreads();
4855 _result = (bool )wxPrinter_Print(_arg0,_arg1,_arg2,_arg3);
4856
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) return NULL;
4859 } _resultobj = Py_BuildValue("i",_result);
4860 return _resultobj;
4861 }
4862
4863 #define wxPrinter_PrintDialog(_swigobj,_swigarg0) (_swigobj->PrintDialog(_swigarg0))
4864 static PyObject *_wrap_wxPrinter_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject * _resultobj;
4866 wxDC * _result;
4867 wxPrinter * _arg0;
4868 wxWindow * _arg1;
4869 PyObject * _argo0 = 0;
4870 PyObject * _argo1 = 0;
4871 char *_kwnames[] = { "self","parent", NULL };
4872
4873 self = self;
4874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_PrintDialog",_kwnames,&_argo0,&_argo1))
4875 return NULL;
4876 if (_argo0) {
4877 if (_argo0 == Py_None) { _arg0 = NULL; }
4878 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4879 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_PrintDialog. Expected _wxPrinter_p.");
4880 return NULL;
4881 }
4882 }
4883 if (_argo1) {
4884 if (_argo1 == Py_None) { _arg1 = NULL; }
4885 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4886 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_PrintDialog. Expected _wxWindow_p.");
4887 return NULL;
4888 }
4889 }
4890 {
4891 PyThreadState* __tstate = wxPyBeginAllowThreads();
4892 _result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1);
4893
4894 wxPyEndAllowThreads(__tstate);
4895 if (PyErr_Occurred()) return NULL;
4896 }{ _resultobj = wxPyMake_wxObject(_result); }
4897 return _resultobj;
4898 }
4899
4900 #define wxPrinter_ReportError(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ReportError(_swigarg0,_swigarg1,_swigarg2))
4901 static PyObject *_wrap_wxPrinter_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) {
4902 PyObject * _resultobj;
4903 wxPrinter * _arg0;
4904 wxWindow * _arg1;
4905 wxPyPrintout * _arg2;
4906 wxString * _arg3;
4907 PyObject * _argo0 = 0;
4908 PyObject * _argo1 = 0;
4909 PyObject * _argo2 = 0;
4910 PyObject * _obj3 = 0;
4911 char *_kwnames[] = { "self","parent","printout","message", NULL };
4912
4913 self = self;
4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxPrinter_ReportError",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
4915 return NULL;
4916 if (_argo0) {
4917 if (_argo0 == Py_None) { _arg0 = NULL; }
4918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_ReportError. Expected _wxPrinter_p.");
4920 return NULL;
4921 }
4922 }
4923 if (_argo1) {
4924 if (_argo1 == Py_None) { _arg1 = NULL; }
4925 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4926 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_ReportError. Expected _wxWindow_p.");
4927 return NULL;
4928 }
4929 }
4930 if (_argo2) {
4931 if (_argo2 == Py_None) { _arg2 = NULL; }
4932 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4933 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_ReportError. Expected _wxPyPrintout_p.");
4934 return NULL;
4935 }
4936 }
4937 {
4938 _arg3 = wxString_in_helper(_obj3);
4939 if (_arg3 == NULL)
4940 return NULL;
4941 }
4942 {
4943 PyThreadState* __tstate = wxPyBeginAllowThreads();
4944 wxPrinter_ReportError(_arg0,_arg1,_arg2,*_arg3);
4945
4946 wxPyEndAllowThreads(__tstate);
4947 if (PyErr_Occurred()) return NULL;
4948 } Py_INCREF(Py_None);
4949 _resultobj = Py_None;
4950 {
4951 if (_obj3)
4952 delete _arg3;
4953 }
4954 return _resultobj;
4955 }
4956
4957 #define wxPrinter_Setup(_swigobj,_swigarg0) (_swigobj->Setup(_swigarg0))
4958 static PyObject *_wrap_wxPrinter_Setup(PyObject *self, PyObject *args, PyObject *kwargs) {
4959 PyObject * _resultobj;
4960 bool _result;
4961 wxPrinter * _arg0;
4962 wxWindow * _arg1;
4963 PyObject * _argo0 = 0;
4964 PyObject * _argo1 = 0;
4965 char *_kwnames[] = { "self","parent", NULL };
4966
4967 self = self;
4968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_Setup",_kwnames,&_argo0,&_argo1))
4969 return NULL;
4970 if (_argo0) {
4971 if (_argo0 == Py_None) { _arg0 = NULL; }
4972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Setup. Expected _wxPrinter_p.");
4974 return NULL;
4975 }
4976 }
4977 if (_argo1) {
4978 if (_argo1 == Py_None) { _arg1 = NULL; }
4979 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4980 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Setup. Expected _wxWindow_p.");
4981 return NULL;
4982 }
4983 }
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 _result = (bool )wxPrinter_Setup(_arg0,_arg1);
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) return NULL;
4990 } _resultobj = Py_BuildValue("i",_result);
4991 return _resultobj;
4992 }
4993
4994 #define wxPrinter_GetAbort(_swigobj) (_swigobj->GetAbort())
4995 static PyObject *_wrap_wxPrinter_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject * _resultobj;
4997 bool _result;
4998 wxPrinter * _arg0;
4999 PyObject * _argo0 = 0;
5000 char *_kwnames[] = { "self", NULL };
5001
5002 self = self;
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrinter_GetAbort",_kwnames,&_argo0))
5004 return NULL;
5005 if (_argo0) {
5006 if (_argo0 == Py_None) { _arg0 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_GetAbort. Expected _wxPrinter_p.");
5009 return NULL;
5010 }
5011 }
5012 {
5013 PyThreadState* __tstate = wxPyBeginAllowThreads();
5014 _result = (bool )wxPrinter_GetAbort(_arg0);
5015
5016 wxPyEndAllowThreads(__tstate);
5017 if (PyErr_Occurred()) return NULL;
5018 } _resultobj = Py_BuildValue("i",_result);
5019 return _resultobj;
5020 }
5021
5022 static PyObject *_wrap_wxPrinter_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) {
5023 PyObject * _resultobj;
5024 wxPrinterError _result;
5025 char *_kwnames[] = { NULL };
5026
5027 self = self;
5028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPrinter_GetLastError",_kwnames))
5029 return NULL;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 _result = (wxPrinterError )wxPrinter::GetLastError();
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) return NULL;
5036 } _resultobj = Py_BuildValue("i",_result);
5037 return _resultobj;
5038 }
5039
5040 static void *SwigwxPrintAbortDialogTowxDialog(void *ptr) {
5041 wxPrintAbortDialog *src;
5042 wxDialog *dest;
5043 src = (wxPrintAbortDialog *) ptr;
5044 dest = (wxDialog *) src;
5045 return (void *) dest;
5046 }
5047
5048 static void *SwigwxPrintAbortDialogTowxTopLevelWindow(void *ptr) {
5049 wxPrintAbortDialog *src;
5050 wxTopLevelWindow *dest;
5051 src = (wxPrintAbortDialog *) ptr;
5052 dest = (wxTopLevelWindow *) src;
5053 return (void *) dest;
5054 }
5055
5056 static void *SwigwxPrintAbortDialogTowxWindow(void *ptr) {
5057 wxPrintAbortDialog *src;
5058 wxWindow *dest;
5059 src = (wxPrintAbortDialog *) ptr;
5060 dest = (wxWindow *) src;
5061 return (void *) dest;
5062 }
5063
5064 static void *SwigwxPrintAbortDialogTowxEvtHandler(void *ptr) {
5065 wxPrintAbortDialog *src;
5066 wxEvtHandler *dest;
5067 src = (wxPrintAbortDialog *) ptr;
5068 dest = (wxEvtHandler *) src;
5069 return (void *) dest;
5070 }
5071
5072 static void *SwigwxPrintAbortDialogTowxObject(void *ptr) {
5073 wxPrintAbortDialog *src;
5074 wxObject *dest;
5075 src = (wxPrintAbortDialog *) ptr;
5076 dest = (wxObject *) src;
5077 return (void *) dest;
5078 }
5079
5080 #define new_wxPrintAbortDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPrintAbortDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5081 static PyObject *_wrap_new_wxPrintAbortDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
5082 PyObject * _resultobj;
5083 wxPrintAbortDialog * _result;
5084 wxWindow * _arg0;
5085 wxString * _arg1;
5086 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5087 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5088 long _arg4 = (long ) 0;
5089 wxString * _arg5 = (wxString *) &wxPyDialogNameStr;
5090 PyObject * _argo0 = 0;
5091 PyObject * _obj1 = 0;
5092 wxPoint temp;
5093 PyObject * _obj2 = 0;
5094 wxSize temp0;
5095 PyObject * _obj3 = 0;
5096 PyObject * _obj5 = 0;
5097 char *_kwnames[] = { "parent","title","pos","size","style","name", NULL };
5098 char _ptemp[128];
5099
5100 self = self;
5101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxPrintAbortDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_arg4,&_obj5))
5102 return NULL;
5103 if (_argo0) {
5104 if (_argo0 == Py_None) { _arg0 = NULL; }
5105 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5106 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintAbortDialog. Expected _wxWindow_p.");
5107 return NULL;
5108 }
5109 }
5110 {
5111 _arg1 = wxString_in_helper(_obj1);
5112 if (_arg1 == NULL)
5113 return NULL;
5114 }
5115 if (_obj2)
5116 {
5117 _arg2 = &temp;
5118 if (! wxPoint_helper(_obj2, &_arg2))
5119 return NULL;
5120 }
5121 if (_obj3)
5122 {
5123 _arg3 = &temp0;
5124 if (! wxSize_helper(_obj3, &_arg3))
5125 return NULL;
5126 }
5127 if (_obj5)
5128 {
5129 _arg5 = wxString_in_helper(_obj5);
5130 if (_arg5 == NULL)
5131 return NULL;
5132 }
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 _result = (wxPrintAbortDialog *)new_wxPrintAbortDialog(_arg0,*_arg1,*_arg2,*_arg3,_arg4,*_arg5);
5136
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) return NULL;
5139 } if (_result) {
5140 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintAbortDialog_p");
5141 _resultobj = Py_BuildValue("s",_ptemp);
5142 } else {
5143 Py_INCREF(Py_None);
5144 _resultobj = Py_None;
5145 }
5146 {
5147 if (_obj1)
5148 delete _arg1;
5149 }
5150 {
5151 if (_obj5)
5152 delete _arg5;
5153 }
5154 return _resultobj;
5155 }
5156
5157 static void *SwigwxPrintPreviewTowxObject(void *ptr) {
5158 wxPrintPreview *src;
5159 wxObject *dest;
5160 src = (wxPrintPreview *) ptr;
5161 dest = (wxObject *) src;
5162 return (void *) dest;
5163 }
5164
5165 #define new_wxPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPrintPreview(_swigarg0,_swigarg1,_swigarg2))
5166 static PyObject *_wrap_new_wxPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
5167 PyObject * _resultobj;
5168 wxPrintPreview * _result;
5169 wxPyPrintout * _arg0;
5170 wxPyPrintout * _arg1;
5171 wxPrintData * _arg2 = (wxPrintData *) NULL;
5172 PyObject * _argo0 = 0;
5173 PyObject * _argo1 = 0;
5174 PyObject * _argo2 = 0;
5175 char *_kwnames[] = { "printout","printoutForPrinting","data", NULL };
5176 char _ptemp[128];
5177
5178 self = self;
5179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:new_wxPrintPreview",_kwnames,&_argo0,&_argo1,&_argo2))
5180 return NULL;
5181 if (_argo0) {
5182 if (_argo0 == Py_None) { _arg0 = NULL; }
5183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
5184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
5185 return NULL;
5186 }
5187 }
5188 if (_argo1) {
5189 if (_argo1 == Py_None) { _arg1 = NULL; }
5190 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) {
5191 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
5192 return NULL;
5193 }
5194 }
5195 if (_argo2) {
5196 if (_argo2 == Py_None) { _arg2 = NULL; }
5197 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPrintData_p")) {
5198 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPrintPreview. Expected _wxPrintData_p.");
5199 return NULL;
5200 }
5201 }
5202 {
5203 PyThreadState* __tstate = wxPyBeginAllowThreads();
5204 _result = (wxPrintPreview *)new_wxPrintPreview(_arg0,_arg1,_arg2);
5205
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) return NULL;
5208 } if (_result) {
5209 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p");
5210 _resultobj = Py_BuildValue("s",_ptemp);
5211 } else {
5212 Py_INCREF(Py_None);
5213 _resultobj = Py_None;
5214 }
5215 return _resultobj;
5216 }
5217
5218 #define wxPrintPreview_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->SetCurrentPage(_swigarg0))
5219 static PyObject *_wrap_wxPrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5220 PyObject * _resultobj;
5221 bool _result;
5222 wxPrintPreview * _arg0;
5223 int _arg1;
5224 PyObject * _argo0 = 0;
5225 char *_kwnames[] = { "self","pageNum", NULL };
5226
5227 self = self;
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetCurrentPage",_kwnames,&_argo0,&_arg1))
5229 return NULL;
5230 if (_argo0) {
5231 if (_argo0 == Py_None) { _arg0 = NULL; }
5232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCurrentPage. Expected _wxPrintPreview_p.");
5234 return NULL;
5235 }
5236 }
5237 {
5238 PyThreadState* __tstate = wxPyBeginAllowThreads();
5239 _result = (bool )wxPrintPreview_SetCurrentPage(_arg0,_arg1);
5240
5241 wxPyEndAllowThreads(__tstate);
5242 if (PyErr_Occurred()) return NULL;
5243 } _resultobj = Py_BuildValue("i",_result);
5244 return _resultobj;
5245 }
5246
5247 #define wxPrintPreview_GetCurrentPage(_swigobj) (_swigobj->GetCurrentPage())
5248 static PyObject *_wrap_wxPrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject * _resultobj;
5250 int _result;
5251 wxPrintPreview * _arg0;
5252 PyObject * _argo0 = 0;
5253 char *_kwnames[] = { "self", NULL };
5254
5255 self = self;
5256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCurrentPage",_kwnames,&_argo0))
5257 return NULL;
5258 if (_argo0) {
5259 if (_argo0 == Py_None) { _arg0 = NULL; }
5260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCurrentPage. Expected _wxPrintPreview_p.");
5262 return NULL;
5263 }
5264 }
5265 {
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 _result = (int )wxPrintPreview_GetCurrentPage(_arg0);
5268
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) return NULL;
5271 } _resultobj = Py_BuildValue("i",_result);
5272 return _resultobj;
5273 }
5274
5275 #define wxPrintPreview_SetPrintout(_swigobj,_swigarg0) (_swigobj->SetPrintout(_swigarg0))
5276 static PyObject *_wrap_wxPrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
5277 PyObject * _resultobj;
5278 wxPrintPreview * _arg0;
5279 wxPyPrintout * _arg1;
5280 PyObject * _argo0 = 0;
5281 PyObject * _argo1 = 0;
5282 char *_kwnames[] = { "self","printout", NULL };
5283
5284 self = self;
5285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetPrintout",_kwnames,&_argo0,&_argo1))
5286 return NULL;
5287 if (_argo0) {
5288 if (_argo0 == Py_None) { _arg0 = NULL; }
5289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetPrintout. Expected _wxPrintPreview_p.");
5291 return NULL;
5292 }
5293 }
5294 if (_argo1) {
5295 if (_argo1 == Py_None) { _arg1 = NULL; }
5296 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) {
5297 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetPrintout. Expected _wxPyPrintout_p.");
5298 return NULL;
5299 }
5300 }
5301 {
5302 PyThreadState* __tstate = wxPyBeginAllowThreads();
5303 wxPrintPreview_SetPrintout(_arg0,_arg1);
5304
5305 wxPyEndAllowThreads(__tstate);
5306 if (PyErr_Occurred()) return NULL;
5307 } Py_INCREF(Py_None);
5308 _resultobj = Py_None;
5309 return _resultobj;
5310 }
5311
5312 #define wxPrintPreview_GetPrintout(_swigobj) (_swigobj->GetPrintout())
5313 static PyObject *_wrap_wxPrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
5314 PyObject * _resultobj;
5315 wxPyPrintout * _result;
5316 wxPrintPreview * _arg0;
5317 PyObject * _argo0 = 0;
5318 char *_kwnames[] = { "self", NULL };
5319
5320 self = self;
5321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintout",_kwnames,&_argo0))
5322 return NULL;
5323 if (_argo0) {
5324 if (_argo0 == Py_None) { _arg0 = NULL; }
5325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintout. Expected _wxPrintPreview_p.");
5327 return NULL;
5328 }
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 _result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0);
5333
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) return NULL;
5336 }{ _resultobj = wxPyMake_wxObject(_result); }
5337 return _resultobj;
5338 }
5339
5340 #define wxPrintPreview_GetPrintoutForPrinting(_swigobj) (_swigobj->GetPrintoutForPrinting())
5341 static PyObject *_wrap_wxPrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
5342 PyObject * _resultobj;
5343 wxPyPrintout * _result;
5344 wxPrintPreview * _arg0;
5345 PyObject * _argo0 = 0;
5346 char *_kwnames[] = { "self", NULL };
5347
5348 self = self;
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintoutForPrinting",_kwnames,&_argo0))
5350 return NULL;
5351 if (_argo0) {
5352 if (_argo0 == Py_None) { _arg0 = NULL; }
5353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintoutForPrinting. Expected _wxPrintPreview_p.");
5355 return NULL;
5356 }
5357 }
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 _result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0);
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) return NULL;
5364 }{ _resultobj = wxPyMake_wxObject(_result); }
5365 return _resultobj;
5366 }
5367
5368 #define wxPrintPreview_SetFrame(_swigobj,_swigarg0) (_swigobj->SetFrame(_swigarg0))
5369 static PyObject *_wrap_wxPrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject * _resultobj;
5371 wxPrintPreview * _arg0;
5372 wxFrame * _arg1;
5373 PyObject * _argo0 = 0;
5374 PyObject * _argo1 = 0;
5375 char *_kwnames[] = { "self","frame", NULL };
5376
5377 self = self;
5378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetFrame",_kwnames,&_argo0,&_argo1))
5379 return NULL;
5380 if (_argo0) {
5381 if (_argo0 == Py_None) { _arg0 = NULL; }
5382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetFrame. Expected _wxPrintPreview_p.");
5384 return NULL;
5385 }
5386 }
5387 if (_argo1) {
5388 if (_argo1 == Py_None) { _arg1 = NULL; }
5389 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
5390 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetFrame. Expected _wxFrame_p.");
5391 return NULL;
5392 }
5393 }
5394 {
5395 PyThreadState* __tstate = wxPyBeginAllowThreads();
5396 wxPrintPreview_SetFrame(_arg0,_arg1);
5397
5398 wxPyEndAllowThreads(__tstate);
5399 if (PyErr_Occurred()) return NULL;
5400 } Py_INCREF(Py_None);
5401 _resultobj = Py_None;
5402 return _resultobj;
5403 }
5404
5405 #define wxPrintPreview_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
5406 static PyObject *_wrap_wxPrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
5407 PyObject * _resultobj;
5408 wxPrintPreview * _arg0;
5409 wxPreviewCanvas * _arg1;
5410 PyObject * _argo0 = 0;
5411 PyObject * _argo1 = 0;
5412 char *_kwnames[] = { "self","canvas", NULL };
5413
5414 self = self;
5415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetCanvas",_kwnames,&_argo0,&_argo1))
5416 return NULL;
5417 if (_argo0) {
5418 if (_argo0 == Py_None) { _arg0 = NULL; }
5419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCanvas. Expected _wxPrintPreview_p.");
5421 return NULL;
5422 }
5423 }
5424 if (_argo1) {
5425 if (_argo1 == Py_None) { _arg1 = NULL; }
5426 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
5427 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetCanvas. Expected _wxPreviewCanvas_p.");
5428 return NULL;
5429 }
5430 }
5431 {
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 wxPrintPreview_SetCanvas(_arg0,_arg1);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) return NULL;
5437 } Py_INCREF(Py_None);
5438 _resultobj = Py_None;
5439 return _resultobj;
5440 }
5441
5442 #define wxPrintPreview_GetFrame(_swigobj) (_swigobj->GetFrame())
5443 static PyObject *_wrap_wxPrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject * _resultobj;
5445 wxFrame * _result;
5446 wxPrintPreview * _arg0;
5447 PyObject * _argo0 = 0;
5448 char *_kwnames[] = { "self", NULL };
5449
5450 self = self;
5451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetFrame",_kwnames,&_argo0))
5452 return NULL;
5453 if (_argo0) {
5454 if (_argo0 == Py_None) { _arg0 = NULL; }
5455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetFrame. Expected _wxPrintPreview_p.");
5457 return NULL;
5458 }
5459 }
5460 {
5461 PyThreadState* __tstate = wxPyBeginAllowThreads();
5462 _result = (wxFrame *)wxPrintPreview_GetFrame(_arg0);
5463
5464 wxPyEndAllowThreads(__tstate);
5465 if (PyErr_Occurred()) return NULL;
5466 }{ _resultobj = wxPyMake_wxObject(_result); }
5467 return _resultobj;
5468 }
5469
5470 #define wxPrintPreview_GetCanvas(_swigobj) (_swigobj->GetCanvas())
5471 static PyObject *_wrap_wxPrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject * _resultobj;
5473 wxPreviewCanvas * _result;
5474 wxPrintPreview * _arg0;
5475 PyObject * _argo0 = 0;
5476 char *_kwnames[] = { "self", NULL };
5477 char _ptemp[128];
5478
5479 self = self;
5480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCanvas",_kwnames,&_argo0))
5481 return NULL;
5482 if (_argo0) {
5483 if (_argo0 == Py_None) { _arg0 = NULL; }
5484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCanvas. Expected _wxPrintPreview_p.");
5486 return NULL;
5487 }
5488 }
5489 {
5490 PyThreadState* __tstate = wxPyBeginAllowThreads();
5491 _result = (wxPreviewCanvas *)wxPrintPreview_GetCanvas(_arg0);
5492
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) return NULL;
5495 } if (_result) {
5496 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewCanvas_p");
5497 _resultobj = Py_BuildValue("s",_ptemp);
5498 } else {
5499 Py_INCREF(Py_None);
5500 _resultobj = Py_None;
5501 }
5502 return _resultobj;
5503 }
5504
5505 #define wxPrintPreview_PaintPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->PaintPage(_swigarg0,_swigarg1))
5506 static PyObject *_wrap_wxPrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject * _resultobj;
5508 bool _result;
5509 wxPrintPreview * _arg0;
5510 wxPreviewCanvas * _arg1;
5511 wxDC * _arg2;
5512 PyObject * _argo0 = 0;
5513 PyObject * _argo1 = 0;
5514 PyObject * _argo2 = 0;
5515 char *_kwnames[] = { "self","canvas","dc", NULL };
5516
5517 self = self;
5518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintPreview_PaintPage",_kwnames,&_argo0,&_argo1,&_argo2))
5519 return NULL;
5520 if (_argo0) {
5521 if (_argo0 == Py_None) { _arg0 = NULL; }
5522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_PaintPage. Expected _wxPrintPreview_p.");
5524 return NULL;
5525 }
5526 }
5527 if (_argo1) {
5528 if (_argo1 == Py_None) { _arg1 = NULL; }
5529 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
5530 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_PaintPage. Expected _wxPreviewCanvas_p.");
5531 return NULL;
5532 }
5533 }
5534 if (_argo2) {
5535 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
5536 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrintPreview_PaintPage. Expected _wxDC_p.");
5537 return NULL;
5538 }
5539 }
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 _result = (bool )wxPrintPreview_PaintPage(_arg0,_arg1,*_arg2);
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) return NULL;
5546 } _resultobj = Py_BuildValue("i",_result);
5547 return _resultobj;
5548 }
5549
5550 #define wxPrintPreview_DrawBlankPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawBlankPage(_swigarg0,_swigarg1))
5551 static PyObject *_wrap_wxPrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject * _resultobj;
5553 bool _result;
5554 wxPrintPreview * _arg0;
5555 wxPreviewCanvas * _arg1;
5556 wxDC * _arg2;
5557 PyObject * _argo0 = 0;
5558 PyObject * _argo1 = 0;
5559 PyObject * _argo2 = 0;
5560 char *_kwnames[] = { "self","canvas","dc", NULL };
5561
5562 self = self;
5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintPreview_DrawBlankPage",_kwnames,&_argo0,&_argo1,&_argo2))
5564 return NULL;
5565 if (_argo0) {
5566 if (_argo0 == Py_None) { _arg0 = NULL; }
5567 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5568 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_DrawBlankPage. Expected _wxPrintPreview_p.");
5569 return NULL;
5570 }
5571 }
5572 if (_argo1) {
5573 if (_argo1 == Py_None) { _arg1 = NULL; }
5574 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
5575 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_DrawBlankPage. Expected _wxPreviewCanvas_p.");
5576 return NULL;
5577 }
5578 }
5579 if (_argo2) {
5580 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
5581 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrintPreview_DrawBlankPage. Expected _wxDC_p.");
5582 return NULL;
5583 }
5584 }
5585 {
5586 PyThreadState* __tstate = wxPyBeginAllowThreads();
5587 _result = (bool )wxPrintPreview_DrawBlankPage(_arg0,_arg1,*_arg2);
5588
5589 wxPyEndAllowThreads(__tstate);
5590 if (PyErr_Occurred()) return NULL;
5591 } _resultobj = Py_BuildValue("i",_result);
5592 return _resultobj;
5593 }
5594
5595 #define wxPrintPreview_RenderPage(_swigobj,_swigarg0) (_swigobj->RenderPage(_swigarg0))
5596 static PyObject *_wrap_wxPrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject * _resultobj;
5598 bool _result;
5599 wxPrintPreview * _arg0;
5600 int _arg1;
5601 PyObject * _argo0 = 0;
5602 char *_kwnames[] = { "self","pageNum", NULL };
5603
5604 self = self;
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_RenderPage",_kwnames,&_argo0,&_arg1))
5606 return NULL;
5607 if (_argo0) {
5608 if (_argo0 == Py_None) { _arg0 = NULL; }
5609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_RenderPage. Expected _wxPrintPreview_p.");
5611 return NULL;
5612 }
5613 }
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 _result = (bool )wxPrintPreview_RenderPage(_arg0,_arg1);
5617
5618 wxPyEndAllowThreads(__tstate);
5619 if (PyErr_Occurred()) return NULL;
5620 } _resultobj = Py_BuildValue("i",_result);
5621 return _resultobj;
5622 }
5623
5624 #define wxPrintPreview_AdjustScrollbars(_swigobj,_swigarg0) (_swigobj->AdjustScrollbars(_swigarg0))
5625 static PyObject *_wrap_wxPrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxPrintPreview * _arg0;
5628 wxPreviewCanvas * _arg1;
5629 PyObject * _argo0 = 0;
5630 PyObject * _argo1 = 0;
5631 char *_kwnames[] = { "self","canvas", NULL };
5632
5633 self = self;
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_AdjustScrollbars",_kwnames,&_argo0,&_argo1))
5635 return NULL;
5636 if (_argo0) {
5637 if (_argo0 == Py_None) { _arg0 = NULL; }
5638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_AdjustScrollbars. Expected _wxPrintPreview_p.");
5640 return NULL;
5641 }
5642 }
5643 if (_argo1) {
5644 if (_argo1 == Py_None) { _arg1 = NULL; }
5645 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
5646 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_AdjustScrollbars. Expected _wxPreviewCanvas_p.");
5647 return NULL;
5648 }
5649 }
5650 {
5651 PyThreadState* __tstate = wxPyBeginAllowThreads();
5652 wxPrintPreview_AdjustScrollbars(_arg0,_arg1);
5653
5654 wxPyEndAllowThreads(__tstate);
5655 if (PyErr_Occurred()) return NULL;
5656 } Py_INCREF(Py_None);
5657 _resultobj = Py_None;
5658 return _resultobj;
5659 }
5660
5661 #define wxPrintPreview_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
5662 static PyObject *_wrap_wxPrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
5663 PyObject * _resultobj;
5664 wxPrintDialogData * _result;
5665 wxPrintPreview * _arg0;
5666 PyObject * _argo0 = 0;
5667 char *_kwnames[] = { "self", NULL };
5668 char _ptemp[128];
5669
5670 self = self;
5671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintDialogData",_kwnames,&_argo0))
5672 return NULL;
5673 if (_argo0) {
5674 if (_argo0 == Py_None) { _arg0 = NULL; }
5675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintDialogData. Expected _wxPrintPreview_p.");
5677 return NULL;
5678 }
5679 }
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 wxPrintDialogData & _result_ref = wxPrintPreview_GetPrintDialogData(_arg0);
5683 _result = (wxPrintDialogData *) &_result_ref;
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) return NULL;
5687 } if (_result) {
5688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
5689 _resultobj = Py_BuildValue("s",_ptemp);
5690 } else {
5691 Py_INCREF(Py_None);
5692 _resultobj = Py_None;
5693 }
5694 return _resultobj;
5695 }
5696
5697 #define wxPrintPreview_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0))
5698 static PyObject *_wrap_wxPrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject * _resultobj;
5700 wxPrintPreview * _arg0;
5701 int _arg1;
5702 PyObject * _argo0 = 0;
5703 char *_kwnames[] = { "self","percent", NULL };
5704
5705 self = self;
5706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetZoom",_kwnames,&_argo0,&_arg1))
5707 return NULL;
5708 if (_argo0) {
5709 if (_argo0 == Py_None) { _arg0 = NULL; }
5710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetZoom. Expected _wxPrintPreview_p.");
5712 return NULL;
5713 }
5714 }
5715 {
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 wxPrintPreview_SetZoom(_arg0,_arg1);
5718
5719 wxPyEndAllowThreads(__tstate);
5720 if (PyErr_Occurred()) return NULL;
5721 } Py_INCREF(Py_None);
5722 _resultobj = Py_None;
5723 return _resultobj;
5724 }
5725
5726 #define wxPrintPreview_GetZoom(_swigobj) (_swigobj->GetZoom())
5727 static PyObject *_wrap_wxPrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) {
5728 PyObject * _resultobj;
5729 int _result;
5730 wxPrintPreview * _arg0;
5731 PyObject * _argo0 = 0;
5732 char *_kwnames[] = { "self", NULL };
5733
5734 self = self;
5735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetZoom",_kwnames,&_argo0))
5736 return NULL;
5737 if (_argo0) {
5738 if (_argo0 == Py_None) { _arg0 = NULL; }
5739 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5740 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetZoom. Expected _wxPrintPreview_p.");
5741 return NULL;
5742 }
5743 }
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 _result = (int )wxPrintPreview_GetZoom(_arg0);
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) return NULL;
5750 } _resultobj = Py_BuildValue("i",_result);
5751 return _resultobj;
5752 }
5753
5754 #define wxPrintPreview_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
5755 static PyObject *_wrap_wxPrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5756 PyObject * _resultobj;
5757 int _result;
5758 wxPrintPreview * _arg0;
5759 PyObject * _argo0 = 0;
5760 char *_kwnames[] = { "self", NULL };
5761
5762 self = self;
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMaxPage",_kwnames,&_argo0))
5764 return NULL;
5765 if (_argo0) {
5766 if (_argo0 == Py_None) { _arg0 = NULL; }
5767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMaxPage. Expected _wxPrintPreview_p.");
5769 return NULL;
5770 }
5771 }
5772 {
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 _result = (int )wxPrintPreview_GetMaxPage(_arg0);
5775
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) return NULL;
5778 } _resultobj = Py_BuildValue("i",_result);
5779 return _resultobj;
5780 }
5781
5782 #define wxPrintPreview_GetMinPage(_swigobj) (_swigobj->GetMinPage())
5783 static PyObject *_wrap_wxPrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5784 PyObject * _resultobj;
5785 int _result;
5786 wxPrintPreview * _arg0;
5787 PyObject * _argo0 = 0;
5788 char *_kwnames[] = { "self", NULL };
5789
5790 self = self;
5791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMinPage",_kwnames,&_argo0))
5792 return NULL;
5793 if (_argo0) {
5794 if (_argo0 == Py_None) { _arg0 = NULL; }
5795 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5796 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMinPage. Expected _wxPrintPreview_p.");
5797 return NULL;
5798 }
5799 }
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 _result = (int )wxPrintPreview_GetMinPage(_arg0);
5803
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) return NULL;
5806 } _resultobj = Py_BuildValue("i",_result);
5807 return _resultobj;
5808 }
5809
5810 #define wxPrintPreview_Ok(_swigobj) (_swigobj->Ok())
5811 static PyObject *_wrap_wxPrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5812 PyObject * _resultobj;
5813 bool _result;
5814 wxPrintPreview * _arg0;
5815 PyObject * _argo0 = 0;
5816 char *_kwnames[] = { "self", NULL };
5817
5818 self = self;
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_Ok",_kwnames,&_argo0))
5820 return NULL;
5821 if (_argo0) {
5822 if (_argo0 == Py_None) { _arg0 = NULL; }
5823 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5824 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Ok. Expected _wxPrintPreview_p.");
5825 return NULL;
5826 }
5827 }
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 _result = (bool )wxPrintPreview_Ok(_arg0);
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) return NULL;
5834 } _resultobj = Py_BuildValue("i",_result);
5835 return _resultobj;
5836 }
5837
5838 #define wxPrintPreview_SetOk(_swigobj,_swigarg0) (_swigobj->SetOk(_swigarg0))
5839 static PyObject *_wrap_wxPrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject * _resultobj;
5841 wxPrintPreview * _arg0;
5842 bool _arg1;
5843 PyObject * _argo0 = 0;
5844 int tempbool1;
5845 char *_kwnames[] = { "self","ok", NULL };
5846
5847 self = self;
5848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetOk",_kwnames,&_argo0,&tempbool1))
5849 return NULL;
5850 if (_argo0) {
5851 if (_argo0 == Py_None) { _arg0 = NULL; }
5852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetOk. Expected _wxPrintPreview_p.");
5854 return NULL;
5855 }
5856 }
5857 _arg1 = (bool ) tempbool1;
5858 {
5859 PyThreadState* __tstate = wxPyBeginAllowThreads();
5860 wxPrintPreview_SetOk(_arg0,_arg1);
5861
5862 wxPyEndAllowThreads(__tstate);
5863 if (PyErr_Occurred()) return NULL;
5864 } Py_INCREF(Py_None);
5865 _resultobj = Py_None;
5866 return _resultobj;
5867 }
5868
5869 #define wxPrintPreview_Print(_swigobj,_swigarg0) (_swigobj->Print(_swigarg0))
5870 static PyObject *_wrap_wxPrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject * _resultobj;
5872 bool _result;
5873 wxPrintPreview * _arg0;
5874 bool _arg1;
5875 PyObject * _argo0 = 0;
5876 int tempbool1;
5877 char *_kwnames[] = { "self","interactive", NULL };
5878
5879 self = self;
5880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_Print",_kwnames,&_argo0,&tempbool1))
5881 return NULL;
5882 if (_argo0) {
5883 if (_argo0 == Py_None) { _arg0 = NULL; }
5884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Print. Expected _wxPrintPreview_p.");
5886 return NULL;
5887 }
5888 }
5889 _arg1 = (bool ) tempbool1;
5890 {
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 _result = (bool )wxPrintPreview_Print(_arg0,_arg1);
5893
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) return NULL;
5896 } _resultobj = Py_BuildValue("i",_result);
5897 return _resultobj;
5898 }
5899
5900 #define wxPrintPreview_DetermineScaling(_swigobj) (_swigobj->DetermineScaling())
5901 static PyObject *_wrap_wxPrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject * _resultobj;
5903 wxPrintPreview * _arg0;
5904 PyObject * _argo0 = 0;
5905 char *_kwnames[] = { "self", NULL };
5906
5907 self = self;
5908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_DetermineScaling",_kwnames,&_argo0))
5909 return NULL;
5910 if (_argo0) {
5911 if (_argo0 == Py_None) { _arg0 = NULL; }
5912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_DetermineScaling. Expected _wxPrintPreview_p.");
5914 return NULL;
5915 }
5916 }
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 wxPrintPreview_DetermineScaling(_arg0);
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) return NULL;
5923 } Py_INCREF(Py_None);
5924 _resultobj = Py_None;
5925 return _resultobj;
5926 }
5927
5928 static void *SwigwxPreviewFrameTowxFrame(void *ptr) {
5929 wxPreviewFrame *src;
5930 wxFrame *dest;
5931 src = (wxPreviewFrame *) ptr;
5932 dest = (wxFrame *) src;
5933 return (void *) dest;
5934 }
5935
5936 static void *SwigwxPreviewFrameTowxTopLevelWindow(void *ptr) {
5937 wxPreviewFrame *src;
5938 wxTopLevelWindow *dest;
5939 src = (wxPreviewFrame *) ptr;
5940 dest = (wxTopLevelWindow *) src;
5941 return (void *) dest;
5942 }
5943
5944 static void *SwigwxPreviewFrameTowxWindow(void *ptr) {
5945 wxPreviewFrame *src;
5946 wxWindow *dest;
5947 src = (wxPreviewFrame *) ptr;
5948 dest = (wxWindow *) src;
5949 return (void *) dest;
5950 }
5951
5952 static void *SwigwxPreviewFrameTowxEvtHandler(void *ptr) {
5953 wxPreviewFrame *src;
5954 wxEvtHandler *dest;
5955 src = (wxPreviewFrame *) ptr;
5956 dest = (wxEvtHandler *) src;
5957 return (void *) dest;
5958 }
5959
5960 static void *SwigwxPreviewFrameTowxObject(void *ptr) {
5961 wxPreviewFrame *src;
5962 wxObject *dest;
5963 src = (wxPreviewFrame *) ptr;
5964 dest = (wxObject *) src;
5965 return (void *) dest;
5966 }
5967
5968 #define new_wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5969 static PyObject *_wrap_new_wxPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5970 PyObject * _resultobj;
5971 wxPreviewFrame * _result;
5972 wxPrintPreview * _arg0;
5973 wxFrame * _arg1;
5974 wxString * _arg2;
5975 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5976 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5977 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
5978 wxString * _arg6 = (wxString *) &wxPyFrameNameStr;
5979 PyObject * _argo0 = 0;
5980 PyObject * _argo1 = 0;
5981 PyObject * _obj2 = 0;
5982 wxPoint temp;
5983 PyObject * _obj3 = 0;
5984 wxSize temp0;
5985 PyObject * _obj4 = 0;
5986 PyObject * _obj6 = 0;
5987 char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL };
5988 char _ptemp[128];
5989
5990 self = self;
5991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
5992 return NULL;
5993 if (_argo0) {
5994 if (_argo0 == Py_None) { _arg0 = NULL; }
5995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewFrame. Expected _wxPrintPreview_p.");
5997 return NULL;
5998 }
5999 }
6000 if (_argo1) {
6001 if (_argo1 == Py_None) { _arg1 = NULL; }
6002 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
6003 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPreviewFrame. Expected _wxFrame_p.");
6004 return NULL;
6005 }
6006 }
6007 {
6008 _arg2 = wxString_in_helper(_obj2);
6009 if (_arg2 == NULL)
6010 return NULL;
6011 }
6012 if (_obj3)
6013 {
6014 _arg3 = &temp;
6015 if (! wxPoint_helper(_obj3, &_arg3))
6016 return NULL;
6017 }
6018 if (_obj4)
6019 {
6020 _arg4 = &temp0;
6021 if (! wxSize_helper(_obj4, &_arg4))
6022 return NULL;
6023 }
6024 if (_obj6)
6025 {
6026 _arg6 = wxString_in_helper(_obj6);
6027 if (_arg6 == NULL)
6028 return NULL;
6029 }
6030 {
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 _result = (wxPreviewFrame *)new_wxPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
6033
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) return NULL;
6036 } if (_result) {
6037 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewFrame_p");
6038 _resultobj = Py_BuildValue("s",_ptemp);
6039 } else {
6040 Py_INCREF(Py_None);
6041 _resultobj = Py_None;
6042 }
6043 {
6044 if (_obj2)
6045 delete _arg2;
6046 }
6047 {
6048 if (_obj6)
6049 delete _arg6;
6050 }
6051 return _resultobj;
6052 }
6053
6054 #define wxPreviewFrame_Initialize(_swigobj) (_swigobj->Initialize())
6055 static PyObject *_wrap_wxPreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
6056 PyObject * _resultobj;
6057 wxPreviewFrame * _arg0;
6058 PyObject * _argo0 = 0;
6059 char *_kwnames[] = { "self", NULL };
6060
6061 self = self;
6062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_Initialize",_kwnames,&_argo0))
6063 return NULL;
6064 if (_argo0) {
6065 if (_argo0 == Py_None) { _arg0 = NULL; }
6066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) {
6067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_Initialize. Expected _wxPreviewFrame_p.");
6068 return NULL;
6069 }
6070 }
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 wxPreviewFrame_Initialize(_arg0);
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) return NULL;
6077 } Py_INCREF(Py_None);
6078 _resultobj = Py_None;
6079 return _resultobj;
6080 }
6081
6082 #define wxPreviewFrame_CreateControlBar(_swigobj) (_swigobj->CreateControlBar())
6083 static PyObject *_wrap_wxPreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6084 PyObject * _resultobj;
6085 wxPreviewFrame * _arg0;
6086 PyObject * _argo0 = 0;
6087 char *_kwnames[] = { "self", NULL };
6088
6089 self = self;
6090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_CreateControlBar",_kwnames,&_argo0))
6091 return NULL;
6092 if (_argo0) {
6093 if (_argo0 == Py_None) { _arg0 = NULL; }
6094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) {
6095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_CreateControlBar. Expected _wxPreviewFrame_p.");
6096 return NULL;
6097 }
6098 }
6099 {
6100 PyThreadState* __tstate = wxPyBeginAllowThreads();
6101 wxPreviewFrame_CreateControlBar(_arg0);
6102
6103 wxPyEndAllowThreads(__tstate);
6104 if (PyErr_Occurred()) return NULL;
6105 } Py_INCREF(Py_None);
6106 _resultobj = Py_None;
6107 return _resultobj;
6108 }
6109
6110 #define wxPreviewFrame_CreateCanvas(_swigobj) (_swigobj->CreateCanvas())
6111 static PyObject *_wrap_wxPreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject * _resultobj;
6113 wxPreviewFrame * _arg0;
6114 PyObject * _argo0 = 0;
6115 char *_kwnames[] = { "self", NULL };
6116
6117 self = self;
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_CreateCanvas",_kwnames,&_argo0))
6119 return NULL;
6120 if (_argo0) {
6121 if (_argo0 == Py_None) { _arg0 = NULL; }
6122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) {
6123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_CreateCanvas. Expected _wxPreviewFrame_p.");
6124 return NULL;
6125 }
6126 }
6127 {
6128 PyThreadState* __tstate = wxPyBeginAllowThreads();
6129 wxPreviewFrame_CreateCanvas(_arg0);
6130
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) return NULL;
6133 } Py_INCREF(Py_None);
6134 _resultobj = Py_None;
6135 return _resultobj;
6136 }
6137
6138 #define wxPreviewFrame_GetControlBar(_swigobj) (_swigobj->GetControlBar())
6139 static PyObject *_wrap_wxPreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6140 PyObject * _resultobj;
6141 wxPreviewControlBar * _result;
6142 wxPreviewFrame * _arg0;
6143 PyObject * _argo0 = 0;
6144 char *_kwnames[] = { "self", NULL };
6145 char _ptemp[128];
6146
6147 self = self;
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_GetControlBar",_kwnames,&_argo0))
6149 return NULL;
6150 if (_argo0) {
6151 if (_argo0 == Py_None) { _arg0 = NULL; }
6152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) {
6153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_GetControlBar. Expected _wxPreviewFrame_p.");
6154 return NULL;
6155 }
6156 }
6157 {
6158 PyThreadState* __tstate = wxPyBeginAllowThreads();
6159 _result = (wxPreviewControlBar *)wxPreviewFrame_GetControlBar(_arg0);
6160
6161 wxPyEndAllowThreads(__tstate);
6162 if (PyErr_Occurred()) return NULL;
6163 } if (_result) {
6164 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewControlBar_p");
6165 _resultobj = Py_BuildValue("s",_ptemp);
6166 } else {
6167 Py_INCREF(Py_None);
6168 _resultobj = Py_None;
6169 }
6170 return _resultobj;
6171 }
6172
6173 static void *SwigwxPreviewCanvasTowxScrolledWindow(void *ptr) {
6174 wxPreviewCanvas *src;
6175 wxScrolledWindow *dest;
6176 src = (wxPreviewCanvas *) ptr;
6177 dest = (wxScrolledWindow *) src;
6178 return (void *) dest;
6179 }
6180
6181 static void *SwigwxPreviewCanvasTowxPanel(void *ptr) {
6182 wxPreviewCanvas *src;
6183 wxPanel *dest;
6184 src = (wxPreviewCanvas *) ptr;
6185 dest = (wxPanel *) src;
6186 return (void *) dest;
6187 }
6188
6189 static void *SwigwxPreviewCanvasTowxWindow(void *ptr) {
6190 wxPreviewCanvas *src;
6191 wxWindow *dest;
6192 src = (wxPreviewCanvas *) ptr;
6193 dest = (wxWindow *) src;
6194 return (void *) dest;
6195 }
6196
6197 static void *SwigwxPreviewCanvasTowxEvtHandler(void *ptr) {
6198 wxPreviewCanvas *src;
6199 wxEvtHandler *dest;
6200 src = (wxPreviewCanvas *) ptr;
6201 dest = (wxEvtHandler *) src;
6202 return (void *) dest;
6203 }
6204
6205 static void *SwigwxPreviewCanvasTowxObject(void *ptr) {
6206 wxPreviewCanvas *src;
6207 wxObject *dest;
6208 src = (wxPreviewCanvas *) ptr;
6209 dest = (wxObject *) src;
6210 return (void *) dest;
6211 }
6212
6213 #define new_wxPreviewCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPreviewCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6214 static PyObject *_wrap_new_wxPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
6215 PyObject * _resultobj;
6216 wxPreviewCanvas * _result;
6217 wxPrintPreview * _arg0;
6218 wxWindow * _arg1;
6219 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6220 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
6221 long _arg4 = (long ) 0;
6222 wxString * _arg5 = (wxString *) &wxPyPreviewCanvasNameStr;
6223 PyObject * _argo0 = 0;
6224 PyObject * _argo1 = 0;
6225 wxPoint temp;
6226 PyObject * _obj2 = 0;
6227 wxSize temp0;
6228 PyObject * _obj3 = 0;
6229 PyObject * _obj5 = 0;
6230 char *_kwnames[] = { "preview","parent","pos","size","style","name", NULL };
6231 char _ptemp[128];
6232
6233 self = self;
6234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxPreviewCanvas",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_arg4,&_obj5))
6235 return NULL;
6236 if (_argo0) {
6237 if (_argo0 == Py_None) { _arg0 = NULL; }
6238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
6239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewCanvas. Expected _wxPrintPreview_p.");
6240 return NULL;
6241 }
6242 }
6243 if (_argo1) {
6244 if (_argo1 == Py_None) { _arg1 = NULL; }
6245 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6246 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPreviewCanvas. Expected _wxWindow_p.");
6247 return NULL;
6248 }
6249 }
6250 if (_obj2)
6251 {
6252 _arg2 = &temp;
6253 if (! wxPoint_helper(_obj2, &_arg2))
6254 return NULL;
6255 }
6256 if (_obj3)
6257 {
6258 _arg3 = &temp0;
6259 if (! wxSize_helper(_obj3, &_arg3))
6260 return NULL;
6261 }
6262 if (_obj5)
6263 {
6264 _arg5 = wxString_in_helper(_obj5);
6265 if (_arg5 == NULL)
6266 return NULL;
6267 }
6268 {
6269 PyThreadState* __tstate = wxPyBeginAllowThreads();
6270 _result = (wxPreviewCanvas *)new_wxPreviewCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5);
6271
6272 wxPyEndAllowThreads(__tstate);
6273 if (PyErr_Occurred()) return NULL;
6274 } if (_result) {
6275 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewCanvas_p");
6276 _resultobj = Py_BuildValue("s",_ptemp);
6277 } else {
6278 Py_INCREF(Py_None);
6279 _resultobj = Py_None;
6280 }
6281 {
6282 if (_obj5)
6283 delete _arg5;
6284 }
6285 return _resultobj;
6286 }
6287
6288 static void *SwigwxPreviewControlBarTowxPanel(void *ptr) {
6289 wxPreviewControlBar *src;
6290 wxPanel *dest;
6291 src = (wxPreviewControlBar *) ptr;
6292 dest = (wxPanel *) src;
6293 return (void *) dest;
6294 }
6295
6296 static void *SwigwxPreviewControlBarTowxWindow(void *ptr) {
6297 wxPreviewControlBar *src;
6298 wxWindow *dest;
6299 src = (wxPreviewControlBar *) ptr;
6300 dest = (wxWindow *) src;
6301 return (void *) dest;
6302 }
6303
6304 static void *SwigwxPreviewControlBarTowxEvtHandler(void *ptr) {
6305 wxPreviewControlBar *src;
6306 wxEvtHandler *dest;
6307 src = (wxPreviewControlBar *) ptr;
6308 dest = (wxEvtHandler *) src;
6309 return (void *) dest;
6310 }
6311
6312 static void *SwigwxPreviewControlBarTowxObject(void *ptr) {
6313 wxPreviewControlBar *src;
6314 wxObject *dest;
6315 src = (wxPreviewControlBar *) ptr;
6316 dest = (wxObject *) src;
6317 return (void *) dest;
6318 }
6319
6320 #define new_wxPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6321 static PyObject *_wrap_new_wxPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
6322 PyObject * _resultobj;
6323 wxPreviewControlBar * _result;
6324 wxPrintPreview * _arg0;
6325 long _arg1;
6326 wxWindow * _arg2;
6327 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6328 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6329 long _arg5 = (long ) wxTAB_TRAVERSAL;
6330 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
6331 PyObject * _argo0 = 0;
6332 PyObject * _argo2 = 0;
6333 wxPoint temp;
6334 PyObject * _obj3 = 0;
6335 wxSize temp0;
6336 PyObject * _obj4 = 0;
6337 PyObject * _obj6 = 0;
6338 char *_kwnames[] = { "preview","buttons","parent","pos","size","style","name", NULL };
6339 char _ptemp[128];
6340
6341 self = self;
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|OOlO:new_wxPreviewControlBar",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6))
6343 return NULL;
6344 if (_argo0) {
6345 if (_argo0 == Py_None) { _arg0 = NULL; }
6346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
6347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewControlBar. Expected _wxPrintPreview_p.");
6348 return NULL;
6349 }
6350 }
6351 if (_argo2) {
6352 if (_argo2 == Py_None) { _arg2 = NULL; }
6353 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
6354 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPreviewControlBar. Expected _wxWindow_p.");
6355 return NULL;
6356 }
6357 }
6358 if (_obj3)
6359 {
6360 _arg3 = &temp;
6361 if (! wxPoint_helper(_obj3, &_arg3))
6362 return NULL;
6363 }
6364 if (_obj4)
6365 {
6366 _arg4 = &temp0;
6367 if (! wxSize_helper(_obj4, &_arg4))
6368 return NULL;
6369 }
6370 if (_obj6)
6371 {
6372 _arg6 = wxString_in_helper(_obj6);
6373 if (_arg6 == NULL)
6374 return NULL;
6375 }
6376 {
6377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6378 _result = (wxPreviewControlBar *)new_wxPreviewControlBar(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
6379
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) return NULL;
6382 } if (_result) {
6383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewControlBar_p");
6384 _resultobj = Py_BuildValue("s",_ptemp);
6385 } else {
6386 Py_INCREF(Py_None);
6387 _resultobj = Py_None;
6388 }
6389 {
6390 if (_obj6)
6391 delete _arg6;
6392 }
6393 return _resultobj;
6394 }
6395
6396 #define wxPreviewControlBar_GetZoomControl(_swigobj) (_swigobj->GetZoomControl())
6397 static PyObject *_wrap_wxPreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) {
6398 PyObject * _resultobj;
6399 int _result;
6400 wxPreviewControlBar * _arg0;
6401 PyObject * _argo0 = 0;
6402 char *_kwnames[] = { "self", NULL };
6403
6404 self = self;
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_GetZoomControl",_kwnames,&_argo0))
6406 return NULL;
6407 if (_argo0) {
6408 if (_argo0 == Py_None) { _arg0 = NULL; }
6409 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6410 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_GetZoomControl. Expected _wxPreviewControlBar_p.");
6411 return NULL;
6412 }
6413 }
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 _result = (int )wxPreviewControlBar_GetZoomControl(_arg0);
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) return NULL;
6420 } _resultobj = Py_BuildValue("i",_result);
6421 return _resultobj;
6422 }
6423
6424 #define wxPreviewControlBar_SetZoomControl(_swigobj,_swigarg0) (_swigobj->SetZoomControl(_swigarg0))
6425 static PyObject *_wrap_wxPreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) {
6426 PyObject * _resultobj;
6427 wxPreviewControlBar * _arg0;
6428 int _arg1;
6429 PyObject * _argo0 = 0;
6430 char *_kwnames[] = { "self","zoom", NULL };
6431
6432 self = self;
6433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPreviewControlBar_SetZoomControl",_kwnames,&_argo0,&_arg1))
6434 return NULL;
6435 if (_argo0) {
6436 if (_argo0 == Py_None) { _arg0 = NULL; }
6437 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6438 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_SetZoomControl. Expected _wxPreviewControlBar_p.");
6439 return NULL;
6440 }
6441 }
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 wxPreviewControlBar_SetZoomControl(_arg0,_arg1);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) return NULL;
6448 } Py_INCREF(Py_None);
6449 _resultobj = Py_None;
6450 return _resultobj;
6451 }
6452
6453 #define wxPreviewControlBar_GetPrintPreview(_swigobj) (_swigobj->GetPrintPreview())
6454 static PyObject *_wrap_wxPreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
6455 PyObject * _resultobj;
6456 wxPrintPreview * _result;
6457 wxPreviewControlBar * _arg0;
6458 PyObject * _argo0 = 0;
6459 char *_kwnames[] = { "self", NULL };
6460 char _ptemp[128];
6461
6462 self = self;
6463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_GetPrintPreview",_kwnames,&_argo0))
6464 return NULL;
6465 if (_argo0) {
6466 if (_argo0 == Py_None) { _arg0 = NULL; }
6467 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6468 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_GetPrintPreview. Expected _wxPreviewControlBar_p.");
6469 return NULL;
6470 }
6471 }
6472 {
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 _result = (wxPrintPreview *)wxPreviewControlBar_GetPrintPreview(_arg0);
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) return NULL;
6478 } if (_result) {
6479 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p");
6480 _resultobj = Py_BuildValue("s",_ptemp);
6481 } else {
6482 Py_INCREF(Py_None);
6483 _resultobj = Py_None;
6484 }
6485 return _resultobj;
6486 }
6487
6488 #define wxPreviewControlBar_OnNext(_swigobj) (_swigobj->OnNext())
6489 static PyObject *_wrap_wxPreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6490 PyObject * _resultobj;
6491 wxPreviewControlBar * _arg0;
6492 PyObject * _argo0 = 0;
6493 char *_kwnames[] = { "self", NULL };
6494
6495 self = self;
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnNext",_kwnames,&_argo0))
6497 return NULL;
6498 if (_argo0) {
6499 if (_argo0 == Py_None) { _arg0 = NULL; }
6500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnNext. Expected _wxPreviewControlBar_p.");
6502 return NULL;
6503 }
6504 }
6505 {
6506 PyThreadState* __tstate = wxPyBeginAllowThreads();
6507 wxPreviewControlBar_OnNext(_arg0);
6508
6509 wxPyEndAllowThreads(__tstate);
6510 if (PyErr_Occurred()) return NULL;
6511 } Py_INCREF(Py_None);
6512 _resultobj = Py_None;
6513 return _resultobj;
6514 }
6515
6516 #define wxPreviewControlBar_OnPrevious(_swigobj) (_swigobj->OnPrevious())
6517 static PyObject *_wrap_wxPreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) {
6518 PyObject * _resultobj;
6519 wxPreviewControlBar * _arg0;
6520 PyObject * _argo0 = 0;
6521 char *_kwnames[] = { "self", NULL };
6522
6523 self = self;
6524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnPrevious",_kwnames,&_argo0))
6525 return NULL;
6526 if (_argo0) {
6527 if (_argo0 == Py_None) { _arg0 = NULL; }
6528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnPrevious. Expected _wxPreviewControlBar_p.");
6530 return NULL;
6531 }
6532 }
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 wxPreviewControlBar_OnPrevious(_arg0);
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) return NULL;
6539 } Py_INCREF(Py_None);
6540 _resultobj = Py_None;
6541 return _resultobj;
6542 }
6543
6544 #define wxPreviewControlBar_OnFirst(_swigobj) (_swigobj->OnFirst())
6545 static PyObject *_wrap_wxPreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6546 PyObject * _resultobj;
6547 wxPreviewControlBar * _arg0;
6548 PyObject * _argo0 = 0;
6549 char *_kwnames[] = { "self", NULL };
6550
6551 self = self;
6552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnFirst",_kwnames,&_argo0))
6553 return NULL;
6554 if (_argo0) {
6555 if (_argo0 == Py_None) { _arg0 = NULL; }
6556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnFirst. Expected _wxPreviewControlBar_p.");
6558 return NULL;
6559 }
6560 }
6561 {
6562 PyThreadState* __tstate = wxPyBeginAllowThreads();
6563 wxPreviewControlBar_OnFirst(_arg0);
6564
6565 wxPyEndAllowThreads(__tstate);
6566 if (PyErr_Occurred()) return NULL;
6567 } Py_INCREF(Py_None);
6568 _resultobj = Py_None;
6569 return _resultobj;
6570 }
6571
6572 #define wxPreviewControlBar_OnLast(_swigobj) (_swigobj->OnLast())
6573 static PyObject *_wrap_wxPreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) {
6574 PyObject * _resultobj;
6575 wxPreviewControlBar * _arg0;
6576 PyObject * _argo0 = 0;
6577 char *_kwnames[] = { "self", NULL };
6578
6579 self = self;
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnLast",_kwnames,&_argo0))
6581 return NULL;
6582 if (_argo0) {
6583 if (_argo0 == Py_None) { _arg0 = NULL; }
6584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnLast. Expected _wxPreviewControlBar_p.");
6586 return NULL;
6587 }
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 wxPreviewControlBar_OnLast(_arg0);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) return NULL;
6595 } Py_INCREF(Py_None);
6596 _resultobj = Py_None;
6597 return _resultobj;
6598 }
6599
6600 #define wxPreviewControlBar_OnGoto(_swigobj) (_swigobj->OnGoto())
6601 static PyObject *_wrap_wxPreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) {
6602 PyObject * _resultobj;
6603 wxPreviewControlBar * _arg0;
6604 PyObject * _argo0 = 0;
6605 char *_kwnames[] = { "self", NULL };
6606
6607 self = self;
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnGoto",_kwnames,&_argo0))
6609 return NULL;
6610 if (_argo0) {
6611 if (_argo0 == Py_None) { _arg0 = NULL; }
6612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) {
6613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnGoto. Expected _wxPreviewControlBar_p.");
6614 return NULL;
6615 }
6616 }
6617 {
6618 PyThreadState* __tstate = wxPyBeginAllowThreads();
6619 wxPreviewControlBar_OnGoto(_arg0);
6620
6621 wxPyEndAllowThreads(__tstate);
6622 if (PyErr_Occurred()) return NULL;
6623 } Py_INCREF(Py_None);
6624 _resultobj = Py_None;
6625 return _resultobj;
6626 }
6627
6628 static void *SwigwxPyPrintPreviewTowxPrintPreview(void *ptr) {
6629 wxPyPrintPreview *src;
6630 wxPrintPreview *dest;
6631 src = (wxPyPrintPreview *) ptr;
6632 dest = (wxPrintPreview *) src;
6633 return (void *) dest;
6634 }
6635
6636 static void *SwigwxPyPrintPreviewTowxObject(void *ptr) {
6637 wxPyPrintPreview *src;
6638 wxObject *dest;
6639 src = (wxPyPrintPreview *) ptr;
6640 dest = (wxObject *) src;
6641 return (void *) dest;
6642 }
6643
6644 #define new_wxPyPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPyPrintPreview(_swigarg0,_swigarg1,_swigarg2))
6645 static PyObject *_wrap_new_wxPyPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
6646 PyObject * _resultobj;
6647 wxPyPrintPreview * _result;
6648 wxPyPrintout * _arg0;
6649 wxPyPrintout * _arg1;
6650 wxPrintData * _arg2 = (wxPrintData *) NULL;
6651 PyObject * _argo0 = 0;
6652 PyObject * _argo1 = 0;
6653 PyObject * _argo2 = 0;
6654 char *_kwnames[] = { "printout","printoutForPrinting","data", NULL };
6655 char _ptemp[128];
6656
6657 self = self;
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:new_wxPyPrintPreview",_kwnames,&_argo0,&_argo1,&_argo2))
6659 return NULL;
6660 if (_argo0) {
6661 if (_argo0 == Py_None) { _arg0 = NULL; }
6662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
6663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPrintPreview. Expected _wxPyPrintout_p.");
6664 return NULL;
6665 }
6666 }
6667 if (_argo1) {
6668 if (_argo1 == Py_None) { _arg1 = NULL; }
6669 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) {
6670 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPyPrintPreview. Expected _wxPyPrintout_p.");
6671 return NULL;
6672 }
6673 }
6674 if (_argo2) {
6675 if (_argo2 == Py_None) { _arg2 = NULL; }
6676 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPrintData_p")) {
6677 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPyPrintPreview. Expected _wxPrintData_p.");
6678 return NULL;
6679 }
6680 }
6681 {
6682 PyThreadState* __tstate = wxPyBeginAllowThreads();
6683 _result = (wxPyPrintPreview *)new_wxPyPrintPreview(_arg0,_arg1,_arg2);
6684
6685 wxPyEndAllowThreads(__tstate);
6686 if (PyErr_Occurred()) return NULL;
6687 } if (_result) {
6688 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintPreview_p");
6689 _resultobj = Py_BuildValue("s",_ptemp);
6690 } else {
6691 Py_INCREF(Py_None);
6692 _resultobj = Py_None;
6693 }
6694 return _resultobj;
6695 }
6696
6697 #define wxPyPrintPreview__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6698 static PyObject *_wrap_wxPyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6699 PyObject * _resultobj;
6700 wxPyPrintPreview * _arg0;
6701 PyObject * _arg1;
6702 PyObject * _arg2;
6703 PyObject * _argo0 = 0;
6704 PyObject * _obj1 = 0;
6705 PyObject * _obj2 = 0;
6706 char *_kwnames[] = { "self","self","_class", NULL };
6707
6708 self = self;
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6710 return NULL;
6711 if (_argo0) {
6712 if (_argo0 == Py_None) { _arg0 = NULL; }
6713 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6714 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview__setCallbackInfo. Expected _wxPyPrintPreview_p.");
6715 return NULL;
6716 }
6717 }
6718 {
6719 _arg1 = _obj1;
6720 }
6721 {
6722 _arg2 = _obj2;
6723 }
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 wxPyPrintPreview__setCallbackInfo(_arg0,_arg1,_arg2);
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) return NULL;
6730 } Py_INCREF(Py_None);
6731 _resultobj = Py_None;
6732 return _resultobj;
6733 }
6734
6735 #define wxPyPrintPreview_base_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->base_SetCurrentPage(_swigarg0))
6736 static PyObject *_wrap_wxPyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6737 PyObject * _resultobj;
6738 bool _result;
6739 wxPyPrintPreview * _arg0;
6740 int _arg1;
6741 PyObject * _argo0 = 0;
6742 char *_kwnames[] = { "self","pageNum", NULL };
6743
6744 self = self;
6745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_SetCurrentPage",_kwnames,&_argo0,&_arg1))
6746 return NULL;
6747 if (_argo0) {
6748 if (_argo0 == Py_None) { _arg0 = NULL; }
6749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_SetCurrentPage. Expected _wxPyPrintPreview_p.");
6751 return NULL;
6752 }
6753 }
6754 {
6755 PyThreadState* __tstate = wxPyBeginAllowThreads();
6756 _result = (bool )wxPyPrintPreview_base_SetCurrentPage(_arg0,_arg1);
6757
6758 wxPyEndAllowThreads(__tstate);
6759 if (PyErr_Occurred()) return NULL;
6760 } _resultobj = Py_BuildValue("i",_result);
6761 return _resultobj;
6762 }
6763
6764 #define wxPyPrintPreview_base_PaintPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_PaintPage(_swigarg0,_swigarg1))
6765 static PyObject *_wrap_wxPyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6766 PyObject * _resultobj;
6767 bool _result;
6768 wxPyPrintPreview * _arg0;
6769 wxPreviewCanvas * _arg1;
6770 wxDC * _arg2;
6771 PyObject * _argo0 = 0;
6772 PyObject * _argo1 = 0;
6773 PyObject * _argo2 = 0;
6774 char *_kwnames[] = { "self","canvas","dc", NULL };
6775
6776 self = self;
6777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview_base_PaintPage",_kwnames,&_argo0,&_argo1,&_argo2))
6778 return NULL;
6779 if (_argo0) {
6780 if (_argo0 == Py_None) { _arg0 = NULL; }
6781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_PaintPage. Expected _wxPyPrintPreview_p.");
6783 return NULL;
6784 }
6785 }
6786 if (_argo1) {
6787 if (_argo1 == Py_None) { _arg1 = NULL; }
6788 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
6789 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPrintPreview_base_PaintPage. Expected _wxPreviewCanvas_p.");
6790 return NULL;
6791 }
6792 }
6793 if (_argo2) {
6794 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
6795 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyPrintPreview_base_PaintPage. Expected _wxDC_p.");
6796 return NULL;
6797 }
6798 }
6799 {
6800 PyThreadState* __tstate = wxPyBeginAllowThreads();
6801 _result = (bool )wxPyPrintPreview_base_PaintPage(_arg0,_arg1,*_arg2);
6802
6803 wxPyEndAllowThreads(__tstate);
6804 if (PyErr_Occurred()) return NULL;
6805 } _resultobj = Py_BuildValue("i",_result);
6806 return _resultobj;
6807 }
6808
6809 #define wxPyPrintPreview_base_DrawBlankPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DrawBlankPage(_swigarg0,_swigarg1))
6810 static PyObject *_wrap_wxPyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6811 PyObject * _resultobj;
6812 bool _result;
6813 wxPyPrintPreview * _arg0;
6814 wxPreviewCanvas * _arg1;
6815 wxDC * _arg2;
6816 PyObject * _argo0 = 0;
6817 PyObject * _argo1 = 0;
6818 PyObject * _argo2 = 0;
6819 char *_kwnames[] = { "self","canvas","dc", NULL };
6820
6821 self = self;
6822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview_base_DrawBlankPage",_kwnames,&_argo0,&_argo1,&_argo2))
6823 return NULL;
6824 if (_argo0) {
6825 if (_argo0 == Py_None) { _arg0 = NULL; }
6826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxPyPrintPreview_p.");
6828 return NULL;
6829 }
6830 }
6831 if (_argo1) {
6832 if (_argo1 == Py_None) { _arg1 = NULL; }
6833 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
6834 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxPreviewCanvas_p.");
6835 return NULL;
6836 }
6837 }
6838 if (_argo2) {
6839 if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
6840 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxDC_p.");
6841 return NULL;
6842 }
6843 }
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 _result = (bool )wxPyPrintPreview_base_DrawBlankPage(_arg0,_arg1,*_arg2);
6847
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) return NULL;
6850 } _resultobj = Py_BuildValue("i",_result);
6851 return _resultobj;
6852 }
6853
6854 #define wxPyPrintPreview_base_RenderPage(_swigobj,_swigarg0) (_swigobj->base_RenderPage(_swigarg0))
6855 static PyObject *_wrap_wxPyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6856 PyObject * _resultobj;
6857 bool _result;
6858 wxPyPrintPreview * _arg0;
6859 int _arg1;
6860 PyObject * _argo0 = 0;
6861 char *_kwnames[] = { "self","pageNum", NULL };
6862
6863 self = self;
6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_RenderPage",_kwnames,&_argo0,&_arg1))
6865 return NULL;
6866 if (_argo0) {
6867 if (_argo0 == Py_None) { _arg0 = NULL; }
6868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_RenderPage. Expected _wxPyPrintPreview_p.");
6870 return NULL;
6871 }
6872 }
6873 {
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 _result = (bool )wxPyPrintPreview_base_RenderPage(_arg0,_arg1);
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) return NULL;
6879 } _resultobj = Py_BuildValue("i",_result);
6880 return _resultobj;
6881 }
6882
6883 #define wxPyPrintPreview_base_SetZoom(_swigobj,_swigarg0) (_swigobj->base_SetZoom(_swigarg0))
6884 static PyObject *_wrap_wxPyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) {
6885 PyObject * _resultobj;
6886 wxPyPrintPreview * _arg0;
6887 int _arg1;
6888 PyObject * _argo0 = 0;
6889 char *_kwnames[] = { "self","percent", NULL };
6890
6891 self = self;
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_SetZoom",_kwnames,&_argo0,&_arg1))
6893 return NULL;
6894 if (_argo0) {
6895 if (_argo0 == Py_None) { _arg0 = NULL; }
6896 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6897 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_SetZoom. Expected _wxPyPrintPreview_p.");
6898 return NULL;
6899 }
6900 }
6901 {
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 wxPyPrintPreview_base_SetZoom(_arg0,_arg1);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) return NULL;
6907 } Py_INCREF(Py_None);
6908 _resultobj = Py_None;
6909 return _resultobj;
6910 }
6911
6912 #define wxPyPrintPreview_base_Print(_swigobj,_swigarg0) (_swigobj->base_Print(_swigarg0))
6913 static PyObject *_wrap_wxPyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) {
6914 PyObject * _resultobj;
6915 bool _result;
6916 wxPyPrintPreview * _arg0;
6917 bool _arg1;
6918 PyObject * _argo0 = 0;
6919 int tempbool1;
6920 char *_kwnames[] = { "self","interactive", NULL };
6921
6922 self = self;
6923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_Print",_kwnames,&_argo0,&tempbool1))
6924 return NULL;
6925 if (_argo0) {
6926 if (_argo0 == Py_None) { _arg0 = NULL; }
6927 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6928 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_Print. Expected _wxPyPrintPreview_p.");
6929 return NULL;
6930 }
6931 }
6932 _arg1 = (bool ) tempbool1;
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 _result = (bool )wxPyPrintPreview_base_Print(_arg0,_arg1);
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) return NULL;
6939 } _resultobj = Py_BuildValue("i",_result);
6940 return _resultobj;
6941 }
6942
6943 #define wxPyPrintPreview_base_DetermineScaling(_swigobj) (_swigobj->base_DetermineScaling())
6944 static PyObject *_wrap_wxPyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject * _resultobj;
6946 wxPyPrintPreview * _arg0;
6947 PyObject * _argo0 = 0;
6948 char *_kwnames[] = { "self", NULL };
6949
6950 self = self;
6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPrintPreview_base_DetermineScaling",_kwnames,&_argo0))
6952 return NULL;
6953 if (_argo0) {
6954 if (_argo0 == Py_None) { _arg0 = NULL; }
6955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) {
6956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_DetermineScaling. Expected _wxPyPrintPreview_p.");
6957 return NULL;
6958 }
6959 }
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 wxPyPrintPreview_base_DetermineScaling(_arg0);
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) return NULL;
6966 } Py_INCREF(Py_None);
6967 _resultobj = Py_None;
6968 return _resultobj;
6969 }
6970
6971 static void *SwigwxPyPreviewFrameTowxPreviewFrame(void *ptr) {
6972 wxPyPreviewFrame *src;
6973 wxPreviewFrame *dest;
6974 src = (wxPyPreviewFrame *) ptr;
6975 dest = (wxPreviewFrame *) src;
6976 return (void *) dest;
6977 }
6978
6979 static void *SwigwxPyPreviewFrameTowxFrame(void *ptr) {
6980 wxPyPreviewFrame *src;
6981 wxFrame *dest;
6982 src = (wxPyPreviewFrame *) ptr;
6983 dest = (wxFrame *) src;
6984 return (void *) dest;
6985 }
6986
6987 static void *SwigwxPyPreviewFrameTowxTopLevelWindow(void *ptr) {
6988 wxPyPreviewFrame *src;
6989 wxTopLevelWindow *dest;
6990 src = (wxPyPreviewFrame *) ptr;
6991 dest = (wxTopLevelWindow *) src;
6992 return (void *) dest;
6993 }
6994
6995 static void *SwigwxPyPreviewFrameTowxWindow(void *ptr) {
6996 wxPyPreviewFrame *src;
6997 wxWindow *dest;
6998 src = (wxPyPreviewFrame *) ptr;
6999 dest = (wxWindow *) src;
7000 return (void *) dest;
7001 }
7002
7003 static void *SwigwxPyPreviewFrameTowxEvtHandler(void *ptr) {
7004 wxPyPreviewFrame *src;
7005 wxEvtHandler *dest;
7006 src = (wxPyPreviewFrame *) ptr;
7007 dest = (wxEvtHandler *) src;
7008 return (void *) dest;
7009 }
7010
7011 static void *SwigwxPyPreviewFrameTowxObject(void *ptr) {
7012 wxPyPreviewFrame *src;
7013 wxObject *dest;
7014 src = (wxPyPreviewFrame *) ptr;
7015 dest = (wxObject *) src;
7016 return (void *) dest;
7017 }
7018
7019 #define new_wxPyPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7020 static PyObject *_wrap_new_wxPyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7021 PyObject * _resultobj;
7022 wxPyPreviewFrame * _result;
7023 wxPrintPreview * _arg0;
7024 wxFrame * _arg1;
7025 wxString * _arg2;
7026 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7027 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7028 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
7029 wxString * _arg6 = (wxString *) &wxPyFrameNameStr;
7030 PyObject * _argo0 = 0;
7031 PyObject * _argo1 = 0;
7032 PyObject * _obj2 = 0;
7033 wxPoint temp;
7034 PyObject * _obj3 = 0;
7035 wxSize temp0;
7036 PyObject * _obj4 = 0;
7037 PyObject * _obj6 = 0;
7038 char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL };
7039 char _ptemp[128];
7040
7041 self = self;
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPyPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
7043 return NULL;
7044 if (_argo0) {
7045 if (_argo0 == Py_None) { _arg0 = NULL; }
7046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
7047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPreviewFrame. Expected _wxPrintPreview_p.");
7048 return NULL;
7049 }
7050 }
7051 if (_argo1) {
7052 if (_argo1 == Py_None) { _arg1 = NULL; }
7053 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
7054 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPyPreviewFrame. Expected _wxFrame_p.");
7055 return NULL;
7056 }
7057 }
7058 {
7059 _arg2 = wxString_in_helper(_obj2);
7060 if (_arg2 == NULL)
7061 return NULL;
7062 }
7063 if (_obj3)
7064 {
7065 _arg3 = &temp;
7066 if (! wxPoint_helper(_obj3, &_arg3))
7067 return NULL;
7068 }
7069 if (_obj4)
7070 {
7071 _arg4 = &temp0;
7072 if (! wxSize_helper(_obj4, &_arg4))
7073 return NULL;
7074 }
7075 if (_obj6)
7076 {
7077 _arg6 = wxString_in_helper(_obj6);
7078 if (_arg6 == NULL)
7079 return NULL;
7080 }
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 _result = (wxPyPreviewFrame *)new_wxPyPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
7084
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) return NULL;
7087 } if (_result) {
7088 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPreviewFrame_p");
7089 _resultobj = Py_BuildValue("s",_ptemp);
7090 } else {
7091 Py_INCREF(Py_None);
7092 _resultobj = Py_None;
7093 }
7094 {
7095 if (_obj2)
7096 delete _arg2;
7097 }
7098 {
7099 if (_obj6)
7100 delete _arg6;
7101 }
7102 return _resultobj;
7103 }
7104
7105 #define wxPyPreviewFrame__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
7106 static PyObject *_wrap_wxPyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7107 PyObject * _resultobj;
7108 wxPyPreviewFrame * _arg0;
7109 PyObject * _arg1;
7110 PyObject * _arg2;
7111 PyObject * _argo0 = 0;
7112 PyObject * _obj1 = 0;
7113 PyObject * _obj2 = 0;
7114 char *_kwnames[] = { "self","self","_class", NULL };
7115
7116 self = self;
7117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPreviewFrame__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
7118 return NULL;
7119 if (_argo0) {
7120 if (_argo0 == Py_None) { _arg0 = NULL; }
7121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame__setCallbackInfo. Expected _wxPyPreviewFrame_p.");
7123 return NULL;
7124 }
7125 }
7126 {
7127 _arg1 = _obj1;
7128 }
7129 {
7130 _arg2 = _obj2;
7131 }
7132 {
7133 PyThreadState* __tstate = wxPyBeginAllowThreads();
7134 wxPyPreviewFrame__setCallbackInfo(_arg0,_arg1,_arg2);
7135
7136 wxPyEndAllowThreads(__tstate);
7137 if (PyErr_Occurred()) return NULL;
7138 } Py_INCREF(Py_None);
7139 _resultobj = Py_None;
7140 return _resultobj;
7141 }
7142
7143 #define wxPyPreviewFrame_SetPreviewCanvas(_swigobj,_swigarg0) (_swigobj->SetPreviewCanvas(_swigarg0))
7144 static PyObject *_wrap_wxPyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
7145 PyObject * _resultobj;
7146 wxPyPreviewFrame * _arg0;
7147 wxPreviewCanvas * _arg1;
7148 PyObject * _argo0 = 0;
7149 PyObject * _argo1 = 0;
7150 char *_kwnames[] = { "self","canvas", NULL };
7151
7152 self = self;
7153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewFrame_SetPreviewCanvas",_kwnames,&_argo0,&_argo1))
7154 return NULL;
7155 if (_argo0) {
7156 if (_argo0 == Py_None) { _arg0 = NULL; }
7157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_SetPreviewCanvas. Expected _wxPyPreviewFrame_p.");
7159 return NULL;
7160 }
7161 }
7162 if (_argo1) {
7163 if (_argo1 == Py_None) { _arg1 = NULL; }
7164 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewCanvas_p")) {
7165 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewFrame_SetPreviewCanvas. Expected _wxPreviewCanvas_p.");
7166 return NULL;
7167 }
7168 }
7169 {
7170 PyThreadState* __tstate = wxPyBeginAllowThreads();
7171 wxPyPreviewFrame_SetPreviewCanvas(_arg0,_arg1);
7172
7173 wxPyEndAllowThreads(__tstate);
7174 if (PyErr_Occurred()) return NULL;
7175 } Py_INCREF(Py_None);
7176 _resultobj = Py_None;
7177 return _resultobj;
7178 }
7179
7180 #define wxPyPreviewFrame_SetControlBar(_swigobj,_swigarg0) (_swigobj->SetControlBar(_swigarg0))
7181 static PyObject *_wrap_wxPyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject * _resultobj;
7183 wxPyPreviewFrame * _arg0;
7184 wxPreviewControlBar * _arg1;
7185 PyObject * _argo0 = 0;
7186 PyObject * _argo1 = 0;
7187 char *_kwnames[] = { "self","bar", NULL };
7188
7189 self = self;
7190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewFrame_SetControlBar",_kwnames,&_argo0,&_argo1))
7191 return NULL;
7192 if (_argo0) {
7193 if (_argo0 == Py_None) { _arg0 = NULL; }
7194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_SetControlBar. Expected _wxPyPreviewFrame_p.");
7196 return NULL;
7197 }
7198 }
7199 if (_argo1) {
7200 if (_argo1 == Py_None) { _arg1 = NULL; }
7201 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewControlBar_p")) {
7202 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewFrame_SetControlBar. Expected _wxPreviewControlBar_p.");
7203 return NULL;
7204 }
7205 }
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 wxPyPreviewFrame_SetControlBar(_arg0,_arg1);
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) return NULL;
7212 } Py_INCREF(Py_None);
7213 _resultobj = Py_None;
7214 return _resultobj;
7215 }
7216
7217 #define wxPyPreviewFrame_base_Initialize(_swigobj) (_swigobj->base_Initialize())
7218 static PyObject *_wrap_wxPyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
7219 PyObject * _resultobj;
7220 wxPyPreviewFrame * _arg0;
7221 PyObject * _argo0 = 0;
7222 char *_kwnames[] = { "self", NULL };
7223
7224 self = self;
7225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_Initialize",_kwnames,&_argo0))
7226 return NULL;
7227 if (_argo0) {
7228 if (_argo0 == Py_None) { _arg0 = NULL; }
7229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_Initialize. Expected _wxPyPreviewFrame_p.");
7231 return NULL;
7232 }
7233 }
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 wxPyPreviewFrame_base_Initialize(_arg0);
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) return NULL;
7240 } Py_INCREF(Py_None);
7241 _resultobj = Py_None;
7242 return _resultobj;
7243 }
7244
7245 #define wxPyPreviewFrame_base_CreateCanvas(_swigobj) (_swigobj->base_CreateCanvas())
7246 static PyObject *_wrap_wxPyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
7247 PyObject * _resultobj;
7248 wxPyPreviewFrame * _arg0;
7249 PyObject * _argo0 = 0;
7250 char *_kwnames[] = { "self", NULL };
7251
7252 self = self;
7253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_CreateCanvas",_kwnames,&_argo0))
7254 return NULL;
7255 if (_argo0) {
7256 if (_argo0 == Py_None) { _arg0 = NULL; }
7257 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7258 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_CreateCanvas. Expected _wxPyPreviewFrame_p.");
7259 return NULL;
7260 }
7261 }
7262 {
7263 PyThreadState* __tstate = wxPyBeginAllowThreads();
7264 wxPyPreviewFrame_base_CreateCanvas(_arg0);
7265
7266 wxPyEndAllowThreads(__tstate);
7267 if (PyErr_Occurred()) return NULL;
7268 } Py_INCREF(Py_None);
7269 _resultobj = Py_None;
7270 return _resultobj;
7271 }
7272
7273 #define wxPyPreviewFrame_base_CreateControlBar(_swigobj) (_swigobj->base_CreateControlBar())
7274 static PyObject *_wrap_wxPyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7275 PyObject * _resultobj;
7276 wxPyPreviewFrame * _arg0;
7277 PyObject * _argo0 = 0;
7278 char *_kwnames[] = { "self", NULL };
7279
7280 self = self;
7281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_CreateControlBar",_kwnames,&_argo0))
7282 return NULL;
7283 if (_argo0) {
7284 if (_argo0 == Py_None) { _arg0 = NULL; }
7285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) {
7286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_CreateControlBar. Expected _wxPyPreviewFrame_p.");
7287 return NULL;
7288 }
7289 }
7290 {
7291 PyThreadState* __tstate = wxPyBeginAllowThreads();
7292 wxPyPreviewFrame_base_CreateControlBar(_arg0);
7293
7294 wxPyEndAllowThreads(__tstate);
7295 if (PyErr_Occurred()) return NULL;
7296 } Py_INCREF(Py_None);
7297 _resultobj = Py_None;
7298 return _resultobj;
7299 }
7300
7301 static void *SwigwxPyPreviewControlBarTowxPreviewControlBar(void *ptr) {
7302 wxPyPreviewControlBar *src;
7303 wxPreviewControlBar *dest;
7304 src = (wxPyPreviewControlBar *) ptr;
7305 dest = (wxPreviewControlBar *) src;
7306 return (void *) dest;
7307 }
7308
7309 static void *SwigwxPyPreviewControlBarTowxPanel(void *ptr) {
7310 wxPyPreviewControlBar *src;
7311 wxPanel *dest;
7312 src = (wxPyPreviewControlBar *) ptr;
7313 dest = (wxPanel *) src;
7314 return (void *) dest;
7315 }
7316
7317 static void *SwigwxPyPreviewControlBarTowxWindow(void *ptr) {
7318 wxPyPreviewControlBar *src;
7319 wxWindow *dest;
7320 src = (wxPyPreviewControlBar *) ptr;
7321 dest = (wxWindow *) src;
7322 return (void *) dest;
7323 }
7324
7325 static void *SwigwxPyPreviewControlBarTowxEvtHandler(void *ptr) {
7326 wxPyPreviewControlBar *src;
7327 wxEvtHandler *dest;
7328 src = (wxPyPreviewControlBar *) ptr;
7329 dest = (wxEvtHandler *) src;
7330 return (void *) dest;
7331 }
7332
7333 static void *SwigwxPyPreviewControlBarTowxObject(void *ptr) {
7334 wxPyPreviewControlBar *src;
7335 wxObject *dest;
7336 src = (wxPyPreviewControlBar *) ptr;
7337 dest = (wxObject *) src;
7338 return (void *) dest;
7339 }
7340
7341 #define new_wxPyPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
7342 static PyObject *_wrap_new_wxPyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject * _resultobj;
7344 wxPyPreviewControlBar * _result;
7345 wxPrintPreview * _arg0;
7346 long _arg1;
7347 wxWindow * _arg2;
7348 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
7349 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
7350 long _arg5 = (long ) 0;
7351 wxString * _arg6 = (wxString *) &wxPyPanelNameStr;
7352 PyObject * _argo0 = 0;
7353 PyObject * _argo2 = 0;
7354 wxPoint temp;
7355 PyObject * _obj3 = 0;
7356 wxSize temp0;
7357 PyObject * _obj4 = 0;
7358 PyObject * _obj6 = 0;
7359 char *_kwnames[] = { "preview","buttons","parent","pos","size","style","name", NULL };
7360 char _ptemp[128];
7361
7362 self = self;
7363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|OOlO:new_wxPyPreviewControlBar",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6))
7364 return NULL;
7365 if (_argo0) {
7366 if (_argo0 == Py_None) { _arg0 = NULL; }
7367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
7368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPreviewControlBar. Expected _wxPrintPreview_p.");
7369 return NULL;
7370 }
7371 }
7372 if (_argo2) {
7373 if (_argo2 == Py_None) { _arg2 = NULL; }
7374 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
7375 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPyPreviewControlBar. Expected _wxWindow_p.");
7376 return NULL;
7377 }
7378 }
7379 if (_obj3)
7380 {
7381 _arg3 = &temp;
7382 if (! wxPoint_helper(_obj3, &_arg3))
7383 return NULL;
7384 }
7385 if (_obj4)
7386 {
7387 _arg4 = &temp0;
7388 if (! wxSize_helper(_obj4, &_arg4))
7389 return NULL;
7390 }
7391 if (_obj6)
7392 {
7393 _arg6 = wxString_in_helper(_obj6);
7394 if (_arg6 == NULL)
7395 return NULL;
7396 }
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 _result = (wxPyPreviewControlBar *)new_wxPyPreviewControlBar(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) return NULL;
7403 } if (_result) {
7404 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPreviewControlBar_p");
7405 _resultobj = Py_BuildValue("s",_ptemp);
7406 } else {
7407 Py_INCREF(Py_None);
7408 _resultobj = Py_None;
7409 }
7410 {
7411 if (_obj6)
7412 delete _arg6;
7413 }
7414 return _resultobj;
7415 }
7416
7417 #define wxPyPreviewControlBar__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
7418 static PyObject *_wrap_wxPyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7419 PyObject * _resultobj;
7420 wxPyPreviewControlBar * _arg0;
7421 PyObject * _arg1;
7422 PyObject * _arg2;
7423 PyObject * _argo0 = 0;
7424 PyObject * _obj1 = 0;
7425 PyObject * _obj2 = 0;
7426 char *_kwnames[] = { "self","self","_class", NULL };
7427
7428 self = self;
7429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPreviewControlBar__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
7430 return NULL;
7431 if (_argo0) {
7432 if (_argo0 == Py_None) { _arg0 = NULL; }
7433 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) {
7434 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar__setCallbackInfo. Expected _wxPyPreviewControlBar_p.");
7435 return NULL;
7436 }
7437 }
7438 {
7439 _arg1 = _obj1;
7440 }
7441 {
7442 _arg2 = _obj2;
7443 }
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 wxPyPreviewControlBar__setCallbackInfo(_arg0,_arg1,_arg2);
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) return NULL;
7450 } Py_INCREF(Py_None);
7451 _resultobj = Py_None;
7452 return _resultobj;
7453 }
7454
7455 #define wxPyPreviewControlBar_SetPrintPreview(_swigobj,_swigarg0) (_swigobj->SetPrintPreview(_swigarg0))
7456 static PyObject *_wrap_wxPyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject * _resultobj;
7458 wxPyPreviewControlBar * _arg0;
7459 wxPrintPreview * _arg1;
7460 PyObject * _argo0 = 0;
7461 PyObject * _argo1 = 0;
7462 char *_kwnames[] = { "self","preview", NULL };
7463
7464 self = self;
7465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewControlBar_SetPrintPreview",_kwnames,&_argo0,&_argo1))
7466 return NULL;
7467 if (_argo0) {
7468 if (_argo0 == Py_None) { _arg0 = NULL; }
7469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) {
7470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_SetPrintPreview. Expected _wxPyPreviewControlBar_p.");
7471 return NULL;
7472 }
7473 }
7474 if (_argo1) {
7475 if (_argo1 == Py_None) { _arg1 = NULL; }
7476 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintPreview_p")) {
7477 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewControlBar_SetPrintPreview. Expected _wxPrintPreview_p.");
7478 return NULL;
7479 }
7480 }
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 wxPyPreviewControlBar_SetPrintPreview(_arg0,_arg1);
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) return NULL;
7487 } Py_INCREF(Py_None);
7488 _resultobj = Py_None;
7489 return _resultobj;
7490 }
7491
7492 #define wxPyPreviewControlBar_base_CreateButtons(_swigobj) (_swigobj->base_CreateButtons())
7493 static PyObject *_wrap_wxPyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
7494 PyObject * _resultobj;
7495 wxPyPreviewControlBar * _arg0;
7496 PyObject * _argo0 = 0;
7497 char *_kwnames[] = { "self", NULL };
7498
7499 self = self;
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewControlBar_base_CreateButtons",_kwnames,&_argo0))
7501 return NULL;
7502 if (_argo0) {
7503 if (_argo0 == Py_None) { _arg0 = NULL; }
7504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) {
7505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_base_CreateButtons. Expected _wxPyPreviewControlBar_p.");
7506 return NULL;
7507 }
7508 }
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 wxPyPreviewControlBar_base_CreateButtons(_arg0);
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) return NULL;
7515 } Py_INCREF(Py_None);
7516 _resultobj = Py_None;
7517 return _resultobj;
7518 }
7519
7520 #define wxPyPreviewControlBar_base_SetZoomControl(_swigobj,_swigarg0) (_swigobj->base_SetZoomControl(_swigarg0))
7521 static PyObject *_wrap_wxPyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject * _resultobj;
7523 wxPyPreviewControlBar * _arg0;
7524 int _arg1;
7525 PyObject * _argo0 = 0;
7526 char *_kwnames[] = { "self","zoom", NULL };
7527
7528 self = self;
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPreviewControlBar_base_SetZoomControl",_kwnames,&_argo0,&_arg1))
7530 return NULL;
7531 if (_argo0) {
7532 if (_argo0 == Py_None) { _arg0 = NULL; }
7533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) {
7534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_base_SetZoomControl. Expected _wxPyPreviewControlBar_p.");
7535 return NULL;
7536 }
7537 }
7538 {
7539 PyThreadState* __tstate = wxPyBeginAllowThreads();
7540 wxPyPreviewControlBar_base_SetZoomControl(_arg0,_arg1);
7541
7542 wxPyEndAllowThreads(__tstate);
7543 if (PyErr_Occurred()) return NULL;
7544 } Py_INCREF(Py_None);
7545 _resultobj = Py_None;
7546 return _resultobj;
7547 }
7548
7549 static PyMethodDef printfwcMethods[] = {
7550 { "wxPyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_wxPyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS },
7551 { "wxPyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_wxPyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS },
7552 { "wxPyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_wxPyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS },
7553 { "wxPyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_wxPyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
7554 { "new_wxPyPreviewControlBar", (PyCFunction) _wrap_new_wxPyPreviewControlBar, METH_VARARGS | METH_KEYWORDS },
7555 { "wxPyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_wxPyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS },
7556 { "wxPyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_wxPyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS },
7557 { "wxPyPreviewFrame_base_Initialize", (PyCFunction) _wrap_wxPyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS },
7558 { "wxPyPreviewFrame_SetControlBar", (PyCFunction) _wrap_wxPyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS },
7559 { "wxPyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_wxPyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS },
7560 { "wxPyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_wxPyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
7561 { "new_wxPyPreviewFrame", (PyCFunction) _wrap_new_wxPyPreviewFrame, METH_VARARGS | METH_KEYWORDS },
7562 { "wxPyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_wxPyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS },
7563 { "wxPyPrintPreview_base_Print", (PyCFunction) _wrap_wxPyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS },
7564 { "wxPyPrintPreview_base_SetZoom", (PyCFunction) _wrap_wxPyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS },
7565 { "wxPyPrintPreview_base_RenderPage", (PyCFunction) _wrap_wxPyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS },
7566 { "wxPyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_wxPyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS },
7567 { "wxPyPrintPreview_base_PaintPage", (PyCFunction) _wrap_wxPyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS },
7568 { "wxPyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_wxPyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS },
7569 { "wxPyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_wxPyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
7570 { "new_wxPyPrintPreview", (PyCFunction) _wrap_new_wxPyPrintPreview, METH_VARARGS | METH_KEYWORDS },
7571 { "wxPreviewControlBar_OnGoto", (PyCFunction) _wrap_wxPreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS },
7572 { "wxPreviewControlBar_OnLast", (PyCFunction) _wrap_wxPreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS },
7573 { "wxPreviewControlBar_OnFirst", (PyCFunction) _wrap_wxPreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS },
7574 { "wxPreviewControlBar_OnPrevious", (PyCFunction) _wrap_wxPreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS },
7575 { "wxPreviewControlBar_OnNext", (PyCFunction) _wrap_wxPreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS },
7576 { "wxPreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_wxPreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS },
7577 { "wxPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_wxPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS },
7578 { "wxPreviewControlBar_GetZoomControl", (PyCFunction) _wrap_wxPreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS },
7579 { "new_wxPreviewControlBar", (PyCFunction) _wrap_new_wxPreviewControlBar, METH_VARARGS | METH_KEYWORDS },
7580 { "new_wxPreviewCanvas", (PyCFunction) _wrap_new_wxPreviewCanvas, METH_VARARGS | METH_KEYWORDS },
7581 { "wxPreviewFrame_GetControlBar", (PyCFunction) _wrap_wxPreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS },
7582 { "wxPreviewFrame_CreateCanvas", (PyCFunction) _wrap_wxPreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS },
7583 { "wxPreviewFrame_CreateControlBar", (PyCFunction) _wrap_wxPreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS },
7584 { "wxPreviewFrame_Initialize", (PyCFunction) _wrap_wxPreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS },
7585 { "new_wxPreviewFrame", (PyCFunction) _wrap_new_wxPreviewFrame, METH_VARARGS | METH_KEYWORDS },
7586 { "wxPrintPreview_DetermineScaling", (PyCFunction) _wrap_wxPrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS },
7587 { "wxPrintPreview_Print", (PyCFunction) _wrap_wxPrintPreview_Print, METH_VARARGS | METH_KEYWORDS },
7588 { "wxPrintPreview_SetOk", (PyCFunction) _wrap_wxPrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS },
7589 { "wxPrintPreview_Ok", (PyCFunction) _wrap_wxPrintPreview_Ok, METH_VARARGS | METH_KEYWORDS },
7590 { "wxPrintPreview_GetMinPage", (PyCFunction) _wrap_wxPrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS },
7591 { "wxPrintPreview_GetMaxPage", (PyCFunction) _wrap_wxPrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS },
7592 { "wxPrintPreview_GetZoom", (PyCFunction) _wrap_wxPrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS },
7593 { "wxPrintPreview_SetZoom", (PyCFunction) _wrap_wxPrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS },
7594 { "wxPrintPreview_GetPrintDialogData", (PyCFunction) _wrap_wxPrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
7595 { "wxPrintPreview_AdjustScrollbars", (PyCFunction) _wrap_wxPrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS },
7596 { "wxPrintPreview_RenderPage", (PyCFunction) _wrap_wxPrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS },
7597 { "wxPrintPreview_DrawBlankPage", (PyCFunction) _wrap_wxPrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS },
7598 { "wxPrintPreview_PaintPage", (PyCFunction) _wrap_wxPrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS },
7599 { "wxPrintPreview_GetCanvas", (PyCFunction) _wrap_wxPrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS },
7600 { "wxPrintPreview_GetFrame", (PyCFunction) _wrap_wxPrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS },
7601 { "wxPrintPreview_SetCanvas", (PyCFunction) _wrap_wxPrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS },
7602 { "wxPrintPreview_SetFrame", (PyCFunction) _wrap_wxPrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS },
7603 { "wxPrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_wxPrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS },
7604 { "wxPrintPreview_GetPrintout", (PyCFunction) _wrap_wxPrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS },
7605 { "wxPrintPreview_SetPrintout", (PyCFunction) _wrap_wxPrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS },
7606 { "wxPrintPreview_GetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS },
7607 { "wxPrintPreview_SetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS },
7608 { "new_wxPrintPreview", (PyCFunction) _wrap_new_wxPrintPreview, METH_VARARGS | METH_KEYWORDS },
7609 { "new_wxPrintAbortDialog", (PyCFunction) _wrap_new_wxPrintAbortDialog, METH_VARARGS | METH_KEYWORDS },
7610 { "wxPrinter_GetLastError", (PyCFunction) _wrap_wxPrinter_GetLastError, METH_VARARGS | METH_KEYWORDS },
7611 { "wxPrinter_GetAbort", (PyCFunction) _wrap_wxPrinter_GetAbort, METH_VARARGS | METH_KEYWORDS },
7612 { "wxPrinter_Setup", (PyCFunction) _wrap_wxPrinter_Setup, METH_VARARGS | METH_KEYWORDS },
7613 { "wxPrinter_ReportError", (PyCFunction) _wrap_wxPrinter_ReportError, METH_VARARGS | METH_KEYWORDS },
7614 { "wxPrinter_PrintDialog", (PyCFunction) _wrap_wxPrinter_PrintDialog, METH_VARARGS | METH_KEYWORDS },
7615 { "wxPrinter_Print", (PyCFunction) _wrap_wxPrinter_Print, METH_VARARGS | METH_KEYWORDS },
7616 { "wxPrinter_GetPrintDialogData", (PyCFunction) _wrap_wxPrinter_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
7617 { "wxPrinter_CreateAbortWindow", (PyCFunction) _wrap_wxPrinter_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS },
7618 { "delete_wxPrinter", (PyCFunction) _wrap_delete_wxPrinter, METH_VARARGS | METH_KEYWORDS },
7619 { "new_wxPrinter", (PyCFunction) _wrap_new_wxPrinter, METH_VARARGS | METH_KEYWORDS },
7620 { "wxPrintout_base_HasPage", (PyCFunction) _wrap_wxPrintout_base_HasPage, METH_VARARGS | METH_KEYWORDS },
7621 { "wxPrintout_base_GetPageInfo", (PyCFunction) _wrap_wxPrintout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS },
7622 { "wxPrintout_base_OnPreparePrinting", (PyCFunction) _wrap_wxPrintout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS },
7623 { "wxPrintout_base_OnEndPrinting", (PyCFunction) _wrap_wxPrintout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS },
7624 { "wxPrintout_base_OnBeginPrinting", (PyCFunction) _wrap_wxPrintout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS },
7625 { "wxPrintout_base_OnEndDocument", (PyCFunction) _wrap_wxPrintout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS },
7626 { "wxPrintout_base_OnBeginDocument", (PyCFunction) _wrap_wxPrintout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS },
7627 { "wxPrintout_IsPreview", (PyCFunction) _wrap_wxPrintout_IsPreview, METH_VARARGS | METH_KEYWORDS },
7628 { "wxPrintout_GetPPIScreen", (PyCFunction) _wrap_wxPrintout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS },
7629 { "wxPrintout_GetPPIPrinter", (PyCFunction) _wrap_wxPrintout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS },
7630 { "wxPrintout_GetPageSizePixels", (PyCFunction) _wrap_wxPrintout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS },
7631 { "wxPrintout_GetPageSizeMM", (PyCFunction) _wrap_wxPrintout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS },
7632 { "wxPrintout_GetDC", (PyCFunction) _wrap_wxPrintout_GetDC, METH_VARARGS | METH_KEYWORDS },
7633 { "wxPrintout_Destroy", (PyCFunction) _wrap_wxPrintout_Destroy, METH_VARARGS | METH_KEYWORDS },
7634 { "wxPrintout__setCallbackInfo", (PyCFunction) _wrap_wxPrintout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
7635 { "new_wxPrintout", (PyCFunction) _wrap_new_wxPrintout, METH_VARARGS | METH_KEYWORDS },
7636 { "wxPrintDialog_ShowModal", (PyCFunction) _wrap_wxPrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
7637 { "wxPrintDialog_GetPrintDC", (PyCFunction) _wrap_wxPrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS },
7638 { "wxPrintDialog_GetPrintDialogData", (PyCFunction) _wrap_wxPrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
7639 { "new_wxPrintDialog", (PyCFunction) _wrap_new_wxPrintDialog, METH_VARARGS | METH_KEYWORDS },
7640 { "wxPrintDialogData_SetPrintData", (PyCFunction) _wrap_wxPrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS },
7641 { "wxPrintDialogData_GetPrintData", (PyCFunction) _wrap_wxPrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS },
7642 { "wxPrintDialogData_Ok", (PyCFunction) _wrap_wxPrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS },
7643 { "wxPrintDialogData_GetEnableHelp", (PyCFunction) _wrap_wxPrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS },
7644 { "wxPrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_wxPrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS },
7645 { "wxPrintDialogData_GetEnableSelection", (PyCFunction) _wrap_wxPrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS },
7646 { "wxPrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_wxPrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS },
7647 { "wxPrintDialogData_EnableHelp", (PyCFunction) _wrap_wxPrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS },
7648 { "wxPrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_wxPrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS },
7649 { "wxPrintDialogData_EnableSelection", (PyCFunction) _wrap_wxPrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS },
7650 { "wxPrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_wxPrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS },
7651 { "wxPrintDialogData_SetSetupDialog", (PyCFunction) _wrap_wxPrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS },
7652 { "wxPrintDialogData_SetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS },
7653 { "wxPrintDialogData_SetCollate", (PyCFunction) _wrap_wxPrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS },
7654 { "wxPrintDialogData_SetSelection", (PyCFunction) _wrap_wxPrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS },
7655 { "wxPrintDialogData_SetAllPages", (PyCFunction) _wrap_wxPrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS },
7656 { "wxPrintDialogData_SetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS },
7657 { "wxPrintDialogData_SetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS },
7658 { "wxPrintDialogData_SetMinPage", (PyCFunction) _wrap_wxPrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS },
7659 { "wxPrintDialogData_SetToPage", (PyCFunction) _wrap_wxPrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS },
7660 { "wxPrintDialogData_SetFromPage", (PyCFunction) _wrap_wxPrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS },
7661 { "wxPrintDialogData_GetSetupDialog", (PyCFunction) _wrap_wxPrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS },
7662 { "wxPrintDialogData_GetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS },
7663 { "wxPrintDialogData_GetCollate", (PyCFunction) _wrap_wxPrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS },
7664 { "wxPrintDialogData_GetSelection", (PyCFunction) _wrap_wxPrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS },
7665 { "wxPrintDialogData_GetAllPages", (PyCFunction) _wrap_wxPrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS },
7666 { "wxPrintDialogData_GetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS },
7667 { "wxPrintDialogData_GetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS },
7668 { "wxPrintDialogData_GetMinPage", (PyCFunction) _wrap_wxPrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS },
7669 { "wxPrintDialogData_GetToPage", (PyCFunction) _wrap_wxPrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS },
7670 { "wxPrintDialogData_GetFromPage", (PyCFunction) _wrap_wxPrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS },
7671 { "delete_wxPrintDialogData", (PyCFunction) _wrap_delete_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS },
7672 { "new_wxPrintDialogData", (PyCFunction) _wrap_new_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS },
7673 { "wxPageSetupDialog_ShowModal", (PyCFunction) _wrap_wxPageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
7674 { "wxPageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_wxPageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS },
7675 { "new_wxPageSetupDialog", (PyCFunction) _wrap_new_wxPageSetupDialog, METH_VARARGS | METH_KEYWORDS },
7676 { "wxPageSetupDialogData_SetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS },
7677 { "wxPageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS },
7678 { "wxPageSetupDialogData_SetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS },
7679 { "wxPageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
7680 { "wxPageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
7681 { "wxPageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
7682 { "wxPageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
7683 { "wxPageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS },
7684 { "wxPageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS },
7685 { "wxPageSetupDialogData_Ok", (PyCFunction) _wrap_wxPageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS },
7686 { "wxPageSetupDialogData_GetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS },
7687 { "wxPageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS },
7688 { "wxPageSetupDialogData_GetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS },
7689 { "wxPageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
7690 { "wxPageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
7691 { "wxPageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
7692 { "wxPageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
7693 { "wxPageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS },
7694 { "wxPageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS },
7695 { "wxPageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS },
7696 { "wxPageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS },
7697 { "wxPageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS },
7698 { "wxPageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS },
7699 { "wxPageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS },
7700 { "wxPageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS },
7701 { "wxPageSetupDialogData_EnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS },
7702 { "wxPageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS },
7703 { "wxPageSetupDialogData_EnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS },
7704 { "wxPageSetupDialogData_EnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS },
7705 { "delete_wxPageSetupDialogData", (PyCFunction) _wrap_delete_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
7706 { "new_wxPageSetupDialogData", (PyCFunction) _wrap_new_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
7707 { "wxPostScriptDC_GetResolution", (PyCFunction) _wrap_wxPostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
7708 { "wxPostScriptDC_SetResolution", (PyCFunction) _wrap_wxPostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
7709 { "wxPostScriptDC_SetPrintData", (PyCFunction) _wrap_wxPostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
7710 { "wxPostScriptDC_GetPrintData", (PyCFunction) _wrap_wxPostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
7711 { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
7712 { "wxPrintData_SetPrintMode", (PyCFunction) _wrap_wxPrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
7713 { "wxPrintData_SetPrinterTranslation", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS },
7714 { "wxPrintData_SetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS },
7715 { "wxPrintData_SetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS },
7716 { "wxPrintData_SetPrinterScaling", (PyCFunction) _wrap_wxPrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS },
7717 { "wxPrintData_SetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS },
7718 { "wxPrintData_SetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS },
7719 { "wxPrintData_SetFontMetricPath", (PyCFunction) _wrap_wxPrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS },
7720 { "wxPrintData_SetFilename", (PyCFunction) _wrap_wxPrintData_SetFilename, METH_VARARGS | METH_KEYWORDS },
7721 { "wxPrintData_SetPreviewCommand", (PyCFunction) _wrap_wxPrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS },
7722 { "wxPrintData_SetPrinterOptions", (PyCFunction) _wrap_wxPrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS },
7723 { "wxPrintData_SetPrinterCommand", (PyCFunction) _wrap_wxPrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS },
7724 { "wxPrintData_GetPrintMode", (PyCFunction) _wrap_wxPrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
7725 { "wxPrintData_GetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS },
7726 { "wxPrintData_GetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS },
7727 { "wxPrintData_GetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS },
7728 { "wxPrintData_GetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS },
7729 { "wxPrintData_GetFontMetricPath", (PyCFunction) _wrap_wxPrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS },
7730 { "wxPrintData_GetFilename", (PyCFunction) _wrap_wxPrintData_GetFilename, METH_VARARGS | METH_KEYWORDS },
7731 { "wxPrintData_GetPreviewCommand", (PyCFunction) _wrap_wxPrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS },
7732 { "wxPrintData_GetPrinterOptions", (PyCFunction) _wrap_wxPrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS },
7733 { "wxPrintData_GetPrinterCommand", (PyCFunction) _wrap_wxPrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS },
7734 { "wxPrintData_SetQuality", (PyCFunction) _wrap_wxPrintData_SetQuality, METH_VARARGS | METH_KEYWORDS },
7735 { "wxPrintData_SetPaperSize", (PyCFunction) _wrap_wxPrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS },
7736 { "wxPrintData_SetPaperId", (PyCFunction) _wrap_wxPrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS },
7737 { "wxPrintData_SetDuplex", (PyCFunction) _wrap_wxPrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS },
7738 { "wxPrintData_SetColour", (PyCFunction) _wrap_wxPrintData_SetColour, METH_VARARGS | METH_KEYWORDS },
7739 { "wxPrintData_SetPrinterName", (PyCFunction) _wrap_wxPrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS },
7740 { "wxPrintData_SetOrientation", (PyCFunction) _wrap_wxPrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS },
7741 { "wxPrintData_SetCollate", (PyCFunction) _wrap_wxPrintData_SetCollate, METH_VARARGS | METH_KEYWORDS },
7742 { "wxPrintData_SetNoCopies", (PyCFunction) _wrap_wxPrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS },
7743 { "wxPrintData_GetQuality", (PyCFunction) _wrap_wxPrintData_GetQuality, METH_VARARGS | METH_KEYWORDS },
7744 { "wxPrintData_GetPaperSize", (PyCFunction) _wrap_wxPrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS },
7745 { "wxPrintData_GetPaperId", (PyCFunction) _wrap_wxPrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS },
7746 { "wxPrintData_GetDuplex", (PyCFunction) _wrap_wxPrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS },
7747 { "wxPrintData_GetColour", (PyCFunction) _wrap_wxPrintData_GetColour, METH_VARARGS | METH_KEYWORDS },
7748 { "wxPrintData_GetPrinterName", (PyCFunction) _wrap_wxPrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS },
7749 { "wxPrintData_Ok", (PyCFunction) _wrap_wxPrintData_Ok, METH_VARARGS | METH_KEYWORDS },
7750 { "wxPrintData_GetOrientation", (PyCFunction) _wrap_wxPrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS },
7751 { "wxPrintData_GetCollate", (PyCFunction) _wrap_wxPrintData_GetCollate, METH_VARARGS | METH_KEYWORDS },
7752 { "wxPrintData_GetNoCopies", (PyCFunction) _wrap_wxPrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS },
7753 { "delete_wxPrintData", (PyCFunction) _wrap_delete_wxPrintData, METH_VARARGS | METH_KEYWORDS },
7754 { "new_wxPrintData", (PyCFunction) _wrap_new_wxPrintData, METH_VARARGS | METH_KEYWORDS },
7755 { NULL, NULL }
7756 };
7757 #ifdef __cplusplus
7758 }
7759 #endif
7760 /*
7761 * This table is used by the pointer type-checker
7762 */
7763 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
7764 { "_signed_long","_long",0},
7765 { "_wxPrintQuality","_wxCoord",0},
7766 { "_wxPrintQuality","_int",0},
7767 { "_wxPrintQuality","_signed_int",0},
7768 { "_wxPrintQuality","_unsigned_int",0},
7769 { "_wxPrintQuality","_wxWindowID",0},
7770 { "_wxPrintQuality","_uint",0},
7771 { "_wxPrintQuality","_EBool",0},
7772 { "_wxPrintQuality","_size_t",0},
7773 { "_wxPrintQuality","_time_t",0},
7774 { "_byte","_unsigned_char",0},
7775 { "_long","_unsigned_long",0},
7776 { "_long","_signed_long",0},
7777 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
7778 { "_wxPrintPreview","_wxPyPrintPreview",SwigwxPyPrintPreviewTowxPrintPreview},
7779 { "_size_t","_wxCoord",0},
7780 { "_size_t","_wxPrintQuality",0},
7781 { "_size_t","_time_t",0},
7782 { "_size_t","_unsigned_int",0},
7783 { "_size_t","_int",0},
7784 { "_size_t","_wxWindowID",0},
7785 { "_size_t","_uint",0},
7786 { "_wxPanel","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxPanel},
7787 { "_wxPanel","_wxPreviewControlBar",SwigwxPreviewControlBarTowxPanel},
7788 { "_wxPanel","_wxPreviewCanvas",SwigwxPreviewCanvasTowxPanel},
7789 { "_wxTopLevelWindow","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxTopLevelWindow},
7790 { "_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow},
7791 { "_wxTopLevelWindow","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxTopLevelWindow},
7792 { "_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow},
7793 { "_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow},
7794 { "_uint","_wxCoord",0},
7795 { "_uint","_wxPrintQuality",0},
7796 { "_uint","_time_t",0},
7797 { "_uint","_size_t",0},
7798 { "_uint","_unsigned_int",0},
7799 { "_uint","_int",0},
7800 { "_uint","_wxWindowID",0},
7801 { "_wxChar","_char",0},
7802 { "_char","_wxChar",0},
7803 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
7804 { "_EBool","_wxCoord",0},
7805 { "_EBool","_wxPrintQuality",0},
7806 { "_EBool","_signed_int",0},
7807 { "_EBool","_int",0},
7808 { "_EBool","_wxWindowID",0},
7809 { "_wxPreviewControlBar","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxPreviewControlBar},
7810 { "_unsigned_long","_long",0},
7811 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
7812 { "_signed_int","_wxCoord",0},
7813 { "_signed_int","_wxPrintQuality",0},
7814 { "_signed_int","_EBool",0},
7815 { "_signed_int","_wxWindowID",0},
7816 { "_signed_int","_int",0},
7817 { "_WXTYPE","_short",0},
7818 { "_WXTYPE","_signed_short",0},
7819 { "_WXTYPE","_unsigned_short",0},
7820 { "_unsigned_short","_WXTYPE",0},
7821 { "_unsigned_short","_short",0},
7822 { "_wxObject","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxObject},
7823 { "_wxObject","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxObject},
7824 { "_wxObject","_wxPyPrintPreview",SwigwxPyPrintPreviewTowxObject},
7825 { "_wxObject","_wxPreviewControlBar",SwigwxPreviewControlBarTowxObject},
7826 { "_wxObject","_wxPreviewCanvas",SwigwxPreviewCanvasTowxObject},
7827 { "_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
7828 { "_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject},
7829 { "_wxObject","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxObject},
7830 { "_wxObject","_wxPrinter",SwigwxPrinterTowxObject},
7831 { "_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject},
7832 { "_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject},
7833 { "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
7834 { "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
7835 { "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
7836 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
7837 { "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject},
7838 { "_signed_short","_WXTYPE",0},
7839 { "_signed_short","_short",0},
7840 { "_wxScrolledWindow","_wxPreviewCanvas",SwigwxPreviewCanvasTowxScrolledWindow},
7841 { "_unsigned_char","_byte",0},
7842 { "_unsigned_int","_wxCoord",0},
7843 { "_unsigned_int","_wxPrintQuality",0},
7844 { "_unsigned_int","_time_t",0},
7845 { "_unsigned_int","_size_t",0},
7846 { "_unsigned_int","_uint",0},
7847 { "_unsigned_int","_wxWindowID",0},
7848 { "_unsigned_int","_int",0},
7849 { "_wxDialog","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxDialog},
7850 { "_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog},
7851 { "_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog},
7852 { "_short","_WXTYPE",0},
7853 { "_short","_unsigned_short",0},
7854 { "_short","_signed_short",0},
7855 { "_wxFrame","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxFrame},
7856 { "_wxFrame","_wxPreviewFrame",SwigwxPreviewFrameTowxFrame},
7857 { "_wxWindowID","_wxCoord",0},
7858 { "_wxWindowID","_wxPrintQuality",0},
7859 { "_wxWindowID","_time_t",0},
7860 { "_wxWindowID","_size_t",0},
7861 { "_wxWindowID","_EBool",0},
7862 { "_wxWindowID","_uint",0},
7863 { "_wxWindowID","_int",0},
7864 { "_wxWindowID","_signed_int",0},
7865 { "_wxWindowID","_unsigned_int",0},
7866 { "_int","_wxCoord",0},
7867 { "_int","_wxPrintQuality",0},
7868 { "_int","_time_t",0},
7869 { "_int","_size_t",0},
7870 { "_int","_EBool",0},
7871 { "_int","_uint",0},
7872 { "_int","_wxWindowID",0},
7873 { "_int","_unsigned_int",0},
7874 { "_int","_signed_int",0},
7875 { "_time_t","_wxCoord",0},
7876 { "_time_t","_wxPrintQuality",0},
7877 { "_time_t","_unsigned_int",0},
7878 { "_time_t","_int",0},
7879 { "_time_t","_wxWindowID",0},
7880 { "_time_t","_uint",0},
7881 { "_time_t","_size_t",0},
7882 { "_wxCoord","_int",0},
7883 { "_wxCoord","_signed_int",0},
7884 { "_wxCoord","_unsigned_int",0},
7885 { "_wxCoord","_wxWindowID",0},
7886 { "_wxCoord","_uint",0},
7887 { "_wxCoord","_EBool",0},
7888 { "_wxCoord","_size_t",0},
7889 { "_wxCoord","_time_t",0},
7890 { "_wxCoord","_wxPrintQuality",0},
7891 { "_wxPreviewFrame","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxPreviewFrame},
7892 { "_wxEvtHandler","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxEvtHandler},
7893 { "_wxEvtHandler","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxEvtHandler},
7894 { "_wxEvtHandler","_wxPreviewControlBar",SwigwxPreviewControlBarTowxEvtHandler},
7895 { "_wxEvtHandler","_wxPreviewCanvas",SwigwxPreviewCanvasTowxEvtHandler},
7896 { "_wxEvtHandler","_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler},
7897 { "_wxEvtHandler","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxEvtHandler},
7898 { "_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler},
7899 { "_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler},
7900 { "_wxWindow","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxWindow},
7901 { "_wxWindow","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxWindow},
7902 { "_wxWindow","_wxPreviewControlBar",SwigwxPreviewControlBarTowxWindow},
7903 { "_wxWindow","_wxPreviewCanvas",SwigwxPreviewCanvasTowxWindow},
7904 { "_wxWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxWindow},
7905 { "_wxWindow","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxWindow},
7906 { "_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow},
7907 { "_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow},
7908 {0,0,0}};
7909
7910 static PyObject *SWIG_globals;
7911 #ifdef __cplusplus
7912 extern "C"
7913 #endif
7914 SWIGEXPORT(void) initprintfwc() {
7915 PyObject *m, *d;
7916 SWIG_globals = SWIG_newvarlink();
7917 m = Py_InitModule("printfwc", printfwcMethods);
7918 d = PyModule_GetDict(m);
7919 PyDict_SetItemString(d,"wxPRINT_MODE_NONE", PyInt_FromLong((long) wxPRINT_MODE_NONE));
7920 PyDict_SetItemString(d,"wxPRINT_MODE_PREVIEW", PyInt_FromLong((long) wxPRINT_MODE_PREVIEW));
7921 PyDict_SetItemString(d,"wxPRINT_MODE_FILE", PyInt_FromLong((long) wxPRINT_MODE_FILE));
7922 PyDict_SetItemString(d,"wxPRINT_MODE_PRINTER", PyInt_FromLong((long) wxPRINT_MODE_PRINTER));
7923 PyDict_SetItemString(d,"wxPRINTER_NO_ERROR", PyInt_FromLong((long) wxPRINTER_NO_ERROR));
7924 PyDict_SetItemString(d,"wxPRINTER_CANCELLED", PyInt_FromLong((long) wxPRINTER_CANCELLED));
7925 PyDict_SetItemString(d,"wxPRINTER_ERROR", PyInt_FromLong((long) wxPRINTER_ERROR));
7926 PyDict_SetItemString(d,"wxPREVIEW_PRINT", PyInt_FromLong((long) wxPREVIEW_PRINT));
7927 PyDict_SetItemString(d,"wxPREVIEW_PREVIOUS", PyInt_FromLong((long) wxPREVIEW_PREVIOUS));
7928 PyDict_SetItemString(d,"wxPREVIEW_NEXT", PyInt_FromLong((long) wxPREVIEW_NEXT));
7929 PyDict_SetItemString(d,"wxPREVIEW_ZOOM", PyInt_FromLong((long) wxPREVIEW_ZOOM));
7930 PyDict_SetItemString(d,"wxPREVIEW_FIRST", PyInt_FromLong((long) wxPREVIEW_FIRST));
7931 PyDict_SetItemString(d,"wxPREVIEW_LAST", PyInt_FromLong((long) wxPREVIEW_LAST));
7932 PyDict_SetItemString(d,"wxPREVIEW_GOTO", PyInt_FromLong((long) wxPREVIEW_GOTO));
7933 PyDict_SetItemString(d,"wxPREVIEW_DEFAULT", PyInt_FromLong((long) wxPREVIEW_DEFAULT));
7934 PyDict_SetItemString(d,"wxID_PREVIEW_CLOSE", PyInt_FromLong((long) wxID_PREVIEW_CLOSE));
7935 PyDict_SetItemString(d,"wxID_PREVIEW_NEXT", PyInt_FromLong((long) wxID_PREVIEW_NEXT));
7936 PyDict_SetItemString(d,"wxID_PREVIEW_PREVIOUS", PyInt_FromLong((long) wxID_PREVIEW_PREVIOUS));
7937 PyDict_SetItemString(d,"wxID_PREVIEW_PRINT", PyInt_FromLong((long) wxID_PREVIEW_PRINT));
7938 PyDict_SetItemString(d,"wxID_PREVIEW_ZOOM", PyInt_FromLong((long) wxID_PREVIEW_ZOOM));
7939 PyDict_SetItemString(d,"wxID_PREVIEW_FIRST", PyInt_FromLong((long) wxID_PREVIEW_FIRST));
7940 PyDict_SetItemString(d,"wxID_PREVIEW_LAST", PyInt_FromLong((long) wxID_PREVIEW_LAST));
7941 PyDict_SetItemString(d,"wxID_PREVIEW_GOTO", PyInt_FromLong((long) wxID_PREVIEW_GOTO));
7942
7943 wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout");
7944 {
7945 int i;
7946 for (i = 0; _swig_mapping[i].n1; i++)
7947 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
7948 }
7949 }