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