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