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