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