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