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