]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/printfw.cpp
SWIGged update for wxGTK
[wxWidgets.git] / wxPython / src / mac / printfw.cpp
1 /*
2 * FILE : src/mac/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 <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initprintfwc
55
56 #define SWIG_name "printfwc"
57
58 #include "helpers.h"
59 #include <wx/print.h>
60 #include <wx/printdlg.h>
61 #include <wx/dcps.h>
62
63 #include "printfw.h"
64
65 // Put some wx default wxChar* values into wxStrings.
66 static const wxChar* wxPrintoutTitleStr = wxT("Printout");
67 DECLARE_DEF_STRING(PrintoutTitleStr);
68
69 DECLARE_DEF_STRING(FrameNameStr);
70
71
72 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
73 PyObject* o2;
74 PyObject* o3;
75
76 if (!target) {
77 target = o;
78 } else if (target == Py_None) {
79 Py_DECREF(Py_None);
80 target = o;
81 } else {
82 if (!PyTuple_Check(target)) {
83 o2 = target;
84 target = PyTuple_New(1);
85 PyTuple_SetItem(target, 0, o2);
86 }
87 o3 = PyTuple_New(1);
88 PyTuple_SetItem(o3, 0, o);
89
90 o2 = target;
91 target = PySequence_Concat(o2, o3);
92 Py_DECREF(o2);
93 Py_DECREF(o3);
94 }
95 return target;
96 }
97
98
99
100 // Since this one would be tough and ugly to do with the Macros...
101 void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
102 bool hadErr = FALSE;
103 bool found;
104
105 wxPyBeginBlockThreads();
106 if ((found = m_myInst.findCallback("GetPageInfo"))) {
107 PyObject* result = m_myInst.callCallbackObj(Py_BuildValue("()"));
108 if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) {
109 PyObject* val;
110
111 val = PyTuple_GetItem(result, 0);
112 if (PyInt_Check(val)) *minPage = PyInt_AsLong(val);
113 else hadErr = TRUE;
114
115 val = PyTuple_GetItem(result, 1);
116 if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val);
117 else hadErr = TRUE;
118
119 val = PyTuple_GetItem(result, 2);
120 if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val);
121 else hadErr = TRUE;
122
123 val = PyTuple_GetItem(result, 3);
124 if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val);
125 else hadErr = TRUE;
126 }
127 else
128 hadErr = TRUE;
129
130 if (hadErr) {
131 PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers.");
132 PyErr_Print();
133 }
134 Py_DECREF(result);
135 }
136 wxPyEndBlockThreads();
137 if (! found)
138 wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
139 }
140
141 void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) {
142 wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo);
143 }
144
145
146 IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument);
147 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument);
148 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting);
149 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting);
150 IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting);
151 IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage);
152 IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage);
153
154
155 #ifdef __cplusplus
156 extern "C" {
157 #endif
158 static void *SwigwxPrintDataTowxObject(void *ptr) {
159 wxPrintData *src;
160 wxObject *dest;
161 src = (wxPrintData *) ptr;
162 dest = (wxObject *) src;
163 return (void *) dest;
164 }
165
166 #define new_wxPrintData() (new wxPrintData())
167 static PyObject *_wrap_new_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
168 PyObject * _resultobj;
169 wxPrintData * _result;
170 char *_kwnames[] = { NULL };
171 char _ptemp[128];
172
173 self = self;
174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintData",_kwnames))
175 return NULL;
176 {
177 PyThreadState* __tstate = wxPyBeginAllowThreads();
178 _result = (wxPrintData *)new_wxPrintData();
179
180 wxPyEndAllowThreads(__tstate);
181 if (PyErr_Occurred()) return NULL;
182 } if (_result) {
183 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
184 _resultobj = Py_BuildValue("s",_ptemp);
185 } else {
186 Py_INCREF(Py_None);
187 _resultobj = Py_None;
188 }
189 return _resultobj;
190 }
191
192 #define delete_wxPrintData(_swigobj) (delete _swigobj)
193 static PyObject *_wrap_delete_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
194 PyObject * _resultobj;
195 wxPrintData * _arg0;
196 PyObject * _argo0 = 0;
197 char *_kwnames[] = { "self", NULL };
198
199 self = self;
200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintData",_kwnames,&_argo0))
201 return NULL;
202 if (_argo0) {
203 if (_argo0 == Py_None) { _arg0 = NULL; }
204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintData. Expected _wxPrintData_p.");
206 return NULL;
207 }
208 }
209 {
210 PyThreadState* __tstate = wxPyBeginAllowThreads();
211 delete_wxPrintData(_arg0);
212
213 wxPyEndAllowThreads(__tstate);
214 if (PyErr_Occurred()) return NULL;
215 } Py_INCREF(Py_None);
216 _resultobj = Py_None;
217 return _resultobj;
218 }
219
220 #define wxPrintData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
221 static PyObject *_wrap_wxPrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
222 PyObject * _resultobj;
223 int _result;
224 wxPrintData * _arg0;
225 PyObject * _argo0 = 0;
226 char *_kwnames[] = { "self", NULL };
227
228 self = self;
229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetNoCopies",_kwnames,&_argo0))
230 return NULL;
231 if (_argo0) {
232 if (_argo0 == Py_None) { _arg0 = NULL; }
233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetNoCopies. Expected _wxPrintData_p.");
235 return NULL;
236 }
237 }
238 {
239 PyThreadState* __tstate = wxPyBeginAllowThreads();
240 _result = (int )wxPrintData_GetNoCopies(_arg0);
241
242 wxPyEndAllowThreads(__tstate);
243 if (PyErr_Occurred()) return NULL;
244 } _resultobj = Py_BuildValue("i",_result);
245 return _resultobj;
246 }
247
248 #define wxPrintData_GetCollate(_swigobj) (_swigobj->GetCollate())
249 static PyObject *_wrap_wxPrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
250 PyObject * _resultobj;
251 bool _result;
252 wxPrintData * _arg0;
253 PyObject * _argo0 = 0;
254 char *_kwnames[] = { "self", NULL };
255
256 self = self;
257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetCollate",_kwnames,&_argo0))
258 return NULL;
259 if (_argo0) {
260 if (_argo0 == Py_None) { _arg0 = NULL; }
261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetCollate. Expected _wxPrintData_p.");
263 return NULL;
264 }
265 }
266 {
267 PyThreadState* __tstate = wxPyBeginAllowThreads();
268 _result = (bool )wxPrintData_GetCollate(_arg0);
269
270 wxPyEndAllowThreads(__tstate);
271 if (PyErr_Occurred()) return NULL;
272 } _resultobj = Py_BuildValue("i",_result);
273 return _resultobj;
274 }
275
276 #define wxPrintData_GetOrientation(_swigobj) (_swigobj->GetOrientation())
277 static PyObject *_wrap_wxPrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
278 PyObject * _resultobj;
279 int _result;
280 wxPrintData * _arg0;
281 PyObject * _argo0 = 0;
282 char *_kwnames[] = { "self", NULL };
283
284 self = self;
285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetOrientation",_kwnames,&_argo0))
286 return NULL;
287 if (_argo0) {
288 if (_argo0 == Py_None) { _arg0 = NULL; }
289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetOrientation. Expected _wxPrintData_p.");
291 return NULL;
292 }
293 }
294 {
295 PyThreadState* __tstate = wxPyBeginAllowThreads();
296 _result = (int )wxPrintData_GetOrientation(_arg0);
297
298 wxPyEndAllowThreads(__tstate);
299 if (PyErr_Occurred()) return NULL;
300 } _resultobj = Py_BuildValue("i",_result);
301 return _resultobj;
302 }
303
304 #define wxPrintData_Ok(_swigobj) (_swigobj->Ok())
305 static PyObject *_wrap_wxPrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
306 PyObject * _resultobj;
307 bool _result;
308 wxPrintData * _arg0;
309 PyObject * _argo0 = 0;
310 char *_kwnames[] = { "self", NULL };
311
312 self = self;
313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_Ok",_kwnames,&_argo0))
314 return NULL;
315 if (_argo0) {
316 if (_argo0 == Py_None) { _arg0 = NULL; }
317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_Ok. Expected _wxPrintData_p.");
319 return NULL;
320 }
321 }
322 {
323 PyThreadState* __tstate = wxPyBeginAllowThreads();
324 _result = (bool )wxPrintData_Ok(_arg0);
325
326 wxPyEndAllowThreads(__tstate);
327 if (PyErr_Occurred()) return NULL;
328 } _resultobj = Py_BuildValue("i",_result);
329 return _resultobj;
330 }
331
332 #define wxPrintData_GetPrinterName(_swigobj) (_swigobj->GetPrinterName())
333 static PyObject *_wrap_wxPrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxString * _result;
336 wxPrintData * _arg0;
337 PyObject * _argo0 = 0;
338 char *_kwnames[] = { "self", NULL };
339
340 self = self;
341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterName",_kwnames,&_argo0))
342 return NULL;
343 if (_argo0) {
344 if (_argo0 == Py_None) { _arg0 = NULL; }
345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterName. Expected _wxPrintData_p.");
347 return NULL;
348 }
349 }
350 {
351 PyThreadState* __tstate = wxPyBeginAllowThreads();
352 const wxString & _result_ref = wxPrintData_GetPrinterName(_arg0);
353 _result = (wxString *) &_result_ref;
354
355 wxPyEndAllowThreads(__tstate);
356 if (PyErr_Occurred()) return NULL;
357 }{
358 #if wxUSE_UNICODE
359 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
360 #else
361 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
362 #endif
363 }
364 return _resultobj;
365 }
366
367 #define wxPrintData_GetColour(_swigobj) (_swigobj->GetColour())
368 static PyObject *_wrap_wxPrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
369 PyObject * _resultobj;
370 bool _result;
371 wxPrintData * _arg0;
372 PyObject * _argo0 = 0;
373 char *_kwnames[] = { "self", NULL };
374
375 self = self;
376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetColour",_kwnames,&_argo0))
377 return NULL;
378 if (_argo0) {
379 if (_argo0 == Py_None) { _arg0 = NULL; }
380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetColour. Expected _wxPrintData_p.");
382 return NULL;
383 }
384 }
385 {
386 PyThreadState* __tstate = wxPyBeginAllowThreads();
387 _result = (bool )wxPrintData_GetColour(_arg0);
388
389 wxPyEndAllowThreads(__tstate);
390 if (PyErr_Occurred()) return NULL;
391 } _resultobj = Py_BuildValue("i",_result);
392 return _resultobj;
393 }
394
395 #define wxPrintData_GetDuplex(_swigobj) (_swigobj->GetDuplex())
396 static PyObject *_wrap_wxPrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) {
397 PyObject * _resultobj;
398 wxDuplexMode _result;
399 wxPrintData * _arg0;
400 PyObject * _argo0 = 0;
401 char *_kwnames[] = { "self", NULL };
402
403 self = self;
404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetDuplex",_kwnames,&_argo0))
405 return NULL;
406 if (_argo0) {
407 if (_argo0 == Py_None) { _arg0 = NULL; }
408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetDuplex. Expected _wxPrintData_p.");
410 return NULL;
411 }
412 }
413 {
414 PyThreadState* __tstate = wxPyBeginAllowThreads();
415 _result = (wxDuplexMode )wxPrintData_GetDuplex(_arg0);
416
417 wxPyEndAllowThreads(__tstate);
418 if (PyErr_Occurred()) return NULL;
419 } _resultobj = Py_BuildValue("i",_result);
420 return _resultobj;
421 }
422
423 #define wxPrintData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
424 static PyObject *_wrap_wxPrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
425 PyObject * _resultobj;
426 wxPaperSize _result;
427 wxPrintData * _arg0;
428 PyObject * _argo0 = 0;
429 char *_kwnames[] = { "self", NULL };
430
431 self = self;
432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperId",_kwnames,&_argo0))
433 return NULL;
434 if (_argo0) {
435 if (_argo0 == Py_None) { _arg0 = NULL; }
436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperId. Expected _wxPrintData_p.");
438 return NULL;
439 }
440 }
441 {
442 PyThreadState* __tstate = wxPyBeginAllowThreads();
443 _result = (wxPaperSize )wxPrintData_GetPaperId(_arg0);
444
445 wxPyEndAllowThreads(__tstate);
446 if (PyErr_Occurred()) return NULL;
447 } _resultobj = Py_BuildValue("i",_result);
448 return _resultobj;
449 }
450
451 #define wxPrintData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
452 static PyObject *_wrap_wxPrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
453 PyObject * _resultobj;
454 wxSize * _result;
455 wxPrintData * _arg0;
456 PyObject * _argo0 = 0;
457 char *_kwnames[] = { "self", NULL };
458 char _ptemp[128];
459
460 self = self;
461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperSize",_kwnames,&_argo0))
462 return NULL;
463 if (_argo0) {
464 if (_argo0 == Py_None) { _arg0 = NULL; }
465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperSize. Expected _wxPrintData_p.");
467 return NULL;
468 }
469 }
470 {
471 PyThreadState* __tstate = wxPyBeginAllowThreads();
472 const wxSize & _result_ref = wxPrintData_GetPaperSize(_arg0);
473 _result = (wxSize *) &_result_ref;
474
475 wxPyEndAllowThreads(__tstate);
476 if (PyErr_Occurred()) return NULL;
477 } if (_result) {
478 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p");
479 _resultobj = Py_BuildValue("s",_ptemp);
480 } else {
481 Py_INCREF(Py_None);
482 _resultobj = Py_None;
483 }
484 return _resultobj;
485 }
486
487 #define wxPrintData_GetQuality(_swigobj) (_swigobj->GetQuality())
488 static PyObject *_wrap_wxPrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
489 PyObject * _resultobj;
490 wxPrintQuality _result;
491 wxPrintData * _arg0;
492 PyObject * _argo0 = 0;
493 char *_kwnames[] = { "self", NULL };
494
495 self = self;
496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetQuality",_kwnames,&_argo0))
497 return NULL;
498 if (_argo0) {
499 if (_argo0 == Py_None) { _arg0 = NULL; }
500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetQuality. Expected _wxPrintData_p.");
502 return NULL;
503 }
504 }
505 {
506 PyThreadState* __tstate = wxPyBeginAllowThreads();
507 _result = (wxPrintQuality )wxPrintData_GetQuality(_arg0);
508
509 wxPyEndAllowThreads(__tstate);
510 if (PyErr_Occurred()) return NULL;
511 } _resultobj = Py_BuildValue("i",_result);
512 return _resultobj;
513 }
514
515 #define wxPrintData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
516 static PyObject *_wrap_wxPrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
517 PyObject * _resultobj;
518 wxPrintData * _arg0;
519 int _arg1;
520 PyObject * _argo0 = 0;
521 char *_kwnames[] = { "self","v", NULL };
522
523 self = self;
524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetNoCopies",_kwnames,&_argo0,&_arg1))
525 return NULL;
526 if (_argo0) {
527 if (_argo0 == Py_None) { _arg0 = NULL; }
528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetNoCopies. Expected _wxPrintData_p.");
530 return NULL;
531 }
532 }
533 {
534 PyThreadState* __tstate = wxPyBeginAllowThreads();
535 wxPrintData_SetNoCopies(_arg0,_arg1);
536
537 wxPyEndAllowThreads(__tstate);
538 if (PyErr_Occurred()) return NULL;
539 } Py_INCREF(Py_None);
540 _resultobj = Py_None;
541 return _resultobj;
542 }
543
544 #define wxPrintData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
545 static PyObject *_wrap_wxPrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
546 PyObject * _resultobj;
547 wxPrintData * _arg0;
548 bool _arg1;
549 PyObject * _argo0 = 0;
550 int tempbool1;
551 char *_kwnames[] = { "self","flag", NULL };
552
553 self = self;
554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetCollate",_kwnames,&_argo0,&tempbool1))
555 return NULL;
556 if (_argo0) {
557 if (_argo0 == Py_None) { _arg0 = NULL; }
558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetCollate. Expected _wxPrintData_p.");
560 return NULL;
561 }
562 }
563 _arg1 = (bool ) tempbool1;
564 {
565 PyThreadState* __tstate = wxPyBeginAllowThreads();
566 wxPrintData_SetCollate(_arg0,_arg1);
567
568 wxPyEndAllowThreads(__tstate);
569 if (PyErr_Occurred()) return NULL;
570 } Py_INCREF(Py_None);
571 _resultobj = Py_None;
572 return _resultobj;
573 }
574
575 #define wxPrintData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
576 static PyObject *_wrap_wxPrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
577 PyObject * _resultobj;
578 wxPrintData * _arg0;
579 int _arg1;
580 PyObject * _argo0 = 0;
581 char *_kwnames[] = { "self","orient", NULL };
582
583 self = self;
584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetOrientation",_kwnames,&_argo0,&_arg1))
585 return NULL;
586 if (_argo0) {
587 if (_argo0 == Py_None) { _arg0 = NULL; }
588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetOrientation. Expected _wxPrintData_p.");
590 return NULL;
591 }
592 }
593 {
594 PyThreadState* __tstate = wxPyBeginAllowThreads();
595 wxPrintData_SetOrientation(_arg0,_arg1);
596
597 wxPyEndAllowThreads(__tstate);
598 if (PyErr_Occurred()) return NULL;
599 } Py_INCREF(Py_None);
600 _resultobj = Py_None;
601 return _resultobj;
602 }
603
604 #define wxPrintData_SetPrinterName(_swigobj,_swigarg0) (_swigobj->SetPrinterName(_swigarg0))
605 static PyObject *_wrap_wxPrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) {
606 PyObject * _resultobj;
607 wxPrintData * _arg0;
608 wxString * _arg1;
609 PyObject * _argo0 = 0;
610 PyObject * _obj1 = 0;
611 char *_kwnames[] = { "self","name", NULL };
612
613 self = self;
614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterName",_kwnames,&_argo0,&_obj1))
615 return NULL;
616 if (_argo0) {
617 if (_argo0 == Py_None) { _arg0 = NULL; }
618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterName. Expected _wxPrintData_p.");
620 return NULL;
621 }
622 }
623 {
624 _arg1 = wxString_in_helper(_obj1);
625 if (_arg1 == NULL)
626 return NULL;
627 }
628 {
629 PyThreadState* __tstate = wxPyBeginAllowThreads();
630 wxPrintData_SetPrinterName(_arg0,*_arg1);
631
632 wxPyEndAllowThreads(__tstate);
633 if (PyErr_Occurred()) return NULL;
634 } Py_INCREF(Py_None);
635 _resultobj = Py_None;
636 {
637 if (_obj1)
638 delete _arg1;
639 }
640 return _resultobj;
641 }
642
643 #define wxPrintData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
644 static PyObject *_wrap_wxPrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
645 PyObject * _resultobj;
646 wxPrintData * _arg0;
647 bool _arg1;
648 PyObject * _argo0 = 0;
649 int tempbool1;
650 char *_kwnames[] = { "self","colour", NULL };
651
652 self = self;
653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetColour",_kwnames,&_argo0,&tempbool1))
654 return NULL;
655 if (_argo0) {
656 if (_argo0 == Py_None) { _arg0 = NULL; }
657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetColour. Expected _wxPrintData_p.");
659 return NULL;
660 }
661 }
662 _arg1 = (bool ) tempbool1;
663 {
664 PyThreadState* __tstate = wxPyBeginAllowThreads();
665 wxPrintData_SetColour(_arg0,_arg1);
666
667 wxPyEndAllowThreads(__tstate);
668 if (PyErr_Occurred()) return NULL;
669 } Py_INCREF(Py_None);
670 _resultobj = Py_None;
671 return _resultobj;
672 }
673
674 #define wxPrintData_SetDuplex(_swigobj,_swigarg0) (_swigobj->SetDuplex(_swigarg0))
675 static PyObject *_wrap_wxPrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) {
676 PyObject * _resultobj;
677 wxPrintData * _arg0;
678 wxDuplexMode _arg1;
679 PyObject * _argo0 = 0;
680 char *_kwnames[] = { "self","duplex", NULL };
681
682 self = self;
683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetDuplex",_kwnames,&_argo0,&_arg1))
684 return NULL;
685 if (_argo0) {
686 if (_argo0 == Py_None) { _arg0 = NULL; }
687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetDuplex. Expected _wxPrintData_p.");
689 return NULL;
690 }
691 }
692 {
693 PyThreadState* __tstate = wxPyBeginAllowThreads();
694 wxPrintData_SetDuplex(_arg0,_arg1);
695
696 wxPyEndAllowThreads(__tstate);
697 if (PyErr_Occurred()) return NULL;
698 } Py_INCREF(Py_None);
699 _resultobj = Py_None;
700 return _resultobj;
701 }
702
703 #define wxPrintData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
704 static PyObject *_wrap_wxPrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
705 PyObject * _resultobj;
706 wxPrintData * _arg0;
707 wxPaperSize _arg1;
708 PyObject * _argo0 = 0;
709 char *_kwnames[] = { "self","sizeId", NULL };
710
711 self = self;
712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPaperId",_kwnames,&_argo0,&_arg1))
713 return NULL;
714 if (_argo0) {
715 if (_argo0 == Py_None) { _arg0 = NULL; }
716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperId. Expected _wxPrintData_p.");
718 return NULL;
719 }
720 }
721 {
722 PyThreadState* __tstate = wxPyBeginAllowThreads();
723 wxPrintData_SetPaperId(_arg0,_arg1);
724
725 wxPyEndAllowThreads(__tstate);
726 if (PyErr_Occurred()) return NULL;
727 } Py_INCREF(Py_None);
728 _resultobj = Py_None;
729 return _resultobj;
730 }
731
732 #define wxPrintData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
733 static PyObject *_wrap_wxPrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
734 PyObject * _resultobj;
735 wxPrintData * _arg0;
736 wxSize * _arg1;
737 PyObject * _argo0 = 0;
738 wxSize temp;
739 PyObject * _obj1 = 0;
740 char *_kwnames[] = { "self","sz", NULL };
741
742 self = self;
743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPaperSize",_kwnames,&_argo0,&_obj1))
744 return NULL;
745 if (_argo0) {
746 if (_argo0 == Py_None) { _arg0 = NULL; }
747 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
748 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperSize. Expected _wxPrintData_p.");
749 return NULL;
750 }
751 }
752 {
753 _arg1 = &temp;
754 if (! wxSize_helper(_obj1, &_arg1))
755 return NULL;
756 }
757 {
758 PyThreadState* __tstate = wxPyBeginAllowThreads();
759 wxPrintData_SetPaperSize(_arg0,*_arg1);
760
761 wxPyEndAllowThreads(__tstate);
762 if (PyErr_Occurred()) return NULL;
763 } Py_INCREF(Py_None);
764 _resultobj = Py_None;
765 return _resultobj;
766 }
767
768 #define wxPrintData_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
769 static PyObject *_wrap_wxPrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
770 PyObject * _resultobj;
771 wxPrintData * _arg0;
772 wxPrintQuality _arg1;
773 PyObject * _argo0 = 0;
774 char *_kwnames[] = { "self","quality", NULL };
775
776 self = self;
777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetQuality",_kwnames,&_argo0,&_arg1))
778 return NULL;
779 if (_argo0) {
780 if (_argo0 == Py_None) { _arg0 = NULL; }
781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetQuality. Expected _wxPrintData_p.");
783 return NULL;
784 }
785 }
786 {
787 PyThreadState* __tstate = wxPyBeginAllowThreads();
788 wxPrintData_SetQuality(_arg0,_arg1);
789
790 wxPyEndAllowThreads(__tstate);
791 if (PyErr_Occurred()) return NULL;
792 } Py_INCREF(Py_None);
793 _resultobj = Py_None;
794 return _resultobj;
795 }
796
797 #define wxPrintData_GetPrinterCommand(_swigobj) (_swigobj->GetPrinterCommand())
798 static PyObject *_wrap_wxPrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
799 PyObject * _resultobj;
800 wxString * _result;
801 wxPrintData * _arg0;
802 PyObject * _argo0 = 0;
803 char *_kwnames[] = { "self", NULL };
804
805 self = self;
806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterCommand",_kwnames,&_argo0))
807 return NULL;
808 if (_argo0) {
809 if (_argo0 == Py_None) { _arg0 = NULL; }
810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterCommand. Expected _wxPrintData_p.");
812 return NULL;
813 }
814 }
815 {
816 PyThreadState* __tstate = wxPyBeginAllowThreads();
817 const wxString & _result_ref = wxPrintData_GetPrinterCommand(_arg0);
818 _result = (wxString *) &_result_ref;
819
820 wxPyEndAllowThreads(__tstate);
821 if (PyErr_Occurred()) return NULL;
822 }{
823 #if wxUSE_UNICODE
824 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
825 #else
826 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
827 #endif
828 }
829 return _resultobj;
830 }
831
832 #define wxPrintData_GetPrinterOptions(_swigobj) (_swigobj->GetPrinterOptions())
833 static PyObject *_wrap_wxPrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
834 PyObject * _resultobj;
835 wxString * _result;
836 wxPrintData * _arg0;
837 PyObject * _argo0 = 0;
838 char *_kwnames[] = { "self", NULL };
839
840 self = self;
841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterOptions",_kwnames,&_argo0))
842 return NULL;
843 if (_argo0) {
844 if (_argo0 == Py_None) { _arg0 = NULL; }
845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterOptions. Expected _wxPrintData_p.");
847 return NULL;
848 }
849 }
850 {
851 PyThreadState* __tstate = wxPyBeginAllowThreads();
852 const wxString & _result_ref = wxPrintData_GetPrinterOptions(_arg0);
853 _result = (wxString *) &_result_ref;
854
855 wxPyEndAllowThreads(__tstate);
856 if (PyErr_Occurred()) return NULL;
857 }{
858 #if wxUSE_UNICODE
859 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
860 #else
861 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
862 #endif
863 }
864 return _resultobj;
865 }
866
867 #define wxPrintData_GetPreviewCommand(_swigobj) (_swigobj->GetPreviewCommand())
868 static PyObject *_wrap_wxPrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
869 PyObject * _resultobj;
870 wxString * _result;
871 wxPrintData * _arg0;
872 PyObject * _argo0 = 0;
873 char *_kwnames[] = { "self", NULL };
874
875 self = self;
876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPreviewCommand",_kwnames,&_argo0))
877 return NULL;
878 if (_argo0) {
879 if (_argo0 == Py_None) { _arg0 = NULL; }
880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPreviewCommand. Expected _wxPrintData_p.");
882 return NULL;
883 }
884 }
885 {
886 PyThreadState* __tstate = wxPyBeginAllowThreads();
887 const wxString & _result_ref = wxPrintData_GetPreviewCommand(_arg0);
888 _result = (wxString *) &_result_ref;
889
890 wxPyEndAllowThreads(__tstate);
891 if (PyErr_Occurred()) return NULL;
892 }{
893 #if wxUSE_UNICODE
894 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
895 #else
896 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
897 #endif
898 }
899 return _resultobj;
900 }
901
902 #define wxPrintData_GetFilename(_swigobj) (_swigobj->GetFilename())
903 static PyObject *_wrap_wxPrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
904 PyObject * _resultobj;
905 wxString * _result;
906 wxPrintData * _arg0;
907 PyObject * _argo0 = 0;
908 char *_kwnames[] = { "self", NULL };
909
910 self = self;
911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetFilename",_kwnames,&_argo0))
912 return NULL;
913 if (_argo0) {
914 if (_argo0 == Py_None) { _arg0 = NULL; }
915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFilename. Expected _wxPrintData_p.");
917 return NULL;
918 }
919 }
920 {
921 PyThreadState* __tstate = wxPyBeginAllowThreads();
922 const wxString & _result_ref = wxPrintData_GetFilename(_arg0);
923 _result = (wxString *) &_result_ref;
924
925 wxPyEndAllowThreads(__tstate);
926 if (PyErr_Occurred()) return NULL;
927 }{
928 #if wxUSE_UNICODE
929 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
930 #else
931 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
932 #endif
933 }
934 return _resultobj;
935 }
936
937 #define wxPrintData_GetFontMetricPath(_swigobj) (_swigobj->GetFontMetricPath())
938 static PyObject *_wrap_wxPrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) {
939 PyObject * _resultobj;
940 wxString * _result;
941 wxPrintData * _arg0;
942 PyObject * _argo0 = 0;
943 char *_kwnames[] = { "self", NULL };
944
945 self = self;
946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetFontMetricPath",_kwnames,&_argo0))
947 return NULL;
948 if (_argo0) {
949 if (_argo0 == Py_None) { _arg0 = NULL; }
950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFontMetricPath. Expected _wxPrintData_p.");
952 return NULL;
953 }
954 }
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 const wxString & _result_ref = wxPrintData_GetFontMetricPath(_arg0);
958 _result = (wxString *) &_result_ref;
959
960 wxPyEndAllowThreads(__tstate);
961 if (PyErr_Occurred()) return NULL;
962 }{
963 #if wxUSE_UNICODE
964 _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len());
965 #else
966 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
967 #endif
968 }
969 return _resultobj;
970 }
971
972 #define wxPrintData_GetPrinterScaleX(_swigobj) (_swigobj->GetPrinterScaleX())
973 static PyObject *_wrap_wxPrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
974 PyObject * _resultobj;
975 double _result;
976 wxPrintData * _arg0;
977 PyObject * _argo0 = 0;
978 char *_kwnames[] = { "self", NULL };
979
980 self = self;
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleX",_kwnames,&_argo0))
982 return NULL;
983 if (_argo0) {
984 if (_argo0 == Py_None) { _arg0 = NULL; }
985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleX. Expected _wxPrintData_p.");
987 return NULL;
988 }
989 }
990 {
991 PyThreadState* __tstate = wxPyBeginAllowThreads();
992 _result = (double )wxPrintData_GetPrinterScaleX(_arg0);
993
994 wxPyEndAllowThreads(__tstate);
995 if (PyErr_Occurred()) return NULL;
996 } _resultobj = Py_BuildValue("d",_result);
997 return _resultobj;
998 }
999
1000 #define wxPrintData_GetPrinterScaleY(_swigobj) (_swigobj->GetPrinterScaleY())
1001 static PyObject *_wrap_wxPrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
1002 PyObject * _resultobj;
1003 double _result;
1004 wxPrintData * _arg0;
1005 PyObject * _argo0 = 0;
1006 char *_kwnames[] = { "self", NULL };
1007
1008 self = self;
1009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleY",_kwnames,&_argo0))
1010 return NULL;
1011 if (_argo0) {
1012 if (_argo0 == Py_None) { _arg0 = NULL; }
1013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleY. Expected _wxPrintData_p.");
1015 return NULL;
1016 }
1017 }
1018 {
1019 PyThreadState* __tstate = wxPyBeginAllowThreads();
1020 _result = (double )wxPrintData_GetPrinterScaleY(_arg0);
1021
1022 wxPyEndAllowThreads(__tstate);
1023 if (PyErr_Occurred()) return NULL;
1024 } _resultobj = Py_BuildValue("d",_result);
1025 return _resultobj;
1026 }
1027
1028 #define wxPrintData_GetPrinterTranslateX(_swigobj) (_swigobj->GetPrinterTranslateX())
1029 static PyObject *_wrap_wxPrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) {
1030 PyObject * _resultobj;
1031 long _result;
1032 wxPrintData * _arg0;
1033 PyObject * _argo0 = 0;
1034 char *_kwnames[] = { "self", NULL };
1035
1036 self = self;
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateX",_kwnames,&_argo0))
1038 return NULL;
1039 if (_argo0) {
1040 if (_argo0 == Py_None) { _arg0 = NULL; }
1041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterTranslateX. Expected _wxPrintData_p.");
1043 return NULL;
1044 }
1045 }
1046 {
1047 PyThreadState* __tstate = wxPyBeginAllowThreads();
1048 _result = (long )wxPrintData_GetPrinterTranslateX(_arg0);
1049
1050 wxPyEndAllowThreads(__tstate);
1051 if (PyErr_Occurred()) return NULL;
1052 } _resultobj = Py_BuildValue("l",_result);
1053 return _resultobj;
1054 }
1055
1056 #define wxPrintData_GetPrinterTranslateY(_swigobj) (_swigobj->GetPrinterTranslateY())
1057 static PyObject *_wrap_wxPrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) {
1058 PyObject * _resultobj;
1059 long _result;
1060 wxPrintData * _arg0;
1061 PyObject * _argo0 = 0;
1062 char *_kwnames[] = { "self", NULL };
1063
1064 self = self;
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateY",_kwnames,&_argo0))
1066 return NULL;
1067 if (_argo0) {
1068 if (_argo0 == Py_None) { _arg0 = NULL; }
1069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterTranslateY. Expected _wxPrintData_p.");
1071 return NULL;
1072 }
1073 }
1074 {
1075 PyThreadState* __tstate = wxPyBeginAllowThreads();
1076 _result = (long )wxPrintData_GetPrinterTranslateY(_arg0);
1077
1078 wxPyEndAllowThreads(__tstate);
1079 if (PyErr_Occurred()) return NULL;
1080 } _resultobj = Py_BuildValue("l",_result);
1081 return _resultobj;
1082 }
1083
1084 #define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
1085 static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1086 PyObject * _resultobj;
1087 wxPrintMode * _result;
1088 wxPrintData * _arg0;
1089 PyObject * _argo0 = 0;
1090 char *_kwnames[] = { "self", NULL };
1091 char _ptemp[128];
1092
1093 self = self;
1094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrintMode",_kwnames,&_argo0))
1095 return NULL;
1096 if (_argo0) {
1097 if (_argo0 == Py_None) { _arg0 = NULL; }
1098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrintMode. Expected _wxPrintData_p.");
1100 return NULL;
1101 }
1102 }
1103 {
1104 PyThreadState* __tstate = wxPyBeginAllowThreads();
1105 _result = new wxPrintMode (wxPrintData_GetPrintMode(_arg0));
1106
1107 wxPyEndAllowThreads(__tstate);
1108 if (PyErr_Occurred()) return NULL;
1109 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPrintMode_p");
1110 _resultobj = Py_BuildValue("s",_ptemp);
1111 return _resultobj;
1112 }
1113
1114 #define wxPrintData_SetPrinterCommand(_swigobj,_swigarg0) (_swigobj->SetPrinterCommand(_swigarg0))
1115 static PyObject *_wrap_wxPrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
1116 PyObject * _resultobj;
1117 wxPrintData * _arg0;
1118 wxString * _arg1;
1119 PyObject * _argo0 = 0;
1120 PyObject * _obj1 = 0;
1121 char *_kwnames[] = { "self","command", NULL };
1122
1123 self = self;
1124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterCommand",_kwnames,&_argo0,&_obj1))
1125 return NULL;
1126 if (_argo0) {
1127 if (_argo0 == Py_None) { _arg0 = NULL; }
1128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterCommand. Expected _wxPrintData_p.");
1130 return NULL;
1131 }
1132 }
1133 {
1134 _arg1 = wxString_in_helper(_obj1);
1135 if (_arg1 == NULL)
1136 return NULL;
1137 }
1138 {
1139 PyThreadState* __tstate = wxPyBeginAllowThreads();
1140 wxPrintData_SetPrinterCommand(_arg0,*_arg1);
1141
1142 wxPyEndAllowThreads(__tstate);
1143 if (PyErr_Occurred()) return NULL;
1144 } Py_INCREF(Py_None);
1145 _resultobj = Py_None;
1146 {
1147 if (_obj1)
1148 delete _arg1;
1149 }
1150 return _resultobj;
1151 }
1152
1153 #define wxPrintData_SetPrinterOptions(_swigobj,_swigarg0) (_swigobj->SetPrinterOptions(_swigarg0))
1154 static PyObject *_wrap_wxPrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1155 PyObject * _resultobj;
1156 wxPrintData * _arg0;
1157 wxString * _arg1;
1158 PyObject * _argo0 = 0;
1159 PyObject * _obj1 = 0;
1160 char *_kwnames[] = { "self","options", NULL };
1161
1162 self = self;
1163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterOptions",_kwnames,&_argo0,&_obj1))
1164 return NULL;
1165 if (_argo0) {
1166 if (_argo0 == Py_None) { _arg0 = NULL; }
1167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterOptions. Expected _wxPrintData_p.");
1169 return NULL;
1170 }
1171 }
1172 {
1173 _arg1 = wxString_in_helper(_obj1);
1174 if (_arg1 == NULL)
1175 return NULL;
1176 }
1177 {
1178 PyThreadState* __tstate = wxPyBeginAllowThreads();
1179 wxPrintData_SetPrinterOptions(_arg0,*_arg1);
1180
1181 wxPyEndAllowThreads(__tstate);
1182 if (PyErr_Occurred()) return NULL;
1183 } Py_INCREF(Py_None);
1184 _resultobj = Py_None;
1185 {
1186 if (_obj1)
1187 delete _arg1;
1188 }
1189 return _resultobj;
1190 }
1191
1192 #define wxPrintData_SetPreviewCommand(_swigobj,_swigarg0) (_swigobj->SetPreviewCommand(_swigarg0))
1193 static PyObject *_wrap_wxPrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
1194 PyObject * _resultobj;
1195 wxPrintData * _arg0;
1196 wxString * _arg1;
1197 PyObject * _argo0 = 0;
1198 PyObject * _obj1 = 0;
1199 char *_kwnames[] = { "self","command", NULL };
1200
1201 self = self;
1202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPreviewCommand",_kwnames,&_argo0,&_obj1))
1203 return NULL;
1204 if (_argo0) {
1205 if (_argo0 == Py_None) { _arg0 = NULL; }
1206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPreviewCommand. Expected _wxPrintData_p.");
1208 return NULL;
1209 }
1210 }
1211 {
1212 _arg1 = wxString_in_helper(_obj1);
1213 if (_arg1 == NULL)
1214 return NULL;
1215 }
1216 {
1217 PyThreadState* __tstate = wxPyBeginAllowThreads();
1218 wxPrintData_SetPreviewCommand(_arg0,*_arg1);
1219
1220 wxPyEndAllowThreads(__tstate);
1221 if (PyErr_Occurred()) return NULL;
1222 } Py_INCREF(Py_None);
1223 _resultobj = Py_None;
1224 {
1225 if (_obj1)
1226 delete _arg1;
1227 }
1228 return _resultobj;
1229 }
1230
1231 #define wxPrintData_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0))
1232 static PyObject *_wrap_wxPrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) {
1233 PyObject * _resultobj;
1234 wxPrintData * _arg0;
1235 wxString * _arg1;
1236 PyObject * _argo0 = 0;
1237 PyObject * _obj1 = 0;
1238 char *_kwnames[] = { "self","filename", NULL };
1239
1240 self = self;
1241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFilename",_kwnames,&_argo0,&_obj1))
1242 return NULL;
1243 if (_argo0) {
1244 if (_argo0 == Py_None) { _arg0 = NULL; }
1245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFilename. Expected _wxPrintData_p.");
1247 return NULL;
1248 }
1249 }
1250 {
1251 _arg1 = wxString_in_helper(_obj1);
1252 if (_arg1 == NULL)
1253 return NULL;
1254 }
1255 {
1256 PyThreadState* __tstate = wxPyBeginAllowThreads();
1257 wxPrintData_SetFilename(_arg0,*_arg1);
1258
1259 wxPyEndAllowThreads(__tstate);
1260 if (PyErr_Occurred()) return NULL;
1261 } Py_INCREF(Py_None);
1262 _resultobj = Py_None;
1263 {
1264 if (_obj1)
1265 delete _arg1;
1266 }
1267 return _resultobj;
1268 }
1269
1270 #define wxPrintData_SetFontMetricPath(_swigobj,_swigarg0) (_swigobj->SetFontMetricPath(_swigarg0))
1271 static PyObject *_wrap_wxPrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) {
1272 PyObject * _resultobj;
1273 wxPrintData * _arg0;
1274 wxString * _arg1;
1275 PyObject * _argo0 = 0;
1276 PyObject * _obj1 = 0;
1277 char *_kwnames[] = { "self","path", NULL };
1278
1279 self = self;
1280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFontMetricPath",_kwnames,&_argo0,&_obj1))
1281 return NULL;
1282 if (_argo0) {
1283 if (_argo0 == Py_None) { _arg0 = NULL; }
1284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFontMetricPath. Expected _wxPrintData_p.");
1286 return NULL;
1287 }
1288 }
1289 {
1290 _arg1 = wxString_in_helper(_obj1);
1291 if (_arg1 == NULL)
1292 return NULL;
1293 }
1294 {
1295 PyThreadState* __tstate = wxPyBeginAllowThreads();
1296 wxPrintData_SetFontMetricPath(_arg0,*_arg1);
1297
1298 wxPyEndAllowThreads(__tstate);
1299 if (PyErr_Occurred()) return NULL;
1300 } Py_INCREF(Py_None);
1301 _resultobj = Py_None;
1302 {
1303 if (_obj1)
1304 delete _arg1;
1305 }
1306 return _resultobj;
1307 }
1308
1309 #define wxPrintData_SetPrinterScaleX(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleX(_swigarg0))
1310 static PyObject *_wrap_wxPrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) {
1311 PyObject * _resultobj;
1312 wxPrintData * _arg0;
1313 double _arg1;
1314 PyObject * _argo0 = 0;
1315 char *_kwnames[] = { "self","x", NULL };
1316
1317 self = self;
1318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleX",_kwnames,&_argo0,&_arg1))
1319 return NULL;
1320 if (_argo0) {
1321 if (_argo0 == Py_None) { _arg0 = NULL; }
1322 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1323 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleX. Expected _wxPrintData_p.");
1324 return NULL;
1325 }
1326 }
1327 {
1328 PyThreadState* __tstate = wxPyBeginAllowThreads();
1329 wxPrintData_SetPrinterScaleX(_arg0,_arg1);
1330
1331 wxPyEndAllowThreads(__tstate);
1332 if (PyErr_Occurred()) return NULL;
1333 } Py_INCREF(Py_None);
1334 _resultobj = Py_None;
1335 return _resultobj;
1336 }
1337
1338 #define wxPrintData_SetPrinterScaleY(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleY(_swigarg0))
1339 static PyObject *_wrap_wxPrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) {
1340 PyObject * _resultobj;
1341 wxPrintData * _arg0;
1342 double _arg1;
1343 PyObject * _argo0 = 0;
1344 char *_kwnames[] = { "self","y", NULL };
1345
1346 self = self;
1347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleY",_kwnames,&_argo0,&_arg1))
1348 return NULL;
1349 if (_argo0) {
1350 if (_argo0 == Py_None) { _arg0 = NULL; }
1351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleY. Expected _wxPrintData_p.");
1353 return NULL;
1354 }
1355 }
1356 {
1357 PyThreadState* __tstate = wxPyBeginAllowThreads();
1358 wxPrintData_SetPrinterScaleY(_arg0,_arg1);
1359
1360 wxPyEndAllowThreads(__tstate);
1361 if (PyErr_Occurred()) return NULL;
1362 } Py_INCREF(Py_None);
1363 _resultobj = Py_None;
1364 return _resultobj;
1365 }
1366
1367 #define wxPrintData_SetPrinterScaling(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterScaling(_swigarg0,_swigarg1))
1368 static PyObject *_wrap_wxPrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) {
1369 PyObject * _resultobj;
1370 wxPrintData * _arg0;
1371 double _arg1;
1372 double _arg2;
1373 PyObject * _argo0 = 0;
1374 char *_kwnames[] = { "self","x","y", NULL };
1375
1376 self = self;
1377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPrintData_SetPrinterScaling",_kwnames,&_argo0,&_arg1,&_arg2))
1378 return NULL;
1379 if (_argo0) {
1380 if (_argo0 == Py_None) { _arg0 = NULL; }
1381 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1382 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaling. Expected _wxPrintData_p.");
1383 return NULL;
1384 }
1385 }
1386 {
1387 PyThreadState* __tstate = wxPyBeginAllowThreads();
1388 wxPrintData_SetPrinterScaling(_arg0,_arg1,_arg2);
1389
1390 wxPyEndAllowThreads(__tstate);
1391 if (PyErr_Occurred()) return NULL;
1392 } Py_INCREF(Py_None);
1393 _resultobj = Py_None;
1394 return _resultobj;
1395 }
1396
1397 #define wxPrintData_SetPrinterTranslateX(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateX(_swigarg0))
1398 static PyObject *_wrap_wxPrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) {
1399 PyObject * _resultobj;
1400 wxPrintData * _arg0;
1401 long _arg1;
1402 PyObject * _argo0 = 0;
1403 char *_kwnames[] = { "self","x", NULL };
1404
1405 self = self;
1406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateX",_kwnames,&_argo0,&_arg1))
1407 return NULL;
1408 if (_argo0) {
1409 if (_argo0 == Py_None) { _arg0 = NULL; }
1410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateX. Expected _wxPrintData_p.");
1412 return NULL;
1413 }
1414 }
1415 {
1416 PyThreadState* __tstate = wxPyBeginAllowThreads();
1417 wxPrintData_SetPrinterTranslateX(_arg0,_arg1);
1418
1419 wxPyEndAllowThreads(__tstate);
1420 if (PyErr_Occurred()) return NULL;
1421 } Py_INCREF(Py_None);
1422 _resultobj = Py_None;
1423 return _resultobj;
1424 }
1425
1426 #define wxPrintData_SetPrinterTranslateY(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateY(_swigarg0))
1427 static PyObject *_wrap_wxPrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) {
1428 PyObject * _resultobj;
1429 wxPrintData * _arg0;
1430 long _arg1;
1431 PyObject * _argo0 = 0;
1432 char *_kwnames[] = { "self","y", NULL };
1433
1434 self = self;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateY",_kwnames,&_argo0,&_arg1))
1436 return NULL;
1437 if (_argo0) {
1438 if (_argo0 == Py_None) { _arg0 = NULL; }
1439 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1440 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateY. Expected _wxPrintData_p.");
1441 return NULL;
1442 }
1443 }
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 wxPrintData_SetPrinterTranslateY(_arg0,_arg1);
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) return NULL;
1450 } Py_INCREF(Py_None);
1451 _resultobj = Py_None;
1452 return _resultobj;
1453 }
1454
1455 #define wxPrintData_SetPrinterTranslation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterTranslation(_swigarg0,_swigarg1))
1456 static PyObject *_wrap_wxPrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) {
1457 PyObject * _resultobj;
1458 wxPrintData * _arg0;
1459 long _arg1;
1460 long _arg2;
1461 PyObject * _argo0 = 0;
1462 char *_kwnames[] = { "self","x","y", NULL };
1463
1464 self = self;
1465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPrintData_SetPrinterTranslation",_kwnames,&_argo0,&_arg1,&_arg2))
1466 return NULL;
1467 if (_argo0) {
1468 if (_argo0 == Py_None) { _arg0 = NULL; }
1469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslation. Expected _wxPrintData_p.");
1471 return NULL;
1472 }
1473 }
1474 {
1475 PyThreadState* __tstate = wxPyBeginAllowThreads();
1476 wxPrintData_SetPrinterTranslation(_arg0,_arg1,_arg2);
1477
1478 wxPyEndAllowThreads(__tstate);
1479 if (PyErr_Occurred()) return NULL;
1480 } Py_INCREF(Py_None);
1481 _resultobj = Py_None;
1482 return _resultobj;
1483 }
1484
1485 #define wxPrintData_SetPrintMode(_swigobj,_swigarg0) (_swigobj->SetPrintMode(_swigarg0))
1486 static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
1487 PyObject * _resultobj;
1488 wxPrintData * _arg0;
1489 wxPrintMode * _arg1;
1490 PyObject * _argo0 = 0;
1491 PyObject * _argo1 = 0;
1492 char *_kwnames[] = { "self","printMode", NULL };
1493
1494 self = self;
1495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrintMode",_kwnames,&_argo0,&_argo1))
1496 return NULL;
1497 if (_argo0) {
1498 if (_argo0 == Py_None) { _arg0 = NULL; }
1499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrintMode. Expected _wxPrintData_p.");
1501 return NULL;
1502 }
1503 }
1504 if (_argo1) {
1505 if (_argo1 == Py_None) { _arg1 = NULL; }
1506 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintMode_p")) {
1507 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintData_SetPrintMode. Expected _wxPrintMode_p.");
1508 return NULL;
1509 }
1510 }
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 wxPrintData_SetPrintMode(_arg0,*_arg1);
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 static void *SwigwxPostScriptDCTowxDC(void *ptr) {
1523 wxPostScriptDC *src;
1524 wxDC *dest;
1525 src = (wxPostScriptDC *) ptr;
1526 dest = (wxDC *) src;
1527 return (void *) dest;
1528 }
1529
1530 static void *SwigwxPostScriptDCTowxObject(void *ptr) {
1531 wxPostScriptDC *src;
1532 wxObject *dest;
1533 src = (wxPostScriptDC *) ptr;
1534 dest = (wxObject *) src;
1535 return (void *) dest;
1536 }
1537
1538 #define new_wxPostScriptDC(_swigarg0) (new wxPostScriptDC(_swigarg0))
1539 static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
1540 PyObject * _resultobj;
1541 wxPostScriptDC * _result;
1542 wxPrintData * _arg0;
1543 PyObject * _argo0 = 0;
1544 char *_kwnames[] = { "printData", NULL };
1545 char _ptemp[128];
1546
1547 self = self;
1548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPostScriptDC",_kwnames,&_argo0))
1549 return NULL;
1550 if (_argo0) {
1551 if (_argo0 == Py_None) { _arg0 = NULL; }
1552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) {
1553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPostScriptDC. Expected _wxPrintData_p.");
1554 return NULL;
1555 }
1556 }
1557 {
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0);
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) return NULL;
1563 } if (_result) {
1564 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
1565 _resultobj = Py_BuildValue("s",_ptemp);
1566 } else {
1567 Py_INCREF(Py_None);
1568 _resultobj = Py_None;
1569 }
1570 return _resultobj;
1571 }
1572
1573 #define wxPostScriptDC_GetPrintData(_swigobj) (_swigobj->GetPrintData())
1574 static PyObject *_wrap_wxPostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject * _resultobj;
1576 wxPrintData * _result;
1577 wxPostScriptDC * _arg0;
1578 PyObject * _argo0 = 0;
1579 char *_kwnames[] = { "self", NULL };
1580 char _ptemp[128];
1581
1582 self = self;
1583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPostScriptDC_GetPrintData",_kwnames,&_argo0))
1584 return NULL;
1585 if (_argo0) {
1586 if (_argo0 == Py_None) { _arg0 = NULL; }
1587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
1588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_GetPrintData. Expected _wxPostScriptDC_p.");
1589 return NULL;
1590 }
1591 }
1592 {
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 wxPrintData & _result_ref = wxPostScriptDC_GetPrintData(_arg0);
1595 _result = (wxPrintData *) &_result_ref;
1596
1597 wxPyEndAllowThreads(__tstate);
1598 if (PyErr_Occurred()) return NULL;
1599 } if (_result) {
1600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
1601 _resultobj = Py_BuildValue("s",_ptemp);
1602 } else {
1603 Py_INCREF(Py_None);
1604 _resultobj = Py_None;
1605 }
1606 return _resultobj;
1607 }
1608
1609 #define wxPostScriptDC_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
1610 static PyObject *_wrap_wxPostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
1611 PyObject * _resultobj;
1612 wxPostScriptDC * _arg0;
1613 wxPrintData * _arg1;
1614 PyObject * _argo0 = 0;
1615 PyObject * _argo1 = 0;
1616 char *_kwnames[] = { "self","data", NULL };
1617
1618 self = self;
1619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostScriptDC_SetPrintData",_kwnames,&_argo0,&_argo1))
1620 return NULL;
1621 if (_argo0) {
1622 if (_argo0 == Py_None) { _arg0 = NULL; }
1623 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) {
1624 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_SetPrintData. Expected _wxPostScriptDC_p.");
1625 return NULL;
1626 }
1627 }
1628 if (_argo1) {
1629 if (_argo1 == Py_None) { _arg1 = NULL; }
1630 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
1631 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostScriptDC_SetPrintData. Expected _wxPrintData_p.");
1632 return NULL;
1633 }
1634 }
1635 {
1636 PyThreadState* __tstate = wxPyBeginAllowThreads();
1637 wxPostScriptDC_SetPrintData(_arg0,*_arg1);
1638
1639 wxPyEndAllowThreads(__tstate);
1640 if (PyErr_Occurred()) return NULL;
1641 } Py_INCREF(Py_None);
1642 _resultobj = Py_None;
1643 return _resultobj;
1644 }
1645
1646 static PyObject *_wrap_wxPostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject * _resultobj;
1648 int _arg0;
1649 char *_kwnames[] = { "ppi", NULL };
1650
1651 self = self;
1652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxPostScriptDC_SetResolution",_kwnames,&_arg0))
1653 return NULL;
1654 {
1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
1656 wxPostScriptDC::SetResolution(_arg0);
1657
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) return NULL;
1660 } Py_INCREF(Py_None);
1661 _resultobj = Py_None;
1662 return _resultobj;
1663 }
1664
1665 static PyObject *_wrap_wxPostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
1666 PyObject * _resultobj;
1667 int _result;
1668 char *_kwnames[] = { NULL };
1669
1670 self = self;
1671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPostScriptDC_GetResolution",_kwnames))
1672 return NULL;
1673 {
1674 PyThreadState* __tstate = wxPyBeginAllowThreads();
1675 _result = (int )wxPostScriptDC::GetResolution();
1676
1677 wxPyEndAllowThreads(__tstate);
1678 if (PyErr_Occurred()) return NULL;
1679 } _resultobj = Py_BuildValue("i",_result);
1680 return _resultobj;
1681 }
1682
1683 static void *SwigwxPageSetupDialogDataTowxObject(void *ptr) {
1684 wxPageSetupDialogData *src;
1685 wxObject *dest;
1686 src = (wxPageSetupDialogData *) ptr;
1687 dest = (wxObject *) src;
1688 return (void *) dest;
1689 }
1690
1691 #define new_wxPageSetupDialogData() (new wxPageSetupDialogData())
1692 static PyObject *_wrap_new_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject * _resultobj;
1694 wxPageSetupDialogData * _result;
1695 char *_kwnames[] = { NULL };
1696 char _ptemp[128];
1697
1698 self = self;
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPageSetupDialogData",_kwnames))
1700 return NULL;
1701 {
1702 PyThreadState* __tstate = wxPyBeginAllowThreads();
1703 _result = (wxPageSetupDialogData *)new_wxPageSetupDialogData();
1704
1705 wxPyEndAllowThreads(__tstate);
1706 if (PyErr_Occurred()) return NULL;
1707 } if (_result) {
1708 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
1709 _resultobj = Py_BuildValue("s",_ptemp);
1710 } else {
1711 Py_INCREF(Py_None);
1712 _resultobj = Py_None;
1713 }
1714 return _resultobj;
1715 }
1716
1717 #define delete_wxPageSetupDialogData(_swigobj) (delete _swigobj)
1718 static PyObject *_wrap_delete_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject * _resultobj;
1720 wxPageSetupDialogData * _arg0;
1721 PyObject * _argo0 = 0;
1722 char *_kwnames[] = { "self", NULL };
1723
1724 self = self;
1725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPageSetupDialogData",_kwnames,&_argo0))
1726 return NULL;
1727 if (_argo0) {
1728 if (_argo0 == Py_None) { _arg0 = NULL; }
1729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPageSetupDialogData. Expected _wxPageSetupDialogData_p.");
1731 return NULL;
1732 }
1733 }
1734 {
1735 PyThreadState* __tstate = wxPyBeginAllowThreads();
1736 delete_wxPageSetupDialogData(_arg0);
1737
1738 wxPyEndAllowThreads(__tstate);
1739 if (PyErr_Occurred()) return NULL;
1740 } Py_INCREF(Py_None);
1741 _resultobj = Py_None;
1742 return _resultobj;
1743 }
1744
1745 #define wxPageSetupDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
1746 static PyObject *_wrap_wxPageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject * _resultobj;
1748 wxPageSetupDialogData * _arg0;
1749 bool _arg1;
1750 PyObject * _argo0 = 0;
1751 int tempbool1;
1752 char *_kwnames[] = { "self","flag", NULL };
1753
1754 self = self;
1755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1))
1756 return NULL;
1757 if (_argo0) {
1758 if (_argo0 == Py_None) { _arg0 = NULL; }
1759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableHelp. Expected _wxPageSetupDialogData_p.");
1761 return NULL;
1762 }
1763 }
1764 _arg1 = (bool ) tempbool1;
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 wxPageSetupDialogData_EnableHelp(_arg0,_arg1);
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) return NULL;
1771 } Py_INCREF(Py_None);
1772 _resultobj = Py_None;
1773 return _resultobj;
1774 }
1775
1776 #define wxPageSetupDialogData_EnableMargins(_swigobj,_swigarg0) (_swigobj->EnableMargins(_swigarg0))
1777 static PyObject *_wrap_wxPageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1778 PyObject * _resultobj;
1779 wxPageSetupDialogData * _arg0;
1780 bool _arg1;
1781 PyObject * _argo0 = 0;
1782 int tempbool1;
1783 char *_kwnames[] = { "self","flag", NULL };
1784
1785 self = self;
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableMargins",_kwnames,&_argo0,&tempbool1))
1787 return NULL;
1788 if (_argo0) {
1789 if (_argo0 == Py_None) { _arg0 = NULL; }
1790 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1791 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableMargins. Expected _wxPageSetupDialogData_p.");
1792 return NULL;
1793 }
1794 }
1795 _arg1 = (bool ) tempbool1;
1796 {
1797 PyThreadState* __tstate = wxPyBeginAllowThreads();
1798 wxPageSetupDialogData_EnableMargins(_arg0,_arg1);
1799
1800 wxPyEndAllowThreads(__tstate);
1801 if (PyErr_Occurred()) return NULL;
1802 } Py_INCREF(Py_None);
1803 _resultobj = Py_None;
1804 return _resultobj;
1805 }
1806
1807 #define wxPageSetupDialogData_EnableOrientation(_swigobj,_swigarg0) (_swigobj->EnableOrientation(_swigarg0))
1808 static PyObject *_wrap_wxPageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
1809 PyObject * _resultobj;
1810 wxPageSetupDialogData * _arg0;
1811 bool _arg1;
1812 PyObject * _argo0 = 0;
1813 int tempbool1;
1814 char *_kwnames[] = { "self","flag", NULL };
1815
1816 self = self;
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableOrientation",_kwnames,&_argo0,&tempbool1))
1818 return NULL;
1819 if (_argo0) {
1820 if (_argo0 == Py_None) { _arg0 = NULL; }
1821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableOrientation. Expected _wxPageSetupDialogData_p.");
1823 return NULL;
1824 }
1825 }
1826 _arg1 = (bool ) tempbool1;
1827 {
1828 PyThreadState* __tstate = wxPyBeginAllowThreads();
1829 wxPageSetupDialogData_EnableOrientation(_arg0,_arg1);
1830
1831 wxPyEndAllowThreads(__tstate);
1832 if (PyErr_Occurred()) return NULL;
1833 } Py_INCREF(Py_None);
1834 _resultobj = Py_None;
1835 return _resultobj;
1836 }
1837
1838 #define wxPageSetupDialogData_EnablePaper(_swigobj,_swigarg0) (_swigobj->EnablePaper(_swigarg0))
1839 static PyObject *_wrap_wxPageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject * _resultobj;
1841 wxPageSetupDialogData * _arg0;
1842 bool _arg1;
1843 PyObject * _argo0 = 0;
1844 int tempbool1;
1845 char *_kwnames[] = { "self","flag", NULL };
1846
1847 self = self;
1848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePaper",_kwnames,&_argo0,&tempbool1))
1849 return NULL;
1850 if (_argo0) {
1851 if (_argo0 == Py_None) { _arg0 = NULL; }
1852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePaper. Expected _wxPageSetupDialogData_p.");
1854 return NULL;
1855 }
1856 }
1857 _arg1 = (bool ) tempbool1;
1858 {
1859 PyThreadState* __tstate = wxPyBeginAllowThreads();
1860 wxPageSetupDialogData_EnablePaper(_arg0,_arg1);
1861
1862 wxPyEndAllowThreads(__tstate);
1863 if (PyErr_Occurred()) return NULL;
1864 } Py_INCREF(Py_None);
1865 _resultobj = Py_None;
1866 return _resultobj;
1867 }
1868
1869 #define wxPageSetupDialogData_EnablePrinter(_swigobj,_swigarg0) (_swigobj->EnablePrinter(_swigarg0))
1870 static PyObject *_wrap_wxPageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
1871 PyObject * _resultobj;
1872 wxPageSetupDialogData * _arg0;
1873 bool _arg1;
1874 PyObject * _argo0 = 0;
1875 int tempbool1;
1876 char *_kwnames[] = { "self","flag", NULL };
1877
1878 self = self;
1879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePrinter",_kwnames,&_argo0,&tempbool1))
1880 return NULL;
1881 if (_argo0) {
1882 if (_argo0 == Py_None) { _arg0 = NULL; }
1883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePrinter. Expected _wxPageSetupDialogData_p.");
1885 return NULL;
1886 }
1887 }
1888 _arg1 = (bool ) tempbool1;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 wxPageSetupDialogData_EnablePrinter(_arg0,_arg1);
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) return NULL;
1895 } Py_INCREF(Py_None);
1896 _resultobj = Py_None;
1897 return _resultobj;
1898 }
1899
1900 #define wxPageSetupDialogData_GetDefaultMinMargins(_swigobj) (_swigobj->GetDefaultMinMargins())
1901 static PyObject *_wrap_wxPageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1902 PyObject * _resultobj;
1903 bool _result;
1904 wxPageSetupDialogData * _arg0;
1905 PyObject * _argo0 = 0;
1906 char *_kwnames[] = { "self", NULL };
1907
1908 self = self;
1909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultMinMargins",_kwnames,&_argo0))
1910 return NULL;
1911 if (_argo0) {
1912 if (_argo0 == Py_None) { _arg0 = NULL; }
1913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
1915 return NULL;
1916 }
1917 }
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 _result = (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0);
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) return NULL;
1924 } _resultobj = Py_BuildValue("i",_result);
1925 return _resultobj;
1926 }
1927
1928 #define wxPageSetupDialogData_GetEnableMargins(_swigobj) (_swigobj->GetEnableMargins())
1929 static PyObject *_wrap_wxPageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
1930 PyObject * _resultobj;
1931 bool _result;
1932 wxPageSetupDialogData * _arg0;
1933 PyObject * _argo0 = 0;
1934 char *_kwnames[] = { "self", NULL };
1935
1936 self = self;
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableMargins",_kwnames,&_argo0))
1938 return NULL;
1939 if (_argo0) {
1940 if (_argo0 == Py_None) { _arg0 = NULL; }
1941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableMargins. Expected _wxPageSetupDialogData_p.");
1943 return NULL;
1944 }
1945 }
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 _result = (bool )wxPageSetupDialogData_GetEnableMargins(_arg0);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) return NULL;
1952 } _resultobj = Py_BuildValue("i",_result);
1953 return _resultobj;
1954 }
1955
1956 #define wxPageSetupDialogData_GetEnableOrientation(_swigobj) (_swigobj->GetEnableOrientation())
1957 static PyObject *_wrap_wxPageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject * _resultobj;
1959 bool _result;
1960 wxPageSetupDialogData * _arg0;
1961 PyObject * _argo0 = 0;
1962 char *_kwnames[] = { "self", NULL };
1963
1964 self = self;
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableOrientation",_kwnames,&_argo0))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableOrientation. Expected _wxPageSetupDialogData_p.");
1971 return NULL;
1972 }
1973 }
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 _result = (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0);
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) return NULL;
1980 } _resultobj = Py_BuildValue("i",_result);
1981 return _resultobj;
1982 }
1983
1984 #define wxPageSetupDialogData_GetEnablePaper(_swigobj) (_swigobj->GetEnablePaper())
1985 static PyObject *_wrap_wxPageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject * _resultobj;
1987 bool _result;
1988 wxPageSetupDialogData * _arg0;
1989 PyObject * _argo0 = 0;
1990 char *_kwnames[] = { "self", NULL };
1991
1992 self = self;
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePaper",_kwnames,&_argo0))
1994 return NULL;
1995 if (_argo0) {
1996 if (_argo0 == Py_None) { _arg0 = NULL; }
1997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePaper. Expected _wxPageSetupDialogData_p.");
1999 return NULL;
2000 }
2001 }
2002 {
2003 PyThreadState* __tstate = wxPyBeginAllowThreads();
2004 _result = (bool )wxPageSetupDialogData_GetEnablePaper(_arg0);
2005
2006 wxPyEndAllowThreads(__tstate);
2007 if (PyErr_Occurred()) return NULL;
2008 } _resultobj = Py_BuildValue("i",_result);
2009 return _resultobj;
2010 }
2011
2012 #define wxPageSetupDialogData_GetEnablePrinter(_swigobj) (_swigobj->GetEnablePrinter())
2013 static PyObject *_wrap_wxPageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
2014 PyObject * _resultobj;
2015 bool _result;
2016 wxPageSetupDialogData * _arg0;
2017 PyObject * _argo0 = 0;
2018 char *_kwnames[] = { "self", NULL };
2019
2020 self = self;
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePrinter",_kwnames,&_argo0))
2022 return NULL;
2023 if (_argo0) {
2024 if (_argo0 == Py_None) { _arg0 = NULL; }
2025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePrinter. Expected _wxPageSetupDialogData_p.");
2027 return NULL;
2028 }
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 _result = (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) return NULL;
2036 } _resultobj = Py_BuildValue("i",_result);
2037 return _resultobj;
2038 }
2039
2040 #define wxPageSetupDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp())
2041 static PyObject *_wrap_wxPageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2042 PyObject * _resultobj;
2043 bool _result;
2044 wxPageSetupDialogData * _arg0;
2045 PyObject * _argo0 = 0;
2046 char *_kwnames[] = { "self", NULL };
2047
2048 self = self;
2049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableHelp",_kwnames,&_argo0))
2050 return NULL;
2051 if (_argo0) {
2052 if (_argo0 == Py_None) { _arg0 = NULL; }
2053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableHelp. Expected _wxPageSetupDialogData_p.");
2055 return NULL;
2056 }
2057 }
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 _result = (bool )wxPageSetupDialogData_GetEnableHelp(_arg0);
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) return NULL;
2064 } _resultobj = Py_BuildValue("i",_result);
2065 return _resultobj;
2066 }
2067
2068 #define wxPageSetupDialogData_GetDefaultInfo(_swigobj) (_swigobj->GetDefaultInfo())
2069 static PyObject *_wrap_wxPageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject * _resultobj;
2071 bool _result;
2072 wxPageSetupDialogData * _arg0;
2073 PyObject * _argo0 = 0;
2074 char *_kwnames[] = { "self", NULL };
2075
2076 self = self;
2077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultInfo",_kwnames,&_argo0))
2078 return NULL;
2079 if (_argo0) {
2080 if (_argo0 == Py_None) { _arg0 = NULL; }
2081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultInfo. Expected _wxPageSetupDialogData_p.");
2083 return NULL;
2084 }
2085 }
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 _result = (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0);
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) return NULL;
2092 } _resultobj = Py_BuildValue("i",_result);
2093 return _resultobj;
2094 }
2095
2096 #define wxPageSetupDialogData_GetMarginTopLeft(_swigobj) (_swigobj->GetMarginTopLeft())
2097 static PyObject *_wrap_wxPageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2098 PyObject * _resultobj;
2099 wxPoint * _result;
2100 wxPageSetupDialogData * _arg0;
2101 PyObject * _argo0 = 0;
2102 char *_kwnames[] = { "self", NULL };
2103 char _ptemp[128];
2104
2105 self = self;
2106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginTopLeft",_kwnames,&_argo0))
2107 return NULL;
2108 if (_argo0) {
2109 if (_argo0 == Py_None) { _arg0 = NULL; }
2110 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2111 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2112 return NULL;
2113 }
2114 }
2115 {
2116 PyThreadState* __tstate = wxPyBeginAllowThreads();
2117 _result = new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0));
2118
2119 wxPyEndAllowThreads(__tstate);
2120 if (PyErr_Occurred()) return NULL;
2121 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2122 _resultobj = Py_BuildValue("s",_ptemp);
2123 return _resultobj;
2124 }
2125
2126 #define wxPageSetupDialogData_GetMarginBottomRight(_swigobj) (_swigobj->GetMarginBottomRight())
2127 static PyObject *_wrap_wxPageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2128 PyObject * _resultobj;
2129 wxPoint * _result;
2130 wxPageSetupDialogData * _arg0;
2131 PyObject * _argo0 = 0;
2132 char *_kwnames[] = { "self", NULL };
2133 char _ptemp[128];
2134
2135 self = self;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginBottomRight",_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_GetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2142 return NULL;
2143 }
2144 }
2145 {
2146 PyThreadState* __tstate = wxPyBeginAllowThreads();
2147 _result = new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0));
2148
2149 wxPyEndAllowThreads(__tstate);
2150 if (PyErr_Occurred()) return NULL;
2151 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2152 _resultobj = Py_BuildValue("s",_ptemp);
2153 return _resultobj;
2154 }
2155
2156 #define wxPageSetupDialogData_GetMinMarginTopLeft(_swigobj) (_swigobj->GetMinMarginTopLeft())
2157 static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2158 PyObject * _resultobj;
2159 wxPoint * _result;
2160 wxPageSetupDialogData * _arg0;
2161 PyObject * _argo0 = 0;
2162 char *_kwnames[] = { "self", NULL };
2163 char _ptemp[128];
2164
2165 self = self;
2166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMinMarginTopLeft",_kwnames,&_argo0))
2167 return NULL;
2168 if (_argo0) {
2169 if (_argo0 == Py_None) { _arg0 = NULL; }
2170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2172 return NULL;
2173 }
2174 }
2175 {
2176 PyThreadState* __tstate = wxPyBeginAllowThreads();
2177 _result = new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0));
2178
2179 wxPyEndAllowThreads(__tstate);
2180 if (PyErr_Occurred()) return NULL;
2181 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2182 _resultobj = Py_BuildValue("s",_ptemp);
2183 return _resultobj;
2184 }
2185
2186 #define wxPageSetupDialogData_GetMinMarginBottomRight(_swigobj) (_swigobj->GetMinMarginBottomRight())
2187 static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2188 PyObject * _resultobj;
2189 wxPoint * _result;
2190 wxPageSetupDialogData * _arg0;
2191 PyObject * _argo0 = 0;
2192 char *_kwnames[] = { "self", NULL };
2193 char _ptemp[128];
2194
2195 self = self;
2196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMinMarginBottomRight",_kwnames,&_argo0))
2197 return NULL;
2198 if (_argo0) {
2199 if (_argo0 == Py_None) { _arg0 = NULL; }
2200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2202 return NULL;
2203 }
2204 }
2205 {
2206 PyThreadState* __tstate = wxPyBeginAllowThreads();
2207 _result = new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0));
2208
2209 wxPyEndAllowThreads(__tstate);
2210 if (PyErr_Occurred()) return NULL;
2211 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2212 _resultobj = Py_BuildValue("s",_ptemp);
2213 return _resultobj;
2214 }
2215
2216 #define wxPageSetupDialogData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
2217 static PyObject *_wrap_wxPageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
2218 PyObject * _resultobj;
2219 wxPaperSize _result;
2220 wxPageSetupDialogData * _arg0;
2221 PyObject * _argo0 = 0;
2222 char *_kwnames[] = { "self", NULL };
2223
2224 self = self;
2225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperId",_kwnames,&_argo0))
2226 return NULL;
2227 if (_argo0) {
2228 if (_argo0 == Py_None) { _arg0 = NULL; }
2229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperId. Expected _wxPageSetupDialogData_p.");
2231 return NULL;
2232 }
2233 }
2234 {
2235 PyThreadState* __tstate = wxPyBeginAllowThreads();
2236 _result = (wxPaperSize )wxPageSetupDialogData_GetPaperId(_arg0);
2237
2238 wxPyEndAllowThreads(__tstate);
2239 if (PyErr_Occurred()) return NULL;
2240 } _resultobj = Py_BuildValue("i",_result);
2241 return _resultobj;
2242 }
2243
2244 #define wxPageSetupDialogData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
2245 static PyObject *_wrap_wxPageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2246 PyObject * _resultobj;
2247 wxSize * _result;
2248 wxPageSetupDialogData * _arg0;
2249 PyObject * _argo0 = 0;
2250 char *_kwnames[] = { "self", NULL };
2251 char _ptemp[128];
2252
2253 self = self;
2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperSize",_kwnames,&_argo0))
2255 return NULL;
2256 if (_argo0) {
2257 if (_argo0 == Py_None) { _arg0 = NULL; }
2258 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2259 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperSize. Expected _wxPageSetupDialogData_p.");
2260 return NULL;
2261 }
2262 }
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 _result = new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0));
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) return NULL;
2269 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2270 _resultobj = Py_BuildValue("s",_ptemp);
2271 return _resultobj;
2272 }
2273
2274 static wxPrintData * wxPageSetupDialogData_GetPrintData(wxPageSetupDialogData *self) {
2275 return new wxPrintData(self->GetPrintData()); // force a copy
2276 }
2277 static PyObject *_wrap_wxPageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject * _resultobj;
2279 wxPrintData * _result;
2280 wxPageSetupDialogData * _arg0;
2281 PyObject * _argo0 = 0;
2282 char *_kwnames[] = { "self", NULL };
2283 char _ptemp[128];
2284
2285 self = self;
2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPrintData",_kwnames,&_argo0))
2287 return NULL;
2288 if (_argo0) {
2289 if (_argo0 == Py_None) { _arg0 = NULL; }
2290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPrintData. Expected _wxPageSetupDialogData_p.");
2292 return NULL;
2293 }
2294 }
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 _result = (wxPrintData *)wxPageSetupDialogData_GetPrintData(_arg0);
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) return NULL;
2301 } if (_result) {
2302 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
2303 _resultobj = Py_BuildValue("s",_ptemp);
2304 } else {
2305 Py_INCREF(Py_None);
2306 _resultobj = Py_None;
2307 }
2308 return _resultobj;
2309 }
2310
2311 #define wxPageSetupDialogData_Ok(_swigobj) (_swigobj->Ok())
2312 static PyObject *_wrap_wxPageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2313 PyObject * _resultobj;
2314 bool _result;
2315 wxPageSetupDialogData * _arg0;
2316 PyObject * _argo0 = 0;
2317 char *_kwnames[] = { "self", NULL };
2318
2319 self = self;
2320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_Ok",_kwnames,&_argo0))
2321 return NULL;
2322 if (_argo0) {
2323 if (_argo0 == Py_None) { _arg0 = NULL; }
2324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_Ok. Expected _wxPageSetupDialogData_p.");
2326 return NULL;
2327 }
2328 }
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 _result = (bool )wxPageSetupDialogData_Ok(_arg0);
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) return NULL;
2335 } _resultobj = Py_BuildValue("i",_result);
2336 return _resultobj;
2337 }
2338
2339 #define wxPageSetupDialogData_SetDefaultInfo(_swigobj,_swigarg0) (_swigobj->SetDefaultInfo(_swigarg0))
2340 static PyObject *_wrap_wxPageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject * _resultobj;
2342 wxPageSetupDialogData * _arg0;
2343 bool _arg1;
2344 PyObject * _argo0 = 0;
2345 int tempbool1;
2346 char *_kwnames[] = { "self","flag", NULL };
2347
2348 self = self;
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultInfo",_kwnames,&_argo0,&tempbool1))
2350 return NULL;
2351 if (_argo0) {
2352 if (_argo0 == Py_None) { _arg0 = NULL; }
2353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultInfo. Expected _wxPageSetupDialogData_p.");
2355 return NULL;
2356 }
2357 }
2358 _arg1 = (bool ) tempbool1;
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 wxPageSetupDialogData_SetDefaultInfo(_arg0,_arg1);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) return NULL;
2365 } Py_INCREF(Py_None);
2366 _resultobj = Py_None;
2367 return _resultobj;
2368 }
2369
2370 #define wxPageSetupDialogData_SetDefaultMinMargins(_swigobj,_swigarg0) (_swigobj->SetDefaultMinMargins(_swigarg0))
2371 static PyObject *_wrap_wxPageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) {
2372 PyObject * _resultobj;
2373 wxPageSetupDialogData * _arg0;
2374 bool _arg1;
2375 PyObject * _argo0 = 0;
2376 int tempbool1;
2377 char *_kwnames[] = { "self","flag", NULL };
2378
2379 self = self;
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultMinMargins",_kwnames,&_argo0,&tempbool1))
2381 return NULL;
2382 if (_argo0) {
2383 if (_argo0 == Py_None) { _arg0 = NULL; }
2384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
2386 return NULL;
2387 }
2388 }
2389 _arg1 = (bool ) tempbool1;
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 wxPageSetupDialogData_SetDefaultMinMargins(_arg0,_arg1);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) return NULL;
2396 } Py_INCREF(Py_None);
2397 _resultobj = Py_None;
2398 return _resultobj;
2399 }
2400
2401 #define wxPageSetupDialogData_SetMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMarginTopLeft(_swigarg0))
2402 static PyObject *_wrap_wxPageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject * _resultobj;
2404 wxPageSetupDialogData * _arg0;
2405 wxPoint * _arg1;
2406 PyObject * _argo0 = 0;
2407 wxPoint temp;
2408 PyObject * _obj1 = 0;
2409 char *_kwnames[] = { "self","pt", NULL };
2410
2411 self = self;
2412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginTopLeft",_kwnames,&_argo0,&_obj1))
2413 return NULL;
2414 if (_argo0) {
2415 if (_argo0 == Py_None) { _arg0 = NULL; }
2416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2418 return NULL;
2419 }
2420 }
2421 {
2422 _arg1 = &temp;
2423 if (! wxPoint_helper(_obj1, &_arg1))
2424 return NULL;
2425 }
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 wxPageSetupDialogData_SetMarginTopLeft(_arg0,*_arg1);
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) return NULL;
2432 } Py_INCREF(Py_None);
2433 _resultobj = Py_None;
2434 return _resultobj;
2435 }
2436
2437 #define wxPageSetupDialogData_SetMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMarginBottomRight(_swigarg0))
2438 static PyObject *_wrap_wxPageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2439 PyObject * _resultobj;
2440 wxPageSetupDialogData * _arg0;
2441 wxPoint * _arg1;
2442 PyObject * _argo0 = 0;
2443 wxPoint temp;
2444 PyObject * _obj1 = 0;
2445 char *_kwnames[] = { "self","pt", NULL };
2446
2447 self = self;
2448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginBottomRight",_kwnames,&_argo0,&_obj1))
2449 return NULL;
2450 if (_argo0) {
2451 if (_argo0 == Py_None) { _arg0 = NULL; }
2452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2454 return NULL;
2455 }
2456 }
2457 {
2458 _arg1 = &temp;
2459 if (! wxPoint_helper(_obj1, &_arg1))
2460 return NULL;
2461 }
2462 {
2463 PyThreadState* __tstate = wxPyBeginAllowThreads();
2464 wxPageSetupDialogData_SetMarginBottomRight(_arg0,*_arg1);
2465
2466 wxPyEndAllowThreads(__tstate);
2467 if (PyErr_Occurred()) return NULL;
2468 } Py_INCREF(Py_None);
2469 _resultobj = Py_None;
2470 return _resultobj;
2471 }
2472
2473 #define wxPageSetupDialogData_SetMinMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMinMarginTopLeft(_swigarg0))
2474 static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2475 PyObject * _resultobj;
2476 wxPageSetupDialogData * _arg0;
2477 wxPoint * _arg1;
2478 PyObject * _argo0 = 0;
2479 wxPoint temp;
2480 PyObject * _obj1 = 0;
2481 char *_kwnames[] = { "self","pt", NULL };
2482
2483 self = self;
2484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginTopLeft",_kwnames,&_argo0,&_obj1))
2485 return NULL;
2486 if (_argo0) {
2487 if (_argo0 == Py_None) { _arg0 = NULL; }
2488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2490 return NULL;
2491 }
2492 }
2493 {
2494 _arg1 = &temp;
2495 if (! wxPoint_helper(_obj1, &_arg1))
2496 return NULL;
2497 }
2498 {
2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
2500 wxPageSetupDialogData_SetMinMarginTopLeft(_arg0,*_arg1);
2501
2502 wxPyEndAllowThreads(__tstate);
2503 if (PyErr_Occurred()) return NULL;
2504 } Py_INCREF(Py_None);
2505 _resultobj = Py_None;
2506 return _resultobj;
2507 }
2508
2509 #define wxPageSetupDialogData_SetMinMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMinMarginBottomRight(_swigarg0))
2510 static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2511 PyObject * _resultobj;
2512 wxPageSetupDialogData * _arg0;
2513 wxPoint * _arg1;
2514 PyObject * _argo0 = 0;
2515 wxPoint temp;
2516 PyObject * _obj1 = 0;
2517 char *_kwnames[] = { "self","pt", NULL };
2518
2519 self = self;
2520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginBottomRight",_kwnames,&_argo0,&_obj1))
2521 return NULL;
2522 if (_argo0) {
2523 if (_argo0 == Py_None) { _arg0 = NULL; }
2524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2526 return NULL;
2527 }
2528 }
2529 {
2530 _arg1 = &temp;
2531 if (! wxPoint_helper(_obj1, &_arg1))
2532 return NULL;
2533 }
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 wxPageSetupDialogData_SetMinMarginBottomRight(_arg0,*_arg1);
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) return NULL;
2540 } Py_INCREF(Py_None);
2541 _resultobj = Py_None;
2542 return _resultobj;
2543 }
2544
2545 #define wxPageSetupDialogData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
2546 static PyObject *_wrap_wxPageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) {
2547 PyObject * _resultobj;
2548 wxPageSetupDialogData * _arg0;
2549 wxPaperSize _arg1;
2550 PyObject * _argo0 = 0;
2551 char *_kwnames[] = { "self","id", NULL };
2552
2553 self = self;
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetPaperId",_kwnames,&_argo0,&_arg1))
2555 return NULL;
2556 if (_argo0) {
2557 if (_argo0 == Py_None) { _arg0 = NULL; }
2558 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2559 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperId. Expected _wxPageSetupDialogData_p.");
2560 return NULL;
2561 }
2562 }
2563 {
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
2565 wxPageSetupDialogData_SetPaperId(_arg0,_arg1);
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) return NULL;
2569 } Py_INCREF(Py_None);
2570 _resultobj = Py_None;
2571 return _resultobj;
2572 }
2573
2574 #define wxPageSetupDialogData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
2575 static PyObject *_wrap_wxPageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2576 PyObject * _resultobj;
2577 wxPageSetupDialogData * _arg0;
2578 wxSize * _arg1;
2579 PyObject * _argo0 = 0;
2580 wxSize temp;
2581 PyObject * _obj1 = 0;
2582 char *_kwnames[] = { "self","size", NULL };
2583
2584 self = self;
2585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPaperSize",_kwnames,&_argo0,&_obj1))
2586 return NULL;
2587 if (_argo0) {
2588 if (_argo0 == Py_None) { _arg0 = NULL; }
2589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperSize. Expected _wxPageSetupDialogData_p.");
2591 return NULL;
2592 }
2593 }
2594 {
2595 _arg1 = &temp;
2596 if (! wxSize_helper(_obj1, &_arg1))
2597 return NULL;
2598 }
2599 {
2600 PyThreadState* __tstate = wxPyBeginAllowThreads();
2601 wxPageSetupDialogData_SetPaperSize(_arg0,*_arg1);
2602
2603 wxPyEndAllowThreads(__tstate);
2604 if (PyErr_Occurred()) return NULL;
2605 } Py_INCREF(Py_None);
2606 _resultobj = Py_None;
2607 return _resultobj;
2608 }
2609
2610 #define wxPageSetupDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
2611 static PyObject *_wrap_wxPageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
2612 PyObject * _resultobj;
2613 wxPageSetupDialogData * _arg0;
2614 wxPrintData * _arg1;
2615 PyObject * _argo0 = 0;
2616 PyObject * _argo1 = 0;
2617 char *_kwnames[] = { "self","printData", NULL };
2618
2619 self = self;
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPrintData",_kwnames,&_argo0,&_argo1))
2621 return NULL;
2622 if (_argo0) {
2623 if (_argo0 == Py_None) { _arg0 = NULL; }
2624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) {
2625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPrintData. Expected _wxPageSetupDialogData_p.");
2626 return NULL;
2627 }
2628 }
2629 if (_argo1) {
2630 if (_argo1 == Py_None) { _arg1 = NULL; }
2631 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
2632 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupDialogData_SetPrintData. Expected _wxPrintData_p.");
2633 return NULL;
2634 }
2635 }
2636 {
2637 PyThreadState* __tstate = wxPyBeginAllowThreads();
2638 wxPageSetupDialogData_SetPrintData(_arg0,*_arg1);
2639
2640 wxPyEndAllowThreads(__tstate);
2641 if (PyErr_Occurred()) return NULL;
2642 } Py_INCREF(Py_None);
2643 _resultobj = Py_None;
2644 return _resultobj;
2645 }
2646
2647 static void *SwigwxPageSetupDialogTowxDialog(void *ptr) {
2648 wxPageSetupDialog *src;
2649 wxDialog *dest;
2650 src = (wxPageSetupDialog *) ptr;
2651 dest = (wxDialog *) src;
2652 return (void *) dest;
2653 }
2654
2655 static void *SwigwxPageSetupDialogTowxTopLevelWindow(void *ptr) {
2656 wxPageSetupDialog *src;
2657 wxTopLevelWindow *dest;
2658 src = (wxPageSetupDialog *) ptr;
2659 dest = (wxTopLevelWindow *) src;
2660 return (void *) dest;
2661 }
2662
2663 static void *SwigwxPageSetupDialogTowxWindow(void *ptr) {
2664 wxPageSetupDialog *src;
2665 wxWindow *dest;
2666 src = (wxPageSetupDialog *) ptr;
2667 dest = (wxWindow *) src;
2668 return (void *) dest;
2669 }
2670
2671 static void *SwigwxPageSetupDialogTowxEvtHandler(void *ptr) {
2672 wxPageSetupDialog *src;
2673 wxEvtHandler *dest;
2674 src = (wxPageSetupDialog *) ptr;
2675 dest = (wxEvtHandler *) src;
2676 return (void *) dest;
2677 }
2678
2679 static void *SwigwxPageSetupDialogTowxObject(void *ptr) {
2680 wxPageSetupDialog *src;
2681 wxObject *dest;
2682 src = (wxPageSetupDialog *) ptr;
2683 dest = (wxObject *) src;
2684 return (void *) dest;
2685 }
2686
2687 #define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1))
2688 static PyObject *_wrap_new_wxPageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
2689 PyObject * _resultobj;
2690 wxPageSetupDialog * _result;
2691 wxWindow * _arg0;
2692 wxPageSetupDialogData * _arg1 = (wxPageSetupDialogData *) NULL;
2693 PyObject * _argo0 = 0;
2694 PyObject * _argo1 = 0;
2695 char *_kwnames[] = { "parent","data", NULL };
2696 char _ptemp[128];
2697
2698 self = self;
2699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPageSetupDialog",_kwnames,&_argo0,&_argo1))
2700 return NULL;
2701 if (_argo0) {
2702 if (_argo0 == Py_None) { _arg0 = NULL; }
2703 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2704 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPageSetupDialog. Expected _wxWindow_p.");
2705 return NULL;
2706 }
2707 }
2708 if (_argo1) {
2709 if (_argo1 == Py_None) { _arg1 = NULL; }
2710 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPageSetupDialogData_p")) {
2711 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPageSetupDialog. Expected _wxPageSetupDialogData_p.");
2712 return NULL;
2713 }
2714 }
2715 {
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1);
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) return NULL;
2721 } if (_result) {
2722 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialog_p");
2723 _resultobj = Py_BuildValue("s",_ptemp);
2724 } else {
2725 Py_INCREF(Py_None);
2726 _resultobj = Py_None;
2727 }
2728 return _resultobj;
2729 }
2730
2731 #define wxPageSetupDialog_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData())
2732 static PyObject *_wrap_wxPageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject * _resultobj;
2734 wxPageSetupDialogData * _result;
2735 wxPageSetupDialog * _arg0;
2736 PyObject * _argo0 = 0;
2737 char *_kwnames[] = { "self", NULL };
2738 char _ptemp[128];
2739
2740 self = self;
2741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_GetPageSetupData",_kwnames,&_argo0))
2742 return NULL;
2743 if (_argo0) {
2744 if (_argo0 == Py_None) { _arg0 = NULL; }
2745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) {
2746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_GetPageSetupData. Expected _wxPageSetupDialog_p.");
2747 return NULL;
2748 }
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 wxPageSetupDialogData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0);
2753 _result = (wxPageSetupDialogData *) &_result_ref;
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) return NULL;
2757 } if (_result) {
2758 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p");
2759 _resultobj = Py_BuildValue("s",_ptemp);
2760 } else {
2761 Py_INCREF(Py_None);
2762 _resultobj = Py_None;
2763 }
2764 return _resultobj;
2765 }
2766
2767 #define wxPageSetupDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2768 static PyObject *_wrap_wxPageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject * _resultobj;
2770 int _result;
2771 wxPageSetupDialog * _arg0;
2772 PyObject * _argo0 = 0;
2773 char *_kwnames[] = { "self", NULL };
2774
2775 self = self;
2776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_ShowModal",_kwnames,&_argo0))
2777 return NULL;
2778 if (_argo0) {
2779 if (_argo0 == Py_None) { _arg0 = NULL; }
2780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) {
2781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_ShowModal. Expected _wxPageSetupDialog_p.");
2782 return NULL;
2783 }
2784 }
2785 {
2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
2787 _result = (int )wxPageSetupDialog_ShowModal(_arg0);
2788
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) return NULL;
2791 } _resultobj = Py_BuildValue("i",_result);
2792 return _resultobj;
2793 }
2794
2795 static void *SwigwxPrintDialogDataTowxObject(void *ptr) {
2796 wxPrintDialogData *src;
2797 wxObject *dest;
2798 src = (wxPrintDialogData *) ptr;
2799 dest = (wxObject *) src;
2800 return (void *) dest;
2801 }
2802
2803 #define new_wxPrintDialogData() (new wxPrintDialogData())
2804 static PyObject *_wrap_new_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
2805 PyObject * _resultobj;
2806 wxPrintDialogData * _result;
2807 char *_kwnames[] = { NULL };
2808 char _ptemp[128];
2809
2810 self = self;
2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintDialogData",_kwnames))
2812 return NULL;
2813 {
2814 PyThreadState* __tstate = wxPyBeginAllowThreads();
2815 _result = (wxPrintDialogData *)new_wxPrintDialogData();
2816
2817 wxPyEndAllowThreads(__tstate);
2818 if (PyErr_Occurred()) return NULL;
2819 } if (_result) {
2820 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
2821 _resultobj = Py_BuildValue("s",_ptemp);
2822 } else {
2823 Py_INCREF(Py_None);
2824 _resultobj = Py_None;
2825 }
2826 return _resultobj;
2827 }
2828
2829 #define delete_wxPrintDialogData(_swigobj) (delete _swigobj)
2830 static PyObject *_wrap_delete_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
2831 PyObject * _resultobj;
2832 wxPrintDialogData * _arg0;
2833 PyObject * _argo0 = 0;
2834 char *_kwnames[] = { "self", NULL };
2835
2836 self = self;
2837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintDialogData",_kwnames,&_argo0))
2838 return NULL;
2839 if (_argo0) {
2840 if (_argo0 == Py_None) { _arg0 = NULL; }
2841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintDialogData. Expected _wxPrintDialogData_p.");
2843 return NULL;
2844 }
2845 }
2846 {
2847 PyThreadState* __tstate = wxPyBeginAllowThreads();
2848 delete_wxPrintDialogData(_arg0);
2849
2850 wxPyEndAllowThreads(__tstate);
2851 if (PyErr_Occurred()) return NULL;
2852 } Py_INCREF(Py_None);
2853 _resultobj = Py_None;
2854 return _resultobj;
2855 }
2856
2857 #define wxPrintDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
2858 static PyObject *_wrap_wxPrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
2859 PyObject * _resultobj;
2860 wxPrintDialogData * _arg0;
2861 bool _arg1;
2862 PyObject * _argo0 = 0;
2863 int tempbool1;
2864 char *_kwnames[] = { "self","flag", NULL };
2865
2866 self = self;
2867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1))
2868 return NULL;
2869 if (_argo0) {
2870 if (_argo0 == Py_None) { _arg0 = NULL; }
2871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableHelp. Expected _wxPrintDialogData_p.");
2873 return NULL;
2874 }
2875 }
2876 _arg1 = (bool ) tempbool1;
2877 {
2878 PyThreadState* __tstate = wxPyBeginAllowThreads();
2879 wxPrintDialogData_EnableHelp(_arg0,_arg1);
2880
2881 wxPyEndAllowThreads(__tstate);
2882 if (PyErr_Occurred()) return NULL;
2883 } Py_INCREF(Py_None);
2884 _resultobj = Py_None;
2885 return _resultobj;
2886 }
2887
2888 #define wxPrintDialogData_EnablePageNumbers(_swigobj,_swigarg0) (_swigobj->EnablePageNumbers(_swigarg0))
2889 static PyObject *_wrap_wxPrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject * _resultobj;
2891 wxPrintDialogData * _arg0;
2892 bool _arg1;
2893 PyObject * _argo0 = 0;
2894 int tempbool1;
2895 char *_kwnames[] = { "self","flag", NULL };
2896
2897 self = self;
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePageNumbers",_kwnames,&_argo0,&tempbool1))
2899 return NULL;
2900 if (_argo0) {
2901 if (_argo0 == Py_None) { _arg0 = NULL; }
2902 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2903 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePageNumbers. Expected _wxPrintDialogData_p.");
2904 return NULL;
2905 }
2906 }
2907 _arg1 = (bool ) tempbool1;
2908 {
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
2910 wxPrintDialogData_EnablePageNumbers(_arg0,_arg1);
2911
2912 wxPyEndAllowThreads(__tstate);
2913 if (PyErr_Occurred()) return NULL;
2914 } Py_INCREF(Py_None);
2915 _resultobj = Py_None;
2916 return _resultobj;
2917 }
2918
2919 #define wxPrintDialogData_EnablePrintToFile(_swigobj,_swigarg0) (_swigobj->EnablePrintToFile(_swigarg0))
2920 static PyObject *_wrap_wxPrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2921 PyObject * _resultobj;
2922 wxPrintDialogData * _arg0;
2923 bool _arg1;
2924 PyObject * _argo0 = 0;
2925 int tempbool1;
2926 char *_kwnames[] = { "self","flag", NULL };
2927
2928 self = self;
2929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePrintToFile",_kwnames,&_argo0,&tempbool1))
2930 return NULL;
2931 if (_argo0) {
2932 if (_argo0 == Py_None) { _arg0 = NULL; }
2933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePrintToFile. Expected _wxPrintDialogData_p.");
2935 return NULL;
2936 }
2937 }
2938 _arg1 = (bool ) tempbool1;
2939 {
2940 PyThreadState* __tstate = wxPyBeginAllowThreads();
2941 wxPrintDialogData_EnablePrintToFile(_arg0,_arg1);
2942
2943 wxPyEndAllowThreads(__tstate);
2944 if (PyErr_Occurred()) return NULL;
2945 } Py_INCREF(Py_None);
2946 _resultobj = Py_None;
2947 return _resultobj;
2948 }
2949
2950 #define wxPrintDialogData_EnableSelection(_swigobj,_swigarg0) (_swigobj->EnableSelection(_swigarg0))
2951 static PyObject *_wrap_wxPrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
2952 PyObject * _resultobj;
2953 wxPrintDialogData * _arg0;
2954 bool _arg1;
2955 PyObject * _argo0 = 0;
2956 int tempbool1;
2957 char *_kwnames[] = { "self","flag", NULL };
2958
2959 self = self;
2960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableSelection",_kwnames,&_argo0,&tempbool1))
2961 return NULL;
2962 if (_argo0) {
2963 if (_argo0 == Py_None) { _arg0 = NULL; }
2964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableSelection. Expected _wxPrintDialogData_p.");
2966 return NULL;
2967 }
2968 }
2969 _arg1 = (bool ) tempbool1;
2970 {
2971 PyThreadState* __tstate = wxPyBeginAllowThreads();
2972 wxPrintDialogData_EnableSelection(_arg0,_arg1);
2973
2974 wxPyEndAllowThreads(__tstate);
2975 if (PyErr_Occurred()) return NULL;
2976 } Py_INCREF(Py_None);
2977 _resultobj = Py_None;
2978 return _resultobj;
2979 }
2980
2981 #define wxPrintDialogData_GetAllPages(_swigobj) (_swigobj->GetAllPages())
2982 static PyObject *_wrap_wxPrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) {
2983 PyObject * _resultobj;
2984 bool _result;
2985 wxPrintDialogData * _arg0;
2986 PyObject * _argo0 = 0;
2987 char *_kwnames[] = { "self", NULL };
2988
2989 self = self;
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetAllPages",_kwnames,&_argo0))
2991 return NULL;
2992 if (_argo0) {
2993 if (_argo0 == Py_None) { _arg0 = NULL; }
2994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
2995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetAllPages. Expected _wxPrintDialogData_p.");
2996 return NULL;
2997 }
2998 }
2999 {
3000 PyThreadState* __tstate = wxPyBeginAllowThreads();
3001 _result = (bool )wxPrintDialogData_GetAllPages(_arg0);
3002
3003 wxPyEndAllowThreads(__tstate);
3004 if (PyErr_Occurred()) return NULL;
3005 } _resultobj = Py_BuildValue("i",_result);
3006 return _resultobj;
3007 }
3008
3009 #define wxPrintDialogData_GetCollate(_swigobj) (_swigobj->GetCollate())
3010 static PyObject *_wrap_wxPrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
3011 PyObject * _resultobj;
3012 bool _result;
3013 wxPrintDialogData * _arg0;
3014 PyObject * _argo0 = 0;
3015 char *_kwnames[] = { "self", NULL };
3016
3017 self = self;
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetCollate",_kwnames,&_argo0))
3019 return NULL;
3020 if (_argo0) {
3021 if (_argo0 == Py_None) { _arg0 = NULL; }
3022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetCollate. Expected _wxPrintDialogData_p.");
3024 return NULL;
3025 }
3026 }
3027 {
3028 PyThreadState* __tstate = wxPyBeginAllowThreads();
3029 _result = (bool )wxPrintDialogData_GetCollate(_arg0);
3030
3031 wxPyEndAllowThreads(__tstate);
3032 if (PyErr_Occurred()) return NULL;
3033 } _resultobj = Py_BuildValue("i",_result);
3034 return _resultobj;
3035 }
3036
3037 #define wxPrintDialogData_GetFromPage(_swigobj) (_swigobj->GetFromPage())
3038 static PyObject *_wrap_wxPrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3039 PyObject * _resultobj;
3040 int _result;
3041 wxPrintDialogData * _arg0;
3042 PyObject * _argo0 = 0;
3043 char *_kwnames[] = { "self", NULL };
3044
3045 self = self;
3046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetFromPage",_kwnames,&_argo0))
3047 return NULL;
3048 if (_argo0) {
3049 if (_argo0 == Py_None) { _arg0 = NULL; }
3050 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3051 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetFromPage. Expected _wxPrintDialogData_p.");
3052 return NULL;
3053 }
3054 }
3055 {
3056 PyThreadState* __tstate = wxPyBeginAllowThreads();
3057 _result = (int )wxPrintDialogData_GetFromPage(_arg0);
3058
3059 wxPyEndAllowThreads(__tstate);
3060 if (PyErr_Occurred()) return NULL;
3061 } _resultobj = Py_BuildValue("i",_result);
3062 return _resultobj;
3063 }
3064
3065 #define wxPrintDialogData_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
3066 static PyObject *_wrap_wxPrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3067 PyObject * _resultobj;
3068 int _result;
3069 wxPrintDialogData * _arg0;
3070 PyObject * _argo0 = 0;
3071 char *_kwnames[] = { "self", NULL };
3072
3073 self = self;
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMaxPage",_kwnames,&_argo0))
3075 return NULL;
3076 if (_argo0) {
3077 if (_argo0 == Py_None) { _arg0 = NULL; }
3078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMaxPage. Expected _wxPrintDialogData_p.");
3080 return NULL;
3081 }
3082 }
3083 {
3084 PyThreadState* __tstate = wxPyBeginAllowThreads();
3085 _result = (int )wxPrintDialogData_GetMaxPage(_arg0);
3086
3087 wxPyEndAllowThreads(__tstate);
3088 if (PyErr_Occurred()) return NULL;
3089 } _resultobj = Py_BuildValue("i",_result);
3090 return _resultobj;
3091 }
3092
3093 #define wxPrintDialogData_GetMinPage(_swigobj) (_swigobj->GetMinPage())
3094 static PyObject *_wrap_wxPrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3095 PyObject * _resultobj;
3096 int _result;
3097 wxPrintDialogData * _arg0;
3098 PyObject * _argo0 = 0;
3099 char *_kwnames[] = { "self", NULL };
3100
3101 self = self;
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMinPage",_kwnames,&_argo0))
3103 return NULL;
3104 if (_argo0) {
3105 if (_argo0 == Py_None) { _arg0 = NULL; }
3106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMinPage. Expected _wxPrintDialogData_p.");
3108 return NULL;
3109 }
3110 }
3111 {
3112 PyThreadState* __tstate = wxPyBeginAllowThreads();
3113 _result = (int )wxPrintDialogData_GetMinPage(_arg0);
3114
3115 wxPyEndAllowThreads(__tstate);
3116 if (PyErr_Occurred()) return NULL;
3117 } _resultobj = Py_BuildValue("i",_result);
3118 return _resultobj;
3119 }
3120
3121 #define wxPrintDialogData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
3122 static PyObject *_wrap_wxPrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
3123 PyObject * _resultobj;
3124 int _result;
3125 wxPrintDialogData * _arg0;
3126 PyObject * _argo0 = 0;
3127 char *_kwnames[] = { "self", NULL };
3128
3129 self = self;
3130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetNoCopies",_kwnames,&_argo0))
3131 return NULL;
3132 if (_argo0) {
3133 if (_argo0 == Py_None) { _arg0 = NULL; }
3134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetNoCopies. Expected _wxPrintDialogData_p.");
3136 return NULL;
3137 }
3138 }
3139 {
3140 PyThreadState* __tstate = wxPyBeginAllowThreads();
3141 _result = (int )wxPrintDialogData_GetNoCopies(_arg0);
3142
3143 wxPyEndAllowThreads(__tstate);
3144 if (PyErr_Occurred()) return NULL;
3145 } _resultobj = Py_BuildValue("i",_result);
3146 return _resultobj;
3147 }
3148
3149 static wxPrintData * wxPrintDialogData_GetPrintData(wxPrintDialogData *self) {
3150 return new wxPrintData(self->GetPrintData()); // force a copy
3151 }
3152 static PyObject *_wrap_wxPrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
3153 PyObject * _resultobj;
3154 wxPrintData * _result;
3155 wxPrintDialogData * _arg0;
3156 PyObject * _argo0 = 0;
3157 char *_kwnames[] = { "self", NULL };
3158 char _ptemp[128];
3159
3160 self = self;
3161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintData",_kwnames,&_argo0))
3162 return NULL;
3163 if (_argo0) {
3164 if (_argo0 == Py_None) { _arg0 = NULL; }
3165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintData. Expected _wxPrintDialogData_p.");
3167 return NULL;
3168 }
3169 }
3170 {
3171 PyThreadState* __tstate = wxPyBeginAllowThreads();
3172 _result = (wxPrintData *)wxPrintDialogData_GetPrintData(_arg0);
3173
3174 wxPyEndAllowThreads(__tstate);
3175 if (PyErr_Occurred()) return NULL;
3176 } if (_result) {
3177 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p");
3178 _resultobj = Py_BuildValue("s",_ptemp);
3179 } else {
3180 Py_INCREF(Py_None);
3181 _resultobj = Py_None;
3182 }
3183 return _resultobj;
3184 }
3185
3186 #define wxPrintDialogData_GetPrintToFile(_swigobj) (_swigobj->GetPrintToFile())
3187 static PyObject *_wrap_wxPrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3188 PyObject * _resultobj;
3189 bool _result;
3190 wxPrintDialogData * _arg0;
3191 PyObject * _argo0 = 0;
3192 char *_kwnames[] = { "self", NULL };
3193
3194 self = self;
3195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintToFile",_kwnames,&_argo0))
3196 return NULL;
3197 if (_argo0) {
3198 if (_argo0 == Py_None) { _arg0 = NULL; }
3199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintToFile. Expected _wxPrintDialogData_p.");
3201 return NULL;
3202 }
3203 }
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 _result = (bool )wxPrintDialogData_GetPrintToFile(_arg0);
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) return NULL;
3210 } _resultobj = Py_BuildValue("i",_result);
3211 return _resultobj;
3212 }
3213
3214 #define wxPrintDialogData_GetToPage(_swigobj) (_swigobj->GetToPage())
3215 static PyObject *_wrap_wxPrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3216 PyObject * _resultobj;
3217 int _result;
3218 wxPrintDialogData * _arg0;
3219 PyObject * _argo0 = 0;
3220 char *_kwnames[] = { "self", NULL };
3221
3222 self = self;
3223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetToPage",_kwnames,&_argo0))
3224 return NULL;
3225 if (_argo0) {
3226 if (_argo0 == Py_None) { _arg0 = NULL; }
3227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetToPage. Expected _wxPrintDialogData_p.");
3229 return NULL;
3230 }
3231 }
3232 {
3233 PyThreadState* __tstate = wxPyBeginAllowThreads();
3234 _result = (int )wxPrintDialogData_GetToPage(_arg0);
3235
3236 wxPyEndAllowThreads(__tstate);
3237 if (PyErr_Occurred()) return NULL;
3238 } _resultobj = Py_BuildValue("i",_result);
3239 return _resultobj;
3240 }
3241
3242 #define wxPrintDialogData_Ok(_swigobj) (_swigobj->Ok())
3243 static PyObject *_wrap_wxPrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3244 PyObject * _resultobj;
3245 bool _result;
3246 wxPrintDialogData * _arg0;
3247 PyObject * _argo0 = 0;
3248 char *_kwnames[] = { "self", NULL };
3249
3250 self = self;
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_Ok",_kwnames,&_argo0))
3252 return NULL;
3253 if (_argo0) {
3254 if (_argo0 == Py_None) { _arg0 = NULL; }
3255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_Ok. Expected _wxPrintDialogData_p.");
3257 return NULL;
3258 }
3259 }
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 _result = (bool )wxPrintDialogData_Ok(_arg0);
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) return NULL;
3266 } _resultobj = Py_BuildValue("i",_result);
3267 return _resultobj;
3268 }
3269
3270 #define wxPrintDialogData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
3271 static PyObject *_wrap_wxPrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject * _resultobj;
3273 wxPrintDialogData * _arg0;
3274 bool _arg1;
3275 PyObject * _argo0 = 0;
3276 int tempbool1;
3277 char *_kwnames[] = { "self","flag", NULL };
3278
3279 self = self;
3280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetCollate",_kwnames,&_argo0,&tempbool1))
3281 return NULL;
3282 if (_argo0) {
3283 if (_argo0 == Py_None) { _arg0 = NULL; }
3284 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3285 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetCollate. Expected _wxPrintDialogData_p.");
3286 return NULL;
3287 }
3288 }
3289 _arg1 = (bool ) tempbool1;
3290 {
3291 PyThreadState* __tstate = wxPyBeginAllowThreads();
3292 wxPrintDialogData_SetCollate(_arg0,_arg1);
3293
3294 wxPyEndAllowThreads(__tstate);
3295 if (PyErr_Occurred()) return NULL;
3296 } Py_INCREF(Py_None);
3297 _resultobj = Py_None;
3298 return _resultobj;
3299 }
3300
3301 #define wxPrintDialogData_SetFromPage(_swigobj,_swigarg0) (_swigobj->SetFromPage(_swigarg0))
3302 static PyObject *_wrap_wxPrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject * _resultobj;
3304 wxPrintDialogData * _arg0;
3305 int _arg1;
3306 PyObject * _argo0 = 0;
3307 char *_kwnames[] = { "self","page", NULL };
3308
3309 self = self;
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetFromPage",_kwnames,&_argo0,&_arg1))
3311 return NULL;
3312 if (_argo0) {
3313 if (_argo0 == Py_None) { _arg0 = NULL; }
3314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetFromPage. Expected _wxPrintDialogData_p.");
3316 return NULL;
3317 }
3318 }
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 wxPrintDialogData_SetFromPage(_arg0,_arg1);
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) return NULL;
3325 } Py_INCREF(Py_None);
3326 _resultobj = Py_None;
3327 return _resultobj;
3328 }
3329
3330 #define wxPrintDialogData_SetMaxPage(_swigobj,_swigarg0) (_swigobj->SetMaxPage(_swigarg0))
3331 static PyObject *_wrap_wxPrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject * _resultobj;
3333 wxPrintDialogData * _arg0;
3334 int _arg1;
3335 PyObject * _argo0 = 0;
3336 char *_kwnames[] = { "self","page", NULL };
3337
3338 self = self;
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMaxPage",_kwnames,&_argo0,&_arg1))
3340 return NULL;
3341 if (_argo0) {
3342 if (_argo0 == Py_None) { _arg0 = NULL; }
3343 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3344 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMaxPage. Expected _wxPrintDialogData_p.");
3345 return NULL;
3346 }
3347 }
3348 {
3349 PyThreadState* __tstate = wxPyBeginAllowThreads();
3350 wxPrintDialogData_SetMaxPage(_arg0,_arg1);
3351
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) return NULL;
3354 } Py_INCREF(Py_None);
3355 _resultobj = Py_None;
3356 return _resultobj;
3357 }
3358
3359 #define wxPrintDialogData_SetMinPage(_swigobj,_swigarg0) (_swigobj->SetMinPage(_swigarg0))
3360 static PyObject *_wrap_wxPrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3361 PyObject * _resultobj;
3362 wxPrintDialogData * _arg0;
3363 int _arg1;
3364 PyObject * _argo0 = 0;
3365 char *_kwnames[] = { "self","page", NULL };
3366
3367 self = self;
3368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMinPage",_kwnames,&_argo0,&_arg1))
3369 return NULL;
3370 if (_argo0) {
3371 if (_argo0 == Py_None) { _arg0 = NULL; }
3372 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3373 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMinPage. Expected _wxPrintDialogData_p.");
3374 return NULL;
3375 }
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 wxPrintDialogData_SetMinPage(_arg0,_arg1);
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) return NULL;
3383 } Py_INCREF(Py_None);
3384 _resultobj = Py_None;
3385 return _resultobj;
3386 }
3387
3388 #define wxPrintDialogData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
3389 static PyObject *_wrap_wxPrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) {
3390 PyObject * _resultobj;
3391 wxPrintDialogData * _arg0;
3392 int _arg1;
3393 PyObject * _argo0 = 0;
3394 char *_kwnames[] = { "self","n", NULL };
3395
3396 self = self;
3397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetNoCopies",_kwnames,&_argo0,&_arg1))
3398 return NULL;
3399 if (_argo0) {
3400 if (_argo0 == Py_None) { _arg0 = NULL; }
3401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetNoCopies. Expected _wxPrintDialogData_p.");
3403 return NULL;
3404 }
3405 }
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 wxPrintDialogData_SetNoCopies(_arg0,_arg1);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) return NULL;
3412 } Py_INCREF(Py_None);
3413 _resultobj = Py_None;
3414 return _resultobj;
3415 }
3416
3417 #define wxPrintDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
3418 static PyObject *_wrap_wxPrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
3419 PyObject * _resultobj;
3420 wxPrintDialogData * _arg0;
3421 wxPrintData * _arg1;
3422 PyObject * _argo0 = 0;
3423 PyObject * _argo1 = 0;
3424 char *_kwnames[] = { "self","printData", NULL };
3425
3426 self = self;
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintDialogData_SetPrintData",_kwnames,&_argo0,&_argo1))
3428 return NULL;
3429 if (_argo0) {
3430 if (_argo0 == Py_None) { _arg0 = NULL; }
3431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintData. Expected _wxPrintDialogData_p.");
3433 return NULL;
3434 }
3435 }
3436 if (_argo1) {
3437 if (_argo1 == Py_None) { _arg1 = NULL; }
3438 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) {
3439 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintDialogData_SetPrintData. Expected _wxPrintData_p.");
3440 return NULL;
3441 }
3442 }
3443 {
3444 PyThreadState* __tstate = wxPyBeginAllowThreads();
3445 wxPrintDialogData_SetPrintData(_arg0,*_arg1);
3446
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) return NULL;
3449 } Py_INCREF(Py_None);
3450 _resultobj = Py_None;
3451 return _resultobj;
3452 }
3453
3454 #define wxPrintDialogData_SetPrintToFile(_swigobj,_swigarg0) (_swigobj->SetPrintToFile(_swigarg0))
3455 static PyObject *_wrap_wxPrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3456 PyObject * _resultobj;
3457 wxPrintDialogData * _arg0;
3458 bool _arg1;
3459 PyObject * _argo0 = 0;
3460 int tempbool1;
3461 char *_kwnames[] = { "self","flag", NULL };
3462
3463 self = self;
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetPrintToFile",_kwnames,&_argo0,&tempbool1))
3465 return NULL;
3466 if (_argo0) {
3467 if (_argo0 == Py_None) { _arg0 = NULL; }
3468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintToFile. Expected _wxPrintDialogData_p.");
3470 return NULL;
3471 }
3472 }
3473 _arg1 = (bool ) tempbool1;
3474 {
3475 PyThreadState* __tstate = wxPyBeginAllowThreads();
3476 wxPrintDialogData_SetPrintToFile(_arg0,_arg1);
3477
3478 wxPyEndAllowThreads(__tstate);
3479 if (PyErr_Occurred()) return NULL;
3480 } Py_INCREF(Py_None);
3481 _resultobj = Py_None;
3482 return _resultobj;
3483 }
3484
3485 #define wxPrintDialogData_SetSetupDialog(_swigobj,_swigarg0) (_swigobj->SetSetupDialog(_swigarg0))
3486 static PyObject *_wrap_wxPrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject * _resultobj;
3488 wxPrintDialogData * _arg0;
3489 bool _arg1;
3490 PyObject * _argo0 = 0;
3491 int tempbool1;
3492 char *_kwnames[] = { "self","flag", NULL };
3493
3494 self = self;
3495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetSetupDialog",_kwnames,&_argo0,&tempbool1))
3496 return NULL;
3497 if (_argo0) {
3498 if (_argo0 == Py_None) { _arg0 = NULL; }
3499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetSetupDialog. Expected _wxPrintDialogData_p.");
3501 return NULL;
3502 }
3503 }
3504 _arg1 = (bool ) tempbool1;
3505 {
3506 PyThreadState* __tstate = wxPyBeginAllowThreads();
3507 wxPrintDialogData_SetSetupDialog(_arg0,_arg1);
3508
3509 wxPyEndAllowThreads(__tstate);
3510 if (PyErr_Occurred()) return NULL;
3511 } Py_INCREF(Py_None);
3512 _resultobj = Py_None;
3513 return _resultobj;
3514 }
3515
3516 #define wxPrintDialogData_SetToPage(_swigobj,_swigarg0) (_swigobj->SetToPage(_swigarg0))
3517 static PyObject *_wrap_wxPrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) {
3518 PyObject * _resultobj;
3519 wxPrintDialogData * _arg0;
3520 int _arg1;
3521 PyObject * _argo0 = 0;
3522 char *_kwnames[] = { "self","page", NULL };
3523
3524 self = self;
3525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetToPage",_kwnames,&_argo0,&_arg1))
3526 return NULL;
3527 if (_argo0) {
3528 if (_argo0 == Py_None) { _arg0 = NULL; }
3529 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
3530 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetToPage. Expected _wxPrintDialogData_p.");
3531 return NULL;
3532 }
3533 }
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 wxPrintDialogData_SetToPage(_arg0,_arg1);
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) return NULL;
3540 } Py_INCREF(Py_None);
3541 _resultobj = Py_None;
3542 return _resultobj;
3543 }
3544
3545 static void *SwigwxPrintDialogTowxDialog(void *ptr) {
3546 wxPrintDialog *src;
3547 wxDialog *dest;
3548 src = (wxPrintDialog *) ptr;
3549 dest = (wxDialog *) src;
3550 return (void *) dest;
3551 }
3552
3553 static void *SwigwxPrintDialogTowxTopLevelWindow(void *ptr) {
3554 wxPrintDialog *src;
3555 wxTopLevelWindow *dest;
3556 src = (wxPrintDialog *) ptr;
3557 dest = (wxTopLevelWindow *) src;
3558 return (void *) dest;
3559 }
3560
3561 static void *SwigwxPrintDialogTowxWindow(void *ptr) {
3562 wxPrintDialog *src;
3563 wxWindow *dest;
3564 src = (wxPrintDialog *) ptr;
3565 dest = (wxWindow *) src;
3566 return (void *) dest;
3567 }
3568
3569 static void *SwigwxPrintDialogTowxEvtHandler(void *ptr) {
3570 wxPrintDialog *src;
3571 wxEvtHandler *dest;
3572 src = (wxPrintDialog *) ptr;
3573 dest = (wxEvtHandler *) src;
3574 return (void *) dest;
3575 }
3576
3577 static void *SwigwxPrintDialogTowxObject(void *ptr) {
3578 wxPrintDialog *src;
3579 wxObject *dest;
3580 src = (wxPrintDialog *) ptr;
3581 dest = (wxObject *) src;
3582 return (void *) dest;
3583 }
3584
3585 #define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1))
3586 static PyObject *_wrap_new_wxPrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
3587 PyObject * _resultobj;
3588 wxPrintDialog * _result;
3589 wxWindow * _arg0;
3590 wxPrintDialogData * _arg1 = (wxPrintDialogData *) NULL;
3591 PyObject * _argo0 = 0;
3592 PyObject * _argo1 = 0;
3593 char *_kwnames[] = { "parent","data", NULL };
3594 char _ptemp[128];
3595
3596 self = self;
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPrintDialog",_kwnames,&_argo0,&_argo1))
3598 return NULL;
3599 if (_argo0) {
3600 if (_argo0 == Py_None) { _arg0 = NULL; }
3601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintDialog. Expected _wxWindow_p.");
3603 return NULL;
3604 }
3605 }
3606 if (_argo1) {
3607 if (_argo1 == Py_None) { _arg1 = NULL; }
3608 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintDialogData_p")) {
3609 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintDialog. Expected _wxPrintDialogData_p.");
3610 return NULL;
3611 }
3612 }
3613 {
3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
3615 _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1);
3616
3617 wxPyEndAllowThreads(__tstate);
3618 if (PyErr_Occurred()) return NULL;
3619 } if (_result) {
3620 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialog_p");
3621 _resultobj = Py_BuildValue("s",_ptemp);
3622 } else {
3623 Py_INCREF(Py_None);
3624 _resultobj = Py_None;
3625 }
3626 return _resultobj;
3627 }
3628
3629 #define wxPrintDialog_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
3630 static PyObject *_wrap_wxPrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
3631 PyObject * _resultobj;
3632 wxPrintDialogData * _result;
3633 wxPrintDialog * _arg0;
3634 PyObject * _argo0 = 0;
3635 char *_kwnames[] = { "self", NULL };
3636 char _ptemp[128];
3637
3638 self = self;
3639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDialogData",_kwnames,&_argo0))
3640 return NULL;
3641 if (_argo0) {
3642 if (_argo0 == Py_None) { _arg0 = NULL; }
3643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
3644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDialogData. Expected _wxPrintDialog_p.");
3645 return NULL;
3646 }
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 wxPrintDialogData & _result_ref = wxPrintDialog_GetPrintDialogData(_arg0);
3651 _result = (wxPrintDialogData *) &_result_ref;
3652
3653 wxPyEndAllowThreads(__tstate);
3654 if (PyErr_Occurred()) return NULL;
3655 } if (_result) {
3656 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
3657 _resultobj = Py_BuildValue("s",_ptemp);
3658 } else {
3659 Py_INCREF(Py_None);
3660 _resultobj = Py_None;
3661 }
3662 return _resultobj;
3663 }
3664
3665 #define wxPrintDialog_GetPrintDC(_swigobj) (_swigobj->GetPrintDC())
3666 static PyObject *_wrap_wxPrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
3667 PyObject * _resultobj;
3668 wxDC * _result;
3669 wxPrintDialog * _arg0;
3670 PyObject * _argo0 = 0;
3671 char *_kwnames[] = { "self", NULL };
3672
3673 self = self;
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDC",_kwnames,&_argo0))
3675 return NULL;
3676 if (_argo0) {
3677 if (_argo0 == Py_None) { _arg0 = NULL; }
3678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
3679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDC. Expected _wxPrintDialog_p.");
3680 return NULL;
3681 }
3682 }
3683 {
3684 PyThreadState* __tstate = wxPyBeginAllowThreads();
3685 _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0);
3686
3687 wxPyEndAllowThreads(__tstate);
3688 if (PyErr_Occurred()) return NULL;
3689 }{ _resultobj = wxPyMake_wxObject(_result); }
3690 return _resultobj;
3691 }
3692
3693 #define wxPrintDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
3694 static PyObject *_wrap_wxPrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) {
3695 PyObject * _resultobj;
3696 int _result;
3697 wxPrintDialog * _arg0;
3698 PyObject * _argo0 = 0;
3699 char *_kwnames[] = { "self", NULL };
3700
3701 self = self;
3702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_ShowModal",_kwnames,&_argo0))
3703 return NULL;
3704 if (_argo0) {
3705 if (_argo0 == Py_None) { _arg0 = NULL; }
3706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) {
3707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_ShowModal. Expected _wxPrintDialog_p.");
3708 return NULL;
3709 }
3710 }
3711 {
3712 PyThreadState* __tstate = wxPyBeginAllowThreads();
3713 _result = (int )wxPrintDialog_ShowModal(_arg0);
3714
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) return NULL;
3717 } _resultobj = Py_BuildValue("i",_result);
3718 return _resultobj;
3719 }
3720
3721 static void *SwigwxPyPrintoutTowxObject(void *ptr) {
3722 wxPyPrintout *src;
3723 wxObject *dest;
3724 src = (wxPyPrintout *) ptr;
3725 dest = (wxObject *) src;
3726 return (void *) dest;
3727 }
3728
3729 #define new_wxPrintout(_swigarg0) (new wxPyPrintout(_swigarg0))
3730 static PyObject *_wrap_new_wxPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
3731 PyObject * _resultobj;
3732 wxPyPrintout * _result;
3733 wxString * _arg0 = (wxString *) &wxPyPrintoutTitleStr;
3734 PyObject * _obj0 = 0;
3735 char *_kwnames[] = { "title", NULL };
3736 char _ptemp[128];
3737
3738 self = self;
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrintout",_kwnames,&_obj0))
3740 return NULL;
3741 if (_obj0)
3742 {
3743 _arg0 = wxString_in_helper(_obj0);
3744 if (_arg0 == NULL)
3745 return NULL;
3746 }
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 _result = (wxPyPrintout *)new_wxPrintout(*_arg0);
3750
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) return NULL;
3753 } if (_result) {
3754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p");
3755 _resultobj = Py_BuildValue("s",_ptemp);
3756 } else {
3757 Py_INCREF(Py_None);
3758 _resultobj = Py_None;
3759 }
3760 {
3761 if (_obj0)
3762 delete _arg0;
3763 }
3764 return _resultobj;
3765 }
3766
3767 #define wxPrintout__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3768 static PyObject *_wrap_wxPrintout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3769 PyObject * _resultobj;
3770 wxPyPrintout * _arg0;
3771 PyObject * _arg1;
3772 PyObject * _arg2;
3773 PyObject * _argo0 = 0;
3774 PyObject * _obj1 = 0;
3775 PyObject * _obj2 = 0;
3776 char *_kwnames[] = { "self","self","_class", NULL };
3777
3778 self = self;
3779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintout__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
3780 return NULL;
3781 if (_argo0) {
3782 if (_argo0 == Py_None) { _arg0 = NULL; }
3783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout__setCallbackInfo. Expected _wxPyPrintout_p.");
3785 return NULL;
3786 }
3787 }
3788 {
3789 _arg1 = _obj1;
3790 }
3791 {
3792 _arg2 = _obj2;
3793 }
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 wxPrintout__setCallbackInfo(_arg0,_arg1,_arg2);
3797
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) return NULL;
3800 } Py_INCREF(Py_None);
3801 _resultobj = Py_None;
3802 return _resultobj;
3803 }
3804
3805 static void wxPyPrintout_Destroy(wxPyPrintout *self) { delete self; }
3806 static PyObject *_wrap_wxPrintout_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 wxPyPrintout * _arg0;
3809 PyObject * _argo0 = 0;
3810 char *_kwnames[] = { "self", NULL };
3811
3812 self = self;
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_Destroy",_kwnames,&_argo0))
3814 return NULL;
3815 if (_argo0) {
3816 if (_argo0 == Py_None) { _arg0 = NULL; }
3817 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3818 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_Destroy. Expected _wxPyPrintout_p.");
3819 return NULL;
3820 }
3821 }
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 wxPyPrintout_Destroy(_arg0);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) return NULL;
3828 } Py_INCREF(Py_None);
3829 _resultobj = Py_None;
3830 return _resultobj;
3831 }
3832
3833 #define wxPrintout_GetDC(_swigobj) (_swigobj->GetDC())
3834 static PyObject *_wrap_wxPrintout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
3835 PyObject * _resultobj;
3836 wxDC * _result;
3837 wxPyPrintout * _arg0;
3838 PyObject * _argo0 = 0;
3839 char *_kwnames[] = { "self", NULL };
3840
3841 self = self;
3842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetDC",_kwnames,&_argo0))
3843 return NULL;
3844 if (_argo0) {
3845 if (_argo0 == Py_None) { _arg0 = NULL; }
3846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetDC. Expected _wxPyPrintout_p.");
3848 return NULL;
3849 }
3850 }
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 _result = (wxDC *)wxPrintout_GetDC(_arg0);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) return NULL;
3857 }{ _resultobj = wxPyMake_wxObject(_result); }
3858 return _resultobj;
3859 }
3860
3861 #define wxPrintout_GetPageSizeMM(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizeMM(_swigarg0,_swigarg1))
3862 static PyObject *_wrap_wxPrintout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3863 PyObject * _resultobj;
3864 wxPyPrintout * _arg0;
3865 int * _arg1;
3866 int temp;
3867 int * _arg2;
3868 int temp0;
3869 PyObject * _argo0 = 0;
3870 char *_kwnames[] = { "self", NULL };
3871
3872 self = self;
3873 {
3874 _arg1 = &temp;
3875 }
3876 {
3877 _arg2 = &temp0;
3878 }
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizeMM",_kwnames,&_argo0))
3880 return NULL;
3881 if (_argo0) {
3882 if (_argo0 == Py_None) { _arg0 = NULL; }
3883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizeMM. Expected _wxPyPrintout_p.");
3885 return NULL;
3886 }
3887 }
3888 {
3889 PyThreadState* __tstate = wxPyBeginAllowThreads();
3890 wxPrintout_GetPageSizeMM(_arg0,_arg1,_arg2);
3891
3892 wxPyEndAllowThreads(__tstate);
3893 if (PyErr_Occurred()) return NULL;
3894 } Py_INCREF(Py_None);
3895 _resultobj = Py_None;
3896 {
3897 PyObject *o;
3898 o = PyInt_FromLong((long) (*_arg1));
3899 _resultobj = t_output_helper(_resultobj, o);
3900 }
3901 {
3902 PyObject *o;
3903 o = PyInt_FromLong((long) (*_arg2));
3904 _resultobj = t_output_helper(_resultobj, o);
3905 }
3906 return _resultobj;
3907 }
3908
3909 #define wxPrintout_GetPageSizePixels(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizePixels(_swigarg0,_swigarg1))
3910 static PyObject *_wrap_wxPrintout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) {
3911 PyObject * _resultobj;
3912 wxPyPrintout * _arg0;
3913 int * _arg1;
3914 int temp;
3915 int * _arg2;
3916 int temp0;
3917 PyObject * _argo0 = 0;
3918 char *_kwnames[] = { "self", NULL };
3919
3920 self = self;
3921 {
3922 _arg1 = &temp;
3923 }
3924 {
3925 _arg2 = &temp0;
3926 }
3927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizePixels",_kwnames,&_argo0))
3928 return NULL;
3929 if (_argo0) {
3930 if (_argo0 == Py_None) { _arg0 = NULL; }
3931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizePixels. Expected _wxPyPrintout_p.");
3933 return NULL;
3934 }
3935 }
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 wxPrintout_GetPageSizePixels(_arg0,_arg1,_arg2);
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) return NULL;
3942 } Py_INCREF(Py_None);
3943 _resultobj = Py_None;
3944 {
3945 PyObject *o;
3946 o = PyInt_FromLong((long) (*_arg1));
3947 _resultobj = t_output_helper(_resultobj, o);
3948 }
3949 {
3950 PyObject *o;
3951 o = PyInt_FromLong((long) (*_arg2));
3952 _resultobj = t_output_helper(_resultobj, o);
3953 }
3954 return _resultobj;
3955 }
3956
3957 #define wxPrintout_GetPPIPrinter(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIPrinter(_swigarg0,_swigarg1))
3958 static PyObject *_wrap_wxPrintout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject * _resultobj;
3960 wxPyPrintout * _arg0;
3961 int * _arg1;
3962 int temp;
3963 int * _arg2;
3964 int temp0;
3965 PyObject * _argo0 = 0;
3966 char *_kwnames[] = { "self", NULL };
3967
3968 self = self;
3969 {
3970 _arg1 = &temp;
3971 }
3972 {
3973 _arg2 = &temp0;
3974 }
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIPrinter",_kwnames,&_argo0))
3976 return NULL;
3977 if (_argo0) {
3978 if (_argo0 == Py_None) { _arg0 = NULL; }
3979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
3980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIPrinter. Expected _wxPyPrintout_p.");
3981 return NULL;
3982 }
3983 }
3984 {
3985 PyThreadState* __tstate = wxPyBeginAllowThreads();
3986 wxPrintout_GetPPIPrinter(_arg0,_arg1,_arg2);
3987
3988 wxPyEndAllowThreads(__tstate);
3989 if (PyErr_Occurred()) return NULL;
3990 } Py_INCREF(Py_None);
3991 _resultobj = Py_None;
3992 {
3993 PyObject *o;
3994 o = PyInt_FromLong((long) (*_arg1));
3995 _resultobj = t_output_helper(_resultobj, o);
3996 }
3997 {
3998 PyObject *o;
3999 o = PyInt_FromLong((long) (*_arg2));
4000 _resultobj = t_output_helper(_resultobj, o);
4001 }
4002 return _resultobj;
4003 }
4004
4005 #define wxPrintout_GetPPIScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIScreen(_swigarg0,_swigarg1))
4006 static PyObject *_wrap_wxPrintout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
4007 PyObject * _resultobj;
4008 wxPyPrintout * _arg0;
4009 int * _arg1;
4010 int temp;
4011 int * _arg2;
4012 int temp0;
4013 PyObject * _argo0 = 0;
4014 char *_kwnames[] = { "self", NULL };
4015
4016 self = self;
4017 {
4018 _arg1 = &temp;
4019 }
4020 {
4021 _arg2 = &temp0;
4022 }
4023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIScreen",_kwnames,&_argo0))
4024 return NULL;
4025 if (_argo0) {
4026 if (_argo0 == Py_None) { _arg0 = NULL; }
4027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIScreen. Expected _wxPyPrintout_p.");
4029 return NULL;
4030 }
4031 }
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 wxPrintout_GetPPIScreen(_arg0,_arg1,_arg2);
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) return NULL;
4038 } Py_INCREF(Py_None);
4039 _resultobj = Py_None;
4040 {
4041 PyObject *o;
4042 o = PyInt_FromLong((long) (*_arg1));
4043 _resultobj = t_output_helper(_resultobj, o);
4044 }
4045 {
4046 PyObject *o;
4047 o = PyInt_FromLong((long) (*_arg2));
4048 _resultobj = t_output_helper(_resultobj, o);
4049 }
4050 return _resultobj;
4051 }
4052
4053 #define wxPrintout_IsPreview(_swigobj) (_swigobj->IsPreview())
4054 static PyObject *_wrap_wxPrintout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
4055 PyObject * _resultobj;
4056 bool _result;
4057 wxPyPrintout * _arg0;
4058 PyObject * _argo0 = 0;
4059 char *_kwnames[] = { "self", NULL };
4060
4061 self = self;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_IsPreview",_kwnames,&_argo0))
4063 return NULL;
4064 if (_argo0) {
4065 if (_argo0 == Py_None) { _arg0 = NULL; }
4066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_IsPreview. Expected _wxPyPrintout_p.");
4068 return NULL;
4069 }
4070 }
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 _result = (bool )wxPrintout_IsPreview(_arg0);
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) return NULL;
4077 } _resultobj = Py_BuildValue("i",_result);
4078 return _resultobj;
4079 }
4080
4081 #define wxPrintout_base_OnBeginDocument(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginDocument(_swigarg0,_swigarg1))
4082 static PyObject *_wrap_wxPrintout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
4083 PyObject * _resultobj;
4084 bool _result;
4085 wxPyPrintout * _arg0;
4086 int _arg1;
4087 int _arg2;
4088 PyObject * _argo0 = 0;
4089 char *_kwnames[] = { "self","startPage","endPage", NULL };
4090
4091 self = self;
4092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPrintout_base_OnBeginDocument",_kwnames,&_argo0,&_arg1,&_arg2))
4093 return NULL;
4094 if (_argo0) {
4095 if (_argo0 == Py_None) { _arg0 = NULL; }
4096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginDocument. Expected _wxPyPrintout_p.");
4098 return NULL;
4099 }
4100 }
4101 {
4102 PyThreadState* __tstate = wxPyBeginAllowThreads();
4103 _result = (bool )wxPrintout_base_OnBeginDocument(_arg0,_arg1,_arg2);
4104
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) return NULL;
4107 } _resultobj = Py_BuildValue("i",_result);
4108 return _resultobj;
4109 }
4110
4111 #define wxPrintout_base_OnEndDocument(_swigobj) (_swigobj->base_OnEndDocument())
4112 static PyObject *_wrap_wxPrintout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject * _resultobj;
4114 wxPyPrintout * _arg0;
4115 PyObject * _argo0 = 0;
4116 char *_kwnames[] = { "self", NULL };
4117
4118 self = self;
4119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndDocument",_kwnames,&_argo0))
4120 return NULL;
4121 if (_argo0) {
4122 if (_argo0 == Py_None) { _arg0 = NULL; }
4123 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4124 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndDocument. Expected _wxPyPrintout_p.");
4125 return NULL;
4126 }
4127 }
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 wxPrintout_base_OnEndDocument(_arg0);
4131
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) return NULL;
4134 } Py_INCREF(Py_None);
4135 _resultobj = Py_None;
4136 return _resultobj;
4137 }
4138
4139 #define wxPrintout_base_OnBeginPrinting(_swigobj) (_swigobj->base_OnBeginPrinting())
4140 static PyObject *_wrap_wxPrintout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4141 PyObject * _resultobj;
4142 wxPyPrintout * _arg0;
4143 PyObject * _argo0 = 0;
4144 char *_kwnames[] = { "self", NULL };
4145
4146 self = self;
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnBeginPrinting",_kwnames,&_argo0))
4148 return NULL;
4149 if (_argo0) {
4150 if (_argo0 == Py_None) { _arg0 = NULL; }
4151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginPrinting. Expected _wxPyPrintout_p.");
4153 return NULL;
4154 }
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 wxPrintout_base_OnBeginPrinting(_arg0);
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) return NULL;
4162 } Py_INCREF(Py_None);
4163 _resultobj = Py_None;
4164 return _resultobj;
4165 }
4166
4167 #define wxPrintout_base_OnEndPrinting(_swigobj) (_swigobj->base_OnEndPrinting())
4168 static PyObject *_wrap_wxPrintout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4169 PyObject * _resultobj;
4170 wxPyPrintout * _arg0;
4171 PyObject * _argo0 = 0;
4172 char *_kwnames[] = { "self", NULL };
4173
4174 self = self;
4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndPrinting",_kwnames,&_argo0))
4176 return NULL;
4177 if (_argo0) {
4178 if (_argo0 == Py_None) { _arg0 = NULL; }
4179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndPrinting. Expected _wxPyPrintout_p.");
4181 return NULL;
4182 }
4183 }
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 wxPrintout_base_OnEndPrinting(_arg0);
4187
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) return NULL;
4190 } Py_INCREF(Py_None);
4191 _resultobj = Py_None;
4192 return _resultobj;
4193 }
4194
4195 #define wxPrintout_base_OnPreparePrinting(_swigobj) (_swigobj->base_OnPreparePrinting())
4196 static PyObject *_wrap_wxPrintout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4197 PyObject * _resultobj;
4198 wxPyPrintout * _arg0;
4199 PyObject * _argo0 = 0;
4200 char *_kwnames[] = { "self", NULL };
4201
4202 self = self;
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnPreparePrinting",_kwnames,&_argo0))
4204 return NULL;
4205 if (_argo0) {
4206 if (_argo0 == Py_None) { _arg0 = NULL; }
4207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnPreparePrinting. Expected _wxPyPrintout_p.");
4209 return NULL;
4210 }
4211 }
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 wxPrintout_base_OnPreparePrinting(_arg0);
4215
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) return NULL;
4218 } Py_INCREF(Py_None);
4219 _resultobj = Py_None;
4220 return _resultobj;
4221 }
4222
4223 #define wxPrintout_base_GetPageInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_GetPageInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4224 static PyObject *_wrap_wxPrintout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4225 PyObject * _resultobj;
4226 wxPyPrintout * _arg0;
4227 int * _arg1;
4228 int temp;
4229 int * _arg2;
4230 int temp0;
4231 int * _arg3;
4232 int temp1;
4233 int * _arg4;
4234 int temp2;
4235 PyObject * _argo0 = 0;
4236 char *_kwnames[] = { "self", NULL };
4237
4238 self = self;
4239 {
4240 _arg1 = &temp;
4241 }
4242 {
4243 _arg2 = &temp0;
4244 }
4245 {
4246 _arg3 = &temp1;
4247 }
4248 {
4249 _arg4 = &temp2;
4250 }
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_GetPageInfo",_kwnames,&_argo0))
4252 return NULL;
4253 if (_argo0) {
4254 if (_argo0 == Py_None) { _arg0 = NULL; }
4255 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4256 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_GetPageInfo. Expected _wxPyPrintout_p.");
4257 return NULL;
4258 }
4259 }
4260 {
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 wxPrintout_base_GetPageInfo(_arg0,_arg1,_arg2,_arg3,_arg4);
4263
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) return NULL;
4266 } Py_INCREF(Py_None);
4267 _resultobj = Py_None;
4268 {
4269 PyObject *o;
4270 o = PyInt_FromLong((long) (*_arg1));
4271 _resultobj = t_output_helper(_resultobj, o);
4272 }
4273 {
4274 PyObject *o;
4275 o = PyInt_FromLong((long) (*_arg2));
4276 _resultobj = t_output_helper(_resultobj, o);
4277 }
4278 {
4279 PyObject *o;
4280 o = PyInt_FromLong((long) (*_arg3));
4281 _resultobj = t_output_helper(_resultobj, o);
4282 }
4283 {
4284 PyObject *o;
4285 o = PyInt_FromLong((long) (*_arg4));
4286 _resultobj = t_output_helper(_resultobj, o);
4287 }
4288 return _resultobj;
4289 }
4290
4291 #define wxPrintout_base_HasPage(_swigobj,_swigarg0) (_swigobj->base_HasPage(_swigarg0))
4292 static PyObject *_wrap_wxPrintout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4293 PyObject * _resultobj;
4294 bool _result;
4295 wxPyPrintout * _arg0;
4296 int _arg1;
4297 PyObject * _argo0 = 0;
4298 char *_kwnames[] = { "self","page", NULL };
4299
4300 self = self;
4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintout_base_HasPage",_kwnames,&_argo0,&_arg1))
4302 return NULL;
4303 if (_argo0) {
4304 if (_argo0 == Py_None) { _arg0 = NULL; }
4305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_HasPage. Expected _wxPyPrintout_p.");
4307 return NULL;
4308 }
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 _result = (bool )wxPrintout_base_HasPage(_arg0,_arg1);
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) return NULL;
4316 } _resultobj = Py_BuildValue("i",_result);
4317 return _resultobj;
4318 }
4319
4320 static void *SwigwxPrinterTowxObject(void *ptr) {
4321 wxPrinter *src;
4322 wxObject *dest;
4323 src = (wxPrinter *) ptr;
4324 dest = (wxObject *) src;
4325 return (void *) dest;
4326 }
4327
4328 #define new_wxPrinter(_swigarg0) (new wxPrinter(_swigarg0))
4329 static PyObject *_wrap_new_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
4330 PyObject * _resultobj;
4331 wxPrinter * _result;
4332 wxPrintDialogData * _arg0 = (wxPrintDialogData *) NULL;
4333 PyObject * _argo0 = 0;
4334 char *_kwnames[] = { "data", NULL };
4335 char _ptemp[128];
4336
4337 self = self;
4338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrinter",_kwnames,&_argo0))
4339 return NULL;
4340 if (_argo0) {
4341 if (_argo0 == Py_None) { _arg0 = NULL; }
4342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) {
4343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrinter. Expected _wxPrintDialogData_p.");
4344 return NULL;
4345 }
4346 }
4347 {
4348 PyThreadState* __tstate = wxPyBeginAllowThreads();
4349 _result = (wxPrinter *)new_wxPrinter(_arg0);
4350
4351 wxPyEndAllowThreads(__tstate);
4352 if (PyErr_Occurred()) return NULL;
4353 } if (_result) {
4354 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinter_p");
4355 _resultobj = Py_BuildValue("s",_ptemp);
4356 } else {
4357 Py_INCREF(Py_None);
4358 _resultobj = Py_None;
4359 }
4360 return _resultobj;
4361 }
4362
4363 #define delete_wxPrinter(_swigobj) (delete _swigobj)
4364 static PyObject *_wrap_delete_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) {
4365 PyObject * _resultobj;
4366 wxPrinter * _arg0;
4367 PyObject * _argo0 = 0;
4368 char *_kwnames[] = { "self", NULL };
4369
4370 self = self;
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrinter",_kwnames,&_argo0))
4372 return NULL;
4373 if (_argo0) {
4374 if (_argo0 == Py_None) { _arg0 = NULL; }
4375 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4376 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrinter. Expected _wxPrinter_p.");
4377 return NULL;
4378 }
4379 }
4380 {
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 delete_wxPrinter(_arg0);
4383
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) return NULL;
4386 } Py_INCREF(Py_None);
4387 _resultobj = Py_None;
4388 return _resultobj;
4389 }
4390
4391 #define wxPrinter_CreateAbortWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateAbortWindow(_swigarg0,_swigarg1))
4392 static PyObject *_wrap_wxPrinter_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4393 PyObject * _resultobj;
4394 wxPrinter * _arg0;
4395 wxWindow * _arg1;
4396 wxPyPrintout * _arg2;
4397 PyObject * _argo0 = 0;
4398 PyObject * _argo1 = 0;
4399 PyObject * _argo2 = 0;
4400 char *_kwnames[] = { "self","parent","printout", NULL };
4401
4402 self = self;
4403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrinter_CreateAbortWindow",_kwnames,&_argo0,&_argo1,&_argo2))
4404 return NULL;
4405 if (_argo0) {
4406 if (_argo0 == Py_None) { _arg0 = NULL; }
4407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_CreateAbortWindow. Expected _wxPrinter_p.");
4409 return NULL;
4410 }
4411 }
4412 if (_argo1) {
4413 if (_argo1 == Py_None) { _arg1 = NULL; }
4414 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4415 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_CreateAbortWindow. Expected _wxWindow_p.");
4416 return NULL;
4417 }
4418 }
4419 if (_argo2) {
4420 if (_argo2 == Py_None) { _arg2 = NULL; }
4421 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4422 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_CreateAbortWindow. Expected _wxPyPrintout_p.");
4423 return NULL;
4424 }
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 wxPrinter_CreateAbortWindow(_arg0,_arg1,_arg2);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) return NULL;
4432 } Py_INCREF(Py_None);
4433 _resultobj = Py_None;
4434 return _resultobj;
4435 }
4436
4437 #define wxPrinter_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
4438 static PyObject *_wrap_wxPrinter_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
4439 PyObject * _resultobj;
4440 wxPrintDialogData * _result;
4441 wxPrinter * _arg0;
4442 PyObject * _argo0 = 0;
4443 char *_kwnames[] = { "self", NULL };
4444 char _ptemp[128];
4445
4446 self = self;
4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrinter_GetPrintDialogData",_kwnames,&_argo0))
4448 return NULL;
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_GetPrintDialogData. Expected _wxPrinter_p.");
4453 return NULL;
4454 }
4455 }
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 wxPrintDialogData & _result_ref = wxPrinter_GetPrintDialogData(_arg0);
4459 _result = (wxPrintDialogData *) &_result_ref;
4460
4461 wxPyEndAllowThreads(__tstate);
4462 if (PyErr_Occurred()) return NULL;
4463 } if (_result) {
4464 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
4465 _resultobj = Py_BuildValue("s",_ptemp);
4466 } else {
4467 Py_INCREF(Py_None);
4468 _resultobj = Py_None;
4469 }
4470 return _resultobj;
4471 }
4472
4473 #define wxPrinter_Print(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Print(_swigarg0,_swigarg1,_swigarg2))
4474 static PyObject *_wrap_wxPrinter_Print(PyObject *self, PyObject *args, PyObject *kwargs) {
4475 PyObject * _resultobj;
4476 bool _result;
4477 wxPrinter * _arg0;
4478 wxWindow * _arg1;
4479 wxPyPrintout * _arg2;
4480 int _arg3 = (int ) TRUE;
4481 PyObject * _argo0 = 0;
4482 PyObject * _argo1 = 0;
4483 PyObject * _argo2 = 0;
4484 char *_kwnames[] = { "self","parent","printout","prompt", NULL };
4485
4486 self = self;
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPrinter_Print",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3))
4488 return NULL;
4489 if (_argo0) {
4490 if (_argo0 == Py_None) { _arg0 = NULL; }
4491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Print. Expected _wxPrinter_p.");
4493 return NULL;
4494 }
4495 }
4496 if (_argo1) {
4497 if (_argo1 == Py_None) { _arg1 = NULL; }
4498 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4499 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Print. Expected _wxWindow_p.");
4500 return NULL;
4501 }
4502 }
4503 if (_argo2) {
4504 if (_argo2 == Py_None) { _arg2 = NULL; }
4505 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4506 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_Print. Expected _wxPyPrintout_p.");
4507 return NULL;
4508 }
4509 }
4510 {
4511 PyThreadState* __tstate = wxPyBeginAllowThreads();
4512 _result = (bool )wxPrinter_Print(_arg0,_arg1,_arg2,_arg3);
4513
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) return NULL;
4516 } _resultobj = Py_BuildValue("i",_result);
4517 return _resultobj;
4518 }
4519
4520 #define wxPrinter_PrintDialog(_swigobj,_swigarg0) (_swigobj->PrintDialog(_swigarg0))
4521 static PyObject *_wrap_wxPrinter_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
4522 PyObject * _resultobj;
4523 wxDC * _result;
4524 wxPrinter * _arg0;
4525 wxWindow * _arg1;
4526 PyObject * _argo0 = 0;
4527 PyObject * _argo1 = 0;
4528 char *_kwnames[] = { "self","parent", NULL };
4529
4530 self = self;
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_PrintDialog",_kwnames,&_argo0,&_argo1))
4532 return NULL;
4533 if (_argo0) {
4534 if (_argo0 == Py_None) { _arg0 = NULL; }
4535 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4536 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_PrintDialog. Expected _wxPrinter_p.");
4537 return NULL;
4538 }
4539 }
4540 if (_argo1) {
4541 if (_argo1 == Py_None) { _arg1 = NULL; }
4542 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4543 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_PrintDialog. Expected _wxWindow_p.");
4544 return NULL;
4545 }
4546 }
4547 {
4548 PyThreadState* __tstate = wxPyBeginAllowThreads();
4549 _result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1);
4550
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) return NULL;
4553 }{ _resultobj = wxPyMake_wxObject(_result); }
4554 return _resultobj;
4555 }
4556
4557 #define wxPrinter_ReportError(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ReportError(_swigarg0,_swigarg1,_swigarg2))
4558 static PyObject *_wrap_wxPrinter_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) {
4559 PyObject * _resultobj;
4560 wxPrinter * _arg0;
4561 wxWindow * _arg1;
4562 wxPyPrintout * _arg2;
4563 wxString * _arg3;
4564 PyObject * _argo0 = 0;
4565 PyObject * _argo1 = 0;
4566 PyObject * _argo2 = 0;
4567 PyObject * _obj3 = 0;
4568 char *_kwnames[] = { "self","parent","printout","message", NULL };
4569
4570 self = self;
4571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxPrinter_ReportError",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
4572 return NULL;
4573 if (_argo0) {
4574 if (_argo0 == Py_None) { _arg0 = NULL; }
4575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_ReportError. Expected _wxPrinter_p.");
4577 return NULL;
4578 }
4579 }
4580 if (_argo1) {
4581 if (_argo1 == Py_None) { _arg1 = NULL; }
4582 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4583 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_ReportError. Expected _wxWindow_p.");
4584 return NULL;
4585 }
4586 }
4587 if (_argo2) {
4588 if (_argo2 == Py_None) { _arg2 = NULL; }
4589 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) {
4590 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_ReportError. Expected _wxPyPrintout_p.");
4591 return NULL;
4592 }
4593 }
4594 {
4595 _arg3 = wxString_in_helper(_obj3);
4596 if (_arg3 == NULL)
4597 return NULL;
4598 }
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 wxPrinter_ReportError(_arg0,_arg1,_arg2,*_arg3);
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) return NULL;
4605 } Py_INCREF(Py_None);
4606 _resultobj = Py_None;
4607 {
4608 if (_obj3)
4609 delete _arg3;
4610 }
4611 return _resultobj;
4612 }
4613
4614 #define wxPrinter_Setup(_swigobj,_swigarg0) (_swigobj->Setup(_swigarg0))
4615 static PyObject *_wrap_wxPrinter_Setup(PyObject *self, PyObject *args, PyObject *kwargs) {
4616 PyObject * _resultobj;
4617 bool _result;
4618 wxPrinter * _arg0;
4619 wxWindow * _arg1;
4620 PyObject * _argo0 = 0;
4621 PyObject * _argo1 = 0;
4622 char *_kwnames[] = { "self","parent", NULL };
4623
4624 self = self;
4625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_Setup",_kwnames,&_argo0,&_argo1))
4626 return NULL;
4627 if (_argo0) {
4628 if (_argo0 == Py_None) { _arg0 = NULL; }
4629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) {
4630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Setup. Expected _wxPrinter_p.");
4631 return NULL;
4632 }
4633 }
4634 if (_argo1) {
4635 if (_argo1 == Py_None) { _arg1 = NULL; }
4636 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4637 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Setup. Expected _wxWindow_p.");
4638 return NULL;
4639 }
4640 }
4641 {
4642 PyThreadState* __tstate = wxPyBeginAllowThreads();
4643 _result = (bool )wxPrinter_Setup(_arg0,_arg1);
4644
4645 wxPyEndAllowThreads(__tstate);
4646 if (PyErr_Occurred()) return NULL;
4647 } _resultobj = Py_BuildValue("i",_result);
4648 return _resultobj;
4649 }
4650
4651 static void *SwigwxPrintPreviewTowxObject(void *ptr) {
4652 wxPrintPreview *src;
4653 wxObject *dest;
4654 src = (wxPrintPreview *) ptr;
4655 dest = (wxObject *) src;
4656 return (void *) dest;
4657 }
4658
4659 #define new_wxPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPrintPreview(_swigarg0,_swigarg1,_swigarg2))
4660 static PyObject *_wrap_new_wxPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) {
4661 PyObject * _resultobj;
4662 wxPrintPreview * _result;
4663 wxPyPrintout * _arg0;
4664 wxPyPrintout * _arg1;
4665 wxPrintData * _arg2 = (wxPrintData *) NULL;
4666 PyObject * _argo0 = 0;
4667 PyObject * _argo1 = 0;
4668 PyObject * _argo2 = 0;
4669 char *_kwnames[] = { "printout","printoutForPrinting","data", NULL };
4670 char _ptemp[128];
4671
4672 self = self;
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:new_wxPrintPreview",_kwnames,&_argo0,&_argo1,&_argo2))
4674 return NULL;
4675 if (_argo0) {
4676 if (_argo0 == Py_None) { _arg0 = NULL; }
4677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) {
4678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
4679 return NULL;
4680 }
4681 }
4682 if (_argo1) {
4683 if (_argo1 == Py_None) { _arg1 = NULL; }
4684 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) {
4685 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
4686 return NULL;
4687 }
4688 }
4689 if (_argo2) {
4690 if (_argo2 == Py_None) { _arg2 = NULL; }
4691 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPrintData_p")) {
4692 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPrintPreview. Expected _wxPrintData_p.");
4693 return NULL;
4694 }
4695 }
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 _result = (wxPrintPreview *)new_wxPrintPreview(_arg0,_arg1,_arg2);
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) return NULL;
4702 } if (_result) {
4703 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p");
4704 _resultobj = Py_BuildValue("s",_ptemp);
4705 } else {
4706 Py_INCREF(Py_None);
4707 _resultobj = Py_None;
4708 }
4709 return _resultobj;
4710 }
4711
4712 #define wxPrintPreview_GetCanvas(_swigobj) (_swigobj->GetCanvas())
4713 static PyObject *_wrap_wxPrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject * _resultobj;
4715 wxWindow * _result;
4716 wxPrintPreview * _arg0;
4717 PyObject * _argo0 = 0;
4718 char *_kwnames[] = { "self", NULL };
4719
4720 self = self;
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCanvas",_kwnames,&_argo0))
4722 return NULL;
4723 if (_argo0) {
4724 if (_argo0 == Py_None) { _arg0 = NULL; }
4725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCanvas. Expected _wxPrintPreview_p.");
4727 return NULL;
4728 }
4729 }
4730 {
4731 PyThreadState* __tstate = wxPyBeginAllowThreads();
4732 _result = (wxWindow *)wxPrintPreview_GetCanvas(_arg0);
4733
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) return NULL;
4736 }{ _resultobj = wxPyMake_wxObject(_result); }
4737 return _resultobj;
4738 }
4739
4740 #define wxPrintPreview_GetCurrentPage(_swigobj) (_swigobj->GetCurrentPage())
4741 static PyObject *_wrap_wxPrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4742 PyObject * _resultobj;
4743 int _result;
4744 wxPrintPreview * _arg0;
4745 PyObject * _argo0 = 0;
4746 char *_kwnames[] = { "self", NULL };
4747
4748 self = self;
4749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCurrentPage",_kwnames,&_argo0))
4750 return NULL;
4751 if (_argo0) {
4752 if (_argo0 == Py_None) { _arg0 = NULL; }
4753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCurrentPage. Expected _wxPrintPreview_p.");
4755 return NULL;
4756 }
4757 }
4758 {
4759 PyThreadState* __tstate = wxPyBeginAllowThreads();
4760 _result = (int )wxPrintPreview_GetCurrentPage(_arg0);
4761
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) return NULL;
4764 } _resultobj = Py_BuildValue("i",_result);
4765 return _resultobj;
4766 }
4767
4768 #define wxPrintPreview_GetFrame(_swigobj) (_swigobj->GetFrame())
4769 static PyObject *_wrap_wxPrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
4770 PyObject * _resultobj;
4771 wxFrame * _result;
4772 wxPrintPreview * _arg0;
4773 PyObject * _argo0 = 0;
4774 char *_kwnames[] = { "self", NULL };
4775
4776 self = self;
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetFrame",_kwnames,&_argo0))
4778 return NULL;
4779 if (_argo0) {
4780 if (_argo0 == Py_None) { _arg0 = NULL; }
4781 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4782 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetFrame. Expected _wxPrintPreview_p.");
4783 return NULL;
4784 }
4785 }
4786 {
4787 PyThreadState* __tstate = wxPyBeginAllowThreads();
4788 _result = (wxFrame *)wxPrintPreview_GetFrame(_arg0);
4789
4790 wxPyEndAllowThreads(__tstate);
4791 if (PyErr_Occurred()) return NULL;
4792 }{ _resultobj = wxPyMake_wxObject(_result); }
4793 return _resultobj;
4794 }
4795
4796 #define wxPrintPreview_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
4797 static PyObject *_wrap_wxPrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4798 PyObject * _resultobj;
4799 int _result;
4800 wxPrintPreview * _arg0;
4801 PyObject * _argo0 = 0;
4802 char *_kwnames[] = { "self", NULL };
4803
4804 self = self;
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMaxPage",_kwnames,&_argo0))
4806 return NULL;
4807 if (_argo0) {
4808 if (_argo0 == Py_None) { _arg0 = NULL; }
4809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMaxPage. Expected _wxPrintPreview_p.");
4811 return NULL;
4812 }
4813 }
4814 {
4815 PyThreadState* __tstate = wxPyBeginAllowThreads();
4816 _result = (int )wxPrintPreview_GetMaxPage(_arg0);
4817
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) return NULL;
4820 } _resultobj = Py_BuildValue("i",_result);
4821 return _resultobj;
4822 }
4823
4824 #define wxPrintPreview_GetMinPage(_swigobj) (_swigobj->GetMinPage())
4825 static PyObject *_wrap_wxPrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) {
4826 PyObject * _resultobj;
4827 int _result;
4828 wxPrintPreview * _arg0;
4829 PyObject * _argo0 = 0;
4830 char *_kwnames[] = { "self", NULL };
4831
4832 self = self;
4833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMinPage",_kwnames,&_argo0))
4834 return NULL;
4835 if (_argo0) {
4836 if (_argo0 == Py_None) { _arg0 = NULL; }
4837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMinPage. Expected _wxPrintPreview_p.");
4839 return NULL;
4840 }
4841 }
4842 {
4843 PyThreadState* __tstate = wxPyBeginAllowThreads();
4844 _result = (int )wxPrintPreview_GetMinPage(_arg0);
4845
4846 wxPyEndAllowThreads(__tstate);
4847 if (PyErr_Occurred()) return NULL;
4848 } _resultobj = Py_BuildValue("i",_result);
4849 return _resultobj;
4850 }
4851
4852 #define wxPrintPreview_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
4853 static PyObject *_wrap_wxPrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) {
4854 PyObject * _resultobj;
4855 wxPrintDialogData * _result;
4856 wxPrintPreview * _arg0;
4857 PyObject * _argo0 = 0;
4858 char *_kwnames[] = { "self", NULL };
4859 char _ptemp[128];
4860
4861 self = self;
4862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintDialogData",_kwnames,&_argo0))
4863 return NULL;
4864 if (_argo0) {
4865 if (_argo0 == Py_None) { _arg0 = NULL; }
4866 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4867 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintDialogData. Expected _wxPrintPreview_p.");
4868 return NULL;
4869 }
4870 }
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 wxPrintDialogData & _result_ref = wxPrintPreview_GetPrintDialogData(_arg0);
4874 _result = (wxPrintDialogData *) &_result_ref;
4875
4876 wxPyEndAllowThreads(__tstate);
4877 if (PyErr_Occurred()) return NULL;
4878 } if (_result) {
4879 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p");
4880 _resultobj = Py_BuildValue("s",_ptemp);
4881 } else {
4882 Py_INCREF(Py_None);
4883 _resultobj = Py_None;
4884 }
4885 return _resultobj;
4886 }
4887
4888 #define wxPrintPreview_GetPrintout(_swigobj) (_swigobj->GetPrintout())
4889 static PyObject *_wrap_wxPrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
4890 PyObject * _resultobj;
4891 wxPyPrintout * _result;
4892 wxPrintPreview * _arg0;
4893 PyObject * _argo0 = 0;
4894 char *_kwnames[] = { "self", NULL };
4895
4896 self = self;
4897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintout",_kwnames,&_argo0))
4898 return NULL;
4899 if (_argo0) {
4900 if (_argo0 == Py_None) { _arg0 = NULL; }
4901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintout. Expected _wxPrintPreview_p.");
4903 return NULL;
4904 }
4905 }
4906 {
4907 PyThreadState* __tstate = wxPyBeginAllowThreads();
4908 _result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0);
4909
4910 wxPyEndAllowThreads(__tstate);
4911 if (PyErr_Occurred()) return NULL;
4912 }{ _resultobj = wxPyMake_wxObject(_result); }
4913 return _resultobj;
4914 }
4915
4916 #define wxPrintPreview_GetPrintoutForPrinting(_swigobj) (_swigobj->GetPrintoutForPrinting())
4917 static PyObject *_wrap_wxPrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) {
4918 PyObject * _resultobj;
4919 wxPyPrintout * _result;
4920 wxPrintPreview * _arg0;
4921 PyObject * _argo0 = 0;
4922 char *_kwnames[] = { "self", NULL };
4923
4924 self = self;
4925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintoutForPrinting",_kwnames,&_argo0))
4926 return NULL;
4927 if (_argo0) {
4928 if (_argo0 == Py_None) { _arg0 = NULL; }
4929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintoutForPrinting. Expected _wxPrintPreview_p.");
4931 return NULL;
4932 }
4933 }
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 _result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0);
4937
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) return NULL;
4940 }{ _resultobj = wxPyMake_wxObject(_result); }
4941 return _resultobj;
4942 }
4943
4944 #define wxPrintPreview_GetZoom(_swigobj) (_swigobj->GetZoom())
4945 static PyObject *_wrap_wxPrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) {
4946 PyObject * _resultobj;
4947 int _result;
4948 wxPrintPreview * _arg0;
4949 PyObject * _argo0 = 0;
4950 char *_kwnames[] = { "self", NULL };
4951
4952 self = self;
4953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetZoom",_kwnames,&_argo0))
4954 return NULL;
4955 if (_argo0) {
4956 if (_argo0 == Py_None) { _arg0 = NULL; }
4957 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4958 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetZoom. Expected _wxPrintPreview_p.");
4959 return NULL;
4960 }
4961 }
4962 {
4963 PyThreadState* __tstate = wxPyBeginAllowThreads();
4964 _result = (int )wxPrintPreview_GetZoom(_arg0);
4965
4966 wxPyEndAllowThreads(__tstate);
4967 if (PyErr_Occurred()) return NULL;
4968 } _resultobj = Py_BuildValue("i",_result);
4969 return _resultobj;
4970 }
4971
4972 #define wxPrintPreview_Ok(_swigobj) (_swigobj->Ok())
4973 static PyObject *_wrap_wxPrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject * _resultobj;
4975 bool _result;
4976 wxPrintPreview * _arg0;
4977 PyObject * _argo0 = 0;
4978 char *_kwnames[] = { "self", NULL };
4979
4980 self = self;
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_Ok",_kwnames,&_argo0))
4982 return NULL;
4983 if (_argo0) {
4984 if (_argo0 == Py_None) { _arg0 = NULL; }
4985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
4986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Ok. Expected _wxPrintPreview_p.");
4987 return NULL;
4988 }
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 _result = (bool )wxPrintPreview_Ok(_arg0);
4993
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) return NULL;
4996 } _resultobj = Py_BuildValue("i",_result);
4997 return _resultobj;
4998 }
4999
5000 #define wxPrintPreview_Print(_swigobj,_swigarg0) (_swigobj->Print(_swigarg0))
5001 static PyObject *_wrap_wxPrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject * _resultobj;
5003 bool _result;
5004 wxPrintPreview * _arg0;
5005 bool _arg1;
5006 PyObject * _argo0 = 0;
5007 int tempbool1;
5008 char *_kwnames[] = { "self","prompt", NULL };
5009
5010 self = self;
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_Print",_kwnames,&_argo0,&tempbool1))
5012 return NULL;
5013 if (_argo0) {
5014 if (_argo0 == Py_None) { _arg0 = NULL; }
5015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Print. Expected _wxPrintPreview_p.");
5017 return NULL;
5018 }
5019 }
5020 _arg1 = (bool ) tempbool1;
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 _result = (bool )wxPrintPreview_Print(_arg0,_arg1);
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) return NULL;
5027 } _resultobj = Py_BuildValue("i",_result);
5028 return _resultobj;
5029 }
5030
5031 #define wxPrintPreview_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
5032 static PyObject *_wrap_wxPrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject * _resultobj;
5034 wxPrintPreview * _arg0;
5035 wxWindow * _arg1;
5036 PyObject * _argo0 = 0;
5037 PyObject * _argo1 = 0;
5038 char *_kwnames[] = { "self","window", NULL };
5039
5040 self = self;
5041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetCanvas",_kwnames,&_argo0,&_argo1))
5042 return NULL;
5043 if (_argo0) {
5044 if (_argo0 == Py_None) { _arg0 = NULL; }
5045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCanvas. Expected _wxPrintPreview_p.");
5047 return NULL;
5048 }
5049 }
5050 if (_argo1) {
5051 if (_argo1 == Py_None) { _arg1 = NULL; }
5052 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5053 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetCanvas. Expected _wxWindow_p.");
5054 return NULL;
5055 }
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 wxPrintPreview_SetCanvas(_arg0,_arg1);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) return NULL;
5063 } Py_INCREF(Py_None);
5064 _resultobj = Py_None;
5065 return _resultobj;
5066 }
5067
5068 #define wxPrintPreview_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->SetCurrentPage(_swigarg0))
5069 static PyObject *_wrap_wxPrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5070 PyObject * _resultobj;
5071 wxPrintPreview * _arg0;
5072 int _arg1;
5073 PyObject * _argo0 = 0;
5074 char *_kwnames[] = { "self","pageNum", NULL };
5075
5076 self = self;
5077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetCurrentPage",_kwnames,&_argo0,&_arg1))
5078 return NULL;
5079 if (_argo0) {
5080 if (_argo0 == Py_None) { _arg0 = NULL; }
5081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCurrentPage. Expected _wxPrintPreview_p.");
5083 return NULL;
5084 }
5085 }
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 wxPrintPreview_SetCurrentPage(_arg0,_arg1);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) return NULL;
5092 } Py_INCREF(Py_None);
5093 _resultobj = Py_None;
5094 return _resultobj;
5095 }
5096
5097 #define wxPrintPreview_SetFrame(_swigobj,_swigarg0) (_swigobj->SetFrame(_swigarg0))
5098 static PyObject *_wrap_wxPrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject * _resultobj;
5100 wxPrintPreview * _arg0;
5101 wxFrame * _arg1;
5102 PyObject * _argo0 = 0;
5103 PyObject * _argo1 = 0;
5104 char *_kwnames[] = { "self","frame", NULL };
5105
5106 self = self;
5107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetFrame",_kwnames,&_argo0,&_argo1))
5108 return NULL;
5109 if (_argo0) {
5110 if (_argo0 == Py_None) { _arg0 = NULL; }
5111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetFrame. Expected _wxPrintPreview_p.");
5113 return NULL;
5114 }
5115 }
5116 if (_argo1) {
5117 if (_argo1 == Py_None) { _arg1 = NULL; }
5118 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
5119 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetFrame. Expected _wxFrame_p.");
5120 return NULL;
5121 }
5122 }
5123 {
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 wxPrintPreview_SetFrame(_arg0,_arg1);
5126
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) return NULL;
5129 } Py_INCREF(Py_None);
5130 _resultobj = Py_None;
5131 return _resultobj;
5132 }
5133
5134 #define wxPrintPreview_SetPrintout(_swigobj,_swigarg0) (_swigobj->SetPrintout(_swigarg0))
5135 static PyObject *_wrap_wxPrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) {
5136 PyObject * _resultobj;
5137 wxPrintPreview * _arg0;
5138 wxPyPrintout * _arg1;
5139 PyObject * _argo0 = 0;
5140 PyObject * _argo1 = 0;
5141 char *_kwnames[] = { "self","printout", NULL };
5142
5143 self = self;
5144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetPrintout",_kwnames,&_argo0,&_argo1))
5145 return NULL;
5146 if (_argo0) {
5147 if (_argo0 == Py_None) { _arg0 = NULL; }
5148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetPrintout. Expected _wxPrintPreview_p.");
5150 return NULL;
5151 }
5152 }
5153 if (_argo1) {
5154 if (_argo1 == Py_None) { _arg1 = NULL; }
5155 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) {
5156 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetPrintout. Expected _wxPyPrintout_p.");
5157 return NULL;
5158 }
5159 }
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 wxPrintPreview_SetPrintout(_arg0,_arg1);
5163
5164 wxPyEndAllowThreads(__tstate);
5165 if (PyErr_Occurred()) return NULL;
5166 } Py_INCREF(Py_None);
5167 _resultobj = Py_None;
5168 return _resultobj;
5169 }
5170
5171 #define wxPrintPreview_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0))
5172 static PyObject *_wrap_wxPrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) {
5173 PyObject * _resultobj;
5174 wxPrintPreview * _arg0;
5175 int _arg1;
5176 PyObject * _argo0 = 0;
5177 char *_kwnames[] = { "self","percent", NULL };
5178
5179 self = self;
5180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetZoom",_kwnames,&_argo0,&_arg1))
5181 return NULL;
5182 if (_argo0) {
5183 if (_argo0 == Py_None) { _arg0 = NULL; }
5184 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5185 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetZoom. Expected _wxPrintPreview_p.");
5186 return NULL;
5187 }
5188 }
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 wxPrintPreview_SetZoom(_arg0,_arg1);
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) return NULL;
5195 } Py_INCREF(Py_None);
5196 _resultobj = Py_None;
5197 return _resultobj;
5198 }
5199
5200 static void *SwigwxPreviewFrameTowxFrame(void *ptr) {
5201 wxPreviewFrame *src;
5202 wxFrame *dest;
5203 src = (wxPreviewFrame *) ptr;
5204 dest = (wxFrame *) src;
5205 return (void *) dest;
5206 }
5207
5208 static void *SwigwxPreviewFrameTowxTopLevelWindow(void *ptr) {
5209 wxPreviewFrame *src;
5210 wxTopLevelWindow *dest;
5211 src = (wxPreviewFrame *) ptr;
5212 dest = (wxTopLevelWindow *) src;
5213 return (void *) dest;
5214 }
5215
5216 static void *SwigwxPreviewFrameTowxWindow(void *ptr) {
5217 wxPreviewFrame *src;
5218 wxWindow *dest;
5219 src = (wxPreviewFrame *) ptr;
5220 dest = (wxWindow *) src;
5221 return (void *) dest;
5222 }
5223
5224 static void *SwigwxPreviewFrameTowxEvtHandler(void *ptr) {
5225 wxPreviewFrame *src;
5226 wxEvtHandler *dest;
5227 src = (wxPreviewFrame *) ptr;
5228 dest = (wxEvtHandler *) src;
5229 return (void *) dest;
5230 }
5231
5232 static void *SwigwxPreviewFrameTowxObject(void *ptr) {
5233 wxPreviewFrame *src;
5234 wxObject *dest;
5235 src = (wxPreviewFrame *) ptr;
5236 dest = (wxObject *) src;
5237 return (void *) dest;
5238 }
5239
5240 #define new_wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5241 static PyObject *_wrap_new_wxPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject * _resultobj;
5243 wxPreviewFrame * _result;
5244 wxPrintPreview * _arg0;
5245 wxFrame * _arg1;
5246 wxString * _arg2;
5247 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5248 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5249 long _arg5 = (long ) wxDEFAULT_FRAME_STYLE;
5250 wxString * _arg6 = (wxString *) &wxPyFrameNameStr;
5251 PyObject * _argo0 = 0;
5252 PyObject * _argo1 = 0;
5253 PyObject * _obj2 = 0;
5254 wxPoint temp;
5255 PyObject * _obj3 = 0;
5256 wxSize temp0;
5257 PyObject * _obj4 = 0;
5258 PyObject * _obj6 = 0;
5259 char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL };
5260 char _ptemp[128];
5261
5262 self = self;
5263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6))
5264 return NULL;
5265 if (_argo0) {
5266 if (_argo0 == Py_None) { _arg0 = NULL; }
5267 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) {
5268 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewFrame. Expected _wxPrintPreview_p.");
5269 return NULL;
5270 }
5271 }
5272 if (_argo1) {
5273 if (_argo1 == Py_None) { _arg1 = NULL; }
5274 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
5275 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPreviewFrame. Expected _wxFrame_p.");
5276 return NULL;
5277 }
5278 }
5279 {
5280 _arg2 = wxString_in_helper(_obj2);
5281 if (_arg2 == NULL)
5282 return NULL;
5283 }
5284 if (_obj3)
5285 {
5286 _arg3 = &temp;
5287 if (! wxPoint_helper(_obj3, &_arg3))
5288 return NULL;
5289 }
5290 if (_obj4)
5291 {
5292 _arg4 = &temp0;
5293 if (! wxSize_helper(_obj4, &_arg4))
5294 return NULL;
5295 }
5296 if (_obj6)
5297 {
5298 _arg6 = wxString_in_helper(_obj6);
5299 if (_arg6 == NULL)
5300 return NULL;
5301 }
5302 {
5303 PyThreadState* __tstate = wxPyBeginAllowThreads();
5304 _result = (wxPreviewFrame *)new_wxPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6);
5305
5306 wxPyEndAllowThreads(__tstate);
5307 if (PyErr_Occurred()) return NULL;
5308 } if (_result) {
5309 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewFrame_p");
5310 _resultobj = Py_BuildValue("s",_ptemp);
5311 } else {
5312 Py_INCREF(Py_None);
5313 _resultobj = Py_None;
5314 }
5315 {
5316 if (_obj2)
5317 delete _arg2;
5318 }
5319 {
5320 if (_obj6)
5321 delete _arg6;
5322 }
5323 return _resultobj;
5324 }
5325
5326 #define wxPreviewFrame_Initialize(_swigobj) (_swigobj->Initialize())
5327 static PyObject *_wrap_wxPreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject * _resultobj;
5329 wxPreviewFrame * _arg0;
5330 PyObject * _argo0 = 0;
5331 char *_kwnames[] = { "self", NULL };
5332
5333 self = self;
5334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_Initialize",_kwnames,&_argo0))
5335 return NULL;
5336 if (_argo0) {
5337 if (_argo0 == Py_None) { _arg0 = NULL; }
5338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) {
5339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_Initialize. Expected _wxPreviewFrame_p.");
5340 return NULL;
5341 }
5342 }
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 wxPreviewFrame_Initialize(_arg0);
5346
5347 wxPyEndAllowThreads(__tstate);
5348 if (PyErr_Occurred()) return NULL;
5349 } Py_INCREF(Py_None);
5350 _resultobj = Py_None;
5351 return _resultobj;
5352 }
5353
5354 static PyMethodDef printfwcMethods[] = {
5355 { "wxPreviewFrame_Initialize", (PyCFunction) _wrap_wxPreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS },
5356 { "new_wxPreviewFrame", (PyCFunction) _wrap_new_wxPreviewFrame, METH_VARARGS | METH_KEYWORDS },
5357 { "wxPrintPreview_SetZoom", (PyCFunction) _wrap_wxPrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS },
5358 { "wxPrintPreview_SetPrintout", (PyCFunction) _wrap_wxPrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS },
5359 { "wxPrintPreview_SetFrame", (PyCFunction) _wrap_wxPrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS },
5360 { "wxPrintPreview_SetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS },
5361 { "wxPrintPreview_SetCanvas", (PyCFunction) _wrap_wxPrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS },
5362 { "wxPrintPreview_Print", (PyCFunction) _wrap_wxPrintPreview_Print, METH_VARARGS | METH_KEYWORDS },
5363 { "wxPrintPreview_Ok", (PyCFunction) _wrap_wxPrintPreview_Ok, METH_VARARGS | METH_KEYWORDS },
5364 { "wxPrintPreview_GetZoom", (PyCFunction) _wrap_wxPrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS },
5365 { "wxPrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_wxPrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS },
5366 { "wxPrintPreview_GetPrintout", (PyCFunction) _wrap_wxPrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS },
5367 { "wxPrintPreview_GetPrintDialogData", (PyCFunction) _wrap_wxPrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
5368 { "wxPrintPreview_GetMinPage", (PyCFunction) _wrap_wxPrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS },
5369 { "wxPrintPreview_GetMaxPage", (PyCFunction) _wrap_wxPrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS },
5370 { "wxPrintPreview_GetFrame", (PyCFunction) _wrap_wxPrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS },
5371 { "wxPrintPreview_GetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS },
5372 { "wxPrintPreview_GetCanvas", (PyCFunction) _wrap_wxPrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS },
5373 { "new_wxPrintPreview", (PyCFunction) _wrap_new_wxPrintPreview, METH_VARARGS | METH_KEYWORDS },
5374 { "wxPrinter_Setup", (PyCFunction) _wrap_wxPrinter_Setup, METH_VARARGS | METH_KEYWORDS },
5375 { "wxPrinter_ReportError", (PyCFunction) _wrap_wxPrinter_ReportError, METH_VARARGS | METH_KEYWORDS },
5376 { "wxPrinter_PrintDialog", (PyCFunction) _wrap_wxPrinter_PrintDialog, METH_VARARGS | METH_KEYWORDS },
5377 { "wxPrinter_Print", (PyCFunction) _wrap_wxPrinter_Print, METH_VARARGS | METH_KEYWORDS },
5378 { "wxPrinter_GetPrintDialogData", (PyCFunction) _wrap_wxPrinter_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
5379 { "wxPrinter_CreateAbortWindow", (PyCFunction) _wrap_wxPrinter_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS },
5380 { "delete_wxPrinter", (PyCFunction) _wrap_delete_wxPrinter, METH_VARARGS | METH_KEYWORDS },
5381 { "new_wxPrinter", (PyCFunction) _wrap_new_wxPrinter, METH_VARARGS | METH_KEYWORDS },
5382 { "wxPrintout_base_HasPage", (PyCFunction) _wrap_wxPrintout_base_HasPage, METH_VARARGS | METH_KEYWORDS },
5383 { "wxPrintout_base_GetPageInfo", (PyCFunction) _wrap_wxPrintout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS },
5384 { "wxPrintout_base_OnPreparePrinting", (PyCFunction) _wrap_wxPrintout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS },
5385 { "wxPrintout_base_OnEndPrinting", (PyCFunction) _wrap_wxPrintout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS },
5386 { "wxPrintout_base_OnBeginPrinting", (PyCFunction) _wrap_wxPrintout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS },
5387 { "wxPrintout_base_OnEndDocument", (PyCFunction) _wrap_wxPrintout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS },
5388 { "wxPrintout_base_OnBeginDocument", (PyCFunction) _wrap_wxPrintout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS },
5389 { "wxPrintout_IsPreview", (PyCFunction) _wrap_wxPrintout_IsPreview, METH_VARARGS | METH_KEYWORDS },
5390 { "wxPrintout_GetPPIScreen", (PyCFunction) _wrap_wxPrintout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS },
5391 { "wxPrintout_GetPPIPrinter", (PyCFunction) _wrap_wxPrintout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS },
5392 { "wxPrintout_GetPageSizePixels", (PyCFunction) _wrap_wxPrintout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS },
5393 { "wxPrintout_GetPageSizeMM", (PyCFunction) _wrap_wxPrintout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS },
5394 { "wxPrintout_GetDC", (PyCFunction) _wrap_wxPrintout_GetDC, METH_VARARGS | METH_KEYWORDS },
5395 { "wxPrintout_Destroy", (PyCFunction) _wrap_wxPrintout_Destroy, METH_VARARGS | METH_KEYWORDS },
5396 { "wxPrintout__setCallbackInfo", (PyCFunction) _wrap_wxPrintout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
5397 { "new_wxPrintout", (PyCFunction) _wrap_new_wxPrintout, METH_VARARGS | METH_KEYWORDS },
5398 { "wxPrintDialog_ShowModal", (PyCFunction) _wrap_wxPrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
5399 { "wxPrintDialog_GetPrintDC", (PyCFunction) _wrap_wxPrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS },
5400 { "wxPrintDialog_GetPrintDialogData", (PyCFunction) _wrap_wxPrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS },
5401 { "new_wxPrintDialog", (PyCFunction) _wrap_new_wxPrintDialog, METH_VARARGS | METH_KEYWORDS },
5402 { "wxPrintDialogData_SetToPage", (PyCFunction) _wrap_wxPrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS },
5403 { "wxPrintDialogData_SetSetupDialog", (PyCFunction) _wrap_wxPrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS },
5404 { "wxPrintDialogData_SetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS },
5405 { "wxPrintDialogData_SetPrintData", (PyCFunction) _wrap_wxPrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS },
5406 { "wxPrintDialogData_SetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS },
5407 { "wxPrintDialogData_SetMinPage", (PyCFunction) _wrap_wxPrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS },
5408 { "wxPrintDialogData_SetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS },
5409 { "wxPrintDialogData_SetFromPage", (PyCFunction) _wrap_wxPrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS },
5410 { "wxPrintDialogData_SetCollate", (PyCFunction) _wrap_wxPrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS },
5411 { "wxPrintDialogData_Ok", (PyCFunction) _wrap_wxPrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS },
5412 { "wxPrintDialogData_GetToPage", (PyCFunction) _wrap_wxPrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS },
5413 { "wxPrintDialogData_GetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS },
5414 { "wxPrintDialogData_GetPrintData", (PyCFunction) _wrap_wxPrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS },
5415 { "wxPrintDialogData_GetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS },
5416 { "wxPrintDialogData_GetMinPage", (PyCFunction) _wrap_wxPrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS },
5417 { "wxPrintDialogData_GetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS },
5418 { "wxPrintDialogData_GetFromPage", (PyCFunction) _wrap_wxPrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS },
5419 { "wxPrintDialogData_GetCollate", (PyCFunction) _wrap_wxPrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS },
5420 { "wxPrintDialogData_GetAllPages", (PyCFunction) _wrap_wxPrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS },
5421 { "wxPrintDialogData_EnableSelection", (PyCFunction) _wrap_wxPrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS },
5422 { "wxPrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_wxPrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS },
5423 { "wxPrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_wxPrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS },
5424 { "wxPrintDialogData_EnableHelp", (PyCFunction) _wrap_wxPrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS },
5425 { "delete_wxPrintDialogData", (PyCFunction) _wrap_delete_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS },
5426 { "new_wxPrintDialogData", (PyCFunction) _wrap_new_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS },
5427 { "wxPageSetupDialog_ShowModal", (PyCFunction) _wrap_wxPageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS },
5428 { "wxPageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_wxPageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS },
5429 { "new_wxPageSetupDialog", (PyCFunction) _wrap_new_wxPageSetupDialog, METH_VARARGS | METH_KEYWORDS },
5430 { "wxPageSetupDialogData_SetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS },
5431 { "wxPageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS },
5432 { "wxPageSetupDialogData_SetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS },
5433 { "wxPageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
5434 { "wxPageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
5435 { "wxPageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
5436 { "wxPageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
5437 { "wxPageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS },
5438 { "wxPageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS },
5439 { "wxPageSetupDialogData_Ok", (PyCFunction) _wrap_wxPageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS },
5440 { "wxPageSetupDialogData_GetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS },
5441 { "wxPageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS },
5442 { "wxPageSetupDialogData_GetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS },
5443 { "wxPageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
5444 { "wxPageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
5445 { "wxPageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS },
5446 { "wxPageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS },
5447 { "wxPageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS },
5448 { "wxPageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS },
5449 { "wxPageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS },
5450 { "wxPageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS },
5451 { "wxPageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS },
5452 { "wxPageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS },
5453 { "wxPageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS },
5454 { "wxPageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS },
5455 { "wxPageSetupDialogData_EnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS },
5456 { "wxPageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS },
5457 { "wxPageSetupDialogData_EnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS },
5458 { "wxPageSetupDialogData_EnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS },
5459 { "delete_wxPageSetupDialogData", (PyCFunction) _wrap_delete_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
5460 { "new_wxPageSetupDialogData", (PyCFunction) _wrap_new_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS },
5461 { "wxPostScriptDC_GetResolution", (PyCFunction) _wrap_wxPostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
5462 { "wxPostScriptDC_SetResolution", (PyCFunction) _wrap_wxPostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
5463 { "wxPostScriptDC_SetPrintData", (PyCFunction) _wrap_wxPostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
5464 { "wxPostScriptDC_GetPrintData", (PyCFunction) _wrap_wxPostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
5465 { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
5466 { "wxPrintData_SetPrintMode", (PyCFunction) _wrap_wxPrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
5467 { "wxPrintData_SetPrinterTranslation", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS },
5468 { "wxPrintData_SetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS },
5469 { "wxPrintData_SetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS },
5470 { "wxPrintData_SetPrinterScaling", (PyCFunction) _wrap_wxPrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS },
5471 { "wxPrintData_SetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS },
5472 { "wxPrintData_SetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS },
5473 { "wxPrintData_SetFontMetricPath", (PyCFunction) _wrap_wxPrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS },
5474 { "wxPrintData_SetFilename", (PyCFunction) _wrap_wxPrintData_SetFilename, METH_VARARGS | METH_KEYWORDS },
5475 { "wxPrintData_SetPreviewCommand", (PyCFunction) _wrap_wxPrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS },
5476 { "wxPrintData_SetPrinterOptions", (PyCFunction) _wrap_wxPrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS },
5477 { "wxPrintData_SetPrinterCommand", (PyCFunction) _wrap_wxPrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS },
5478 { "wxPrintData_GetPrintMode", (PyCFunction) _wrap_wxPrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
5479 { "wxPrintData_GetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS },
5480 { "wxPrintData_GetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS },
5481 { "wxPrintData_GetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS },
5482 { "wxPrintData_GetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS },
5483 { "wxPrintData_GetFontMetricPath", (PyCFunction) _wrap_wxPrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS },
5484 { "wxPrintData_GetFilename", (PyCFunction) _wrap_wxPrintData_GetFilename, METH_VARARGS | METH_KEYWORDS },
5485 { "wxPrintData_GetPreviewCommand", (PyCFunction) _wrap_wxPrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS },
5486 { "wxPrintData_GetPrinterOptions", (PyCFunction) _wrap_wxPrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS },
5487 { "wxPrintData_GetPrinterCommand", (PyCFunction) _wrap_wxPrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS },
5488 { "wxPrintData_SetQuality", (PyCFunction) _wrap_wxPrintData_SetQuality, METH_VARARGS | METH_KEYWORDS },
5489 { "wxPrintData_SetPaperSize", (PyCFunction) _wrap_wxPrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS },
5490 { "wxPrintData_SetPaperId", (PyCFunction) _wrap_wxPrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS },
5491 { "wxPrintData_SetDuplex", (PyCFunction) _wrap_wxPrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS },
5492 { "wxPrintData_SetColour", (PyCFunction) _wrap_wxPrintData_SetColour, METH_VARARGS | METH_KEYWORDS },
5493 { "wxPrintData_SetPrinterName", (PyCFunction) _wrap_wxPrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS },
5494 { "wxPrintData_SetOrientation", (PyCFunction) _wrap_wxPrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS },
5495 { "wxPrintData_SetCollate", (PyCFunction) _wrap_wxPrintData_SetCollate, METH_VARARGS | METH_KEYWORDS },
5496 { "wxPrintData_SetNoCopies", (PyCFunction) _wrap_wxPrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS },
5497 { "wxPrintData_GetQuality", (PyCFunction) _wrap_wxPrintData_GetQuality, METH_VARARGS | METH_KEYWORDS },
5498 { "wxPrintData_GetPaperSize", (PyCFunction) _wrap_wxPrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS },
5499 { "wxPrintData_GetPaperId", (PyCFunction) _wrap_wxPrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS },
5500 { "wxPrintData_GetDuplex", (PyCFunction) _wrap_wxPrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS },
5501 { "wxPrintData_GetColour", (PyCFunction) _wrap_wxPrintData_GetColour, METH_VARARGS | METH_KEYWORDS },
5502 { "wxPrintData_GetPrinterName", (PyCFunction) _wrap_wxPrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS },
5503 { "wxPrintData_Ok", (PyCFunction) _wrap_wxPrintData_Ok, METH_VARARGS | METH_KEYWORDS },
5504 { "wxPrintData_GetOrientation", (PyCFunction) _wrap_wxPrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS },
5505 { "wxPrintData_GetCollate", (PyCFunction) _wrap_wxPrintData_GetCollate, METH_VARARGS | METH_KEYWORDS },
5506 { "wxPrintData_GetNoCopies", (PyCFunction) _wrap_wxPrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS },
5507 { "delete_wxPrintData", (PyCFunction) _wrap_delete_wxPrintData, METH_VARARGS | METH_KEYWORDS },
5508 { "new_wxPrintData", (PyCFunction) _wrap_new_wxPrintData, METH_VARARGS | METH_KEYWORDS },
5509 { NULL, NULL }
5510 };
5511 #ifdef __cplusplus
5512 }
5513 #endif
5514 /*
5515 * This table is used by the pointer type-checker
5516 */
5517 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
5518 { "_signed_long","_long",0},
5519 { "_wxPrintQuality","_wxCoord",0},
5520 { "_wxPrintQuality","_int",0},
5521 { "_wxPrintQuality","_signed_int",0},
5522 { "_wxPrintQuality","_unsigned_int",0},
5523 { "_wxPrintQuality","_wxWindowID",0},
5524 { "_wxPrintQuality","_uint",0},
5525 { "_wxPrintQuality","_EBool",0},
5526 { "_wxPrintQuality","_size_t",0},
5527 { "_wxPrintQuality","_time_t",0},
5528 { "_byte","_unsigned_char",0},
5529 { "_long","_unsigned_long",0},
5530 { "_long","_signed_long",0},
5531 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
5532 { "_size_t","_wxCoord",0},
5533 { "_size_t","_wxPrintQuality",0},
5534 { "_size_t","_time_t",0},
5535 { "_size_t","_unsigned_int",0},
5536 { "_size_t","_int",0},
5537 { "_size_t","_wxWindowID",0},
5538 { "_size_t","_uint",0},
5539 { "_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow},
5540 { "_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow},
5541 { "_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow},
5542 { "_uint","_wxCoord",0},
5543 { "_uint","_wxPrintQuality",0},
5544 { "_uint","_time_t",0},
5545 { "_uint","_size_t",0},
5546 { "_uint","_unsigned_int",0},
5547 { "_uint","_int",0},
5548 { "_uint","_wxWindowID",0},
5549 { "_wxChar","_char",0},
5550 { "_char","_wxChar",0},
5551 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
5552 { "_EBool","_wxCoord",0},
5553 { "_EBool","_wxPrintQuality",0},
5554 { "_EBool","_signed_int",0},
5555 { "_EBool","_int",0},
5556 { "_EBool","_wxWindowID",0},
5557 { "_unsigned_long","_long",0},
5558 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
5559 { "_signed_int","_wxCoord",0},
5560 { "_signed_int","_wxPrintQuality",0},
5561 { "_signed_int","_EBool",0},
5562 { "_signed_int","_wxWindowID",0},
5563 { "_signed_int","_int",0},
5564 { "_WXTYPE","_short",0},
5565 { "_WXTYPE","_signed_short",0},
5566 { "_WXTYPE","_unsigned_short",0},
5567 { "_unsigned_short","_WXTYPE",0},
5568 { "_unsigned_short","_short",0},
5569 { "_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject},
5570 { "_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject},
5571 { "_wxObject","_wxPrinter",SwigwxPrinterTowxObject},
5572 { "_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject},
5573 { "_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject},
5574 { "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject},
5575 { "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject},
5576 { "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject},
5577 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
5578 { "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject},
5579 { "_signed_short","_WXTYPE",0},
5580 { "_signed_short","_short",0},
5581 { "_unsigned_char","_byte",0},
5582 { "_unsigned_int","_wxCoord",0},
5583 { "_unsigned_int","_wxPrintQuality",0},
5584 { "_unsigned_int","_time_t",0},
5585 { "_unsigned_int","_size_t",0},
5586 { "_unsigned_int","_uint",0},
5587 { "_unsigned_int","_wxWindowID",0},
5588 { "_unsigned_int","_int",0},
5589 { "_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog},
5590 { "_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog},
5591 { "_short","_WXTYPE",0},
5592 { "_short","_unsigned_short",0},
5593 { "_short","_signed_short",0},
5594 { "_wxFrame","_wxPreviewFrame",SwigwxPreviewFrameTowxFrame},
5595 { "_wxWindowID","_wxCoord",0},
5596 { "_wxWindowID","_wxPrintQuality",0},
5597 { "_wxWindowID","_time_t",0},
5598 { "_wxWindowID","_size_t",0},
5599 { "_wxWindowID","_EBool",0},
5600 { "_wxWindowID","_uint",0},
5601 { "_wxWindowID","_int",0},
5602 { "_wxWindowID","_signed_int",0},
5603 { "_wxWindowID","_unsigned_int",0},
5604 { "_int","_wxCoord",0},
5605 { "_int","_wxPrintQuality",0},
5606 { "_int","_time_t",0},
5607 { "_int","_size_t",0},
5608 { "_int","_EBool",0},
5609 { "_int","_uint",0},
5610 { "_int","_wxWindowID",0},
5611 { "_int","_unsigned_int",0},
5612 { "_int","_signed_int",0},
5613 { "_time_t","_wxCoord",0},
5614 { "_time_t","_wxPrintQuality",0},
5615 { "_time_t","_unsigned_int",0},
5616 { "_time_t","_int",0},
5617 { "_time_t","_wxWindowID",0},
5618 { "_time_t","_uint",0},
5619 { "_time_t","_size_t",0},
5620 { "_wxCoord","_int",0},
5621 { "_wxCoord","_signed_int",0},
5622 { "_wxCoord","_unsigned_int",0},
5623 { "_wxCoord","_wxWindowID",0},
5624 { "_wxCoord","_uint",0},
5625 { "_wxCoord","_EBool",0},
5626 { "_wxCoord","_size_t",0},
5627 { "_wxCoord","_time_t",0},
5628 { "_wxCoord","_wxPrintQuality",0},
5629 { "_wxEvtHandler","_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler},
5630 { "_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler},
5631 { "_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler},
5632 { "_wxWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxWindow},
5633 { "_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow},
5634 { "_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow},
5635 {0,0,0}};
5636
5637 static PyObject *SWIG_globals;
5638 #ifdef __cplusplus
5639 extern "C"
5640 #endif
5641 SWIGEXPORT(void) initprintfwc() {
5642 PyObject *m, *d;
5643 SWIG_globals = SWIG_newvarlink();
5644 m = Py_InitModule("printfwc", printfwcMethods);
5645 d = PyModule_GetDict(m);
5646
5647 wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout");
5648 {
5649 int i;
5650 for (i = 0; _swig_mapping[i].n1; i++)
5651 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
5652 }
5653 }