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