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