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