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