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