2 * FILE : src/gtk/printfw.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initprintfwc
56 #define SWIG_name "printfwc"
60 #include <wx/printdlg.h>
65 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
71 } else if (target
== Py_None
) {
75 if (!PyTuple_Check(target
)) {
77 target
= PyTuple_New(1);
78 PyTuple_SetItem(target
, 0, o2
);
81 PyTuple_SetItem(o3
, 0, o
);
84 target
= PySequence_Concat(o2
, o3
);
91 #if PYTHON_API_VERSION >= 1009
92 static char* wxStringErrorMsg
= "String or Unicode type required";
94 static char* wxStringErrorMsg
= "string type is required for parameter";
99 // Since this one would be tough and ugly to do with the Macros...
100 void wxPyPrintout::GetPageInfo(int *minPage
, int *maxPage
, int *pageFrom
, int *pageTo
) {
104 wxPyTState
* state
= wxPyBeginBlockThreads();
105 if ((found
= m_myInst
.findCallback("GetPageInfo"))) {
106 PyObject
* result
= m_myInst
.callCallbackObj(Py_BuildValue("()"));
107 if (result
&& PyTuple_Check(result
) && PyTuple_Size(result
) == 4) {
110 val
= PyTuple_GetItem(result
, 0);
111 if (PyInt_Check(val
)) *minPage
= PyInt_AsLong(val
);
114 val
= PyTuple_GetItem(result
, 1);
115 if (PyInt_Check(val
)) *maxPage
= PyInt_AsLong(val
);
118 val
= PyTuple_GetItem(result
, 2);
119 if (PyInt_Check(val
)) *pageFrom
= PyInt_AsLong(val
);
122 val
= PyTuple_GetItem(result
, 3);
123 if (PyInt_Check(val
)) *pageTo
= PyInt_AsLong(val
);
130 PyErr_SetString(PyExc_TypeError
, "GetPageInfo should return a tuple of 4 integers.");
135 wxPyEndBlockThreads(state
);
137 wxPrintout::GetPageInfo(minPage
, maxPage
, pageFrom
, pageTo
);
140 void wxPyPrintout::base_GetPageInfo(int *minPage
, int *maxPage
, int *pageFrom
, int *pageTo
) {
141 wxPrintout::GetPageInfo(minPage
, maxPage
, pageFrom
, pageTo
);
145 IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout
, wxPrintout
, OnBeginDocument
);
146 IMP_PYCALLBACK__(wxPyPrintout
, wxPrintout
, OnEndDocument
);
147 IMP_PYCALLBACK__(wxPyPrintout
, wxPrintout
, OnBeginPrinting
);
148 IMP_PYCALLBACK__(wxPyPrintout
, wxPrintout
, OnEndPrinting
);
149 IMP_PYCALLBACK__(wxPyPrintout
, wxPrintout
, OnPreparePrinting
);
150 IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout
, wxPrintout
, OnPrintPage
);
151 IMP_PYCALLBACK_BOOL_INT(wxPyPrintout
, wxPrintout
, HasPage
);
157 static void *SwigwxPrintDataTowxObject(void *ptr
) {
160 src
= (wxPrintData
*) ptr
;
161 dest
= (wxObject
*) src
;
162 return (void *) dest
;
165 #define new_wxPrintData() (new wxPrintData())
166 static PyObject
*_wrap_new_wxPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
167 PyObject
* _resultobj
;
168 wxPrintData
* _result
;
169 char *_kwnames
[] = { NULL
};
173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrintData",_kwnames
))
176 wxPy_BEGIN_ALLOW_THREADS
;
177 _result
= (wxPrintData
*)new_wxPrintData();
179 wxPy_END_ALLOW_THREADS
;
180 if (PyErr_Occurred()) return NULL
;
182 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintData_p");
183 _resultobj
= Py_BuildValue("s",_ptemp
);
186 _resultobj
= Py_None
;
191 #define delete_wxPrintData(_swigobj) (delete _swigobj)
192 static PyObject
*_wrap_delete_wxPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
193 PyObject
* _resultobj
;
195 PyObject
* _argo0
= 0;
196 char *_kwnames
[] = { "self", NULL
};
199 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPrintData",_kwnames
,&_argo0
))
202 if (_argo0
== Py_None
) { _arg0
= NULL
; }
203 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
204 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPrintData. Expected _wxPrintData_p.");
209 wxPy_BEGIN_ALLOW_THREADS
;
210 delete_wxPrintData(_arg0
);
212 wxPy_END_ALLOW_THREADS
;
213 if (PyErr_Occurred()) return NULL
;
214 } Py_INCREF(Py_None
);
215 _resultobj
= Py_None
;
219 #define wxPrintData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
220 static PyObject
*_wrap_wxPrintData_GetNoCopies(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
221 PyObject
* _resultobj
;
224 PyObject
* _argo0
= 0;
225 char *_kwnames
[] = { "self", NULL
};
228 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetNoCopies",_kwnames
,&_argo0
))
231 if (_argo0
== Py_None
) { _arg0
= NULL
; }
232 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
233 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetNoCopies. Expected _wxPrintData_p.");
238 wxPy_BEGIN_ALLOW_THREADS
;
239 _result
= (int )wxPrintData_GetNoCopies(_arg0
);
241 wxPy_END_ALLOW_THREADS
;
242 if (PyErr_Occurred()) return NULL
;
243 } _resultobj
= Py_BuildValue("i",_result
);
247 #define wxPrintData_GetCollate(_swigobj) (_swigobj->GetCollate())
248 static PyObject
*_wrap_wxPrintData_GetCollate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
249 PyObject
* _resultobj
;
252 PyObject
* _argo0
= 0;
253 char *_kwnames
[] = { "self", NULL
};
256 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetCollate",_kwnames
,&_argo0
))
259 if (_argo0
== Py_None
) { _arg0
= NULL
; }
260 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
261 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetCollate. Expected _wxPrintData_p.");
266 wxPy_BEGIN_ALLOW_THREADS
;
267 _result
= (bool )wxPrintData_GetCollate(_arg0
);
269 wxPy_END_ALLOW_THREADS
;
270 if (PyErr_Occurred()) return NULL
;
271 } _resultobj
= Py_BuildValue("i",_result
);
275 #define wxPrintData_GetOrientation(_swigobj) (_swigobj->GetOrientation())
276 static PyObject
*_wrap_wxPrintData_GetOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
277 PyObject
* _resultobj
;
280 PyObject
* _argo0
= 0;
281 char *_kwnames
[] = { "self", NULL
};
284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetOrientation",_kwnames
,&_argo0
))
287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetOrientation. Expected _wxPrintData_p.");
294 wxPy_BEGIN_ALLOW_THREADS
;
295 _result
= (int )wxPrintData_GetOrientation(_arg0
);
297 wxPy_END_ALLOW_THREADS
;
298 if (PyErr_Occurred()) return NULL
;
299 } _resultobj
= Py_BuildValue("i",_result
);
303 #define wxPrintData_GetPrinterName(_swigobj) (_swigobj->GetPrinterName())
304 static PyObject
*_wrap_wxPrintData_GetPrinterName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
305 PyObject
* _resultobj
;
308 PyObject
* _argo0
= 0;
309 char *_kwnames
[] = { "self", NULL
};
312 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterName",_kwnames
,&_argo0
))
315 if (_argo0
== Py_None
) { _arg0
= NULL
; }
316 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
317 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterName. Expected _wxPrintData_p.");
322 wxPy_BEGIN_ALLOW_THREADS
;
323 const wxString
& _result_ref
= wxPrintData_GetPrinterName(_arg0
);
324 _result
= (wxString
*) &_result_ref
;
326 wxPy_END_ALLOW_THREADS
;
327 if (PyErr_Occurred()) return NULL
;
329 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
334 #define wxPrintData_GetColour(_swigobj) (_swigobj->GetColour())
335 static PyObject
*_wrap_wxPrintData_GetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
336 PyObject
* _resultobj
;
339 PyObject
* _argo0
= 0;
340 char *_kwnames
[] = { "self", NULL
};
343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetColour",_kwnames
,&_argo0
))
346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetColour. Expected _wxPrintData_p.");
353 wxPy_BEGIN_ALLOW_THREADS
;
354 _result
= (bool )wxPrintData_GetColour(_arg0
);
356 wxPy_END_ALLOW_THREADS
;
357 if (PyErr_Occurred()) return NULL
;
358 } _resultobj
= Py_BuildValue("i",_result
);
362 #define wxPrintData_GetDuplex(_swigobj) (_swigobj->GetDuplex())
363 static PyObject
*_wrap_wxPrintData_GetDuplex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
364 PyObject
* _resultobj
;
365 wxDuplexMode _result
;
367 PyObject
* _argo0
= 0;
368 char *_kwnames
[] = { "self", NULL
};
371 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetDuplex",_kwnames
,&_argo0
))
374 if (_argo0
== Py_None
) { _arg0
= NULL
; }
375 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
376 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetDuplex. Expected _wxPrintData_p.");
381 wxPy_BEGIN_ALLOW_THREADS
;
382 _result
= (wxDuplexMode
)wxPrintData_GetDuplex(_arg0
);
384 wxPy_END_ALLOW_THREADS
;
385 if (PyErr_Occurred()) return NULL
;
386 } _resultobj
= Py_BuildValue("i",_result
);
390 #define wxPrintData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
391 static PyObject
*_wrap_wxPrintData_GetPaperId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
392 PyObject
* _resultobj
;
395 PyObject
* _argo0
= 0;
396 char *_kwnames
[] = { "self", NULL
};
399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPaperId",_kwnames
,&_argo0
))
402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPaperId. Expected _wxPrintData_p.");
409 wxPy_BEGIN_ALLOW_THREADS
;
410 _result
= (wxPaperSize
)wxPrintData_GetPaperId(_arg0
);
412 wxPy_END_ALLOW_THREADS
;
413 if (PyErr_Occurred()) return NULL
;
414 } _resultobj
= Py_BuildValue("i",_result
);
418 #define wxPrintData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
419 static PyObject
*_wrap_wxPrintData_GetPaperSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
420 PyObject
* _resultobj
;
423 PyObject
* _argo0
= 0;
424 char *_kwnames
[] = { "self", NULL
};
428 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPaperSize",_kwnames
,&_argo0
))
431 if (_argo0
== Py_None
) { _arg0
= NULL
; }
432 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
433 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPaperSize. Expected _wxPrintData_p.");
438 wxPy_BEGIN_ALLOW_THREADS
;
439 const wxSize
& _result_ref
= wxPrintData_GetPaperSize(_arg0
);
440 _result
= (wxSize
*) &_result_ref
;
442 wxPy_END_ALLOW_THREADS
;
443 if (PyErr_Occurred()) return NULL
;
445 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxSize_p");
446 _resultobj
= Py_BuildValue("s",_ptemp
);
449 _resultobj
= Py_None
;
454 #define wxPrintData_GetQuality(_swigobj) (_swigobj->GetQuality())
455 static PyObject
*_wrap_wxPrintData_GetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
457 wxPrintQuality _result
;
459 PyObject
* _argo0
= 0;
460 char *_kwnames
[] = { "self", NULL
};
463 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetQuality",_kwnames
,&_argo0
))
466 if (_argo0
== Py_None
) { _arg0
= NULL
; }
467 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetQuality. Expected _wxPrintData_p.");
473 wxPy_BEGIN_ALLOW_THREADS
;
474 _result
= (wxPrintQuality
)wxPrintData_GetQuality(_arg0
);
476 wxPy_END_ALLOW_THREADS
;
477 if (PyErr_Occurred()) return NULL
;
478 } _resultobj
= Py_BuildValue("i",_result
);
482 #define wxPrintData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
483 static PyObject
*_wrap_wxPrintData_SetNoCopies(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
484 PyObject
* _resultobj
;
487 PyObject
* _argo0
= 0;
488 char *_kwnames
[] = { "self","v", NULL
};
491 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetNoCopies",_kwnames
,&_argo0
,&_arg1
))
494 if (_argo0
== Py_None
) { _arg0
= NULL
; }
495 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
496 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetNoCopies. Expected _wxPrintData_p.");
501 wxPy_BEGIN_ALLOW_THREADS
;
502 wxPrintData_SetNoCopies(_arg0
,_arg1
);
504 wxPy_END_ALLOW_THREADS
;
505 if (PyErr_Occurred()) return NULL
;
506 } Py_INCREF(Py_None
);
507 _resultobj
= Py_None
;
511 #define wxPrintData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
512 static PyObject
*_wrap_wxPrintData_SetCollate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
513 PyObject
* _resultobj
;
516 PyObject
* _argo0
= 0;
518 char *_kwnames
[] = { "self","flag", NULL
};
521 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetCollate",_kwnames
,&_argo0
,&tempbool1
))
524 if (_argo0
== Py_None
) { _arg0
= NULL
; }
525 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
526 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetCollate. Expected _wxPrintData_p.");
530 _arg1
= (bool ) tempbool1
;
532 wxPy_BEGIN_ALLOW_THREADS
;
533 wxPrintData_SetCollate(_arg0
,_arg1
);
535 wxPy_END_ALLOW_THREADS
;
536 if (PyErr_Occurred()) return NULL
;
537 } Py_INCREF(Py_None
);
538 _resultobj
= Py_None
;
542 #define wxPrintData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0))
543 static PyObject
*_wrap_wxPrintData_SetOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
544 PyObject
* _resultobj
;
547 PyObject
* _argo0
= 0;
548 char *_kwnames
[] = { "self","orient", NULL
};
551 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetOrientation",_kwnames
,&_argo0
,&_arg1
))
554 if (_argo0
== Py_None
) { _arg0
= NULL
; }
555 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
556 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetOrientation. Expected _wxPrintData_p.");
561 wxPy_BEGIN_ALLOW_THREADS
;
562 wxPrintData_SetOrientation(_arg0
,_arg1
);
564 wxPy_END_ALLOW_THREADS
;
565 if (PyErr_Occurred()) return NULL
;
566 } Py_INCREF(Py_None
);
567 _resultobj
= Py_None
;
571 #define wxPrintData_SetPrinterName(_swigobj,_swigarg0) (_swigobj->SetPrinterName(_swigarg0))
572 static PyObject
*_wrap_wxPrintData_SetPrinterName(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
573 PyObject
* _resultobj
;
576 PyObject
* _argo0
= 0;
577 PyObject
* _obj1
= 0;
578 char *_kwnames
[] = { "self","name", NULL
};
581 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPrinterName",_kwnames
,&_argo0
,&_obj1
))
584 if (_argo0
== Py_None
) { _arg0
= NULL
; }
585 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
586 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterName. Expected _wxPrintData_p.");
591 #if PYTHON_API_VERSION >= 1009
592 char* tmpPtr
; int tmpSize
;
593 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
594 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
597 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
599 _arg1
= new wxString(tmpPtr
, tmpSize
);
601 if (!PyString_Check(_obj1
)) {
602 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
605 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
609 wxPy_BEGIN_ALLOW_THREADS
;
610 wxPrintData_SetPrinterName(_arg0
,*_arg1
);
612 wxPy_END_ALLOW_THREADS
;
613 if (PyErr_Occurred()) return NULL
;
614 } Py_INCREF(Py_None
);
615 _resultobj
= Py_None
;
623 #define wxPrintData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
624 static PyObject
*_wrap_wxPrintData_SetColour(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
625 PyObject
* _resultobj
;
628 PyObject
* _argo0
= 0;
630 char *_kwnames
[] = { "self","colour", NULL
};
633 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetColour",_kwnames
,&_argo0
,&tempbool1
))
636 if (_argo0
== Py_None
) { _arg0
= NULL
; }
637 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
638 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetColour. Expected _wxPrintData_p.");
642 _arg1
= (bool ) tempbool1
;
644 wxPy_BEGIN_ALLOW_THREADS
;
645 wxPrintData_SetColour(_arg0
,_arg1
);
647 wxPy_END_ALLOW_THREADS
;
648 if (PyErr_Occurred()) return NULL
;
649 } Py_INCREF(Py_None
);
650 _resultobj
= Py_None
;
654 #define wxPrintData_SetDuplex(_swigobj,_swigarg0) (_swigobj->SetDuplex(_swigarg0))
655 static PyObject
*_wrap_wxPrintData_SetDuplex(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
656 PyObject
* _resultobj
;
659 PyObject
* _argo0
= 0;
660 char *_kwnames
[] = { "self","duplex", NULL
};
663 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetDuplex",_kwnames
,&_argo0
,&_arg1
))
666 if (_argo0
== Py_None
) { _arg0
= NULL
; }
667 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
668 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetDuplex. Expected _wxPrintData_p.");
673 wxPy_BEGIN_ALLOW_THREADS
;
674 wxPrintData_SetDuplex(_arg0
,_arg1
);
676 wxPy_END_ALLOW_THREADS
;
677 if (PyErr_Occurred()) return NULL
;
678 } Py_INCREF(Py_None
);
679 _resultobj
= Py_None
;
683 #define wxPrintData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
684 static PyObject
*_wrap_wxPrintData_SetPaperId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
685 PyObject
* _resultobj
;
688 PyObject
* _argo0
= 0;
689 char *_kwnames
[] = { "self","sizeId", NULL
};
692 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetPaperId",_kwnames
,&_argo0
,&_arg1
))
695 if (_argo0
== Py_None
) { _arg0
= NULL
; }
696 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
697 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPaperId. Expected _wxPrintData_p.");
702 wxPy_BEGIN_ALLOW_THREADS
;
703 wxPrintData_SetPaperId(_arg0
,_arg1
);
705 wxPy_END_ALLOW_THREADS
;
706 if (PyErr_Occurred()) return NULL
;
707 } Py_INCREF(Py_None
);
708 _resultobj
= Py_None
;
712 #define wxPrintData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
713 static PyObject
*_wrap_wxPrintData_SetPaperSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
714 PyObject
* _resultobj
;
717 PyObject
* _argo0
= 0;
719 PyObject
* _obj1
= 0;
720 char *_kwnames
[] = { "self","sz", NULL
};
723 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPaperSize",_kwnames
,&_argo0
,&_obj1
))
726 if (_argo0
== Py_None
) { _arg0
= NULL
; }
727 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
728 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPaperSize. Expected _wxPrintData_p.");
734 if (! wxSize_helper(_obj1
, &_arg1
))
738 wxPy_BEGIN_ALLOW_THREADS
;
739 wxPrintData_SetPaperSize(_arg0
,*_arg1
);
741 wxPy_END_ALLOW_THREADS
;
742 if (PyErr_Occurred()) return NULL
;
743 } Py_INCREF(Py_None
);
744 _resultobj
= Py_None
;
748 #define wxPrintData_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
749 static PyObject
*_wrap_wxPrintData_SetQuality(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
750 PyObject
* _resultobj
;
752 wxPrintQuality _arg1
;
753 PyObject
* _argo0
= 0;
754 char *_kwnames
[] = { "self","quality", NULL
};
757 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintData_SetQuality",_kwnames
,&_argo0
,&_arg1
))
760 if (_argo0
== Py_None
) { _arg0
= NULL
; }
761 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
762 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetQuality. Expected _wxPrintData_p.");
767 wxPy_BEGIN_ALLOW_THREADS
;
768 wxPrintData_SetQuality(_arg0
,_arg1
);
770 wxPy_END_ALLOW_THREADS
;
771 if (PyErr_Occurred()) return NULL
;
772 } Py_INCREF(Py_None
);
773 _resultobj
= Py_None
;
777 #define wxPrintData_GetPrinterCommand(_swigobj) (_swigobj->GetPrinterCommand())
778 static PyObject
*_wrap_wxPrintData_GetPrinterCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
779 PyObject
* _resultobj
;
782 PyObject
* _argo0
= 0;
783 char *_kwnames
[] = { "self", NULL
};
786 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterCommand",_kwnames
,&_argo0
))
789 if (_argo0
== Py_None
) { _arg0
= NULL
; }
790 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
791 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterCommand. Expected _wxPrintData_p.");
796 wxPy_BEGIN_ALLOW_THREADS
;
797 const wxString
& _result_ref
= wxPrintData_GetPrinterCommand(_arg0
);
798 _result
= (wxString
*) &_result_ref
;
800 wxPy_END_ALLOW_THREADS
;
801 if (PyErr_Occurred()) return NULL
;
803 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
808 #define wxPrintData_GetPrinterOptions(_swigobj) (_swigobj->GetPrinterOptions())
809 static PyObject
*_wrap_wxPrintData_GetPrinterOptions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
810 PyObject
* _resultobj
;
813 PyObject
* _argo0
= 0;
814 char *_kwnames
[] = { "self", NULL
};
817 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterOptions",_kwnames
,&_argo0
))
820 if (_argo0
== Py_None
) { _arg0
= NULL
; }
821 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
822 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterOptions. Expected _wxPrintData_p.");
827 wxPy_BEGIN_ALLOW_THREADS
;
828 const wxString
& _result_ref
= wxPrintData_GetPrinterOptions(_arg0
);
829 _result
= (wxString
*) &_result_ref
;
831 wxPy_END_ALLOW_THREADS
;
832 if (PyErr_Occurred()) return NULL
;
834 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
839 #define wxPrintData_GetPreviewCommand(_swigobj) (_swigobj->GetPreviewCommand())
840 static PyObject
*_wrap_wxPrintData_GetPreviewCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
841 PyObject
* _resultobj
;
844 PyObject
* _argo0
= 0;
845 char *_kwnames
[] = { "self", NULL
};
848 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPreviewCommand",_kwnames
,&_argo0
))
851 if (_argo0
== Py_None
) { _arg0
= NULL
; }
852 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
853 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPreviewCommand. Expected _wxPrintData_p.");
858 wxPy_BEGIN_ALLOW_THREADS
;
859 const wxString
& _result_ref
= wxPrintData_GetPreviewCommand(_arg0
);
860 _result
= (wxString
*) &_result_ref
;
862 wxPy_END_ALLOW_THREADS
;
863 if (PyErr_Occurred()) return NULL
;
865 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
870 #define wxPrintData_GetFilename(_swigobj) (_swigobj->GetFilename())
871 static PyObject
*_wrap_wxPrintData_GetFilename(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
872 PyObject
* _resultobj
;
875 PyObject
* _argo0
= 0;
876 char *_kwnames
[] = { "self", NULL
};
879 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetFilename",_kwnames
,&_argo0
))
882 if (_argo0
== Py_None
) { _arg0
= NULL
; }
883 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
884 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetFilename. Expected _wxPrintData_p.");
889 wxPy_BEGIN_ALLOW_THREADS
;
890 const wxString
& _result_ref
= wxPrintData_GetFilename(_arg0
);
891 _result
= (wxString
*) &_result_ref
;
893 wxPy_END_ALLOW_THREADS
;
894 if (PyErr_Occurred()) return NULL
;
896 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
901 #define wxPrintData_GetFontMetricPath(_swigobj) (_swigobj->GetFontMetricPath())
902 static PyObject
*_wrap_wxPrintData_GetFontMetricPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
903 PyObject
* _resultobj
;
906 PyObject
* _argo0
= 0;
907 char *_kwnames
[] = { "self", NULL
};
910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetFontMetricPath",_kwnames
,&_argo0
))
913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetFontMetricPath. Expected _wxPrintData_p.");
920 wxPy_BEGIN_ALLOW_THREADS
;
921 const wxString
& _result_ref
= wxPrintData_GetFontMetricPath(_arg0
);
922 _result
= (wxString
*) &_result_ref
;
924 wxPy_END_ALLOW_THREADS
;
925 if (PyErr_Occurred()) return NULL
;
927 _resultobj
= PyString_FromStringAndSize(_result
->c_str(), _result
->Len());
932 #define wxPrintData_GetPrinterScaleX(_swigobj) (_swigobj->GetPrinterScaleX())
933 static PyObject
*_wrap_wxPrintData_GetPrinterScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
934 PyObject
* _resultobj
;
937 PyObject
* _argo0
= 0;
938 char *_kwnames
[] = { "self", NULL
};
941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterScaleX",_kwnames
,&_argo0
))
944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterScaleX. Expected _wxPrintData_p.");
951 wxPy_BEGIN_ALLOW_THREADS
;
952 _result
= (double )wxPrintData_GetPrinterScaleX(_arg0
);
954 wxPy_END_ALLOW_THREADS
;
955 if (PyErr_Occurred()) return NULL
;
956 } _resultobj
= Py_BuildValue("d",_result
);
960 #define wxPrintData_GetPrinterScaleY(_swigobj) (_swigobj->GetPrinterScaleY())
961 static PyObject
*_wrap_wxPrintData_GetPrinterScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
962 PyObject
* _resultobj
;
965 PyObject
* _argo0
= 0;
966 char *_kwnames
[] = { "self", NULL
};
969 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterScaleY",_kwnames
,&_argo0
))
972 if (_argo0
== Py_None
) { _arg0
= NULL
; }
973 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
974 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterScaleY. Expected _wxPrintData_p.");
979 wxPy_BEGIN_ALLOW_THREADS
;
980 _result
= (double )wxPrintData_GetPrinterScaleY(_arg0
);
982 wxPy_END_ALLOW_THREADS
;
983 if (PyErr_Occurred()) return NULL
;
984 } _resultobj
= Py_BuildValue("d",_result
);
988 #define wxPrintData_GetPrinterTranslateX(_swigobj) (_swigobj->GetPrinterTranslateX())
989 static PyObject
*_wrap_wxPrintData_GetPrinterTranslateX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
990 PyObject
* _resultobj
;
993 PyObject
* _argo0
= 0;
994 char *_kwnames
[] = { "self", NULL
};
997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterTranslateX",_kwnames
,&_argo0
))
1000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterTranslateX. Expected _wxPrintData_p.");
1007 wxPy_BEGIN_ALLOW_THREADS
;
1008 _result
= (long )wxPrintData_GetPrinterTranslateX(_arg0
);
1010 wxPy_END_ALLOW_THREADS
;
1011 if (PyErr_Occurred()) return NULL
;
1012 } _resultobj
= Py_BuildValue("l",_result
);
1016 #define wxPrintData_GetPrinterTranslateY(_swigobj) (_swigobj->GetPrinterTranslateY())
1017 static PyObject
*_wrap_wxPrintData_GetPrinterTranslateY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1018 PyObject
* _resultobj
;
1020 wxPrintData
* _arg0
;
1021 PyObject
* _argo0
= 0;
1022 char *_kwnames
[] = { "self", NULL
};
1025 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrinterTranslateY",_kwnames
,&_argo0
))
1028 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1029 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1030 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrinterTranslateY. Expected _wxPrintData_p.");
1035 wxPy_BEGIN_ALLOW_THREADS
;
1036 _result
= (long )wxPrintData_GetPrinterTranslateY(_arg0
);
1038 wxPy_END_ALLOW_THREADS
;
1039 if (PyErr_Occurred()) return NULL
;
1040 } _resultobj
= Py_BuildValue("l",_result
);
1044 #define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode())
1045 static PyObject
*_wrap_wxPrintData_GetPrintMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1046 PyObject
* _resultobj
;
1047 wxPrintMode
* _result
;
1048 wxPrintData
* _arg0
;
1049 PyObject
* _argo0
= 0;
1050 char *_kwnames
[] = { "self", NULL
};
1054 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintData_GetPrintMode",_kwnames
,&_argo0
))
1057 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1058 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1059 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_GetPrintMode. Expected _wxPrintData_p.");
1064 wxPy_BEGIN_ALLOW_THREADS
;
1065 _result
= new wxPrintMode (wxPrintData_GetPrintMode(_arg0
));
1067 wxPy_END_ALLOW_THREADS
;
1068 if (PyErr_Occurred()) return NULL
;
1069 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPrintMode_p");
1070 _resultobj
= Py_BuildValue("s",_ptemp
);
1074 #define wxPrintData_SetPrinterCommand(_swigobj,_swigarg0) (_swigobj->SetPrinterCommand(_swigarg0))
1075 static PyObject
*_wrap_wxPrintData_SetPrinterCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1076 PyObject
* _resultobj
;
1077 wxPrintData
* _arg0
;
1079 PyObject
* _argo0
= 0;
1080 PyObject
* _obj1
= 0;
1081 char *_kwnames
[] = { "self","command", NULL
};
1084 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPrinterCommand",_kwnames
,&_argo0
,&_obj1
))
1087 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1088 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1089 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterCommand. Expected _wxPrintData_p.");
1094 #if PYTHON_API_VERSION >= 1009
1095 char* tmpPtr
; int tmpSize
;
1096 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1097 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1100 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1102 _arg1
= new wxString(tmpPtr
, tmpSize
);
1104 if (!PyString_Check(_obj1
)) {
1105 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1108 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1112 wxPy_BEGIN_ALLOW_THREADS
;
1113 wxPrintData_SetPrinterCommand(_arg0
,*_arg1
);
1115 wxPy_END_ALLOW_THREADS
;
1116 if (PyErr_Occurred()) return NULL
;
1117 } Py_INCREF(Py_None
);
1118 _resultobj
= Py_None
;
1126 #define wxPrintData_SetPrinterOptions(_swigobj,_swigarg0) (_swigobj->SetPrinterOptions(_swigarg0))
1127 static PyObject
*_wrap_wxPrintData_SetPrinterOptions(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1128 PyObject
* _resultobj
;
1129 wxPrintData
* _arg0
;
1131 PyObject
* _argo0
= 0;
1132 PyObject
* _obj1
= 0;
1133 char *_kwnames
[] = { "self","options", NULL
};
1136 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPrinterOptions",_kwnames
,&_argo0
,&_obj1
))
1139 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1140 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1141 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterOptions. Expected _wxPrintData_p.");
1146 #if PYTHON_API_VERSION >= 1009
1147 char* tmpPtr
; int tmpSize
;
1148 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1149 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1152 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1154 _arg1
= new wxString(tmpPtr
, tmpSize
);
1156 if (!PyString_Check(_obj1
)) {
1157 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1160 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1164 wxPy_BEGIN_ALLOW_THREADS
;
1165 wxPrintData_SetPrinterOptions(_arg0
,*_arg1
);
1167 wxPy_END_ALLOW_THREADS
;
1168 if (PyErr_Occurred()) return NULL
;
1169 } Py_INCREF(Py_None
);
1170 _resultobj
= Py_None
;
1178 #define wxPrintData_SetPreviewCommand(_swigobj,_swigarg0) (_swigobj->SetPreviewCommand(_swigarg0))
1179 static PyObject
*_wrap_wxPrintData_SetPreviewCommand(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1180 PyObject
* _resultobj
;
1181 wxPrintData
* _arg0
;
1183 PyObject
* _argo0
= 0;
1184 PyObject
* _obj1
= 0;
1185 char *_kwnames
[] = { "self","command", NULL
};
1188 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPreviewCommand",_kwnames
,&_argo0
,&_obj1
))
1191 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1192 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1193 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPreviewCommand. Expected _wxPrintData_p.");
1198 #if PYTHON_API_VERSION >= 1009
1199 char* tmpPtr
; int tmpSize
;
1200 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1201 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1204 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1206 _arg1
= new wxString(tmpPtr
, tmpSize
);
1208 if (!PyString_Check(_obj1
)) {
1209 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1212 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1216 wxPy_BEGIN_ALLOW_THREADS
;
1217 wxPrintData_SetPreviewCommand(_arg0
,*_arg1
);
1219 wxPy_END_ALLOW_THREADS
;
1220 if (PyErr_Occurred()) return NULL
;
1221 } Py_INCREF(Py_None
);
1222 _resultobj
= Py_None
;
1230 #define wxPrintData_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0))
1231 static PyObject
*_wrap_wxPrintData_SetFilename(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1232 PyObject
* _resultobj
;
1233 wxPrintData
* _arg0
;
1235 PyObject
* _argo0
= 0;
1236 PyObject
* _obj1
= 0;
1237 char *_kwnames
[] = { "self","filename", NULL
};
1240 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetFilename",_kwnames
,&_argo0
,&_obj1
))
1243 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1244 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1245 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetFilename. Expected _wxPrintData_p.");
1250 #if PYTHON_API_VERSION >= 1009
1251 char* tmpPtr
; int tmpSize
;
1252 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1253 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1256 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1258 _arg1
= new wxString(tmpPtr
, tmpSize
);
1260 if (!PyString_Check(_obj1
)) {
1261 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1264 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1268 wxPy_BEGIN_ALLOW_THREADS
;
1269 wxPrintData_SetFilename(_arg0
,*_arg1
);
1271 wxPy_END_ALLOW_THREADS
;
1272 if (PyErr_Occurred()) return NULL
;
1273 } Py_INCREF(Py_None
);
1274 _resultobj
= Py_None
;
1282 #define wxPrintData_SetFontMetricPath(_swigobj,_swigarg0) (_swigobj->SetFontMetricPath(_swigarg0))
1283 static PyObject
*_wrap_wxPrintData_SetFontMetricPath(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1284 PyObject
* _resultobj
;
1285 wxPrintData
* _arg0
;
1287 PyObject
* _argo0
= 0;
1288 PyObject
* _obj1
= 0;
1289 char *_kwnames
[] = { "self","path", NULL
};
1292 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetFontMetricPath",_kwnames
,&_argo0
,&_obj1
))
1295 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1296 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1297 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetFontMetricPath. Expected _wxPrintData_p.");
1302 #if PYTHON_API_VERSION >= 1009
1303 char* tmpPtr
; int tmpSize
;
1304 if (!PyString_Check(_obj1
) && !PyUnicode_Check(_obj1
)) {
1305 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1308 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1310 _arg1
= new wxString(tmpPtr
, tmpSize
);
1312 if (!PyString_Check(_obj1
)) {
1313 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1316 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
1320 wxPy_BEGIN_ALLOW_THREADS
;
1321 wxPrintData_SetFontMetricPath(_arg0
,*_arg1
);
1323 wxPy_END_ALLOW_THREADS
;
1324 if (PyErr_Occurred()) return NULL
;
1325 } Py_INCREF(Py_None
);
1326 _resultobj
= Py_None
;
1334 #define wxPrintData_SetPrinterScaleX(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleX(_swigarg0))
1335 static PyObject
*_wrap_wxPrintData_SetPrinterScaleX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1336 PyObject
* _resultobj
;
1337 wxPrintData
* _arg0
;
1339 PyObject
* _argo0
= 0;
1340 char *_kwnames
[] = { "self","x", NULL
};
1343 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxPrintData_SetPrinterScaleX",_kwnames
,&_argo0
,&_arg1
))
1346 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1347 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1348 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterScaleX. Expected _wxPrintData_p.");
1353 wxPy_BEGIN_ALLOW_THREADS
;
1354 wxPrintData_SetPrinterScaleX(_arg0
,_arg1
);
1356 wxPy_END_ALLOW_THREADS
;
1357 if (PyErr_Occurred()) return NULL
;
1358 } Py_INCREF(Py_None
);
1359 _resultobj
= Py_None
;
1363 #define wxPrintData_SetPrinterScaleY(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleY(_swigarg0))
1364 static PyObject
*_wrap_wxPrintData_SetPrinterScaleY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1365 PyObject
* _resultobj
;
1366 wxPrintData
* _arg0
;
1368 PyObject
* _argo0
= 0;
1369 char *_kwnames
[] = { "self","y", NULL
};
1372 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Od:wxPrintData_SetPrinterScaleY",_kwnames
,&_argo0
,&_arg1
))
1375 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1376 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1377 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterScaleY. Expected _wxPrintData_p.");
1382 wxPy_BEGIN_ALLOW_THREADS
;
1383 wxPrintData_SetPrinterScaleY(_arg0
,_arg1
);
1385 wxPy_END_ALLOW_THREADS
;
1386 if (PyErr_Occurred()) return NULL
;
1387 } Py_INCREF(Py_None
);
1388 _resultobj
= Py_None
;
1392 #define wxPrintData_SetPrinterScaling(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterScaling(_swigarg0,_swigarg1))
1393 static PyObject
*_wrap_wxPrintData_SetPrinterScaling(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1394 PyObject
* _resultobj
;
1395 wxPrintData
* _arg0
;
1398 PyObject
* _argo0
= 0;
1399 char *_kwnames
[] = { "self","x","y", NULL
};
1402 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Odd:wxPrintData_SetPrinterScaling",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1405 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1406 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1407 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterScaling. Expected _wxPrintData_p.");
1412 wxPy_BEGIN_ALLOW_THREADS
;
1413 wxPrintData_SetPrinterScaling(_arg0
,_arg1
,_arg2
);
1415 wxPy_END_ALLOW_THREADS
;
1416 if (PyErr_Occurred()) return NULL
;
1417 } Py_INCREF(Py_None
);
1418 _resultobj
= Py_None
;
1422 #define wxPrintData_SetPrinterTranslateX(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateX(_swigarg0))
1423 static PyObject
*_wrap_wxPrintData_SetPrinterTranslateX(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1424 PyObject
* _resultobj
;
1425 wxPrintData
* _arg0
;
1427 PyObject
* _argo0
= 0;
1428 char *_kwnames
[] = { "self","x", NULL
};
1431 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxPrintData_SetPrinterTranslateX",_kwnames
,&_argo0
,&_arg1
))
1434 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1435 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1436 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterTranslateX. Expected _wxPrintData_p.");
1441 wxPy_BEGIN_ALLOW_THREADS
;
1442 wxPrintData_SetPrinterTranslateX(_arg0
,_arg1
);
1444 wxPy_END_ALLOW_THREADS
;
1445 if (PyErr_Occurred()) return NULL
;
1446 } Py_INCREF(Py_None
);
1447 _resultobj
= Py_None
;
1451 #define wxPrintData_SetPrinterTranslateY(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateY(_swigarg0))
1452 static PyObject
*_wrap_wxPrintData_SetPrinterTranslateY(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1453 PyObject
* _resultobj
;
1454 wxPrintData
* _arg0
;
1456 PyObject
* _argo0
= 0;
1457 char *_kwnames
[] = { "self","y", NULL
};
1460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Ol:wxPrintData_SetPrinterTranslateY",_kwnames
,&_argo0
,&_arg1
))
1463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterTranslateY. Expected _wxPrintData_p.");
1470 wxPy_BEGIN_ALLOW_THREADS
;
1471 wxPrintData_SetPrinterTranslateY(_arg0
,_arg1
);
1473 wxPy_END_ALLOW_THREADS
;
1474 if (PyErr_Occurred()) return NULL
;
1475 } Py_INCREF(Py_None
);
1476 _resultobj
= Py_None
;
1480 #define wxPrintData_SetPrinterTranslation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterTranslation(_swigarg0,_swigarg1))
1481 static PyObject
*_wrap_wxPrintData_SetPrinterTranslation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1482 PyObject
* _resultobj
;
1483 wxPrintData
* _arg0
;
1486 PyObject
* _argo0
= 0;
1487 char *_kwnames
[] = { "self","x","y", NULL
};
1490 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oll:wxPrintData_SetPrinterTranslation",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
1493 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1494 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1495 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrinterTranslation. Expected _wxPrintData_p.");
1500 wxPy_BEGIN_ALLOW_THREADS
;
1501 wxPrintData_SetPrinterTranslation(_arg0
,_arg1
,_arg2
);
1503 wxPy_END_ALLOW_THREADS
;
1504 if (PyErr_Occurred()) return NULL
;
1505 } Py_INCREF(Py_None
);
1506 _resultobj
= Py_None
;
1510 #define wxPrintData_SetPrintMode(_swigobj,_swigarg0) (_swigobj->SetPrintMode(_swigarg0))
1511 static PyObject
*_wrap_wxPrintData_SetPrintMode(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1512 PyObject
* _resultobj
;
1513 wxPrintData
* _arg0
;
1514 wxPrintMode
* _arg1
;
1515 PyObject
* _argo0
= 0;
1516 PyObject
* _argo1
= 0;
1517 char *_kwnames
[] = { "self","printMode", NULL
};
1520 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintData_SetPrintMode",_kwnames
,&_argo0
,&_argo1
))
1523 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1524 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintData_p")) {
1525 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintData_SetPrintMode. Expected _wxPrintData_p.");
1530 if (_argo1
== Py_None
) { _arg1
= NULL
; }
1531 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPrintMode_p")) {
1532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrintData_SetPrintMode. Expected _wxPrintMode_p.");
1537 wxPy_BEGIN_ALLOW_THREADS
;
1538 wxPrintData_SetPrintMode(_arg0
,*_arg1
);
1540 wxPy_END_ALLOW_THREADS
;
1541 if (PyErr_Occurred()) return NULL
;
1542 } Py_INCREF(Py_None
);
1543 _resultobj
= Py_None
;
1547 static void *SwigwxPageSetupDialogDataTowxObject(void *ptr
) {
1548 wxPageSetupDialogData
*src
;
1550 src
= (wxPageSetupDialogData
*) ptr
;
1551 dest
= (wxObject
*) src
;
1552 return (void *) dest
;
1555 #define new_wxPageSetupDialogData() (new wxPageSetupDialogData())
1556 static PyObject
*_wrap_new_wxPageSetupDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1557 PyObject
* _resultobj
;
1558 wxPageSetupDialogData
* _result
;
1559 char *_kwnames
[] = { NULL
};
1563 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPageSetupDialogData",_kwnames
))
1566 wxPy_BEGIN_ALLOW_THREADS
;
1567 _result
= (wxPageSetupDialogData
*)new_wxPageSetupDialogData();
1569 wxPy_END_ALLOW_THREADS
;
1570 if (PyErr_Occurred()) return NULL
;
1572 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPageSetupDialogData_p");
1573 _resultobj
= Py_BuildValue("s",_ptemp
);
1576 _resultobj
= Py_None
;
1581 #define delete_wxPageSetupDialogData(_swigobj) (delete _swigobj)
1582 static PyObject
*_wrap_delete_wxPageSetupDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1583 PyObject
* _resultobj
;
1584 wxPageSetupDialogData
* _arg0
;
1585 PyObject
* _argo0
= 0;
1586 char *_kwnames
[] = { "self", NULL
};
1589 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPageSetupDialogData",_kwnames
,&_argo0
))
1592 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1593 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1594 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPageSetupDialogData. Expected _wxPageSetupDialogData_p.");
1599 wxPy_BEGIN_ALLOW_THREADS
;
1600 delete_wxPageSetupDialogData(_arg0
);
1602 wxPy_END_ALLOW_THREADS
;
1603 if (PyErr_Occurred()) return NULL
;
1604 } Py_INCREF(Py_None
);
1605 _resultobj
= Py_None
;
1609 #define wxPageSetupDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
1610 static PyObject
*_wrap_wxPageSetupDialogData_EnableHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1611 PyObject
* _resultobj
;
1612 wxPageSetupDialogData
* _arg0
;
1614 PyObject
* _argo0
= 0;
1616 char *_kwnames
[] = { "self","flag", NULL
};
1619 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_EnableHelp",_kwnames
,&_argo0
,&tempbool1
))
1622 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1623 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1624 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_EnableHelp. Expected _wxPageSetupDialogData_p.");
1628 _arg1
= (bool ) tempbool1
;
1630 wxPy_BEGIN_ALLOW_THREADS
;
1631 wxPageSetupDialogData_EnableHelp(_arg0
,_arg1
);
1633 wxPy_END_ALLOW_THREADS
;
1634 if (PyErr_Occurred()) return NULL
;
1635 } Py_INCREF(Py_None
);
1636 _resultobj
= Py_None
;
1640 #define wxPageSetupDialogData_EnableMargins(_swigobj,_swigarg0) (_swigobj->EnableMargins(_swigarg0))
1641 static PyObject
*_wrap_wxPageSetupDialogData_EnableMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1642 PyObject
* _resultobj
;
1643 wxPageSetupDialogData
* _arg0
;
1645 PyObject
* _argo0
= 0;
1647 char *_kwnames
[] = { "self","flag", NULL
};
1650 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_EnableMargins",_kwnames
,&_argo0
,&tempbool1
))
1653 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1654 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_EnableMargins. Expected _wxPageSetupDialogData_p.");
1659 _arg1
= (bool ) tempbool1
;
1661 wxPy_BEGIN_ALLOW_THREADS
;
1662 wxPageSetupDialogData_EnableMargins(_arg0
,_arg1
);
1664 wxPy_END_ALLOW_THREADS
;
1665 if (PyErr_Occurred()) return NULL
;
1666 } Py_INCREF(Py_None
);
1667 _resultobj
= Py_None
;
1671 #define wxPageSetupDialogData_EnableOrientation(_swigobj,_swigarg0) (_swigobj->EnableOrientation(_swigarg0))
1672 static PyObject
*_wrap_wxPageSetupDialogData_EnableOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1673 PyObject
* _resultobj
;
1674 wxPageSetupDialogData
* _arg0
;
1676 PyObject
* _argo0
= 0;
1678 char *_kwnames
[] = { "self","flag", NULL
};
1681 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_EnableOrientation",_kwnames
,&_argo0
,&tempbool1
))
1684 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1685 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1686 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_EnableOrientation. Expected _wxPageSetupDialogData_p.");
1690 _arg1
= (bool ) tempbool1
;
1692 wxPy_BEGIN_ALLOW_THREADS
;
1693 wxPageSetupDialogData_EnableOrientation(_arg0
,_arg1
);
1695 wxPy_END_ALLOW_THREADS
;
1696 if (PyErr_Occurred()) return NULL
;
1697 } Py_INCREF(Py_None
);
1698 _resultobj
= Py_None
;
1702 #define wxPageSetupDialogData_EnablePaper(_swigobj,_swigarg0) (_swigobj->EnablePaper(_swigarg0))
1703 static PyObject
*_wrap_wxPageSetupDialogData_EnablePaper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1704 PyObject
* _resultobj
;
1705 wxPageSetupDialogData
* _arg0
;
1707 PyObject
* _argo0
= 0;
1709 char *_kwnames
[] = { "self","flag", NULL
};
1712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_EnablePaper",_kwnames
,&_argo0
,&tempbool1
))
1715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_EnablePaper. Expected _wxPageSetupDialogData_p.");
1721 _arg1
= (bool ) tempbool1
;
1723 wxPy_BEGIN_ALLOW_THREADS
;
1724 wxPageSetupDialogData_EnablePaper(_arg0
,_arg1
);
1726 wxPy_END_ALLOW_THREADS
;
1727 if (PyErr_Occurred()) return NULL
;
1728 } Py_INCREF(Py_None
);
1729 _resultobj
= Py_None
;
1733 #define wxPageSetupDialogData_EnablePrinter(_swigobj,_swigarg0) (_swigobj->EnablePrinter(_swigarg0))
1734 static PyObject
*_wrap_wxPageSetupDialogData_EnablePrinter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1735 PyObject
* _resultobj
;
1736 wxPageSetupDialogData
* _arg0
;
1738 PyObject
* _argo0
= 0;
1740 char *_kwnames
[] = { "self","flag", NULL
};
1743 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_EnablePrinter",_kwnames
,&_argo0
,&tempbool1
))
1746 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1747 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1748 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_EnablePrinter. Expected _wxPageSetupDialogData_p.");
1752 _arg1
= (bool ) tempbool1
;
1754 wxPy_BEGIN_ALLOW_THREADS
;
1755 wxPageSetupDialogData_EnablePrinter(_arg0
,_arg1
);
1757 wxPy_END_ALLOW_THREADS
;
1758 if (PyErr_Occurred()) return NULL
;
1759 } Py_INCREF(Py_None
);
1760 _resultobj
= Py_None
;
1764 #define wxPageSetupDialogData_GetDefaultMinMargins(_swigobj) (_swigobj->GetDefaultMinMargins())
1765 static PyObject
*_wrap_wxPageSetupDialogData_GetDefaultMinMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1766 PyObject
* _resultobj
;
1768 wxPageSetupDialogData
* _arg0
;
1769 PyObject
* _argo0
= 0;
1770 char *_kwnames
[] = { "self", NULL
};
1773 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetDefaultMinMargins",_kwnames
,&_argo0
))
1776 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1777 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1778 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
1783 wxPy_BEGIN_ALLOW_THREADS
;
1784 _result
= (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0
);
1786 wxPy_END_ALLOW_THREADS
;
1787 if (PyErr_Occurred()) return NULL
;
1788 } _resultobj
= Py_BuildValue("i",_result
);
1792 #define wxPageSetupDialogData_GetEnableMargins(_swigobj) (_swigobj->GetEnableMargins())
1793 static PyObject
*_wrap_wxPageSetupDialogData_GetEnableMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1794 PyObject
* _resultobj
;
1796 wxPageSetupDialogData
* _arg0
;
1797 PyObject
* _argo0
= 0;
1798 char *_kwnames
[] = { "self", NULL
};
1801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetEnableMargins",_kwnames
,&_argo0
))
1804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetEnableMargins. Expected _wxPageSetupDialogData_p.");
1811 wxPy_BEGIN_ALLOW_THREADS
;
1812 _result
= (bool )wxPageSetupDialogData_GetEnableMargins(_arg0
);
1814 wxPy_END_ALLOW_THREADS
;
1815 if (PyErr_Occurred()) return NULL
;
1816 } _resultobj
= Py_BuildValue("i",_result
);
1820 #define wxPageSetupDialogData_GetEnableOrientation(_swigobj) (_swigobj->GetEnableOrientation())
1821 static PyObject
*_wrap_wxPageSetupDialogData_GetEnableOrientation(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1822 PyObject
* _resultobj
;
1824 wxPageSetupDialogData
* _arg0
;
1825 PyObject
* _argo0
= 0;
1826 char *_kwnames
[] = { "self", NULL
};
1829 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetEnableOrientation",_kwnames
,&_argo0
))
1832 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1833 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1834 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetEnableOrientation. Expected _wxPageSetupDialogData_p.");
1839 wxPy_BEGIN_ALLOW_THREADS
;
1840 _result
= (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0
);
1842 wxPy_END_ALLOW_THREADS
;
1843 if (PyErr_Occurred()) return NULL
;
1844 } _resultobj
= Py_BuildValue("i",_result
);
1848 #define wxPageSetupDialogData_GetEnablePaper(_swigobj) (_swigobj->GetEnablePaper())
1849 static PyObject
*_wrap_wxPageSetupDialogData_GetEnablePaper(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1850 PyObject
* _resultobj
;
1852 wxPageSetupDialogData
* _arg0
;
1853 PyObject
* _argo0
= 0;
1854 char *_kwnames
[] = { "self", NULL
};
1857 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetEnablePaper",_kwnames
,&_argo0
))
1860 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1861 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1862 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePaper. Expected _wxPageSetupDialogData_p.");
1867 wxPy_BEGIN_ALLOW_THREADS
;
1868 _result
= (bool )wxPageSetupDialogData_GetEnablePaper(_arg0
);
1870 wxPy_END_ALLOW_THREADS
;
1871 if (PyErr_Occurred()) return NULL
;
1872 } _resultobj
= Py_BuildValue("i",_result
);
1876 #define wxPageSetupDialogData_GetEnablePrinter(_swigobj) (_swigobj->GetEnablePrinter())
1877 static PyObject
*_wrap_wxPageSetupDialogData_GetEnablePrinter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1878 PyObject
* _resultobj
;
1880 wxPageSetupDialogData
* _arg0
;
1881 PyObject
* _argo0
= 0;
1882 char *_kwnames
[] = { "self", NULL
};
1885 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetEnablePrinter",_kwnames
,&_argo0
))
1888 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1889 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1890 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePrinter. Expected _wxPageSetupDialogData_p.");
1895 wxPy_BEGIN_ALLOW_THREADS
;
1896 _result
= (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0
);
1898 wxPy_END_ALLOW_THREADS
;
1899 if (PyErr_Occurred()) return NULL
;
1900 } _resultobj
= Py_BuildValue("i",_result
);
1904 #define wxPageSetupDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp())
1905 static PyObject
*_wrap_wxPageSetupDialogData_GetEnableHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1906 PyObject
* _resultobj
;
1908 wxPageSetupDialogData
* _arg0
;
1909 PyObject
* _argo0
= 0;
1910 char *_kwnames
[] = { "self", NULL
};
1913 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetEnableHelp",_kwnames
,&_argo0
))
1916 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1917 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1918 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetEnableHelp. Expected _wxPageSetupDialogData_p.");
1923 wxPy_BEGIN_ALLOW_THREADS
;
1924 _result
= (bool )wxPageSetupDialogData_GetEnableHelp(_arg0
);
1926 wxPy_END_ALLOW_THREADS
;
1927 if (PyErr_Occurred()) return NULL
;
1928 } _resultobj
= Py_BuildValue("i",_result
);
1932 #define wxPageSetupDialogData_GetDefaultInfo(_swigobj) (_swigobj->GetDefaultInfo())
1933 static PyObject
*_wrap_wxPageSetupDialogData_GetDefaultInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1934 PyObject
* _resultobj
;
1936 wxPageSetupDialogData
* _arg0
;
1937 PyObject
* _argo0
= 0;
1938 char *_kwnames
[] = { "self", NULL
};
1941 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetDefaultInfo",_kwnames
,&_argo0
))
1944 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1945 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1946 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultInfo. Expected _wxPageSetupDialogData_p.");
1951 wxPy_BEGIN_ALLOW_THREADS
;
1952 _result
= (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0
);
1954 wxPy_END_ALLOW_THREADS
;
1955 if (PyErr_Occurred()) return NULL
;
1956 } _resultobj
= Py_BuildValue("i",_result
);
1960 #define wxPageSetupDialogData_GetMarginTopLeft(_swigobj) (_swigobj->GetMarginTopLeft())
1961 static PyObject
*_wrap_wxPageSetupDialogData_GetMarginTopLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1962 PyObject
* _resultobj
;
1964 wxPageSetupDialogData
* _arg0
;
1965 PyObject
* _argo0
= 0;
1966 char *_kwnames
[] = { "self", NULL
};
1970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetMarginTopLeft",_kwnames
,&_argo0
))
1973 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1974 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
1975 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
1980 wxPy_BEGIN_ALLOW_THREADS
;
1981 _result
= new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0
));
1983 wxPy_END_ALLOW_THREADS
;
1984 if (PyErr_Occurred()) return NULL
;
1985 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
1986 _resultobj
= Py_BuildValue("s",_ptemp
);
1990 #define wxPageSetupDialogData_GetMarginBottomRight(_swigobj) (_swigobj->GetMarginBottomRight())
1991 static PyObject
*_wrap_wxPageSetupDialogData_GetMarginBottomRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1992 PyObject
* _resultobj
;
1994 wxPageSetupDialogData
* _arg0
;
1995 PyObject
* _argo0
= 0;
1996 char *_kwnames
[] = { "self", NULL
};
2000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetMarginBottomRight",_kwnames
,&_argo0
))
2003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2010 wxPy_BEGIN_ALLOW_THREADS
;
2011 _result
= new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0
));
2013 wxPy_END_ALLOW_THREADS
;
2014 if (PyErr_Occurred()) return NULL
;
2015 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2016 _resultobj
= Py_BuildValue("s",_ptemp
);
2020 #define wxPageSetupDialogData_GetMinMarginTopLeft(_swigobj) (_swigobj->GetMinMarginTopLeft())
2021 static PyObject
*_wrap_wxPageSetupDialogData_GetMinMarginTopLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2022 PyObject
* _resultobj
;
2024 wxPageSetupDialogData
* _arg0
;
2025 PyObject
* _argo0
= 0;
2026 char *_kwnames
[] = { "self", NULL
};
2030 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetMinMarginTopLeft",_kwnames
,&_argo0
))
2033 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2034 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2035 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2040 wxPy_BEGIN_ALLOW_THREADS
;
2041 _result
= new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0
));
2043 wxPy_END_ALLOW_THREADS
;
2044 if (PyErr_Occurred()) return NULL
;
2045 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2046 _resultobj
= Py_BuildValue("s",_ptemp
);
2050 #define wxPageSetupDialogData_GetMinMarginBottomRight(_swigobj) (_swigobj->GetMinMarginBottomRight())
2051 static PyObject
*_wrap_wxPageSetupDialogData_GetMinMarginBottomRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2052 PyObject
* _resultobj
;
2054 wxPageSetupDialogData
* _arg0
;
2055 PyObject
* _argo0
= 0;
2056 char *_kwnames
[] = { "self", NULL
};
2060 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetMinMarginBottomRight",_kwnames
,&_argo0
))
2063 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2064 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2065 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2070 wxPy_BEGIN_ALLOW_THREADS
;
2071 _result
= new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0
));
2073 wxPy_END_ALLOW_THREADS
;
2074 if (PyErr_Occurred()) return NULL
;
2075 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxPoint_p");
2076 _resultobj
= Py_BuildValue("s",_ptemp
);
2080 #define wxPageSetupDialogData_GetPaperId(_swigobj) (_swigobj->GetPaperId())
2081 static PyObject
*_wrap_wxPageSetupDialogData_GetPaperId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2082 PyObject
* _resultobj
;
2083 wxPaperSize _result
;
2084 wxPageSetupDialogData
* _arg0
;
2085 PyObject
* _argo0
= 0;
2086 char *_kwnames
[] = { "self", NULL
};
2089 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetPaperId",_kwnames
,&_argo0
))
2092 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2093 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2094 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetPaperId. Expected _wxPageSetupDialogData_p.");
2099 wxPy_BEGIN_ALLOW_THREADS
;
2100 _result
= (wxPaperSize
)wxPageSetupDialogData_GetPaperId(_arg0
);
2102 wxPy_END_ALLOW_THREADS
;
2103 if (PyErr_Occurred()) return NULL
;
2104 } _resultobj
= Py_BuildValue("i",_result
);
2108 #define wxPageSetupDialogData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize())
2109 static PyObject
*_wrap_wxPageSetupDialogData_GetPaperSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2110 PyObject
* _resultobj
;
2112 wxPageSetupDialogData
* _arg0
;
2113 PyObject
* _argo0
= 0;
2114 char *_kwnames
[] = { "self", NULL
};
2118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetPaperSize",_kwnames
,&_argo0
))
2121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetPaperSize. Expected _wxPageSetupDialogData_p.");
2128 wxPy_BEGIN_ALLOW_THREADS
;
2129 _result
= new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0
));
2131 wxPy_END_ALLOW_THREADS
;
2132 if (PyErr_Occurred()) return NULL
;
2133 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxSize_p");
2134 _resultobj
= Py_BuildValue("s",_ptemp
);
2138 static wxPrintData
* wxPageSetupDialogData_GetPrintData(wxPageSetupDialogData
*self
) {
2139 return new wxPrintData(self
->GetPrintData()); // force a copy
2141 static PyObject
*_wrap_wxPageSetupDialogData_GetPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2142 PyObject
* _resultobj
;
2143 wxPrintData
* _result
;
2144 wxPageSetupDialogData
* _arg0
;
2145 PyObject
* _argo0
= 0;
2146 char *_kwnames
[] = { "self", NULL
};
2150 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialogData_GetPrintData",_kwnames
,&_argo0
))
2153 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2154 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2155 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_GetPrintData. Expected _wxPageSetupDialogData_p.");
2160 wxPy_BEGIN_ALLOW_THREADS
;
2161 _result
= (wxPrintData
*)wxPageSetupDialogData_GetPrintData(_arg0
);
2163 wxPy_END_ALLOW_THREADS
;
2164 if (PyErr_Occurred()) return NULL
;
2166 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintData_p");
2167 _resultobj
= Py_BuildValue("s",_ptemp
);
2170 _resultobj
= Py_None
;
2175 #define wxPageSetupDialogData_SetDefaultInfo(_swigobj,_swigarg0) (_swigobj->SetDefaultInfo(_swigarg0))
2176 static PyObject
*_wrap_wxPageSetupDialogData_SetDefaultInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2177 PyObject
* _resultobj
;
2178 wxPageSetupDialogData
* _arg0
;
2180 PyObject
* _argo0
= 0;
2182 char *_kwnames
[] = { "self","flag", NULL
};
2185 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_SetDefaultInfo",_kwnames
,&_argo0
,&tempbool1
))
2188 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2189 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2190 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultInfo. Expected _wxPageSetupDialogData_p.");
2194 _arg1
= (bool ) tempbool1
;
2196 wxPy_BEGIN_ALLOW_THREADS
;
2197 wxPageSetupDialogData_SetDefaultInfo(_arg0
,_arg1
);
2199 wxPy_END_ALLOW_THREADS
;
2200 if (PyErr_Occurred()) return NULL
;
2201 } Py_INCREF(Py_None
);
2202 _resultobj
= Py_None
;
2206 #define wxPageSetupDialogData_SetDefaultMinMargins(_swigobj,_swigarg0) (_swigobj->SetDefaultMinMargins(_swigarg0))
2207 static PyObject
*_wrap_wxPageSetupDialogData_SetDefaultMinMargins(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2208 PyObject
* _resultobj
;
2209 wxPageSetupDialogData
* _arg0
;
2211 PyObject
* _argo0
= 0;
2213 char *_kwnames
[] = { "self","flag", NULL
};
2216 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_SetDefaultMinMargins",_kwnames
,&_argo0
,&tempbool1
))
2219 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2220 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2221 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultMinMargins. Expected _wxPageSetupDialogData_p.");
2225 _arg1
= (bool ) tempbool1
;
2227 wxPy_BEGIN_ALLOW_THREADS
;
2228 wxPageSetupDialogData_SetDefaultMinMargins(_arg0
,_arg1
);
2230 wxPy_END_ALLOW_THREADS
;
2231 if (PyErr_Occurred()) return NULL
;
2232 } Py_INCREF(Py_None
);
2233 _resultobj
= Py_None
;
2237 #define wxPageSetupDialogData_SetMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMarginTopLeft(_swigarg0))
2238 static PyObject
*_wrap_wxPageSetupDialogData_SetMarginTopLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2239 PyObject
* _resultobj
;
2240 wxPageSetupDialogData
* _arg0
;
2242 PyObject
* _argo0
= 0;
2244 PyObject
* _obj1
= 0;
2245 char *_kwnames
[] = { "self","pt", NULL
};
2248 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetMarginTopLeft",_kwnames
,&_argo0
,&_obj1
))
2251 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2252 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2253 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2259 if (! wxPoint_helper(_obj1
, &_arg1
))
2263 wxPy_BEGIN_ALLOW_THREADS
;
2264 wxPageSetupDialogData_SetMarginTopLeft(_arg0
,*_arg1
);
2266 wxPy_END_ALLOW_THREADS
;
2267 if (PyErr_Occurred()) return NULL
;
2268 } Py_INCREF(Py_None
);
2269 _resultobj
= Py_None
;
2273 #define wxPageSetupDialogData_SetMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMarginBottomRight(_swigarg0))
2274 static PyObject
*_wrap_wxPageSetupDialogData_SetMarginBottomRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2275 PyObject
* _resultobj
;
2276 wxPageSetupDialogData
* _arg0
;
2278 PyObject
* _argo0
= 0;
2280 PyObject
* _obj1
= 0;
2281 char *_kwnames
[] = { "self","pt", NULL
};
2284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetMarginBottomRight",_kwnames
,&_argo0
,&_obj1
))
2287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2295 if (! wxPoint_helper(_obj1
, &_arg1
))
2299 wxPy_BEGIN_ALLOW_THREADS
;
2300 wxPageSetupDialogData_SetMarginBottomRight(_arg0
,*_arg1
);
2302 wxPy_END_ALLOW_THREADS
;
2303 if (PyErr_Occurred()) return NULL
;
2304 } Py_INCREF(Py_None
);
2305 _resultobj
= Py_None
;
2309 #define wxPageSetupDialogData_SetMinMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMinMarginTopLeft(_swigarg0))
2310 static PyObject
*_wrap_wxPageSetupDialogData_SetMinMarginTopLeft(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2311 PyObject
* _resultobj
;
2312 wxPageSetupDialogData
* _arg0
;
2314 PyObject
* _argo0
= 0;
2316 PyObject
* _obj1
= 0;
2317 char *_kwnames
[] = { "self","pt", NULL
};
2320 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetMinMarginTopLeft",_kwnames
,&_argo0
,&_obj1
))
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_SetMinMarginTopLeft. Expected _wxPageSetupDialogData_p.");
2331 if (! wxPoint_helper(_obj1
, &_arg1
))
2335 wxPy_BEGIN_ALLOW_THREADS
;
2336 wxPageSetupDialogData_SetMinMarginTopLeft(_arg0
,*_arg1
);
2338 wxPy_END_ALLOW_THREADS
;
2339 if (PyErr_Occurred()) return NULL
;
2340 } Py_INCREF(Py_None
);
2341 _resultobj
= Py_None
;
2345 #define wxPageSetupDialogData_SetMinMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMinMarginBottomRight(_swigarg0))
2346 static PyObject
*_wrap_wxPageSetupDialogData_SetMinMarginBottomRight(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2347 PyObject
* _resultobj
;
2348 wxPageSetupDialogData
* _arg0
;
2350 PyObject
* _argo0
= 0;
2352 PyObject
* _obj1
= 0;
2353 char *_kwnames
[] = { "self","pt", NULL
};
2356 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetMinMarginBottomRight",_kwnames
,&_argo0
,&_obj1
))
2359 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2360 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2361 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginBottomRight. Expected _wxPageSetupDialogData_p.");
2367 if (! wxPoint_helper(_obj1
, &_arg1
))
2371 wxPy_BEGIN_ALLOW_THREADS
;
2372 wxPageSetupDialogData_SetMinMarginBottomRight(_arg0
,*_arg1
);
2374 wxPy_END_ALLOW_THREADS
;
2375 if (PyErr_Occurred()) return NULL
;
2376 } Py_INCREF(Py_None
);
2377 _resultobj
= Py_None
;
2381 #define wxPageSetupDialogData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0))
2382 static PyObject
*_wrap_wxPageSetupDialogData_SetPaperId(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2383 PyObject
* _resultobj
;
2384 wxPageSetupDialogData
* _arg0
;
2386 PyObject
* _argo0
= 0;
2387 char *_kwnames
[] = { "self","id", NULL
};
2390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPageSetupDialogData_SetPaperId",_kwnames
,&_argo0
,&_arg1
))
2393 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2394 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2395 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetPaperId. Expected _wxPageSetupDialogData_p.");
2400 wxPy_BEGIN_ALLOW_THREADS
;
2401 wxPageSetupDialogData_SetPaperId(_arg0
,_arg1
);
2403 wxPy_END_ALLOW_THREADS
;
2404 if (PyErr_Occurred()) return NULL
;
2405 } Py_INCREF(Py_None
);
2406 _resultobj
= Py_None
;
2410 #define wxPageSetupDialogData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0))
2411 static PyObject
*_wrap_wxPageSetupDialogData_SetPaperSize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2412 PyObject
* _resultobj
;
2413 wxPageSetupDialogData
* _arg0
;
2415 PyObject
* _argo0
= 0;
2417 PyObject
* _obj1
= 0;
2418 char *_kwnames
[] = { "self","size", NULL
};
2421 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetPaperSize",_kwnames
,&_argo0
,&_obj1
))
2424 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2425 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2426 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetPaperSize. Expected _wxPageSetupDialogData_p.");
2432 if (! wxSize_helper(_obj1
, &_arg1
))
2436 wxPy_BEGIN_ALLOW_THREADS
;
2437 wxPageSetupDialogData_SetPaperSize(_arg0
,*_arg1
);
2439 wxPy_END_ALLOW_THREADS
;
2440 if (PyErr_Occurred()) return NULL
;
2441 } Py_INCREF(Py_None
);
2442 _resultobj
= Py_None
;
2446 #define wxPageSetupDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
2447 static PyObject
*_wrap_wxPageSetupDialogData_SetPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2448 PyObject
* _resultobj
;
2449 wxPageSetupDialogData
* _arg0
;
2450 wxPrintData
* _arg1
;
2451 PyObject
* _argo0
= 0;
2452 PyObject
* _argo1
= 0;
2453 char *_kwnames
[] = { "self","printData", NULL
};
2456 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPageSetupDialogData_SetPrintData",_kwnames
,&_argo0
,&_argo1
))
2459 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2460 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialogData_p")) {
2461 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialogData_SetPrintData. Expected _wxPageSetupDialogData_p.");
2466 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2467 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPrintData_p")) {
2468 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPageSetupDialogData_SetPrintData. Expected _wxPrintData_p.");
2473 wxPy_BEGIN_ALLOW_THREADS
;
2474 wxPageSetupDialogData_SetPrintData(_arg0
,*_arg1
);
2476 wxPy_END_ALLOW_THREADS
;
2477 if (PyErr_Occurred()) return NULL
;
2478 } Py_INCREF(Py_None
);
2479 _resultobj
= Py_None
;
2483 static void *SwigwxPageSetupDialogTowxDialog(void *ptr
) {
2484 wxPageSetupDialog
*src
;
2486 src
= (wxPageSetupDialog
*) ptr
;
2487 dest
= (wxDialog
*) src
;
2488 return (void *) dest
;
2491 static void *SwigwxPageSetupDialogTowxTopLevelWindow(void *ptr
) {
2492 wxPageSetupDialog
*src
;
2493 wxTopLevelWindow
*dest
;
2494 src
= (wxPageSetupDialog
*) ptr
;
2495 dest
= (wxTopLevelWindow
*) src
;
2496 return (void *) dest
;
2499 static void *SwigwxPageSetupDialogTowxWindow(void *ptr
) {
2500 wxPageSetupDialog
*src
;
2502 src
= (wxPageSetupDialog
*) ptr
;
2503 dest
= (wxWindow
*) src
;
2504 return (void *) dest
;
2507 static void *SwigwxPageSetupDialogTowxEvtHandler(void *ptr
) {
2508 wxPageSetupDialog
*src
;
2510 src
= (wxPageSetupDialog
*) ptr
;
2511 dest
= (wxEvtHandler
*) src
;
2512 return (void *) dest
;
2515 static void *SwigwxPageSetupDialogTowxObject(void *ptr
) {
2516 wxPageSetupDialog
*src
;
2518 src
= (wxPageSetupDialog
*) ptr
;
2519 dest
= (wxObject
*) src
;
2520 return (void *) dest
;
2523 #define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1))
2524 static PyObject
*_wrap_new_wxPageSetupDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2525 PyObject
* _resultobj
;
2526 wxPageSetupDialog
* _result
;
2528 wxPageSetupDialogData
* _arg1
= (wxPageSetupDialogData
*) NULL
;
2529 PyObject
* _argo0
= 0;
2530 PyObject
* _argo1
= 0;
2531 char *_kwnames
[] = { "parent","data", NULL
};
2535 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxPageSetupDialog",_kwnames
,&_argo0
,&_argo1
))
2538 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2539 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
2540 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPageSetupDialog. Expected _wxWindow_p.");
2545 if (_argo1
== Py_None
) { _arg1
= NULL
; }
2546 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPageSetupDialogData_p")) {
2547 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxPageSetupDialog. Expected _wxPageSetupDialogData_p.");
2552 wxPy_BEGIN_ALLOW_THREADS
;
2553 _result
= (wxPageSetupDialog
*)new_wxPageSetupDialog(_arg0
,_arg1
);
2555 wxPy_END_ALLOW_THREADS
;
2556 if (PyErr_Occurred()) return NULL
;
2558 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPageSetupDialog_p");
2559 _resultobj
= Py_BuildValue("s",_ptemp
);
2562 _resultobj
= Py_None
;
2567 #define wxPageSetupDialog_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData())
2568 static PyObject
*_wrap_wxPageSetupDialog_GetPageSetupData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2569 PyObject
* _resultobj
;
2570 wxPageSetupDialogData
* _result
;
2571 wxPageSetupDialog
* _arg0
;
2572 PyObject
* _argo0
= 0;
2573 char *_kwnames
[] = { "self", NULL
};
2577 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialog_GetPageSetupData",_kwnames
,&_argo0
))
2580 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2581 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialog_p")) {
2582 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialog_GetPageSetupData. Expected _wxPageSetupDialog_p.");
2587 wxPy_BEGIN_ALLOW_THREADS
;
2588 wxPageSetupDialogData
& _result_ref
= wxPageSetupDialog_GetPageSetupData(_arg0
);
2589 _result
= (wxPageSetupDialogData
*) &_result_ref
;
2591 wxPy_END_ALLOW_THREADS
;
2592 if (PyErr_Occurred()) return NULL
;
2594 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPageSetupDialogData_p");
2595 _resultobj
= Py_BuildValue("s",_ptemp
);
2598 _resultobj
= Py_None
;
2603 #define wxPageSetupDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
2604 static PyObject
*_wrap_wxPageSetupDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2605 PyObject
* _resultobj
;
2607 wxPageSetupDialog
* _arg0
;
2608 PyObject
* _argo0
= 0;
2609 char *_kwnames
[] = { "self", NULL
};
2612 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPageSetupDialog_ShowModal",_kwnames
,&_argo0
))
2615 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2616 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPageSetupDialog_p")) {
2617 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPageSetupDialog_ShowModal. Expected _wxPageSetupDialog_p.");
2622 wxPy_BEGIN_ALLOW_THREADS
;
2623 _result
= (int )wxPageSetupDialog_ShowModal(_arg0
);
2625 wxPy_END_ALLOW_THREADS
;
2626 if (PyErr_Occurred()) return NULL
;
2627 } _resultobj
= Py_BuildValue("i",_result
);
2631 static void *SwigwxPrintDialogDataTowxObject(void *ptr
) {
2632 wxPrintDialogData
*src
;
2634 src
= (wxPrintDialogData
*) ptr
;
2635 dest
= (wxObject
*) src
;
2636 return (void *) dest
;
2639 #define new_wxPrintDialogData() (new wxPrintDialogData())
2640 static PyObject
*_wrap_new_wxPrintDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2641 PyObject
* _resultobj
;
2642 wxPrintDialogData
* _result
;
2643 char *_kwnames
[] = { NULL
};
2647 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":new_wxPrintDialogData",_kwnames
))
2650 wxPy_BEGIN_ALLOW_THREADS
;
2651 _result
= (wxPrintDialogData
*)new_wxPrintDialogData();
2653 wxPy_END_ALLOW_THREADS
;
2654 if (PyErr_Occurred()) return NULL
;
2656 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintDialogData_p");
2657 _resultobj
= Py_BuildValue("s",_ptemp
);
2660 _resultobj
= Py_None
;
2665 #define delete_wxPrintDialogData(_swigobj) (delete _swigobj)
2666 static PyObject
*_wrap_delete_wxPrintDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2667 PyObject
* _resultobj
;
2668 wxPrintDialogData
* _arg0
;
2669 PyObject
* _argo0
= 0;
2670 char *_kwnames
[] = { "self", NULL
};
2673 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPrintDialogData",_kwnames
,&_argo0
))
2676 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2677 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2678 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPrintDialogData. Expected _wxPrintDialogData_p.");
2683 wxPy_BEGIN_ALLOW_THREADS
;
2684 delete_wxPrintDialogData(_arg0
);
2686 wxPy_END_ALLOW_THREADS
;
2687 if (PyErr_Occurred()) return NULL
;
2688 } Py_INCREF(Py_None
);
2689 _resultobj
= Py_None
;
2693 #define wxPrintDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0))
2694 static PyObject
*_wrap_wxPrintDialogData_EnableHelp(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2695 PyObject
* _resultobj
;
2696 wxPrintDialogData
* _arg0
;
2698 PyObject
* _argo0
= 0;
2700 char *_kwnames
[] = { "self","flag", NULL
};
2703 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_EnableHelp",_kwnames
,&_argo0
,&tempbool1
))
2706 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2707 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2708 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_EnableHelp. Expected _wxPrintDialogData_p.");
2712 _arg1
= (bool ) tempbool1
;
2714 wxPy_BEGIN_ALLOW_THREADS
;
2715 wxPrintDialogData_EnableHelp(_arg0
,_arg1
);
2717 wxPy_END_ALLOW_THREADS
;
2718 if (PyErr_Occurred()) return NULL
;
2719 } Py_INCREF(Py_None
);
2720 _resultobj
= Py_None
;
2724 #define wxPrintDialogData_EnablePageNumbers(_swigobj,_swigarg0) (_swigobj->EnablePageNumbers(_swigarg0))
2725 static PyObject
*_wrap_wxPrintDialogData_EnablePageNumbers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2726 PyObject
* _resultobj
;
2727 wxPrintDialogData
* _arg0
;
2729 PyObject
* _argo0
= 0;
2731 char *_kwnames
[] = { "self","flag", NULL
};
2734 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_EnablePageNumbers",_kwnames
,&_argo0
,&tempbool1
))
2737 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2738 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2739 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_EnablePageNumbers. Expected _wxPrintDialogData_p.");
2743 _arg1
= (bool ) tempbool1
;
2745 wxPy_BEGIN_ALLOW_THREADS
;
2746 wxPrintDialogData_EnablePageNumbers(_arg0
,_arg1
);
2748 wxPy_END_ALLOW_THREADS
;
2749 if (PyErr_Occurred()) return NULL
;
2750 } Py_INCREF(Py_None
);
2751 _resultobj
= Py_None
;
2755 #define wxPrintDialogData_EnablePrintToFile(_swigobj,_swigarg0) (_swigobj->EnablePrintToFile(_swigarg0))
2756 static PyObject
*_wrap_wxPrintDialogData_EnablePrintToFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2757 PyObject
* _resultobj
;
2758 wxPrintDialogData
* _arg0
;
2760 PyObject
* _argo0
= 0;
2762 char *_kwnames
[] = { "self","flag", NULL
};
2765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_EnablePrintToFile",_kwnames
,&_argo0
,&tempbool1
))
2768 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2769 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2770 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_EnablePrintToFile. Expected _wxPrintDialogData_p.");
2774 _arg1
= (bool ) tempbool1
;
2776 wxPy_BEGIN_ALLOW_THREADS
;
2777 wxPrintDialogData_EnablePrintToFile(_arg0
,_arg1
);
2779 wxPy_END_ALLOW_THREADS
;
2780 if (PyErr_Occurred()) return NULL
;
2781 } Py_INCREF(Py_None
);
2782 _resultobj
= Py_None
;
2786 #define wxPrintDialogData_EnableSelection(_swigobj,_swigarg0) (_swigobj->EnableSelection(_swigarg0))
2787 static PyObject
*_wrap_wxPrintDialogData_EnableSelection(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2788 PyObject
* _resultobj
;
2789 wxPrintDialogData
* _arg0
;
2791 PyObject
* _argo0
= 0;
2793 char *_kwnames
[] = { "self","flag", NULL
};
2796 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_EnableSelection",_kwnames
,&_argo0
,&tempbool1
))
2799 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2800 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2801 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_EnableSelection. Expected _wxPrintDialogData_p.");
2805 _arg1
= (bool ) tempbool1
;
2807 wxPy_BEGIN_ALLOW_THREADS
;
2808 wxPrintDialogData_EnableSelection(_arg0
,_arg1
);
2810 wxPy_END_ALLOW_THREADS
;
2811 if (PyErr_Occurred()) return NULL
;
2812 } Py_INCREF(Py_None
);
2813 _resultobj
= Py_None
;
2817 #define wxPrintDialogData_GetAllPages(_swigobj) (_swigobj->GetAllPages())
2818 static PyObject
*_wrap_wxPrintDialogData_GetAllPages(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2819 PyObject
* _resultobj
;
2821 wxPrintDialogData
* _arg0
;
2822 PyObject
* _argo0
= 0;
2823 char *_kwnames
[] = { "self", NULL
};
2826 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetAllPages",_kwnames
,&_argo0
))
2829 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2830 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2831 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetAllPages. Expected _wxPrintDialogData_p.");
2836 wxPy_BEGIN_ALLOW_THREADS
;
2837 _result
= (bool )wxPrintDialogData_GetAllPages(_arg0
);
2839 wxPy_END_ALLOW_THREADS
;
2840 if (PyErr_Occurred()) return NULL
;
2841 } _resultobj
= Py_BuildValue("i",_result
);
2845 #define wxPrintDialogData_GetCollate(_swigobj) (_swigobj->GetCollate())
2846 static PyObject
*_wrap_wxPrintDialogData_GetCollate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2847 PyObject
* _resultobj
;
2849 wxPrintDialogData
* _arg0
;
2850 PyObject
* _argo0
= 0;
2851 char *_kwnames
[] = { "self", NULL
};
2854 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetCollate",_kwnames
,&_argo0
))
2857 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2858 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2859 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetCollate. Expected _wxPrintDialogData_p.");
2864 wxPy_BEGIN_ALLOW_THREADS
;
2865 _result
= (bool )wxPrintDialogData_GetCollate(_arg0
);
2867 wxPy_END_ALLOW_THREADS
;
2868 if (PyErr_Occurred()) return NULL
;
2869 } _resultobj
= Py_BuildValue("i",_result
);
2873 #define wxPrintDialogData_GetFromPage(_swigobj) (_swigobj->GetFromPage())
2874 static PyObject
*_wrap_wxPrintDialogData_GetFromPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2875 PyObject
* _resultobj
;
2877 wxPrintDialogData
* _arg0
;
2878 PyObject
* _argo0
= 0;
2879 char *_kwnames
[] = { "self", NULL
};
2882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetFromPage",_kwnames
,&_argo0
))
2885 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2886 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2887 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetFromPage. Expected _wxPrintDialogData_p.");
2892 wxPy_BEGIN_ALLOW_THREADS
;
2893 _result
= (int )wxPrintDialogData_GetFromPage(_arg0
);
2895 wxPy_END_ALLOW_THREADS
;
2896 if (PyErr_Occurred()) return NULL
;
2897 } _resultobj
= Py_BuildValue("i",_result
);
2901 #define wxPrintDialogData_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
2902 static PyObject
*_wrap_wxPrintDialogData_GetMaxPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2903 PyObject
* _resultobj
;
2905 wxPrintDialogData
* _arg0
;
2906 PyObject
* _argo0
= 0;
2907 char *_kwnames
[] = { "self", NULL
};
2910 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetMaxPage",_kwnames
,&_argo0
))
2913 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2914 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2915 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetMaxPage. Expected _wxPrintDialogData_p.");
2920 wxPy_BEGIN_ALLOW_THREADS
;
2921 _result
= (int )wxPrintDialogData_GetMaxPage(_arg0
);
2923 wxPy_END_ALLOW_THREADS
;
2924 if (PyErr_Occurred()) return NULL
;
2925 } _resultobj
= Py_BuildValue("i",_result
);
2929 #define wxPrintDialogData_GetMinPage(_swigobj) (_swigobj->GetMinPage())
2930 static PyObject
*_wrap_wxPrintDialogData_GetMinPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2931 PyObject
* _resultobj
;
2933 wxPrintDialogData
* _arg0
;
2934 PyObject
* _argo0
= 0;
2935 char *_kwnames
[] = { "self", NULL
};
2938 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetMinPage",_kwnames
,&_argo0
))
2941 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2942 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetMinPage. Expected _wxPrintDialogData_p.");
2948 wxPy_BEGIN_ALLOW_THREADS
;
2949 _result
= (int )wxPrintDialogData_GetMinPage(_arg0
);
2951 wxPy_END_ALLOW_THREADS
;
2952 if (PyErr_Occurred()) return NULL
;
2953 } _resultobj
= Py_BuildValue("i",_result
);
2957 #define wxPrintDialogData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies())
2958 static PyObject
*_wrap_wxPrintDialogData_GetNoCopies(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2959 PyObject
* _resultobj
;
2961 wxPrintDialogData
* _arg0
;
2962 PyObject
* _argo0
= 0;
2963 char *_kwnames
[] = { "self", NULL
};
2966 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetNoCopies",_kwnames
,&_argo0
))
2969 if (_argo0
== Py_None
) { _arg0
= NULL
; }
2970 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
2971 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetNoCopies. Expected _wxPrintDialogData_p.");
2976 wxPy_BEGIN_ALLOW_THREADS
;
2977 _result
= (int )wxPrintDialogData_GetNoCopies(_arg0
);
2979 wxPy_END_ALLOW_THREADS
;
2980 if (PyErr_Occurred()) return NULL
;
2981 } _resultobj
= Py_BuildValue("i",_result
);
2985 static wxPrintData
* wxPrintDialogData_GetPrintData(wxPrintDialogData
*self
) {
2986 return new wxPrintData(self
->GetPrintData()); // force a copy
2988 static PyObject
*_wrap_wxPrintDialogData_GetPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
2989 PyObject
* _resultobj
;
2990 wxPrintData
* _result
;
2991 wxPrintDialogData
* _arg0
;
2992 PyObject
* _argo0
= 0;
2993 char *_kwnames
[] = { "self", NULL
};
2997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetPrintData",_kwnames
,&_argo0
))
3000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetPrintData. Expected _wxPrintDialogData_p.");
3007 wxPy_BEGIN_ALLOW_THREADS
;
3008 _result
= (wxPrintData
*)wxPrintDialogData_GetPrintData(_arg0
);
3010 wxPy_END_ALLOW_THREADS
;
3011 if (PyErr_Occurred()) return NULL
;
3013 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintData_p");
3014 _resultobj
= Py_BuildValue("s",_ptemp
);
3017 _resultobj
= Py_None
;
3022 #define wxPrintDialogData_GetPrintToFile(_swigobj) (_swigobj->GetPrintToFile())
3023 static PyObject
*_wrap_wxPrintDialogData_GetPrintToFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3024 PyObject
* _resultobj
;
3026 wxPrintDialogData
* _arg0
;
3027 PyObject
* _argo0
= 0;
3028 char *_kwnames
[] = { "self", NULL
};
3031 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetPrintToFile",_kwnames
,&_argo0
))
3034 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3035 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3036 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetPrintToFile. Expected _wxPrintDialogData_p.");
3041 wxPy_BEGIN_ALLOW_THREADS
;
3042 _result
= (bool )wxPrintDialogData_GetPrintToFile(_arg0
);
3044 wxPy_END_ALLOW_THREADS
;
3045 if (PyErr_Occurred()) return NULL
;
3046 } _resultobj
= Py_BuildValue("i",_result
);
3050 #define wxPrintDialogData_GetToPage(_swigobj) (_swigobj->GetToPage())
3051 static PyObject
*_wrap_wxPrintDialogData_GetToPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3052 PyObject
* _resultobj
;
3054 wxPrintDialogData
* _arg0
;
3055 PyObject
* _argo0
= 0;
3056 char *_kwnames
[] = { "self", NULL
};
3059 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialogData_GetToPage",_kwnames
,&_argo0
))
3062 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3063 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3064 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_GetToPage. Expected _wxPrintDialogData_p.");
3069 wxPy_BEGIN_ALLOW_THREADS
;
3070 _result
= (int )wxPrintDialogData_GetToPage(_arg0
);
3072 wxPy_END_ALLOW_THREADS
;
3073 if (PyErr_Occurred()) return NULL
;
3074 } _resultobj
= Py_BuildValue("i",_result
);
3078 #define wxPrintDialogData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0))
3079 static PyObject
*_wrap_wxPrintDialogData_SetCollate(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3080 PyObject
* _resultobj
;
3081 wxPrintDialogData
* _arg0
;
3083 PyObject
* _argo0
= 0;
3085 char *_kwnames
[] = { "self","flag", NULL
};
3088 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetCollate",_kwnames
,&_argo0
,&tempbool1
))
3091 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3092 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3093 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetCollate. Expected _wxPrintDialogData_p.");
3097 _arg1
= (bool ) tempbool1
;
3099 wxPy_BEGIN_ALLOW_THREADS
;
3100 wxPrintDialogData_SetCollate(_arg0
,_arg1
);
3102 wxPy_END_ALLOW_THREADS
;
3103 if (PyErr_Occurred()) return NULL
;
3104 } Py_INCREF(Py_None
);
3105 _resultobj
= Py_None
;
3109 #define wxPrintDialogData_SetFromPage(_swigobj,_swigarg0) (_swigobj->SetFromPage(_swigarg0))
3110 static PyObject
*_wrap_wxPrintDialogData_SetFromPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3111 PyObject
* _resultobj
;
3112 wxPrintDialogData
* _arg0
;
3114 PyObject
* _argo0
= 0;
3115 char *_kwnames
[] = { "self","page", NULL
};
3118 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetFromPage",_kwnames
,&_argo0
,&_arg1
))
3121 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3122 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3123 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetFromPage. Expected _wxPrintDialogData_p.");
3128 wxPy_BEGIN_ALLOW_THREADS
;
3129 wxPrintDialogData_SetFromPage(_arg0
,_arg1
);
3131 wxPy_END_ALLOW_THREADS
;
3132 if (PyErr_Occurred()) return NULL
;
3133 } Py_INCREF(Py_None
);
3134 _resultobj
= Py_None
;
3138 #define wxPrintDialogData_SetMaxPage(_swigobj,_swigarg0) (_swigobj->SetMaxPage(_swigarg0))
3139 static PyObject
*_wrap_wxPrintDialogData_SetMaxPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3140 PyObject
* _resultobj
;
3141 wxPrintDialogData
* _arg0
;
3143 PyObject
* _argo0
= 0;
3144 char *_kwnames
[] = { "self","page", NULL
};
3147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetMaxPage",_kwnames
,&_argo0
,&_arg1
))
3150 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3151 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3152 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetMaxPage. Expected _wxPrintDialogData_p.");
3157 wxPy_BEGIN_ALLOW_THREADS
;
3158 wxPrintDialogData_SetMaxPage(_arg0
,_arg1
);
3160 wxPy_END_ALLOW_THREADS
;
3161 if (PyErr_Occurred()) return NULL
;
3162 } Py_INCREF(Py_None
);
3163 _resultobj
= Py_None
;
3167 #define wxPrintDialogData_SetMinPage(_swigobj,_swigarg0) (_swigobj->SetMinPage(_swigarg0))
3168 static PyObject
*_wrap_wxPrintDialogData_SetMinPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3169 PyObject
* _resultobj
;
3170 wxPrintDialogData
* _arg0
;
3172 PyObject
* _argo0
= 0;
3173 char *_kwnames
[] = { "self","page", NULL
};
3176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetMinPage",_kwnames
,&_argo0
,&_arg1
))
3179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetMinPage. Expected _wxPrintDialogData_p.");
3186 wxPy_BEGIN_ALLOW_THREADS
;
3187 wxPrintDialogData_SetMinPage(_arg0
,_arg1
);
3189 wxPy_END_ALLOW_THREADS
;
3190 if (PyErr_Occurred()) return NULL
;
3191 } Py_INCREF(Py_None
);
3192 _resultobj
= Py_None
;
3196 #define wxPrintDialogData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0))
3197 static PyObject
*_wrap_wxPrintDialogData_SetNoCopies(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3198 PyObject
* _resultobj
;
3199 wxPrintDialogData
* _arg0
;
3201 PyObject
* _argo0
= 0;
3202 char *_kwnames
[] = { "self","n", NULL
};
3205 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetNoCopies",_kwnames
,&_argo0
,&_arg1
))
3208 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3209 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3210 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetNoCopies. Expected _wxPrintDialogData_p.");
3215 wxPy_BEGIN_ALLOW_THREADS
;
3216 wxPrintDialogData_SetNoCopies(_arg0
,_arg1
);
3218 wxPy_END_ALLOW_THREADS
;
3219 if (PyErr_Occurred()) return NULL
;
3220 } Py_INCREF(Py_None
);
3221 _resultobj
= Py_None
;
3225 #define wxPrintDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0))
3226 static PyObject
*_wrap_wxPrintDialogData_SetPrintData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3227 PyObject
* _resultobj
;
3228 wxPrintDialogData
* _arg0
;
3229 wxPrintData
* _arg1
;
3230 PyObject
* _argo0
= 0;
3231 PyObject
* _argo1
= 0;
3232 char *_kwnames
[] = { "self","printData", NULL
};
3235 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintDialogData_SetPrintData",_kwnames
,&_argo0
,&_argo1
))
3238 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3239 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3240 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetPrintData. Expected _wxPrintDialogData_p.");
3245 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3246 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPrintData_p")) {
3247 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrintDialogData_SetPrintData. Expected _wxPrintData_p.");
3252 wxPy_BEGIN_ALLOW_THREADS
;
3253 wxPrintDialogData_SetPrintData(_arg0
,*_arg1
);
3255 wxPy_END_ALLOW_THREADS
;
3256 if (PyErr_Occurred()) return NULL
;
3257 } Py_INCREF(Py_None
);
3258 _resultobj
= Py_None
;
3262 #define wxPrintDialogData_SetPrintToFile(_swigobj,_swigarg0) (_swigobj->SetPrintToFile(_swigarg0))
3263 static PyObject
*_wrap_wxPrintDialogData_SetPrintToFile(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3264 PyObject
* _resultobj
;
3265 wxPrintDialogData
* _arg0
;
3267 PyObject
* _argo0
= 0;
3269 char *_kwnames
[] = { "self","flag", NULL
};
3272 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetPrintToFile",_kwnames
,&_argo0
,&tempbool1
))
3275 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3276 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3277 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetPrintToFile. Expected _wxPrintDialogData_p.");
3281 _arg1
= (bool ) tempbool1
;
3283 wxPy_BEGIN_ALLOW_THREADS
;
3284 wxPrintDialogData_SetPrintToFile(_arg0
,_arg1
);
3286 wxPy_END_ALLOW_THREADS
;
3287 if (PyErr_Occurred()) return NULL
;
3288 } Py_INCREF(Py_None
);
3289 _resultobj
= Py_None
;
3293 #define wxPrintDialogData_SetSetupDialog(_swigobj,_swigarg0) (_swigobj->SetSetupDialog(_swigarg0))
3294 static PyObject
*_wrap_wxPrintDialogData_SetSetupDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3295 PyObject
* _resultobj
;
3296 wxPrintDialogData
* _arg0
;
3298 PyObject
* _argo0
= 0;
3300 char *_kwnames
[] = { "self","flag", NULL
};
3303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetSetupDialog",_kwnames
,&_argo0
,&tempbool1
))
3306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetSetupDialog. Expected _wxPrintDialogData_p.");
3312 _arg1
= (bool ) tempbool1
;
3314 wxPy_BEGIN_ALLOW_THREADS
;
3315 wxPrintDialogData_SetSetupDialog(_arg0
,_arg1
);
3317 wxPy_END_ALLOW_THREADS
;
3318 if (PyErr_Occurred()) return NULL
;
3319 } Py_INCREF(Py_None
);
3320 _resultobj
= Py_None
;
3324 #define wxPrintDialogData_SetToPage(_swigobj,_swigarg0) (_swigobj->SetToPage(_swigarg0))
3325 static PyObject
*_wrap_wxPrintDialogData_SetToPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3326 PyObject
* _resultobj
;
3327 wxPrintDialogData
* _arg0
;
3329 PyObject
* _argo0
= 0;
3330 char *_kwnames
[] = { "self","page", NULL
};
3333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintDialogData_SetToPage",_kwnames
,&_argo0
,&_arg1
))
3336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
3338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialogData_SetToPage. Expected _wxPrintDialogData_p.");
3343 wxPy_BEGIN_ALLOW_THREADS
;
3344 wxPrintDialogData_SetToPage(_arg0
,_arg1
);
3346 wxPy_END_ALLOW_THREADS
;
3347 if (PyErr_Occurred()) return NULL
;
3348 } Py_INCREF(Py_None
);
3349 _resultobj
= Py_None
;
3353 static void *SwigwxPrintDialogTowxDialog(void *ptr
) {
3356 src
= (wxPrintDialog
*) ptr
;
3357 dest
= (wxDialog
*) src
;
3358 return (void *) dest
;
3361 static void *SwigwxPrintDialogTowxTopLevelWindow(void *ptr
) {
3363 wxTopLevelWindow
*dest
;
3364 src
= (wxPrintDialog
*) ptr
;
3365 dest
= (wxTopLevelWindow
*) src
;
3366 return (void *) dest
;
3369 static void *SwigwxPrintDialogTowxWindow(void *ptr
) {
3372 src
= (wxPrintDialog
*) ptr
;
3373 dest
= (wxWindow
*) src
;
3374 return (void *) dest
;
3377 static void *SwigwxPrintDialogTowxEvtHandler(void *ptr
) {
3380 src
= (wxPrintDialog
*) ptr
;
3381 dest
= (wxEvtHandler
*) src
;
3382 return (void *) dest
;
3385 static void *SwigwxPrintDialogTowxObject(void *ptr
) {
3388 src
= (wxPrintDialog
*) ptr
;
3389 dest
= (wxObject
*) src
;
3390 return (void *) dest
;
3393 #define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1))
3394 static PyObject
*_wrap_new_wxPrintDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3395 PyObject
* _resultobj
;
3396 wxPrintDialog
* _result
;
3398 wxPrintDialogData
* _arg1
= (wxPrintDialogData
*) NULL
;
3399 PyObject
* _argo0
= 0;
3400 PyObject
* _argo1
= 0;
3401 char *_kwnames
[] = { "parent","data", NULL
};
3405 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|O:new_wxPrintDialog",_kwnames
,&_argo0
,&_argo1
))
3408 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3409 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxWindow_p")) {
3410 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPrintDialog. Expected _wxWindow_p.");
3415 if (_argo1
== Py_None
) { _arg1
= NULL
; }
3416 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPrintDialogData_p")) {
3417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxPrintDialog. Expected _wxPrintDialogData_p.");
3422 wxPy_BEGIN_ALLOW_THREADS
;
3423 _result
= (wxPrintDialog
*)new_wxPrintDialog(_arg0
,_arg1
);
3425 wxPy_END_ALLOW_THREADS
;
3426 if (PyErr_Occurred()) return NULL
;
3428 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintDialog_p");
3429 _resultobj
= Py_BuildValue("s",_ptemp
);
3432 _resultobj
= Py_None
;
3437 #define wxPrintDialog_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
3438 static PyObject
*_wrap_wxPrintDialog_GetPrintDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3439 PyObject
* _resultobj
;
3440 wxPrintDialogData
* _result
;
3441 wxPrintDialog
* _arg0
;
3442 PyObject
* _argo0
= 0;
3443 char *_kwnames
[] = { "self", NULL
};
3447 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialog_GetPrintDialogData",_kwnames
,&_argo0
))
3450 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3451 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialog_p")) {
3452 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialog_GetPrintDialogData. Expected _wxPrintDialog_p.");
3457 wxPy_BEGIN_ALLOW_THREADS
;
3458 wxPrintDialogData
& _result_ref
= wxPrintDialog_GetPrintDialogData(_arg0
);
3459 _result
= (wxPrintDialogData
*) &_result_ref
;
3461 wxPy_END_ALLOW_THREADS
;
3462 if (PyErr_Occurred()) return NULL
;
3464 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintDialogData_p");
3465 _resultobj
= Py_BuildValue("s",_ptemp
);
3468 _resultobj
= Py_None
;
3473 #define wxPrintDialog_GetPrintDC(_swigobj) (_swigobj->GetPrintDC())
3474 static PyObject
*_wrap_wxPrintDialog_GetPrintDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3475 PyObject
* _resultobj
;
3477 wxPrintDialog
* _arg0
;
3478 PyObject
* _argo0
= 0;
3479 char *_kwnames
[] = { "self", NULL
};
3482 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialog_GetPrintDC",_kwnames
,&_argo0
))
3485 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3486 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialog_p")) {
3487 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialog_GetPrintDC. Expected _wxPrintDialog_p.");
3492 wxPy_BEGIN_ALLOW_THREADS
;
3493 _result
= (wxDC
*)wxPrintDialog_GetPrintDC(_arg0
);
3495 wxPy_END_ALLOW_THREADS
;
3496 if (PyErr_Occurred()) return NULL
;
3497 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3501 #define wxPrintDialog_ShowModal(_swigobj) (_swigobj->ShowModal())
3502 static PyObject
*_wrap_wxPrintDialog_ShowModal(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3503 PyObject
* _resultobj
;
3505 wxPrintDialog
* _arg0
;
3506 PyObject
* _argo0
= 0;
3507 char *_kwnames
[] = { "self", NULL
};
3510 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintDialog_ShowModal",_kwnames
,&_argo0
))
3513 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3514 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialog_p")) {
3515 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintDialog_ShowModal. Expected _wxPrintDialog_p.");
3520 wxPy_BEGIN_ALLOW_THREADS
;
3521 _result
= (int )wxPrintDialog_ShowModal(_arg0
);
3523 wxPy_END_ALLOW_THREADS
;
3524 if (PyErr_Occurred()) return NULL
;
3525 } _resultobj
= Py_BuildValue("i",_result
);
3529 static void *SwigwxPyPrintoutTowxObject(void *ptr
) {
3532 src
= (wxPyPrintout
*) ptr
;
3533 dest
= (wxObject
*) src
;
3534 return (void *) dest
;
3537 #define new_wxPrintout(_swigarg0) (new wxPyPrintout(_swigarg0))
3538 static PyObject
*_wrap_new_wxPrintout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3539 PyObject
* _resultobj
;
3540 wxPyPrintout
* _result
;
3541 char * _arg0
= (char *) "Printout";
3542 char *_kwnames
[] = { "title", NULL
};
3546 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|s:new_wxPrintout",_kwnames
,&_arg0
))
3549 wxPy_BEGIN_ALLOW_THREADS
;
3550 _result
= (wxPyPrintout
*)new_wxPrintout(_arg0
);
3552 wxPy_END_ALLOW_THREADS
;
3553 if (PyErr_Occurred()) return NULL
;
3555 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPyPrintout_p");
3556 _resultobj
= Py_BuildValue("s",_ptemp
);
3559 _resultobj
= Py_None
;
3564 #define wxPrintout__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1))
3565 static PyObject
*_wrap_wxPrintout__setSelf(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3566 PyObject
* _resultobj
;
3567 wxPyPrintout
* _arg0
;
3570 PyObject
* _argo0
= 0;
3571 PyObject
* _obj1
= 0;
3572 PyObject
* _obj2
= 0;
3573 char *_kwnames
[] = { "self","self","_class", NULL
};
3576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPrintout__setSelf",_kwnames
,&_argo0
,&_obj1
,&_obj2
))
3579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout__setSelf. Expected _wxPyPrintout_p.");
3592 wxPy_BEGIN_ALLOW_THREADS
;
3593 wxPrintout__setSelf(_arg0
,_arg1
,_arg2
);
3595 wxPy_END_ALLOW_THREADS
;
3596 if (PyErr_Occurred()) return NULL
;
3597 } Py_INCREF(Py_None
);
3598 _resultobj
= Py_None
;
3602 static void wxPyPrintout_Destroy(wxPyPrintout
*self
) { delete self
; }
3603 static PyObject
*_wrap_wxPrintout_Destroy(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3604 PyObject
* _resultobj
;
3605 wxPyPrintout
* _arg0
;
3606 PyObject
* _argo0
= 0;
3607 char *_kwnames
[] = { "self", NULL
};
3610 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_Destroy",_kwnames
,&_argo0
))
3613 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3614 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3615 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_Destroy. Expected _wxPyPrintout_p.");
3620 wxPy_BEGIN_ALLOW_THREADS
;
3621 wxPyPrintout_Destroy(_arg0
);
3623 wxPy_END_ALLOW_THREADS
;
3624 if (PyErr_Occurred()) return NULL
;
3625 } Py_INCREF(Py_None
);
3626 _resultobj
= Py_None
;
3630 #define wxPrintout_GetDC(_swigobj) (_swigobj->GetDC())
3631 static PyObject
*_wrap_wxPrintout_GetDC(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3632 PyObject
* _resultobj
;
3634 wxPyPrintout
* _arg0
;
3635 PyObject
* _argo0
= 0;
3636 char *_kwnames
[] = { "self", NULL
};
3639 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_GetDC",_kwnames
,&_argo0
))
3642 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3643 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_GetDC. Expected _wxPyPrintout_p.");
3649 wxPy_BEGIN_ALLOW_THREADS
;
3650 _result
= (wxDC
*)wxPrintout_GetDC(_arg0
);
3652 wxPy_END_ALLOW_THREADS
;
3653 if (PyErr_Occurred()) return NULL
;
3654 }{ _resultobj
= wxPyMake_wxObject(_result
); }
3658 #define wxPrintout_GetPageSizeMM(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizeMM(_swigarg0,_swigarg1))
3659 static PyObject
*_wrap_wxPrintout_GetPageSizeMM(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3660 PyObject
* _resultobj
;
3661 wxPyPrintout
* _arg0
;
3666 PyObject
* _argo0
= 0;
3667 char *_kwnames
[] = { "self", NULL
};
3676 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_GetPageSizeMM",_kwnames
,&_argo0
))
3679 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3680 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3681 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_GetPageSizeMM. Expected _wxPyPrintout_p.");
3686 wxPy_BEGIN_ALLOW_THREADS
;
3687 wxPrintout_GetPageSizeMM(_arg0
,_arg1
,_arg2
);
3689 wxPy_END_ALLOW_THREADS
;
3690 if (PyErr_Occurred()) return NULL
;
3691 } Py_INCREF(Py_None
);
3692 _resultobj
= Py_None
;
3695 o
= PyInt_FromLong((long) (*_arg1
));
3696 _resultobj
= t_output_helper(_resultobj
, o
);
3700 o
= PyInt_FromLong((long) (*_arg2
));
3701 _resultobj
= t_output_helper(_resultobj
, o
);
3706 #define wxPrintout_GetPageSizePixels(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizePixels(_swigarg0,_swigarg1))
3707 static PyObject
*_wrap_wxPrintout_GetPageSizePixels(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3708 PyObject
* _resultobj
;
3709 wxPyPrintout
* _arg0
;
3714 PyObject
* _argo0
= 0;
3715 char *_kwnames
[] = { "self", NULL
};
3724 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_GetPageSizePixels",_kwnames
,&_argo0
))
3727 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3728 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3729 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_GetPageSizePixels. Expected _wxPyPrintout_p.");
3734 wxPy_BEGIN_ALLOW_THREADS
;
3735 wxPrintout_GetPageSizePixels(_arg0
,_arg1
,_arg2
);
3737 wxPy_END_ALLOW_THREADS
;
3738 if (PyErr_Occurred()) return NULL
;
3739 } Py_INCREF(Py_None
);
3740 _resultobj
= Py_None
;
3743 o
= PyInt_FromLong((long) (*_arg1
));
3744 _resultobj
= t_output_helper(_resultobj
, o
);
3748 o
= PyInt_FromLong((long) (*_arg2
));
3749 _resultobj
= t_output_helper(_resultobj
, o
);
3754 #define wxPrintout_GetPPIPrinter(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIPrinter(_swigarg0,_swigarg1))
3755 static PyObject
*_wrap_wxPrintout_GetPPIPrinter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3756 PyObject
* _resultobj
;
3757 wxPyPrintout
* _arg0
;
3762 PyObject
* _argo0
= 0;
3763 char *_kwnames
[] = { "self", NULL
};
3772 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_GetPPIPrinter",_kwnames
,&_argo0
))
3775 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3776 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3777 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_GetPPIPrinter. Expected _wxPyPrintout_p.");
3782 wxPy_BEGIN_ALLOW_THREADS
;
3783 wxPrintout_GetPPIPrinter(_arg0
,_arg1
,_arg2
);
3785 wxPy_END_ALLOW_THREADS
;
3786 if (PyErr_Occurred()) return NULL
;
3787 } Py_INCREF(Py_None
);
3788 _resultobj
= Py_None
;
3791 o
= PyInt_FromLong((long) (*_arg1
));
3792 _resultobj
= t_output_helper(_resultobj
, o
);
3796 o
= PyInt_FromLong((long) (*_arg2
));
3797 _resultobj
= t_output_helper(_resultobj
, o
);
3802 #define wxPrintout_GetPPIScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIScreen(_swigarg0,_swigarg1))
3803 static PyObject
*_wrap_wxPrintout_GetPPIScreen(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3804 PyObject
* _resultobj
;
3805 wxPyPrintout
* _arg0
;
3810 PyObject
* _argo0
= 0;
3811 char *_kwnames
[] = { "self", NULL
};
3820 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_GetPPIScreen",_kwnames
,&_argo0
))
3823 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3824 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3825 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_GetPPIScreen. Expected _wxPyPrintout_p.");
3830 wxPy_BEGIN_ALLOW_THREADS
;
3831 wxPrintout_GetPPIScreen(_arg0
,_arg1
,_arg2
);
3833 wxPy_END_ALLOW_THREADS
;
3834 if (PyErr_Occurred()) return NULL
;
3835 } Py_INCREF(Py_None
);
3836 _resultobj
= Py_None
;
3839 o
= PyInt_FromLong((long) (*_arg1
));
3840 _resultobj
= t_output_helper(_resultobj
, o
);
3844 o
= PyInt_FromLong((long) (*_arg2
));
3845 _resultobj
= t_output_helper(_resultobj
, o
);
3850 #define wxPrintout_IsPreview(_swigobj) (_swigobj->IsPreview())
3851 static PyObject
*_wrap_wxPrintout_IsPreview(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3852 PyObject
* _resultobj
;
3854 wxPyPrintout
* _arg0
;
3855 PyObject
* _argo0
= 0;
3856 char *_kwnames
[] = { "self", NULL
};
3859 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_IsPreview",_kwnames
,&_argo0
))
3862 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3863 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3864 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_IsPreview. Expected _wxPyPrintout_p.");
3869 wxPy_BEGIN_ALLOW_THREADS
;
3870 _result
= (bool )wxPrintout_IsPreview(_arg0
);
3872 wxPy_END_ALLOW_THREADS
;
3873 if (PyErr_Occurred()) return NULL
;
3874 } _resultobj
= Py_BuildValue("i",_result
);
3878 #define wxPrintout_base_OnBeginDocument(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginDocument(_swigarg0,_swigarg1))
3879 static PyObject
*_wrap_wxPrintout_base_OnBeginDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3880 PyObject
* _resultobj
;
3882 wxPyPrintout
* _arg0
;
3885 PyObject
* _argo0
= 0;
3886 char *_kwnames
[] = { "self","startPage","endPage", NULL
};
3889 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oii:wxPrintout_base_OnBeginDocument",_kwnames
,&_argo0
,&_arg1
,&_arg2
))
3892 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3893 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3894 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_OnBeginDocument. Expected _wxPyPrintout_p.");
3899 wxPy_BEGIN_ALLOW_THREADS
;
3900 _result
= (bool )wxPrintout_base_OnBeginDocument(_arg0
,_arg1
,_arg2
);
3902 wxPy_END_ALLOW_THREADS
;
3903 if (PyErr_Occurred()) return NULL
;
3904 } _resultobj
= Py_BuildValue("i",_result
);
3908 #define wxPrintout_base_OnEndDocument(_swigobj) (_swigobj->base_OnEndDocument())
3909 static PyObject
*_wrap_wxPrintout_base_OnEndDocument(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3910 PyObject
* _resultobj
;
3911 wxPyPrintout
* _arg0
;
3912 PyObject
* _argo0
= 0;
3913 char *_kwnames
[] = { "self", NULL
};
3916 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_base_OnEndDocument",_kwnames
,&_argo0
))
3919 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3920 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3921 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_OnEndDocument. Expected _wxPyPrintout_p.");
3926 wxPy_BEGIN_ALLOW_THREADS
;
3927 wxPrintout_base_OnEndDocument(_arg0
);
3929 wxPy_END_ALLOW_THREADS
;
3930 if (PyErr_Occurred()) return NULL
;
3931 } Py_INCREF(Py_None
);
3932 _resultobj
= Py_None
;
3936 #define wxPrintout_base_OnBeginPrinting(_swigobj) (_swigobj->base_OnBeginPrinting())
3937 static PyObject
*_wrap_wxPrintout_base_OnBeginPrinting(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3938 PyObject
* _resultobj
;
3939 wxPyPrintout
* _arg0
;
3940 PyObject
* _argo0
= 0;
3941 char *_kwnames
[] = { "self", NULL
};
3944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_base_OnBeginPrinting",_kwnames
,&_argo0
))
3947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_OnBeginPrinting. Expected _wxPyPrintout_p.");
3954 wxPy_BEGIN_ALLOW_THREADS
;
3955 wxPrintout_base_OnBeginPrinting(_arg0
);
3957 wxPy_END_ALLOW_THREADS
;
3958 if (PyErr_Occurred()) return NULL
;
3959 } Py_INCREF(Py_None
);
3960 _resultobj
= Py_None
;
3964 #define wxPrintout_base_OnEndPrinting(_swigobj) (_swigobj->base_OnEndPrinting())
3965 static PyObject
*_wrap_wxPrintout_base_OnEndPrinting(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3966 PyObject
* _resultobj
;
3967 wxPyPrintout
* _arg0
;
3968 PyObject
* _argo0
= 0;
3969 char *_kwnames
[] = { "self", NULL
};
3972 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_base_OnEndPrinting",_kwnames
,&_argo0
))
3975 if (_argo0
== Py_None
) { _arg0
= NULL
; }
3976 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
3977 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_OnEndPrinting. Expected _wxPyPrintout_p.");
3982 wxPy_BEGIN_ALLOW_THREADS
;
3983 wxPrintout_base_OnEndPrinting(_arg0
);
3985 wxPy_END_ALLOW_THREADS
;
3986 if (PyErr_Occurred()) return NULL
;
3987 } Py_INCREF(Py_None
);
3988 _resultobj
= Py_None
;
3992 #define wxPrintout_base_OnPreparePrinting(_swigobj) (_swigobj->base_OnPreparePrinting())
3993 static PyObject
*_wrap_wxPrintout_base_OnPreparePrinting(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
3994 PyObject
* _resultobj
;
3995 wxPyPrintout
* _arg0
;
3996 PyObject
* _argo0
= 0;
3997 char *_kwnames
[] = { "self", NULL
};
4000 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_base_OnPreparePrinting",_kwnames
,&_argo0
))
4003 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4004 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
4005 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_OnPreparePrinting. Expected _wxPyPrintout_p.");
4010 wxPy_BEGIN_ALLOW_THREADS
;
4011 wxPrintout_base_OnPreparePrinting(_arg0
);
4013 wxPy_END_ALLOW_THREADS
;
4014 if (PyErr_Occurred()) return NULL
;
4015 } Py_INCREF(Py_None
);
4016 _resultobj
= Py_None
;
4020 #define wxPrintout_base_GetPageInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_GetPageInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4021 static PyObject
*_wrap_wxPrintout_base_GetPageInfo(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4022 PyObject
* _resultobj
;
4023 wxPyPrintout
* _arg0
;
4032 PyObject
* _argo0
= 0;
4033 char *_kwnames
[] = { "self", NULL
};
4048 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintout_base_GetPageInfo",_kwnames
,&_argo0
))
4051 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4052 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
4053 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_GetPageInfo. Expected _wxPyPrintout_p.");
4058 wxPy_BEGIN_ALLOW_THREADS
;
4059 wxPrintout_base_GetPageInfo(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
4061 wxPy_END_ALLOW_THREADS
;
4062 if (PyErr_Occurred()) return NULL
;
4063 } Py_INCREF(Py_None
);
4064 _resultobj
= Py_None
;
4067 o
= PyInt_FromLong((long) (*_arg1
));
4068 _resultobj
= t_output_helper(_resultobj
, o
);
4072 o
= PyInt_FromLong((long) (*_arg2
));
4073 _resultobj
= t_output_helper(_resultobj
, o
);
4077 o
= PyInt_FromLong((long) (*_arg3
));
4078 _resultobj
= t_output_helper(_resultobj
, o
);
4082 o
= PyInt_FromLong((long) (*_arg4
));
4083 _resultobj
= t_output_helper(_resultobj
, o
);
4088 #define wxPrintout_base_HasPage(_swigobj,_swigarg0) (_swigobj->base_HasPage(_swigarg0))
4089 static PyObject
*_wrap_wxPrintout_base_HasPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4090 PyObject
* _resultobj
;
4092 wxPyPrintout
* _arg0
;
4094 PyObject
* _argo0
= 0;
4095 char *_kwnames
[] = { "self","page", NULL
};
4098 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintout_base_HasPage",_kwnames
,&_argo0
,&_arg1
))
4101 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4102 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
4103 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintout_base_HasPage. Expected _wxPyPrintout_p.");
4108 wxPy_BEGIN_ALLOW_THREADS
;
4109 _result
= (bool )wxPrintout_base_HasPage(_arg0
,_arg1
);
4111 wxPy_END_ALLOW_THREADS
;
4112 if (PyErr_Occurred()) return NULL
;
4113 } _resultobj
= Py_BuildValue("i",_result
);
4117 static void *SwigwxPrinterTowxObject(void *ptr
) {
4120 src
= (wxPrinter
*) ptr
;
4121 dest
= (wxObject
*) src
;
4122 return (void *) dest
;
4125 #define new_wxPrinter(_swigarg0) (new wxPrinter(_swigarg0))
4126 static PyObject
*_wrap_new_wxPrinter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4127 PyObject
* _resultobj
;
4128 wxPrinter
* _result
;
4129 wxPrintDialogData
* _arg0
= (wxPrintDialogData
*) NULL
;
4130 PyObject
* _argo0
= 0;
4131 char *_kwnames
[] = { "data", NULL
};
4135 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|O:new_wxPrinter",_kwnames
,&_argo0
))
4138 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4139 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintDialogData_p")) {
4140 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPrinter. Expected _wxPrintDialogData_p.");
4145 wxPy_BEGIN_ALLOW_THREADS
;
4146 _result
= (wxPrinter
*)new_wxPrinter(_arg0
);
4148 wxPy_END_ALLOW_THREADS
;
4149 if (PyErr_Occurred()) return NULL
;
4151 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrinter_p");
4152 _resultobj
= Py_BuildValue("s",_ptemp
);
4155 _resultobj
= Py_None
;
4160 #define delete_wxPrinter(_swigobj) (delete _swigobj)
4161 static PyObject
*_wrap_delete_wxPrinter(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4162 PyObject
* _resultobj
;
4164 PyObject
* _argo0
= 0;
4165 char *_kwnames
[] = { "self", NULL
};
4168 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxPrinter",_kwnames
,&_argo0
))
4171 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4172 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4173 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxPrinter. Expected _wxPrinter_p.");
4178 wxPy_BEGIN_ALLOW_THREADS
;
4179 delete_wxPrinter(_arg0
);
4181 wxPy_END_ALLOW_THREADS
;
4182 if (PyErr_Occurred()) return NULL
;
4183 } Py_INCREF(Py_None
);
4184 _resultobj
= Py_None
;
4188 #define wxPrinter_CreateAbortWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateAbortWindow(_swigarg0,_swigarg1))
4189 static PyObject
*_wrap_wxPrinter_CreateAbortWindow(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4190 PyObject
* _resultobj
;
4193 wxPyPrintout
* _arg2
;
4194 PyObject
* _argo0
= 0;
4195 PyObject
* _argo1
= 0;
4196 PyObject
* _argo2
= 0;
4197 char *_kwnames
[] = { "self","parent","printout", NULL
};
4200 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxPrinter_CreateAbortWindow",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4203 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4204 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4205 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_CreateAbortWindow. Expected _wxPrinter_p.");
4210 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4211 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrinter_CreateAbortWindow. Expected _wxWindow_p.");
4217 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4218 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyPrintout_p")) {
4219 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPrinter_CreateAbortWindow. Expected _wxPyPrintout_p.");
4224 wxPy_BEGIN_ALLOW_THREADS
;
4225 wxPrinter_CreateAbortWindow(_arg0
,_arg1
,_arg2
);
4227 wxPy_END_ALLOW_THREADS
;
4228 if (PyErr_Occurred()) return NULL
;
4229 } Py_INCREF(Py_None
);
4230 _resultobj
= Py_None
;
4234 #define wxPrinter_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
4235 static PyObject
*_wrap_wxPrinter_GetPrintDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4236 PyObject
* _resultobj
;
4237 wxPrintDialogData
* _result
;
4239 PyObject
* _argo0
= 0;
4240 char *_kwnames
[] = { "self", NULL
};
4244 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrinter_GetPrintDialogData",_kwnames
,&_argo0
))
4247 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4248 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4249 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_GetPrintDialogData. Expected _wxPrinter_p.");
4254 wxPy_BEGIN_ALLOW_THREADS
;
4255 wxPrintDialogData
& _result_ref
= wxPrinter_GetPrintDialogData(_arg0
);
4256 _result
= (wxPrintDialogData
*) &_result_ref
;
4258 wxPy_END_ALLOW_THREADS
;
4259 if (PyErr_Occurred()) return NULL
;
4261 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintDialogData_p");
4262 _resultobj
= Py_BuildValue("s",_ptemp
);
4265 _resultobj
= Py_None
;
4270 #define wxPrinter_Print(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Print(_swigarg0,_swigarg1,_swigarg2))
4271 static PyObject
*_wrap_wxPrinter_Print(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4272 PyObject
* _resultobj
;
4276 wxPyPrintout
* _arg2
;
4277 int _arg3
= (int ) TRUE
;
4278 PyObject
* _argo0
= 0;
4279 PyObject
* _argo1
= 0;
4280 PyObject
* _argo2
= 0;
4281 char *_kwnames
[] = { "self","parent","printout","prompt", NULL
};
4284 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|i:wxPrinter_Print",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_arg3
))
4287 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4288 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4289 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_Print. Expected _wxPrinter_p.");
4294 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4295 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4296 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrinter_Print. Expected _wxWindow_p.");
4301 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4302 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyPrintout_p")) {
4303 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPrinter_Print. Expected _wxPyPrintout_p.");
4308 wxPy_BEGIN_ALLOW_THREADS
;
4309 _result
= (bool )wxPrinter_Print(_arg0
,_arg1
,_arg2
,_arg3
);
4311 wxPy_END_ALLOW_THREADS
;
4312 if (PyErr_Occurred()) return NULL
;
4313 } _resultobj
= Py_BuildValue("i",_result
);
4317 #define wxPrinter_PrintDialog(_swigobj,_swigarg0) (_swigobj->PrintDialog(_swigarg0))
4318 static PyObject
*_wrap_wxPrinter_PrintDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4319 PyObject
* _resultobj
;
4323 PyObject
* _argo0
= 0;
4324 PyObject
* _argo1
= 0;
4325 char *_kwnames
[] = { "self","parent", NULL
};
4328 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrinter_PrintDialog",_kwnames
,&_argo0
,&_argo1
))
4331 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4332 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4333 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_PrintDialog. Expected _wxPrinter_p.");
4338 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4339 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4340 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrinter_PrintDialog. Expected _wxWindow_p.");
4345 wxPy_BEGIN_ALLOW_THREADS
;
4346 _result
= (wxDC
*)wxPrinter_PrintDialog(_arg0
,_arg1
);
4348 wxPy_END_ALLOW_THREADS
;
4349 if (PyErr_Occurred()) return NULL
;
4350 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4354 #define wxPrinter_ReportError(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ReportError(_swigarg0,_swigarg1,_swigarg2))
4355 static PyObject
*_wrap_wxPrinter_ReportError(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4356 PyObject
* _resultobj
;
4359 wxPyPrintout
* _arg2
;
4361 PyObject
* _argo0
= 0;
4362 PyObject
* _argo1
= 0;
4363 PyObject
* _argo2
= 0;
4364 char *_kwnames
[] = { "self","parent","printout","message", NULL
};
4367 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOs:wxPrinter_ReportError",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_arg3
))
4370 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4371 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4372 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_ReportError. Expected _wxPrinter_p.");
4377 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4378 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4379 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrinter_ReportError. Expected _wxWindow_p.");
4384 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4385 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPyPrintout_p")) {
4386 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxPrinter_ReportError. Expected _wxPyPrintout_p.");
4391 wxPy_BEGIN_ALLOW_THREADS
;
4392 wxPrinter_ReportError(_arg0
,_arg1
,_arg2
,_arg3
);
4394 wxPy_END_ALLOW_THREADS
;
4395 if (PyErr_Occurred()) return NULL
;
4396 } Py_INCREF(Py_None
);
4397 _resultobj
= Py_None
;
4401 #define wxPrinter_Setup(_swigobj,_swigarg0) (_swigobj->Setup(_swigarg0))
4402 static PyObject
*_wrap_wxPrinter_Setup(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4403 PyObject
* _resultobj
;
4407 PyObject
* _argo0
= 0;
4408 PyObject
* _argo1
= 0;
4409 char *_kwnames
[] = { "self","parent", NULL
};
4412 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrinter_Setup",_kwnames
,&_argo0
,&_argo1
))
4415 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4416 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrinter_p")) {
4417 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrinter_Setup. Expected _wxPrinter_p.");
4422 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4423 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrinter_Setup. Expected _wxWindow_p.");
4429 wxPy_BEGIN_ALLOW_THREADS
;
4430 _result
= (bool )wxPrinter_Setup(_arg0
,_arg1
);
4432 wxPy_END_ALLOW_THREADS
;
4433 if (PyErr_Occurred()) return NULL
;
4434 } _resultobj
= Py_BuildValue("i",_result
);
4438 static void *SwigwxPrintPreviewTowxObject(void *ptr
) {
4439 wxPrintPreview
*src
;
4441 src
= (wxPrintPreview
*) ptr
;
4442 dest
= (wxObject
*) src
;
4443 return (void *) dest
;
4446 #define new_wxPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPrintPreview(_swigarg0,_swigarg1,_swigarg2))
4447 static PyObject
*_wrap_new_wxPrintPreview(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4448 PyObject
* _resultobj
;
4449 wxPrintPreview
* _result
;
4450 wxPyPrintout
* _arg0
;
4451 wxPyPrintout
* _arg1
;
4452 wxPrintData
* _arg2
= (wxPrintData
*) NULL
;
4453 PyObject
* _argo0
= 0;
4454 PyObject
* _argo1
= 0;
4455 PyObject
* _argo2
= 0;
4456 char *_kwnames
[] = { "printout","printoutForPrinting","data", NULL
};
4460 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO|O:new_wxPrintPreview",_kwnames
,&_argo0
,&_argo1
,&_argo2
))
4463 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4464 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPyPrintout_p")) {
4465 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
4470 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4471 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyPrintout_p")) {
4472 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxPrintPreview. Expected _wxPyPrintout_p.");
4477 if (_argo2
== Py_None
) { _arg2
= NULL
; }
4478 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxPrintData_p")) {
4479 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of new_wxPrintPreview. Expected _wxPrintData_p.");
4484 wxPy_BEGIN_ALLOW_THREADS
;
4485 _result
= (wxPrintPreview
*)new_wxPrintPreview(_arg0
,_arg1
,_arg2
);
4487 wxPy_END_ALLOW_THREADS
;
4488 if (PyErr_Occurred()) return NULL
;
4490 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintPreview_p");
4491 _resultobj
= Py_BuildValue("s",_ptemp
);
4494 _resultobj
= Py_None
;
4499 #define wxPrintPreview_GetCanvas(_swigobj) (_swigobj->GetCanvas())
4500 static PyObject
*_wrap_wxPrintPreview_GetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4501 PyObject
* _resultobj
;
4503 wxPrintPreview
* _arg0
;
4504 PyObject
* _argo0
= 0;
4505 char *_kwnames
[] = { "self", NULL
};
4508 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetCanvas",_kwnames
,&_argo0
))
4511 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4512 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4513 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetCanvas. Expected _wxPrintPreview_p.");
4518 wxPy_BEGIN_ALLOW_THREADS
;
4519 _result
= (wxWindow
*)wxPrintPreview_GetCanvas(_arg0
);
4521 wxPy_END_ALLOW_THREADS
;
4522 if (PyErr_Occurred()) return NULL
;
4523 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4527 #define wxPrintPreview_GetCurrentPage(_swigobj) (_swigobj->GetCurrentPage())
4528 static PyObject
*_wrap_wxPrintPreview_GetCurrentPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4529 PyObject
* _resultobj
;
4531 wxPrintPreview
* _arg0
;
4532 PyObject
* _argo0
= 0;
4533 char *_kwnames
[] = { "self", NULL
};
4536 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetCurrentPage",_kwnames
,&_argo0
))
4539 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4540 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4541 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetCurrentPage. Expected _wxPrintPreview_p.");
4546 wxPy_BEGIN_ALLOW_THREADS
;
4547 _result
= (int )wxPrintPreview_GetCurrentPage(_arg0
);
4549 wxPy_END_ALLOW_THREADS
;
4550 if (PyErr_Occurred()) return NULL
;
4551 } _resultobj
= Py_BuildValue("i",_result
);
4555 #define wxPrintPreview_GetFrame(_swigobj) (_swigobj->GetFrame())
4556 static PyObject
*_wrap_wxPrintPreview_GetFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4557 PyObject
* _resultobj
;
4559 wxPrintPreview
* _arg0
;
4560 PyObject
* _argo0
= 0;
4561 char *_kwnames
[] = { "self", NULL
};
4564 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetFrame",_kwnames
,&_argo0
))
4567 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4568 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4569 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetFrame. Expected _wxPrintPreview_p.");
4574 wxPy_BEGIN_ALLOW_THREADS
;
4575 _result
= (wxFrame
*)wxPrintPreview_GetFrame(_arg0
);
4577 wxPy_END_ALLOW_THREADS
;
4578 if (PyErr_Occurred()) return NULL
;
4579 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4583 #define wxPrintPreview_GetMaxPage(_swigobj) (_swigobj->GetMaxPage())
4584 static PyObject
*_wrap_wxPrintPreview_GetMaxPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4585 PyObject
* _resultobj
;
4587 wxPrintPreview
* _arg0
;
4588 PyObject
* _argo0
= 0;
4589 char *_kwnames
[] = { "self", NULL
};
4592 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetMaxPage",_kwnames
,&_argo0
))
4595 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4596 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4597 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetMaxPage. Expected _wxPrintPreview_p.");
4602 wxPy_BEGIN_ALLOW_THREADS
;
4603 _result
= (int )wxPrintPreview_GetMaxPage(_arg0
);
4605 wxPy_END_ALLOW_THREADS
;
4606 if (PyErr_Occurred()) return NULL
;
4607 } _resultobj
= Py_BuildValue("i",_result
);
4611 #define wxPrintPreview_GetMinPage(_swigobj) (_swigobj->GetMinPage())
4612 static PyObject
*_wrap_wxPrintPreview_GetMinPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4613 PyObject
* _resultobj
;
4615 wxPrintPreview
* _arg0
;
4616 PyObject
* _argo0
= 0;
4617 char *_kwnames
[] = { "self", NULL
};
4620 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetMinPage",_kwnames
,&_argo0
))
4623 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4624 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4625 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetMinPage. Expected _wxPrintPreview_p.");
4630 wxPy_BEGIN_ALLOW_THREADS
;
4631 _result
= (int )wxPrintPreview_GetMinPage(_arg0
);
4633 wxPy_END_ALLOW_THREADS
;
4634 if (PyErr_Occurred()) return NULL
;
4635 } _resultobj
= Py_BuildValue("i",_result
);
4639 #define wxPrintPreview_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData())
4640 static PyObject
*_wrap_wxPrintPreview_GetPrintDialogData(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4641 PyObject
* _resultobj
;
4642 wxPrintDialogData
* _result
;
4643 wxPrintPreview
* _arg0
;
4644 PyObject
* _argo0
= 0;
4645 char *_kwnames
[] = { "self", NULL
};
4649 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetPrintDialogData",_kwnames
,&_argo0
))
4652 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4653 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4654 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetPrintDialogData. Expected _wxPrintPreview_p.");
4659 wxPy_BEGIN_ALLOW_THREADS
;
4660 wxPrintDialogData
& _result_ref
= wxPrintPreview_GetPrintDialogData(_arg0
);
4661 _result
= (wxPrintDialogData
*) &_result_ref
;
4663 wxPy_END_ALLOW_THREADS
;
4664 if (PyErr_Occurred()) return NULL
;
4666 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPrintDialogData_p");
4667 _resultobj
= Py_BuildValue("s",_ptemp
);
4670 _resultobj
= Py_None
;
4675 #define wxPrintPreview_GetPrintout(_swigobj) (_swigobj->GetPrintout())
4676 static PyObject
*_wrap_wxPrintPreview_GetPrintout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4677 PyObject
* _resultobj
;
4678 wxPyPrintout
* _result
;
4679 wxPrintPreview
* _arg0
;
4680 PyObject
* _argo0
= 0;
4681 char *_kwnames
[] = { "self", NULL
};
4684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetPrintout",_kwnames
,&_argo0
))
4687 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4688 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4689 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetPrintout. Expected _wxPrintPreview_p.");
4694 wxPy_BEGIN_ALLOW_THREADS
;
4695 _result
= (wxPyPrintout
*)wxPrintPreview_GetPrintout(_arg0
);
4697 wxPy_END_ALLOW_THREADS
;
4698 if (PyErr_Occurred()) return NULL
;
4699 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4703 #define wxPrintPreview_GetPrintoutForPrinting(_swigobj) (_swigobj->GetPrintoutForPrinting())
4704 static PyObject
*_wrap_wxPrintPreview_GetPrintoutForPrinting(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4705 PyObject
* _resultobj
;
4706 wxPyPrintout
* _result
;
4707 wxPrintPreview
* _arg0
;
4708 PyObject
* _argo0
= 0;
4709 char *_kwnames
[] = { "self", NULL
};
4712 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetPrintoutForPrinting",_kwnames
,&_argo0
))
4715 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4716 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4717 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetPrintoutForPrinting. Expected _wxPrintPreview_p.");
4722 wxPy_BEGIN_ALLOW_THREADS
;
4723 _result
= (wxPyPrintout
*)wxPrintPreview_GetPrintoutForPrinting(_arg0
);
4725 wxPy_END_ALLOW_THREADS
;
4726 if (PyErr_Occurred()) return NULL
;
4727 }{ _resultobj
= wxPyMake_wxObject(_result
); }
4731 #define wxPrintPreview_GetZoom(_swigobj) (_swigobj->GetZoom())
4732 static PyObject
*_wrap_wxPrintPreview_GetZoom(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4733 PyObject
* _resultobj
;
4735 wxPrintPreview
* _arg0
;
4736 PyObject
* _argo0
= 0;
4737 char *_kwnames
[] = { "self", NULL
};
4740 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_GetZoom",_kwnames
,&_argo0
))
4743 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4744 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4745 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_GetZoom. Expected _wxPrintPreview_p.");
4750 wxPy_BEGIN_ALLOW_THREADS
;
4751 _result
= (int )wxPrintPreview_GetZoom(_arg0
);
4753 wxPy_END_ALLOW_THREADS
;
4754 if (PyErr_Occurred()) return NULL
;
4755 } _resultobj
= Py_BuildValue("i",_result
);
4759 #define wxPrintPreview_Ok(_swigobj) (_swigobj->Ok())
4760 static PyObject
*_wrap_wxPrintPreview_Ok(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4761 PyObject
* _resultobj
;
4763 wxPrintPreview
* _arg0
;
4764 PyObject
* _argo0
= 0;
4765 char *_kwnames
[] = { "self", NULL
};
4768 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPrintPreview_Ok",_kwnames
,&_argo0
))
4771 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4772 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4773 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_Ok. Expected _wxPrintPreview_p.");
4778 wxPy_BEGIN_ALLOW_THREADS
;
4779 _result
= (bool )wxPrintPreview_Ok(_arg0
);
4781 wxPy_END_ALLOW_THREADS
;
4782 if (PyErr_Occurred()) return NULL
;
4783 } _resultobj
= Py_BuildValue("i",_result
);
4787 #define wxPrintPreview_Print(_swigobj,_swigarg0) (_swigobj->Print(_swigarg0))
4788 static PyObject
*_wrap_wxPrintPreview_Print(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4789 PyObject
* _resultobj
;
4791 wxPrintPreview
* _arg0
;
4793 PyObject
* _argo0
= 0;
4795 char *_kwnames
[] = { "self","prompt", NULL
};
4798 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintPreview_Print",_kwnames
,&_argo0
,&tempbool1
))
4801 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4802 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4803 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_Print. Expected _wxPrintPreview_p.");
4807 _arg1
= (bool ) tempbool1
;
4809 wxPy_BEGIN_ALLOW_THREADS
;
4810 _result
= (bool )wxPrintPreview_Print(_arg0
,_arg1
);
4812 wxPy_END_ALLOW_THREADS
;
4813 if (PyErr_Occurred()) return NULL
;
4814 } _resultobj
= Py_BuildValue("i",_result
);
4818 #define wxPrintPreview_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0))
4819 static PyObject
*_wrap_wxPrintPreview_SetCanvas(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4820 PyObject
* _resultobj
;
4821 wxPrintPreview
* _arg0
;
4823 PyObject
* _argo0
= 0;
4824 PyObject
* _argo1
= 0;
4825 char *_kwnames
[] = { "self","window", NULL
};
4828 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintPreview_SetCanvas",_kwnames
,&_argo0
,&_argo1
))
4831 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4832 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4833 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_SetCanvas. Expected _wxPrintPreview_p.");
4838 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4839 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
4840 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrintPreview_SetCanvas. Expected _wxWindow_p.");
4845 wxPy_BEGIN_ALLOW_THREADS
;
4846 wxPrintPreview_SetCanvas(_arg0
,_arg1
);
4848 wxPy_END_ALLOW_THREADS
;
4849 if (PyErr_Occurred()) return NULL
;
4850 } Py_INCREF(Py_None
);
4851 _resultobj
= Py_None
;
4855 #define wxPrintPreview_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->SetCurrentPage(_swigarg0))
4856 static PyObject
*_wrap_wxPrintPreview_SetCurrentPage(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4857 PyObject
* _resultobj
;
4858 wxPrintPreview
* _arg0
;
4860 PyObject
* _argo0
= 0;
4861 char *_kwnames
[] = { "self","pageNum", NULL
};
4864 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintPreview_SetCurrentPage",_kwnames
,&_argo0
,&_arg1
))
4867 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4868 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4869 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_SetCurrentPage. Expected _wxPrintPreview_p.");
4874 wxPy_BEGIN_ALLOW_THREADS
;
4875 wxPrintPreview_SetCurrentPage(_arg0
,_arg1
);
4877 wxPy_END_ALLOW_THREADS
;
4878 if (PyErr_Occurred()) return NULL
;
4879 } Py_INCREF(Py_None
);
4880 _resultobj
= Py_None
;
4884 #define wxPrintPreview_SetFrame(_swigobj,_swigarg0) (_swigobj->SetFrame(_swigarg0))
4885 static PyObject
*_wrap_wxPrintPreview_SetFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4886 PyObject
* _resultobj
;
4887 wxPrintPreview
* _arg0
;
4889 PyObject
* _argo0
= 0;
4890 PyObject
* _argo1
= 0;
4891 char *_kwnames
[] = { "self","frame", NULL
};
4894 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintPreview_SetFrame",_kwnames
,&_argo0
,&_argo1
))
4897 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4898 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4899 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_SetFrame. Expected _wxPrintPreview_p.");
4904 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4905 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
4906 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrintPreview_SetFrame. Expected _wxFrame_p.");
4911 wxPy_BEGIN_ALLOW_THREADS
;
4912 wxPrintPreview_SetFrame(_arg0
,_arg1
);
4914 wxPy_END_ALLOW_THREADS
;
4915 if (PyErr_Occurred()) return NULL
;
4916 } Py_INCREF(Py_None
);
4917 _resultobj
= Py_None
;
4921 #define wxPrintPreview_SetPrintout(_swigobj,_swigarg0) (_swigobj->SetPrintout(_swigarg0))
4922 static PyObject
*_wrap_wxPrintPreview_SetPrintout(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4923 PyObject
* _resultobj
;
4924 wxPrintPreview
* _arg0
;
4925 wxPyPrintout
* _arg1
;
4926 PyObject
* _argo0
= 0;
4927 PyObject
* _argo1
= 0;
4928 char *_kwnames
[] = { "self","printout", NULL
};
4931 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxPrintPreview_SetPrintout",_kwnames
,&_argo0
,&_argo1
))
4934 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4935 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4936 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_SetPrintout. Expected _wxPrintPreview_p.");
4941 if (_argo1
== Py_None
) { _arg1
= NULL
; }
4942 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPyPrintout_p")) {
4943 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxPrintPreview_SetPrintout. Expected _wxPyPrintout_p.");
4948 wxPy_BEGIN_ALLOW_THREADS
;
4949 wxPrintPreview_SetPrintout(_arg0
,_arg1
);
4951 wxPy_END_ALLOW_THREADS
;
4952 if (PyErr_Occurred()) return NULL
;
4953 } Py_INCREF(Py_None
);
4954 _resultobj
= Py_None
;
4958 #define wxPrintPreview_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0))
4959 static PyObject
*_wrap_wxPrintPreview_SetZoom(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
4960 PyObject
* _resultobj
;
4961 wxPrintPreview
* _arg0
;
4963 PyObject
* _argo0
= 0;
4964 char *_kwnames
[] = { "self","percent", NULL
};
4967 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oi:wxPrintPreview_SetZoom",_kwnames
,&_argo0
,&_arg1
))
4970 if (_argo0
== Py_None
) { _arg0
= NULL
; }
4971 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
4972 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPrintPreview_SetZoom. Expected _wxPrintPreview_p.");
4977 wxPy_BEGIN_ALLOW_THREADS
;
4978 wxPrintPreview_SetZoom(_arg0
,_arg1
);
4980 wxPy_END_ALLOW_THREADS
;
4981 if (PyErr_Occurred()) return NULL
;
4982 } Py_INCREF(Py_None
);
4983 _resultobj
= Py_None
;
4987 static void *SwigwxPreviewFrameTowxFrame(void *ptr
) {
4988 wxPreviewFrame
*src
;
4990 src
= (wxPreviewFrame
*) ptr
;
4991 dest
= (wxFrame
*) src
;
4992 return (void *) dest
;
4995 static void *SwigwxPreviewFrameTowxTopLevelWindow(void *ptr
) {
4996 wxPreviewFrame
*src
;
4997 wxTopLevelWindow
*dest
;
4998 src
= (wxPreviewFrame
*) ptr
;
4999 dest
= (wxTopLevelWindow
*) src
;
5000 return (void *) dest
;
5003 static void *SwigwxPreviewFrameTowxWindow(void *ptr
) {
5004 wxPreviewFrame
*src
;
5006 src
= (wxPreviewFrame
*) ptr
;
5007 dest
= (wxWindow
*) src
;
5008 return (void *) dest
;
5011 static void *SwigwxPreviewFrameTowxEvtHandler(void *ptr
) {
5012 wxPreviewFrame
*src
;
5014 src
= (wxPreviewFrame
*) ptr
;
5015 dest
= (wxEvtHandler
*) src
;
5016 return (void *) dest
;
5019 static void *SwigwxPreviewFrameTowxObject(void *ptr
) {
5020 wxPreviewFrame
*src
;
5022 src
= (wxPreviewFrame
*) ptr
;
5023 dest
= (wxObject
*) src
;
5024 return (void *) dest
;
5027 #define new_wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5028 static PyObject
*_wrap_new_wxPreviewFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5029 PyObject
* _resultobj
;
5030 wxPreviewFrame
* _result
;
5031 wxPrintPreview
* _arg0
;
5034 wxPoint
* _arg3
= (wxPoint
*) &wxDefaultPosition
;
5035 wxSize
* _arg4
= (wxSize
*) &wxDefaultSize
;
5036 long _arg5
= (long ) wxDEFAULT_FRAME_STYLE
;
5037 char * _arg6
= (char *) "frame";
5038 PyObject
* _argo0
= 0;
5039 PyObject
* _argo1
= 0;
5040 PyObject
* _obj2
= 0;
5042 PyObject
* _obj3
= 0;
5044 PyObject
* _obj4
= 0;
5045 char *_kwnames
[] = { "preview","parent","title","pos","size","style","name", NULL
};
5049 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|OOls:new_wxPreviewFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
,&_obj3
,&_obj4
,&_arg5
,&_arg6
))
5052 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5053 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPrintPreview_p")) {
5054 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of new_wxPreviewFrame. Expected _wxPrintPreview_p.");
5059 if (_argo1
== Py_None
) { _arg1
= NULL
; }
5060 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
5061 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of new_wxPreviewFrame. Expected _wxFrame_p.");
5066 #if PYTHON_API_VERSION >= 1009
5067 char* tmpPtr
; int tmpSize
;
5068 if (!PyString_Check(_obj2
) && !PyUnicode_Check(_obj2
)) {
5069 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5072 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
5074 _arg2
= new wxString(tmpPtr
, tmpSize
);
5076 if (!PyString_Check(_obj2
)) {
5077 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
5080 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
5086 if (! wxPoint_helper(_obj3
, &_arg3
))
5092 if (! wxSize_helper(_obj4
, &_arg4
))
5096 wxPy_BEGIN_ALLOW_THREADS
;
5097 _result
= (wxPreviewFrame
*)new_wxPreviewFrame(_arg0
,_arg1
,*_arg2
,*_arg3
,*_arg4
,_arg5
,_arg6
);
5099 wxPy_END_ALLOW_THREADS
;
5100 if (PyErr_Occurred()) return NULL
;
5102 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPreviewFrame_p");
5103 _resultobj
= Py_BuildValue("s",_ptemp
);
5106 _resultobj
= Py_None
;
5115 #define wxPreviewFrame_Initialize(_swigobj) (_swigobj->Initialize())
5116 static PyObject
*_wrap_wxPreviewFrame_Initialize(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
5117 PyObject
* _resultobj
;
5118 wxPreviewFrame
* _arg0
;
5119 PyObject
* _argo0
= 0;
5120 char *_kwnames
[] = { "self", NULL
};
5123 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxPreviewFrame_Initialize",_kwnames
,&_argo0
))
5126 if (_argo0
== Py_None
) { _arg0
= NULL
; }
5127 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxPreviewFrame_p")) {
5128 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxPreviewFrame_Initialize. Expected _wxPreviewFrame_p.");
5133 wxPy_BEGIN_ALLOW_THREADS
;
5134 wxPreviewFrame_Initialize(_arg0
);
5136 wxPy_END_ALLOW_THREADS
;
5137 if (PyErr_Occurred()) return NULL
;
5138 } Py_INCREF(Py_None
);
5139 _resultobj
= Py_None
;
5143 static PyMethodDef printfwcMethods
[] = {
5144 { "wxPreviewFrame_Initialize", (PyCFunction
) _wrap_wxPreviewFrame_Initialize
, METH_VARARGS
| METH_KEYWORDS
},
5145 { "new_wxPreviewFrame", (PyCFunction
) _wrap_new_wxPreviewFrame
, METH_VARARGS
| METH_KEYWORDS
},
5146 { "wxPrintPreview_SetZoom", (PyCFunction
) _wrap_wxPrintPreview_SetZoom
, METH_VARARGS
| METH_KEYWORDS
},
5147 { "wxPrintPreview_SetPrintout", (PyCFunction
) _wrap_wxPrintPreview_SetPrintout
, METH_VARARGS
| METH_KEYWORDS
},
5148 { "wxPrintPreview_SetFrame", (PyCFunction
) _wrap_wxPrintPreview_SetFrame
, METH_VARARGS
| METH_KEYWORDS
},
5149 { "wxPrintPreview_SetCurrentPage", (PyCFunction
) _wrap_wxPrintPreview_SetCurrentPage
, METH_VARARGS
| METH_KEYWORDS
},
5150 { "wxPrintPreview_SetCanvas", (PyCFunction
) _wrap_wxPrintPreview_SetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
5151 { "wxPrintPreview_Print", (PyCFunction
) _wrap_wxPrintPreview_Print
, METH_VARARGS
| METH_KEYWORDS
},
5152 { "wxPrintPreview_Ok", (PyCFunction
) _wrap_wxPrintPreview_Ok
, METH_VARARGS
| METH_KEYWORDS
},
5153 { "wxPrintPreview_GetZoom", (PyCFunction
) _wrap_wxPrintPreview_GetZoom
, METH_VARARGS
| METH_KEYWORDS
},
5154 { "wxPrintPreview_GetPrintoutForPrinting", (PyCFunction
) _wrap_wxPrintPreview_GetPrintoutForPrinting
, METH_VARARGS
| METH_KEYWORDS
},
5155 { "wxPrintPreview_GetPrintout", (PyCFunction
) _wrap_wxPrintPreview_GetPrintout
, METH_VARARGS
| METH_KEYWORDS
},
5156 { "wxPrintPreview_GetPrintDialogData", (PyCFunction
) _wrap_wxPrintPreview_GetPrintDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5157 { "wxPrintPreview_GetMinPage", (PyCFunction
) _wrap_wxPrintPreview_GetMinPage
, METH_VARARGS
| METH_KEYWORDS
},
5158 { "wxPrintPreview_GetMaxPage", (PyCFunction
) _wrap_wxPrintPreview_GetMaxPage
, METH_VARARGS
| METH_KEYWORDS
},
5159 { "wxPrintPreview_GetFrame", (PyCFunction
) _wrap_wxPrintPreview_GetFrame
, METH_VARARGS
| METH_KEYWORDS
},
5160 { "wxPrintPreview_GetCurrentPage", (PyCFunction
) _wrap_wxPrintPreview_GetCurrentPage
, METH_VARARGS
| METH_KEYWORDS
},
5161 { "wxPrintPreview_GetCanvas", (PyCFunction
) _wrap_wxPrintPreview_GetCanvas
, METH_VARARGS
| METH_KEYWORDS
},
5162 { "new_wxPrintPreview", (PyCFunction
) _wrap_new_wxPrintPreview
, METH_VARARGS
| METH_KEYWORDS
},
5163 { "wxPrinter_Setup", (PyCFunction
) _wrap_wxPrinter_Setup
, METH_VARARGS
| METH_KEYWORDS
},
5164 { "wxPrinter_ReportError", (PyCFunction
) _wrap_wxPrinter_ReportError
, METH_VARARGS
| METH_KEYWORDS
},
5165 { "wxPrinter_PrintDialog", (PyCFunction
) _wrap_wxPrinter_PrintDialog
, METH_VARARGS
| METH_KEYWORDS
},
5166 { "wxPrinter_Print", (PyCFunction
) _wrap_wxPrinter_Print
, METH_VARARGS
| METH_KEYWORDS
},
5167 { "wxPrinter_GetPrintDialogData", (PyCFunction
) _wrap_wxPrinter_GetPrintDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5168 { "wxPrinter_CreateAbortWindow", (PyCFunction
) _wrap_wxPrinter_CreateAbortWindow
, METH_VARARGS
| METH_KEYWORDS
},
5169 { "delete_wxPrinter", (PyCFunction
) _wrap_delete_wxPrinter
, METH_VARARGS
| METH_KEYWORDS
},
5170 { "new_wxPrinter", (PyCFunction
) _wrap_new_wxPrinter
, METH_VARARGS
| METH_KEYWORDS
},
5171 { "wxPrintout_base_HasPage", (PyCFunction
) _wrap_wxPrintout_base_HasPage
, METH_VARARGS
| METH_KEYWORDS
},
5172 { "wxPrintout_base_GetPageInfo", (PyCFunction
) _wrap_wxPrintout_base_GetPageInfo
, METH_VARARGS
| METH_KEYWORDS
},
5173 { "wxPrintout_base_OnPreparePrinting", (PyCFunction
) _wrap_wxPrintout_base_OnPreparePrinting
, METH_VARARGS
| METH_KEYWORDS
},
5174 { "wxPrintout_base_OnEndPrinting", (PyCFunction
) _wrap_wxPrintout_base_OnEndPrinting
, METH_VARARGS
| METH_KEYWORDS
},
5175 { "wxPrintout_base_OnBeginPrinting", (PyCFunction
) _wrap_wxPrintout_base_OnBeginPrinting
, METH_VARARGS
| METH_KEYWORDS
},
5176 { "wxPrintout_base_OnEndDocument", (PyCFunction
) _wrap_wxPrintout_base_OnEndDocument
, METH_VARARGS
| METH_KEYWORDS
},
5177 { "wxPrintout_base_OnBeginDocument", (PyCFunction
) _wrap_wxPrintout_base_OnBeginDocument
, METH_VARARGS
| METH_KEYWORDS
},
5178 { "wxPrintout_IsPreview", (PyCFunction
) _wrap_wxPrintout_IsPreview
, METH_VARARGS
| METH_KEYWORDS
},
5179 { "wxPrintout_GetPPIScreen", (PyCFunction
) _wrap_wxPrintout_GetPPIScreen
, METH_VARARGS
| METH_KEYWORDS
},
5180 { "wxPrintout_GetPPIPrinter", (PyCFunction
) _wrap_wxPrintout_GetPPIPrinter
, METH_VARARGS
| METH_KEYWORDS
},
5181 { "wxPrintout_GetPageSizePixels", (PyCFunction
) _wrap_wxPrintout_GetPageSizePixels
, METH_VARARGS
| METH_KEYWORDS
},
5182 { "wxPrintout_GetPageSizeMM", (PyCFunction
) _wrap_wxPrintout_GetPageSizeMM
, METH_VARARGS
| METH_KEYWORDS
},
5183 { "wxPrintout_GetDC", (PyCFunction
) _wrap_wxPrintout_GetDC
, METH_VARARGS
| METH_KEYWORDS
},
5184 { "wxPrintout_Destroy", (PyCFunction
) _wrap_wxPrintout_Destroy
, METH_VARARGS
| METH_KEYWORDS
},
5185 { "wxPrintout__setSelf", (PyCFunction
) _wrap_wxPrintout__setSelf
, METH_VARARGS
| METH_KEYWORDS
},
5186 { "new_wxPrintout", (PyCFunction
) _wrap_new_wxPrintout
, METH_VARARGS
| METH_KEYWORDS
},
5187 { "wxPrintDialog_ShowModal", (PyCFunction
) _wrap_wxPrintDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
5188 { "wxPrintDialog_GetPrintDC", (PyCFunction
) _wrap_wxPrintDialog_GetPrintDC
, METH_VARARGS
| METH_KEYWORDS
},
5189 { "wxPrintDialog_GetPrintDialogData", (PyCFunction
) _wrap_wxPrintDialog_GetPrintDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5190 { "new_wxPrintDialog", (PyCFunction
) _wrap_new_wxPrintDialog
, METH_VARARGS
| METH_KEYWORDS
},
5191 { "wxPrintDialogData_SetToPage", (PyCFunction
) _wrap_wxPrintDialogData_SetToPage
, METH_VARARGS
| METH_KEYWORDS
},
5192 { "wxPrintDialogData_SetSetupDialog", (PyCFunction
) _wrap_wxPrintDialogData_SetSetupDialog
, METH_VARARGS
| METH_KEYWORDS
},
5193 { "wxPrintDialogData_SetPrintToFile", (PyCFunction
) _wrap_wxPrintDialogData_SetPrintToFile
, METH_VARARGS
| METH_KEYWORDS
},
5194 { "wxPrintDialogData_SetPrintData", (PyCFunction
) _wrap_wxPrintDialogData_SetPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5195 { "wxPrintDialogData_SetNoCopies", (PyCFunction
) _wrap_wxPrintDialogData_SetNoCopies
, METH_VARARGS
| METH_KEYWORDS
},
5196 { "wxPrintDialogData_SetMinPage", (PyCFunction
) _wrap_wxPrintDialogData_SetMinPage
, METH_VARARGS
| METH_KEYWORDS
},
5197 { "wxPrintDialogData_SetMaxPage", (PyCFunction
) _wrap_wxPrintDialogData_SetMaxPage
, METH_VARARGS
| METH_KEYWORDS
},
5198 { "wxPrintDialogData_SetFromPage", (PyCFunction
) _wrap_wxPrintDialogData_SetFromPage
, METH_VARARGS
| METH_KEYWORDS
},
5199 { "wxPrintDialogData_SetCollate", (PyCFunction
) _wrap_wxPrintDialogData_SetCollate
, METH_VARARGS
| METH_KEYWORDS
},
5200 { "wxPrintDialogData_GetToPage", (PyCFunction
) _wrap_wxPrintDialogData_GetToPage
, METH_VARARGS
| METH_KEYWORDS
},
5201 { "wxPrintDialogData_GetPrintToFile", (PyCFunction
) _wrap_wxPrintDialogData_GetPrintToFile
, METH_VARARGS
| METH_KEYWORDS
},
5202 { "wxPrintDialogData_GetPrintData", (PyCFunction
) _wrap_wxPrintDialogData_GetPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5203 { "wxPrintDialogData_GetNoCopies", (PyCFunction
) _wrap_wxPrintDialogData_GetNoCopies
, METH_VARARGS
| METH_KEYWORDS
},
5204 { "wxPrintDialogData_GetMinPage", (PyCFunction
) _wrap_wxPrintDialogData_GetMinPage
, METH_VARARGS
| METH_KEYWORDS
},
5205 { "wxPrintDialogData_GetMaxPage", (PyCFunction
) _wrap_wxPrintDialogData_GetMaxPage
, METH_VARARGS
| METH_KEYWORDS
},
5206 { "wxPrintDialogData_GetFromPage", (PyCFunction
) _wrap_wxPrintDialogData_GetFromPage
, METH_VARARGS
| METH_KEYWORDS
},
5207 { "wxPrintDialogData_GetCollate", (PyCFunction
) _wrap_wxPrintDialogData_GetCollate
, METH_VARARGS
| METH_KEYWORDS
},
5208 { "wxPrintDialogData_GetAllPages", (PyCFunction
) _wrap_wxPrintDialogData_GetAllPages
, METH_VARARGS
| METH_KEYWORDS
},
5209 { "wxPrintDialogData_EnableSelection", (PyCFunction
) _wrap_wxPrintDialogData_EnableSelection
, METH_VARARGS
| METH_KEYWORDS
},
5210 { "wxPrintDialogData_EnablePrintToFile", (PyCFunction
) _wrap_wxPrintDialogData_EnablePrintToFile
, METH_VARARGS
| METH_KEYWORDS
},
5211 { "wxPrintDialogData_EnablePageNumbers", (PyCFunction
) _wrap_wxPrintDialogData_EnablePageNumbers
, METH_VARARGS
| METH_KEYWORDS
},
5212 { "wxPrintDialogData_EnableHelp", (PyCFunction
) _wrap_wxPrintDialogData_EnableHelp
, METH_VARARGS
| METH_KEYWORDS
},
5213 { "delete_wxPrintDialogData", (PyCFunction
) _wrap_delete_wxPrintDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5214 { "new_wxPrintDialogData", (PyCFunction
) _wrap_new_wxPrintDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5215 { "wxPageSetupDialog_ShowModal", (PyCFunction
) _wrap_wxPageSetupDialog_ShowModal
, METH_VARARGS
| METH_KEYWORDS
},
5216 { "wxPageSetupDialog_GetPageSetupData", (PyCFunction
) _wrap_wxPageSetupDialog_GetPageSetupData
, METH_VARARGS
| METH_KEYWORDS
},
5217 { "new_wxPageSetupDialog", (PyCFunction
) _wrap_new_wxPageSetupDialog
, METH_VARARGS
| METH_KEYWORDS
},
5218 { "wxPageSetupDialogData_SetPrintData", (PyCFunction
) _wrap_wxPageSetupDialogData_SetPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5219 { "wxPageSetupDialogData_SetPaperSize", (PyCFunction
) _wrap_wxPageSetupDialogData_SetPaperSize
, METH_VARARGS
| METH_KEYWORDS
},
5220 { "wxPageSetupDialogData_SetPaperId", (PyCFunction
) _wrap_wxPageSetupDialogData_SetPaperId
, METH_VARARGS
| METH_KEYWORDS
},
5221 { "wxPageSetupDialogData_SetMinMarginBottomRight", (PyCFunction
) _wrap_wxPageSetupDialogData_SetMinMarginBottomRight
, METH_VARARGS
| METH_KEYWORDS
},
5222 { "wxPageSetupDialogData_SetMinMarginTopLeft", (PyCFunction
) _wrap_wxPageSetupDialogData_SetMinMarginTopLeft
, METH_VARARGS
| METH_KEYWORDS
},
5223 { "wxPageSetupDialogData_SetMarginBottomRight", (PyCFunction
) _wrap_wxPageSetupDialogData_SetMarginBottomRight
, METH_VARARGS
| METH_KEYWORDS
},
5224 { "wxPageSetupDialogData_SetMarginTopLeft", (PyCFunction
) _wrap_wxPageSetupDialogData_SetMarginTopLeft
, METH_VARARGS
| METH_KEYWORDS
},
5225 { "wxPageSetupDialogData_SetDefaultMinMargins", (PyCFunction
) _wrap_wxPageSetupDialogData_SetDefaultMinMargins
, METH_VARARGS
| METH_KEYWORDS
},
5226 { "wxPageSetupDialogData_SetDefaultInfo", (PyCFunction
) _wrap_wxPageSetupDialogData_SetDefaultInfo
, METH_VARARGS
| METH_KEYWORDS
},
5227 { "wxPageSetupDialogData_GetPrintData", (PyCFunction
) _wrap_wxPageSetupDialogData_GetPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5228 { "wxPageSetupDialogData_GetPaperSize", (PyCFunction
) _wrap_wxPageSetupDialogData_GetPaperSize
, METH_VARARGS
| METH_KEYWORDS
},
5229 { "wxPageSetupDialogData_GetPaperId", (PyCFunction
) _wrap_wxPageSetupDialogData_GetPaperId
, METH_VARARGS
| METH_KEYWORDS
},
5230 { "wxPageSetupDialogData_GetMinMarginBottomRight", (PyCFunction
) _wrap_wxPageSetupDialogData_GetMinMarginBottomRight
, METH_VARARGS
| METH_KEYWORDS
},
5231 { "wxPageSetupDialogData_GetMinMarginTopLeft", (PyCFunction
) _wrap_wxPageSetupDialogData_GetMinMarginTopLeft
, METH_VARARGS
| METH_KEYWORDS
},
5232 { "wxPageSetupDialogData_GetMarginBottomRight", (PyCFunction
) _wrap_wxPageSetupDialogData_GetMarginBottomRight
, METH_VARARGS
| METH_KEYWORDS
},
5233 { "wxPageSetupDialogData_GetMarginTopLeft", (PyCFunction
) _wrap_wxPageSetupDialogData_GetMarginTopLeft
, METH_VARARGS
| METH_KEYWORDS
},
5234 { "wxPageSetupDialogData_GetDefaultInfo", (PyCFunction
) _wrap_wxPageSetupDialogData_GetDefaultInfo
, METH_VARARGS
| METH_KEYWORDS
},
5235 { "wxPageSetupDialogData_GetEnableHelp", (PyCFunction
) _wrap_wxPageSetupDialogData_GetEnableHelp
, METH_VARARGS
| METH_KEYWORDS
},
5236 { "wxPageSetupDialogData_GetEnablePrinter", (PyCFunction
) _wrap_wxPageSetupDialogData_GetEnablePrinter
, METH_VARARGS
| METH_KEYWORDS
},
5237 { "wxPageSetupDialogData_GetEnablePaper", (PyCFunction
) _wrap_wxPageSetupDialogData_GetEnablePaper
, METH_VARARGS
| METH_KEYWORDS
},
5238 { "wxPageSetupDialogData_GetEnableOrientation", (PyCFunction
) _wrap_wxPageSetupDialogData_GetEnableOrientation
, METH_VARARGS
| METH_KEYWORDS
},
5239 { "wxPageSetupDialogData_GetEnableMargins", (PyCFunction
) _wrap_wxPageSetupDialogData_GetEnableMargins
, METH_VARARGS
| METH_KEYWORDS
},
5240 { "wxPageSetupDialogData_GetDefaultMinMargins", (PyCFunction
) _wrap_wxPageSetupDialogData_GetDefaultMinMargins
, METH_VARARGS
| METH_KEYWORDS
},
5241 { "wxPageSetupDialogData_EnablePrinter", (PyCFunction
) _wrap_wxPageSetupDialogData_EnablePrinter
, METH_VARARGS
| METH_KEYWORDS
},
5242 { "wxPageSetupDialogData_EnablePaper", (PyCFunction
) _wrap_wxPageSetupDialogData_EnablePaper
, METH_VARARGS
| METH_KEYWORDS
},
5243 { "wxPageSetupDialogData_EnableOrientation", (PyCFunction
) _wrap_wxPageSetupDialogData_EnableOrientation
, METH_VARARGS
| METH_KEYWORDS
},
5244 { "wxPageSetupDialogData_EnableMargins", (PyCFunction
) _wrap_wxPageSetupDialogData_EnableMargins
, METH_VARARGS
| METH_KEYWORDS
},
5245 { "wxPageSetupDialogData_EnableHelp", (PyCFunction
) _wrap_wxPageSetupDialogData_EnableHelp
, METH_VARARGS
| METH_KEYWORDS
},
5246 { "delete_wxPageSetupDialogData", (PyCFunction
) _wrap_delete_wxPageSetupDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5247 { "new_wxPageSetupDialogData", (PyCFunction
) _wrap_new_wxPageSetupDialogData
, METH_VARARGS
| METH_KEYWORDS
},
5248 { "wxPrintData_SetPrintMode", (PyCFunction
) _wrap_wxPrintData_SetPrintMode
, METH_VARARGS
| METH_KEYWORDS
},
5249 { "wxPrintData_SetPrinterTranslation", (PyCFunction
) _wrap_wxPrintData_SetPrinterTranslation
, METH_VARARGS
| METH_KEYWORDS
},
5250 { "wxPrintData_SetPrinterTranslateY", (PyCFunction
) _wrap_wxPrintData_SetPrinterTranslateY
, METH_VARARGS
| METH_KEYWORDS
},
5251 { "wxPrintData_SetPrinterTranslateX", (PyCFunction
) _wrap_wxPrintData_SetPrinterTranslateX
, METH_VARARGS
| METH_KEYWORDS
},
5252 { "wxPrintData_SetPrinterScaling", (PyCFunction
) _wrap_wxPrintData_SetPrinterScaling
, METH_VARARGS
| METH_KEYWORDS
},
5253 { "wxPrintData_SetPrinterScaleY", (PyCFunction
) _wrap_wxPrintData_SetPrinterScaleY
, METH_VARARGS
| METH_KEYWORDS
},
5254 { "wxPrintData_SetPrinterScaleX", (PyCFunction
) _wrap_wxPrintData_SetPrinterScaleX
, METH_VARARGS
| METH_KEYWORDS
},
5255 { "wxPrintData_SetFontMetricPath", (PyCFunction
) _wrap_wxPrintData_SetFontMetricPath
, METH_VARARGS
| METH_KEYWORDS
},
5256 { "wxPrintData_SetFilename", (PyCFunction
) _wrap_wxPrintData_SetFilename
, METH_VARARGS
| METH_KEYWORDS
},
5257 { "wxPrintData_SetPreviewCommand", (PyCFunction
) _wrap_wxPrintData_SetPreviewCommand
, METH_VARARGS
| METH_KEYWORDS
},
5258 { "wxPrintData_SetPrinterOptions", (PyCFunction
) _wrap_wxPrintData_SetPrinterOptions
, METH_VARARGS
| METH_KEYWORDS
},
5259 { "wxPrintData_SetPrinterCommand", (PyCFunction
) _wrap_wxPrintData_SetPrinterCommand
, METH_VARARGS
| METH_KEYWORDS
},
5260 { "wxPrintData_GetPrintMode", (PyCFunction
) _wrap_wxPrintData_GetPrintMode
, METH_VARARGS
| METH_KEYWORDS
},
5261 { "wxPrintData_GetPrinterTranslateY", (PyCFunction
) _wrap_wxPrintData_GetPrinterTranslateY
, METH_VARARGS
| METH_KEYWORDS
},
5262 { "wxPrintData_GetPrinterTranslateX", (PyCFunction
) _wrap_wxPrintData_GetPrinterTranslateX
, METH_VARARGS
| METH_KEYWORDS
},
5263 { "wxPrintData_GetPrinterScaleY", (PyCFunction
) _wrap_wxPrintData_GetPrinterScaleY
, METH_VARARGS
| METH_KEYWORDS
},
5264 { "wxPrintData_GetPrinterScaleX", (PyCFunction
) _wrap_wxPrintData_GetPrinterScaleX
, METH_VARARGS
| METH_KEYWORDS
},
5265 { "wxPrintData_GetFontMetricPath", (PyCFunction
) _wrap_wxPrintData_GetFontMetricPath
, METH_VARARGS
| METH_KEYWORDS
},
5266 { "wxPrintData_GetFilename", (PyCFunction
) _wrap_wxPrintData_GetFilename
, METH_VARARGS
| METH_KEYWORDS
},
5267 { "wxPrintData_GetPreviewCommand", (PyCFunction
) _wrap_wxPrintData_GetPreviewCommand
, METH_VARARGS
| METH_KEYWORDS
},
5268 { "wxPrintData_GetPrinterOptions", (PyCFunction
) _wrap_wxPrintData_GetPrinterOptions
, METH_VARARGS
| METH_KEYWORDS
},
5269 { "wxPrintData_GetPrinterCommand", (PyCFunction
) _wrap_wxPrintData_GetPrinterCommand
, METH_VARARGS
| METH_KEYWORDS
},
5270 { "wxPrintData_SetQuality", (PyCFunction
) _wrap_wxPrintData_SetQuality
, METH_VARARGS
| METH_KEYWORDS
},
5271 { "wxPrintData_SetPaperSize", (PyCFunction
) _wrap_wxPrintData_SetPaperSize
, METH_VARARGS
| METH_KEYWORDS
},
5272 { "wxPrintData_SetPaperId", (PyCFunction
) _wrap_wxPrintData_SetPaperId
, METH_VARARGS
| METH_KEYWORDS
},
5273 { "wxPrintData_SetDuplex", (PyCFunction
) _wrap_wxPrintData_SetDuplex
, METH_VARARGS
| METH_KEYWORDS
},
5274 { "wxPrintData_SetColour", (PyCFunction
) _wrap_wxPrintData_SetColour
, METH_VARARGS
| METH_KEYWORDS
},
5275 { "wxPrintData_SetPrinterName", (PyCFunction
) _wrap_wxPrintData_SetPrinterName
, METH_VARARGS
| METH_KEYWORDS
},
5276 { "wxPrintData_SetOrientation", (PyCFunction
) _wrap_wxPrintData_SetOrientation
, METH_VARARGS
| METH_KEYWORDS
},
5277 { "wxPrintData_SetCollate", (PyCFunction
) _wrap_wxPrintData_SetCollate
, METH_VARARGS
| METH_KEYWORDS
},
5278 { "wxPrintData_SetNoCopies", (PyCFunction
) _wrap_wxPrintData_SetNoCopies
, METH_VARARGS
| METH_KEYWORDS
},
5279 { "wxPrintData_GetQuality", (PyCFunction
) _wrap_wxPrintData_GetQuality
, METH_VARARGS
| METH_KEYWORDS
},
5280 { "wxPrintData_GetPaperSize", (PyCFunction
) _wrap_wxPrintData_GetPaperSize
, METH_VARARGS
| METH_KEYWORDS
},
5281 { "wxPrintData_GetPaperId", (PyCFunction
) _wrap_wxPrintData_GetPaperId
, METH_VARARGS
| METH_KEYWORDS
},
5282 { "wxPrintData_GetDuplex", (PyCFunction
) _wrap_wxPrintData_GetDuplex
, METH_VARARGS
| METH_KEYWORDS
},
5283 { "wxPrintData_GetColour", (PyCFunction
) _wrap_wxPrintData_GetColour
, METH_VARARGS
| METH_KEYWORDS
},
5284 { "wxPrintData_GetPrinterName", (PyCFunction
) _wrap_wxPrintData_GetPrinterName
, METH_VARARGS
| METH_KEYWORDS
},
5285 { "wxPrintData_GetOrientation", (PyCFunction
) _wrap_wxPrintData_GetOrientation
, METH_VARARGS
| METH_KEYWORDS
},
5286 { "wxPrintData_GetCollate", (PyCFunction
) _wrap_wxPrintData_GetCollate
, METH_VARARGS
| METH_KEYWORDS
},
5287 { "wxPrintData_GetNoCopies", (PyCFunction
) _wrap_wxPrintData_GetNoCopies
, METH_VARARGS
| METH_KEYWORDS
},
5288 { "delete_wxPrintData", (PyCFunction
) _wrap_delete_wxPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5289 { "new_wxPrintData", (PyCFunction
) _wrap_new_wxPrintData
, METH_VARARGS
| METH_KEYWORDS
},
5296 * This table is used by the pointer type-checker
5298 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
5299 { "_signed_long","_long",0},
5300 { "_wxPrintQuality","_wxCoord",0},
5301 { "_wxPrintQuality","_int",0},
5302 { "_wxPrintQuality","_signed_int",0},
5303 { "_wxPrintQuality","_unsigned_int",0},
5304 { "_wxPrintQuality","_wxWindowID",0},
5305 { "_wxPrintQuality","_uint",0},
5306 { "_wxPrintQuality","_EBool",0},
5307 { "_wxPrintQuality","_size_t",0},
5308 { "_wxPrintQuality","_time_t",0},
5309 { "_class_wxEvtHandler","_class_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler
},
5310 { "_class_wxEvtHandler","_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler
},
5311 { "_class_wxEvtHandler","_class_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler
},
5312 { "_class_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler
},
5313 { "_class_wxEvtHandler","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler
},
5314 { "_class_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler
},
5315 { "_byte","_unsigned_char",0},
5316 { "_long","_unsigned_long",0},
5317 { "_long","_signed_long",0},
5318 { "_class_wxObject","_class_wxPreviewFrame",SwigwxPreviewFrameTowxObject
},
5319 { "_class_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject
},
5320 { "_class_wxObject","_class_wxPrintPreview",SwigwxPrintPreviewTowxObject
},
5321 { "_class_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject
},
5322 { "_class_wxObject","_class_wxPrinter",SwigwxPrinterTowxObject
},
5323 { "_class_wxObject","_wxPrinter",SwigwxPrinterTowxObject
},
5324 { "_class_wxObject","_class_wxPyPrintout",SwigwxPyPrintoutTowxObject
},
5325 { "_class_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject
},
5326 { "_class_wxObject","_class_wxPrintDialog",SwigwxPrintDialogTowxObject
},
5327 { "_class_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject
},
5328 { "_class_wxObject","_class_wxPrintDialogData",SwigwxPrintDialogDataTowxObject
},
5329 { "_class_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject
},
5330 { "_class_wxObject","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject
},
5331 { "_class_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject
},
5332 { "_class_wxObject","_class_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject
},
5333 { "_class_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject
},
5334 { "_class_wxObject","_class_wxPrintData",SwigwxPrintDataTowxObject
},
5335 { "_class_wxObject","_wxPrintData",SwigwxPrintDataTowxObject
},
5336 { "_size_t","_wxCoord",0},
5337 { "_size_t","_wxPrintQuality",0},
5338 { "_size_t","_time_t",0},
5339 { "_size_t","_unsigned_int",0},
5340 { "_size_t","_int",0},
5341 { "_size_t","_wxWindowID",0},
5342 { "_size_t","_uint",0},
5343 { "_wxTopLevelWindow","_class_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow
},
5344 { "_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow
},
5345 { "_wxTopLevelWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow
},
5346 { "_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow
},
5347 { "_wxTopLevelWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow
},
5348 { "_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow
},
5349 { "_class_wxDialog","_class_wxPrintDialog",SwigwxPrintDialogTowxDialog
},
5350 { "_class_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog
},
5351 { "_class_wxDialog","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog
},
5352 { "_class_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog
},
5353 { "_uint","_wxCoord",0},
5354 { "_uint","_wxPrintQuality",0},
5355 { "_uint","_time_t",0},
5356 { "_uint","_size_t",0},
5357 { "_uint","_unsigned_int",0},
5358 { "_uint","_int",0},
5359 { "_uint","_wxWindowID",0},
5360 { "_wxChar","_char",0},
5361 { "_char","_wxChar",0},
5362 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
5363 { "_EBool","_wxCoord",0},
5364 { "_EBool","_wxPrintQuality",0},
5365 { "_EBool","_signed_int",0},
5366 { "_EBool","_int",0},
5367 { "_EBool","_wxWindowID",0},
5368 { "_unsigned_long","_long",0},
5369 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
5370 { "_signed_int","_wxCoord",0},
5371 { "_signed_int","_wxPrintQuality",0},
5372 { "_signed_int","_EBool",0},
5373 { "_signed_int","_wxWindowID",0},
5374 { "_signed_int","_int",0},
5375 { "_class_wxTopLevelWindow","_class_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow
},
5376 { "_class_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow
},
5377 { "_class_wxTopLevelWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow
},
5378 { "_class_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow
},
5379 { "_class_wxTopLevelWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow
},
5380 { "_class_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow
},
5381 { "_WXTYPE","_short",0},
5382 { "_WXTYPE","_signed_short",0},
5383 { "_WXTYPE","_unsigned_short",0},
5384 { "_unsigned_short","_WXTYPE",0},
5385 { "_unsigned_short","_short",0},
5386 { "_class_wxWindow","_class_wxPreviewFrame",SwigwxPreviewFrameTowxWindow
},
5387 { "_class_wxWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxWindow
},
5388 { "_class_wxWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxWindow
},
5389 { "_class_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow
},
5390 { "_class_wxWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow
},
5391 { "_class_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow
},
5392 { "_wxObject","_class_wxPreviewFrame",SwigwxPreviewFrameTowxObject
},
5393 { "_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject
},
5394 { "_wxObject","_class_wxPrintPreview",SwigwxPrintPreviewTowxObject
},
5395 { "_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject
},
5396 { "_wxObject","_class_wxPrinter",SwigwxPrinterTowxObject
},
5397 { "_wxObject","_wxPrinter",SwigwxPrinterTowxObject
},
5398 { "_wxObject","_class_wxPyPrintout",SwigwxPyPrintoutTowxObject
},
5399 { "_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject
},
5400 { "_wxObject","_class_wxPrintDialog",SwigwxPrintDialogTowxObject
},
5401 { "_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject
},
5402 { "_wxObject","_class_wxPrintDialogData",SwigwxPrintDialogDataTowxObject
},
5403 { "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject
},
5404 { "_wxObject","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject
},
5405 { "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject
},
5406 { "_wxObject","_class_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject
},
5407 { "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject
},
5408 { "_wxObject","_class_wxPrintData",SwigwxPrintDataTowxObject
},
5409 { "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject
},
5410 { "_signed_short","_WXTYPE",0},
5411 { "_signed_short","_short",0},
5412 { "_unsigned_char","_byte",0},
5413 { "_unsigned_int","_wxCoord",0},
5414 { "_unsigned_int","_wxPrintQuality",0},
5415 { "_unsigned_int","_time_t",0},
5416 { "_unsigned_int","_size_t",0},
5417 { "_unsigned_int","_uint",0},
5418 { "_unsigned_int","_wxWindowID",0},
5419 { "_unsigned_int","_int",0},
5420 { "_wxDialog","_class_wxPrintDialog",SwigwxPrintDialogTowxDialog
},
5421 { "_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog
},
5422 { "_wxDialog","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog
},
5423 { "_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog
},
5424 { "_short","_WXTYPE",0},
5425 { "_short","_unsigned_short",0},
5426 { "_short","_signed_short",0},
5427 { "_wxFrame","_class_wxPreviewFrame",SwigwxPreviewFrameTowxFrame
},
5428 { "_wxFrame","_wxPreviewFrame",SwigwxPreviewFrameTowxFrame
},
5429 { "_wxWindowID","_wxCoord",0},
5430 { "_wxWindowID","_wxPrintQuality",0},
5431 { "_wxWindowID","_time_t",0},
5432 { "_wxWindowID","_size_t",0},
5433 { "_wxWindowID","_EBool",0},
5434 { "_wxWindowID","_uint",0},
5435 { "_wxWindowID","_int",0},
5436 { "_wxWindowID","_signed_int",0},
5437 { "_wxWindowID","_unsigned_int",0},
5438 { "_int","_wxCoord",0},
5439 { "_int","_wxPrintQuality",0},
5440 { "_int","_time_t",0},
5441 { "_int","_size_t",0},
5442 { "_int","_EBool",0},
5443 { "_int","_uint",0},
5444 { "_int","_wxWindowID",0},
5445 { "_int","_unsigned_int",0},
5446 { "_int","_signed_int",0},
5447 { "_time_t","_wxCoord",0},
5448 { "_time_t","_wxPrintQuality",0},
5449 { "_time_t","_unsigned_int",0},
5450 { "_time_t","_int",0},
5451 { "_time_t","_wxWindowID",0},
5452 { "_time_t","_uint",0},
5453 { "_time_t","_size_t",0},
5454 { "_wxCoord","_int",0},
5455 { "_wxCoord","_signed_int",0},
5456 { "_wxCoord","_unsigned_int",0},
5457 { "_wxCoord","_wxWindowID",0},
5458 { "_wxCoord","_uint",0},
5459 { "_wxCoord","_EBool",0},
5460 { "_wxCoord","_size_t",0},
5461 { "_wxCoord","_time_t",0},
5462 { "_wxCoord","_wxPrintQuality",0},
5463 { "_wxEvtHandler","_class_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler
},
5464 { "_wxEvtHandler","_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler
},
5465 { "_wxEvtHandler","_class_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler
},
5466 { "_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler
},
5467 { "_wxEvtHandler","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler
},
5468 { "_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler
},
5469 { "_wxWindow","_class_wxPreviewFrame",SwigwxPreviewFrameTowxWindow
},
5470 { "_wxWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxWindow
},
5471 { "_wxWindow","_class_wxPrintDialog",SwigwxPrintDialogTowxWindow
},
5472 { "_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow
},
5473 { "_wxWindow","_class_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow
},
5474 { "_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow
},
5475 { "_class_wxFrame","_class_wxPreviewFrame",SwigwxPreviewFrameTowxFrame
},
5476 { "_class_wxFrame","_wxPreviewFrame",SwigwxPreviewFrameTowxFrame
},
5479 static PyObject
*SWIG_globals
;
5483 SWIGEXPORT(void) initprintfwc() {
5485 SWIG_globals
= SWIG_newvarlink();
5486 m
= Py_InitModule("printfwc", printfwcMethods
);
5487 d
= PyModule_GetDict(m
);
5489 wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout");
5492 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
5493 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);