]>
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); | |
1fded56b RD |
67 | static const wxChar* wxPreviewCanvasNameStr = wxT("previewcanvas"); |
68 | DECLARE_DEF_STRING(PreviewCanvasNameStr); | |
9a74fcaf RD |
69 | |
70 | DECLARE_DEF_STRING(FrameNameStr); | |
1fded56b RD |
71 | DECLARE_DEF_STRING(PanelNameStr); |
72 | DECLARE_DEF_STRING(DialogNameStr); | |
73 | ||
9a74fcaf | 74 | |
d24a34bb RD |
75 | |
76 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
77 | PyObject* o2; | |
78 | PyObject* o3; | |
79 | ||
3bcd5e1c | 80 | if (!target) { |
d24a34bb | 81 | target = o; |
3bcd5e1c | 82 | } else if (target == Py_None) { |
d24a34bb RD |
83 | Py_DECREF(Py_None); |
84 | target = o; | |
3bcd5e1c | 85 | } else { |
d24a34bb RD |
86 | if (!PyTuple_Check(target)) { |
87 | o2 = target; | |
88 | target = PyTuple_New(1); | |
89 | PyTuple_SetItem(target, 0, o2); | |
90 | } | |
3bcd5e1c RD |
91 | o3 = PyTuple_New(1); |
92 | PyTuple_SetItem(o3, 0, o); | |
d24a34bb RD |
93 | |
94 | o2 = target; | |
3bcd5e1c RD |
95 | target = PySequence_Concat(o2, o3); |
96 | Py_DECREF(o2); | |
d24a34bb RD |
97 | Py_DECREF(o3); |
98 | } | |
99 | return target; | |
100 | } | |
101 | ||
4120ef2b RD |
102 | |
103 | ||
104 | // Since this one would be tough and ugly to do with the Macros... | |
105 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
54b96882 | 106 | bool hadErr = FALSE; |
059a841c | 107 | bool found; |
4120ef2b | 108 | |
474c48f9 | 109 | wxPyBeginBlockThreads(); |
059a841c | 110 | if ((found = m_myInst.findCallback("GetPageInfo"))) { |
4120ef2b RD |
111 | PyObject* result = m_myInst.callCallbackObj(Py_BuildValue("()")); |
112 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
113 | PyObject* val; | |
114 | ||
115 | val = PyTuple_GetItem(result, 0); | |
116 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
54b96882 | 117 | else hadErr = TRUE; |
4120ef2b RD |
118 | |
119 | val = PyTuple_GetItem(result, 1); | |
120 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
54b96882 | 121 | else hadErr = TRUE; |
4120ef2b RD |
122 | |
123 | val = PyTuple_GetItem(result, 2); | |
124 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
54b96882 | 125 | else hadErr = TRUE; |
4120ef2b RD |
126 | |
127 | val = PyTuple_GetItem(result, 3); | |
128 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
54b96882 | 129 | else hadErr = TRUE; |
d24a34bb RD |
130 | } |
131 | else | |
54b96882 | 132 | hadErr = TRUE; |
9cce9de1 | 133 | |
4120ef2b RD |
134 | if (hadErr) { |
135 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
136 | PyErr_Print(); | |
137 | } | |
138 | Py_DECREF(result); | |
d24a34bb | 139 | } |
474c48f9 | 140 | wxPyEndBlockThreads(); |
059a841c | 141 | if (! found) |
d24a34bb | 142 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); |
4120ef2b RD |
143 | } |
144 | ||
145 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
146 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
147 | } | |
148 | ||
9cce9de1 RD |
149 | |
150 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
151 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
152 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
153 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
154 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
155 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
156 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
157 | ||
158 | ||
1fded56b RD |
159 | |
160 | class wxPyPrintPreview : public wxPrintPreview | |
161 | { | |
162 | DECLARE_CLASS(wxPyPrintPreview) | |
163 | public: | |
164 | wxPyPrintPreview(wxPyPrintout* printout, | |
165 | wxPyPrintout* printoutForPrinting, | |
166 | wxPrintData* data=NULL) | |
167 | : wxPrintPreview(printout, printoutForPrinting, data) | |
168 | {} | |
169 | ||
170 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
171 | DEC_PYCALLBACK_BOOL_WXWINDC(PaintPage); | |
172 | DEC_PYCALLBACK_BOOL_WXWINDC(DrawBlankPage); | |
173 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
174 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
175 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
176 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
177 | ||
178 | PYPRIVATE; | |
179 | }; | |
180 | ||
181 | // Stupid renamed classes... Fix this in 2.5... | |
182 | #if defined(__WXMSW__) | |
183 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
184 | #elif defined(__WXMAC__) | |
185 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
186 | #else | |
187 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
188 | #endif | |
189 | ||
190 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
191 | IMP_PYCALLBACK_BOOL_WXWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
192 | IMP_PYCALLBACK_BOOL_WXWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
193 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
194 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
195 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
196 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
197 | ||
198 | class wxPyPreviewFrame : public wxPreviewFrame | |
199 | { | |
200 | DECLARE_CLASS(wxPyPreviewFrame); | |
201 | public: | |
202 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
203 | const wxString& title, | |
204 | const wxPoint& pos = wxDefaultPosition, | |
205 | const wxSize& size = wxDefaultSize, | |
206 | long style = wxDEFAULT_FRAME_STYLE, | |
207 | const wxString& name = wxPyFrameNameStr) | |
208 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
209 | {} | |
210 | ||
211 | void SetPreviewCanvas(wxWindow* canvas) { m_previewCanvas = canvas; } | |
212 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
213 | ||
214 | DEC_PYCALLBACK_VOID_(Initialize); | |
215 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
216 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
217 | ||
218 | PYPRIVATE; | |
219 | }; | |
220 | ||
221 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
222 | ||
223 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
224 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
225 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
226 | ||
227 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
228 | { | |
229 | DECLARE_CLASS(wxPyPreviewControlBar); | |
230 | public: | |
231 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
232 | long buttons, | |
233 | wxWindow *parent, | |
234 | const wxPoint& pos = wxDefaultPosition, | |
235 | const wxSize& size = wxDefaultSize, | |
236 | long style = 0, | |
237 | const wxString& name = wxPyPanelNameStr) | |
238 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
239 | {} | |
240 | ||
241 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
242 | ||
243 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
244 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
245 | ||
246 | PYPRIVATE; | |
247 | }; | |
248 | ||
249 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
250 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
251 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
2d091820 RD |
252 | #ifdef __cplusplus |
253 | extern "C" { | |
254 | #endif | |
9df61a29 RD |
255 | static void *SwigwxPrintDataTowxObject(void *ptr) { |
256 | wxPrintData *src; | |
257 | wxObject *dest; | |
258 | src = (wxPrintData *) ptr; | |
259 | dest = (wxObject *) src; | |
260 | return (void *) dest; | |
261 | } | |
262 | ||
d24a34bb | 263 | #define new_wxPrintData() (new wxPrintData()) |
107e4716 | 264 | static PyObject *_wrap_new_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
265 | PyObject * _resultobj; |
266 | wxPrintData * _result; | |
107e4716 | 267 | char *_kwnames[] = { NULL }; |
d24a34bb RD |
268 | char _ptemp[128]; |
269 | ||
270 | self = self; | |
107e4716 | 271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintData",_kwnames)) |
d24a34bb RD |
272 | return NULL; |
273 | { | |
474c48f9 | 274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 275 | _result = (wxPrintData *)new_wxPrintData(); |
d24a34bb | 276 | |
474c48f9 | 277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 278 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
279 | } if (_result) { |
280 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); | |
281 | _resultobj = Py_BuildValue("s",_ptemp); | |
282 | } else { | |
283 | Py_INCREF(Py_None); | |
284 | _resultobj = Py_None; | |
285 | } | |
d24a34bb RD |
286 | return _resultobj; |
287 | } | |
288 | ||
289 | #define delete_wxPrintData(_swigobj) (delete _swigobj) | |
107e4716 | 290 | static PyObject *_wrap_delete_wxPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
291 | PyObject * _resultobj; |
292 | wxPrintData * _arg0; | |
2d091820 | 293 | PyObject * _argo0 = 0; |
107e4716 | 294 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
295 | |
296 | self = self; | |
107e4716 | 297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintData",_kwnames,&_argo0)) |
d24a34bb | 298 | return NULL; |
2d091820 RD |
299 | if (_argo0) { |
300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintData. Expected _wxPrintData_p."); |
303 | return NULL; | |
304 | } | |
305 | } | |
306 | { | |
474c48f9 | 307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 308 | delete_wxPrintData(_arg0); |
d24a34bb | 309 | |
474c48f9 | 310 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 311 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
312 | } Py_INCREF(Py_None); |
313 | _resultobj = Py_None; | |
314 | return _resultobj; | |
315 | } | |
316 | ||
317 | #define wxPrintData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies()) | |
107e4716 | 318 | static PyObject *_wrap_wxPrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
319 | PyObject * _resultobj; |
320 | int _result; | |
321 | wxPrintData * _arg0; | |
2d091820 | 322 | PyObject * _argo0 = 0; |
107e4716 | 323 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
324 | |
325 | self = self; | |
107e4716 | 326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetNoCopies",_kwnames,&_argo0)) |
d24a34bb | 327 | return NULL; |
2d091820 RD |
328 | if (_argo0) { |
329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetNoCopies. Expected _wxPrintData_p."); |
332 | return NULL; | |
333 | } | |
334 | } | |
335 | { | |
474c48f9 | 336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 337 | _result = (int )wxPrintData_GetNoCopies(_arg0); |
d24a34bb | 338 | |
474c48f9 | 339 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 340 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
341 | } _resultobj = Py_BuildValue("i",_result); |
342 | return _resultobj; | |
343 | } | |
344 | ||
345 | #define wxPrintData_GetCollate(_swigobj) (_swigobj->GetCollate()) | |
107e4716 | 346 | static PyObject *_wrap_wxPrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
347 | PyObject * _resultobj; |
348 | bool _result; | |
349 | wxPrintData * _arg0; | |
2d091820 | 350 | PyObject * _argo0 = 0; |
107e4716 | 351 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
352 | |
353 | self = self; | |
107e4716 | 354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetCollate",_kwnames,&_argo0)) |
d24a34bb | 355 | return NULL; |
2d091820 RD |
356 | if (_argo0) { |
357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetCollate. Expected _wxPrintData_p."); |
360 | return NULL; | |
361 | } | |
362 | } | |
363 | { | |
474c48f9 | 364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 365 | _result = (bool )wxPrintData_GetCollate(_arg0); |
d24a34bb | 366 | |
474c48f9 | 367 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 368 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
369 | } _resultobj = Py_BuildValue("i",_result); |
370 | return _resultobj; | |
371 | } | |
372 | ||
373 | #define wxPrintData_GetOrientation(_swigobj) (_swigobj->GetOrientation()) | |
107e4716 | 374 | static PyObject *_wrap_wxPrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
375 | PyObject * _resultobj; |
376 | int _result; | |
377 | wxPrintData * _arg0; | |
2d091820 | 378 | PyObject * _argo0 = 0; |
107e4716 | 379 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
380 | |
381 | self = self; | |
107e4716 | 382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetOrientation",_kwnames,&_argo0)) |
d24a34bb | 383 | return NULL; |
2d091820 RD |
384 | if (_argo0) { |
385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetOrientation. Expected _wxPrintData_p."); |
388 | return NULL; | |
389 | } | |
390 | } | |
391 | { | |
474c48f9 | 392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 393 | _result = (int )wxPrintData_GetOrientation(_arg0); |
d24a34bb | 394 | |
474c48f9 | 395 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 396 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
397 | } _resultobj = Py_BuildValue("i",_result); |
398 | return _resultobj; | |
399 | } | |
400 | ||
12d1116b RD |
401 | #define wxPrintData_Ok(_swigobj) (_swigobj->Ok()) |
402 | static PyObject *_wrap_wxPrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
403 | PyObject * _resultobj; | |
404 | bool _result; | |
405 | wxPrintData * _arg0; | |
406 | PyObject * _argo0 = 0; | |
407 | char *_kwnames[] = { "self", NULL }; | |
408 | ||
409 | self = self; | |
410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_Ok",_kwnames,&_argo0)) | |
411 | return NULL; | |
412 | if (_argo0) { | |
413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_Ok. Expected _wxPrintData_p."); | |
416 | return NULL; | |
417 | } | |
418 | } | |
419 | { | |
420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
421 | _result = (bool )wxPrintData_Ok(_arg0); | |
422 | ||
423 | wxPyEndAllowThreads(__tstate); | |
424 | if (PyErr_Occurred()) return NULL; | |
425 | } _resultobj = Py_BuildValue("i",_result); | |
426 | return _resultobj; | |
427 | } | |
428 | ||
d24a34bb | 429 | #define wxPrintData_GetPrinterName(_swigobj) (_swigobj->GetPrinterName()) |
107e4716 | 430 | static PyObject *_wrap_wxPrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
431 | PyObject * _resultobj; |
432 | wxString * _result; | |
433 | wxPrintData * _arg0; | |
2d091820 | 434 | PyObject * _argo0 = 0; |
107e4716 | 435 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
436 | |
437 | self = self; | |
107e4716 | 438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterName",_kwnames,&_argo0)) |
d24a34bb | 439 | return NULL; |
2d091820 RD |
440 | if (_argo0) { |
441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterName. Expected _wxPrintData_p."); |
444 | return NULL; | |
445 | } | |
446 | } | |
447 | { | |
474c48f9 | 448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 449 | const wxString & _result_ref = wxPrintData_GetPrinterName(_arg0); |
d24a34bb RD |
450 | _result = (wxString *) &_result_ref; |
451 | ||
474c48f9 | 452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 453 | if (PyErr_Occurred()) return NULL; |
d24a34bb | 454 | }{ |
c8bc7bb8 | 455 | #if wxUSE_UNICODE |
b67a9327 | 456 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 457 | #else |
e02c03a4 | 458 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 459 | #endif |
d24a34bb RD |
460 | } |
461 | return _resultobj; | |
462 | } | |
463 | ||
464 | #define wxPrintData_GetColour(_swigobj) (_swigobj->GetColour()) | |
107e4716 | 465 | static PyObject *_wrap_wxPrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
466 | PyObject * _resultobj; |
467 | bool _result; | |
468 | wxPrintData * _arg0; | |
2d091820 | 469 | PyObject * _argo0 = 0; |
107e4716 | 470 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
471 | |
472 | self = self; | |
107e4716 | 473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetColour",_kwnames,&_argo0)) |
d24a34bb | 474 | return NULL; |
2d091820 RD |
475 | if (_argo0) { |
476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetColour. Expected _wxPrintData_p."); |
479 | return NULL; | |
480 | } | |
481 | } | |
482 | { | |
474c48f9 | 483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 484 | _result = (bool )wxPrintData_GetColour(_arg0); |
d24a34bb | 485 | |
474c48f9 | 486 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 487 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
488 | } _resultobj = Py_BuildValue("i",_result); |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | #define wxPrintData_GetDuplex(_swigobj) (_swigobj->GetDuplex()) | |
107e4716 | 493 | static PyObject *_wrap_wxPrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
494 | PyObject * _resultobj; |
495 | wxDuplexMode _result; | |
496 | wxPrintData * _arg0; | |
2d091820 | 497 | PyObject * _argo0 = 0; |
107e4716 | 498 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
499 | |
500 | self = self; | |
107e4716 | 501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetDuplex",_kwnames,&_argo0)) |
d24a34bb | 502 | return NULL; |
2d091820 RD |
503 | if (_argo0) { |
504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetDuplex. Expected _wxPrintData_p."); |
507 | return NULL; | |
508 | } | |
509 | } | |
510 | { | |
474c48f9 | 511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 512 | _result = (wxDuplexMode )wxPrintData_GetDuplex(_arg0); |
d24a34bb | 513 | |
474c48f9 | 514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 515 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
516 | } _resultobj = Py_BuildValue("i",_result); |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxPrintData_GetPaperId(_swigobj) (_swigobj->GetPaperId()) | |
107e4716 | 521 | static PyObject *_wrap_wxPrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
522 | PyObject * _resultobj; |
523 | wxPaperSize _result; | |
524 | wxPrintData * _arg0; | |
2d091820 | 525 | PyObject * _argo0 = 0; |
107e4716 | 526 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
527 | |
528 | self = self; | |
107e4716 | 529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperId",_kwnames,&_argo0)) |
d24a34bb | 530 | return NULL; |
2d091820 RD |
531 | if (_argo0) { |
532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperId. Expected _wxPrintData_p."); |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
474c48f9 | 539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 540 | _result = (wxPaperSize )wxPrintData_GetPaperId(_arg0); |
d24a34bb | 541 | |
474c48f9 | 542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 543 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
544 | } _resultobj = Py_BuildValue("i",_result); |
545 | return _resultobj; | |
546 | } | |
547 | ||
548 | #define wxPrintData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize()) | |
107e4716 | 549 | static PyObject *_wrap_wxPrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
550 | PyObject * _resultobj; |
551 | wxSize * _result; | |
552 | wxPrintData * _arg0; | |
2d091820 | 553 | PyObject * _argo0 = 0; |
107e4716 | 554 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
555 | char _ptemp[128]; |
556 | ||
557 | self = self; | |
107e4716 | 558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPaperSize",_kwnames,&_argo0)) |
d24a34bb | 559 | return NULL; |
2d091820 RD |
560 | if (_argo0) { |
561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPaperSize. Expected _wxPrintData_p."); |
564 | return NULL; | |
565 | } | |
566 | } | |
567 | { | |
474c48f9 | 568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 569 | const wxSize & _result_ref = wxPrintData_GetPaperSize(_arg0); |
d24a34bb RD |
570 | _result = (wxSize *) &_result_ref; |
571 | ||
474c48f9 | 572 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 573 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
574 | } if (_result) { |
575 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p"); | |
576 | _resultobj = Py_BuildValue("s",_ptemp); | |
577 | } else { | |
578 | Py_INCREF(Py_None); | |
579 | _resultobj = Py_None; | |
580 | } | |
d24a34bb RD |
581 | return _resultobj; |
582 | } | |
583 | ||
584 | #define wxPrintData_GetQuality(_swigobj) (_swigobj->GetQuality()) | |
107e4716 | 585 | static PyObject *_wrap_wxPrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
586 | PyObject * _resultobj; |
587 | wxPrintQuality _result; | |
588 | wxPrintData * _arg0; | |
2d091820 | 589 | PyObject * _argo0 = 0; |
107e4716 | 590 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
591 | |
592 | self = self; | |
107e4716 | 593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetQuality",_kwnames,&_argo0)) |
d24a34bb | 594 | return NULL; |
2d091820 RD |
595 | if (_argo0) { |
596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetQuality. Expected _wxPrintData_p."); |
599 | return NULL; | |
600 | } | |
601 | } | |
602 | { | |
474c48f9 | 603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 604 | _result = (wxPrintQuality )wxPrintData_GetQuality(_arg0); |
d24a34bb | 605 | |
474c48f9 | 606 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 607 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
608 | } _resultobj = Py_BuildValue("i",_result); |
609 | return _resultobj; | |
610 | } | |
611 | ||
612 | #define wxPrintData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0)) | |
107e4716 | 613 | static PyObject *_wrap_wxPrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
614 | PyObject * _resultobj; |
615 | wxPrintData * _arg0; | |
616 | int _arg1; | |
2d091820 | 617 | PyObject * _argo0 = 0; |
107e4716 | 618 | char *_kwnames[] = { "self","v", NULL }; |
d24a34bb RD |
619 | |
620 | self = self; | |
107e4716 | 621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetNoCopies",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 622 | return NULL; |
2d091820 RD |
623 | if (_argo0) { |
624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetNoCopies. Expected _wxPrintData_p."); |
627 | return NULL; | |
628 | } | |
629 | } | |
630 | { | |
474c48f9 | 631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 632 | wxPrintData_SetNoCopies(_arg0,_arg1); |
d24a34bb | 633 | |
474c48f9 | 634 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 635 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
636 | } Py_INCREF(Py_None); |
637 | _resultobj = Py_None; | |
638 | return _resultobj; | |
639 | } | |
640 | ||
641 | #define wxPrintData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0)) | |
107e4716 | 642 | static PyObject *_wrap_wxPrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
643 | PyObject * _resultobj; |
644 | wxPrintData * _arg0; | |
645 | bool _arg1; | |
2d091820 | 646 | PyObject * _argo0 = 0; |
d24a34bb | 647 | int tempbool1; |
107e4716 | 648 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
649 | |
650 | self = self; | |
107e4716 | 651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetCollate",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 652 | return NULL; |
2d091820 RD |
653 | if (_argo0) { |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetCollate. Expected _wxPrintData_p."); |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | _arg1 = (bool ) tempbool1; | |
661 | { | |
474c48f9 | 662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 663 | wxPrintData_SetCollate(_arg0,_arg1); |
d24a34bb | 664 | |
474c48f9 | 665 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 666 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
667 | } Py_INCREF(Py_None); |
668 | _resultobj = Py_None; | |
669 | return _resultobj; | |
670 | } | |
671 | ||
672 | #define wxPrintData_SetOrientation(_swigobj,_swigarg0) (_swigobj->SetOrientation(_swigarg0)) | |
107e4716 | 673 | static PyObject *_wrap_wxPrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
674 | PyObject * _resultobj; |
675 | wxPrintData * _arg0; | |
676 | int _arg1; | |
2d091820 | 677 | PyObject * _argo0 = 0; |
107e4716 | 678 | char *_kwnames[] = { "self","orient", NULL }; |
d24a34bb RD |
679 | |
680 | self = self; | |
107e4716 | 681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetOrientation",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 682 | return NULL; |
2d091820 RD |
683 | if (_argo0) { |
684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetOrientation. Expected _wxPrintData_p."); |
687 | return NULL; | |
688 | } | |
689 | } | |
690 | { | |
474c48f9 | 691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 692 | wxPrintData_SetOrientation(_arg0,_arg1); |
d24a34bb | 693 | |
474c48f9 | 694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 695 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
696 | } Py_INCREF(Py_None); |
697 | _resultobj = Py_None; | |
698 | return _resultobj; | |
699 | } | |
700 | ||
701 | #define wxPrintData_SetPrinterName(_swigobj,_swigarg0) (_swigobj->SetPrinterName(_swigarg0)) | |
107e4716 | 702 | static PyObject *_wrap_wxPrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
703 | PyObject * _resultobj; |
704 | wxPrintData * _arg0; | |
705 | wxString * _arg1; | |
2d091820 | 706 | PyObject * _argo0 = 0; |
d24a34bb | 707 | PyObject * _obj1 = 0; |
107e4716 | 708 | char *_kwnames[] = { "self","name", NULL }; |
d24a34bb RD |
709 | |
710 | self = self; | |
107e4716 | 711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterName",_kwnames,&_argo0,&_obj1)) |
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_SetPrinterName. Expected _wxPrintData_p."); |
717 | return NULL; | |
718 | } | |
719 | } | |
720 | { | |
c8bc7bb8 RD |
721 | _arg1 = wxString_in_helper(_obj1); |
722 | if (_arg1 == NULL) | |
d24a34bb | 723 | return NULL; |
d24a34bb RD |
724 | } |
725 | { | |
474c48f9 | 726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 727 | wxPrintData_SetPrinterName(_arg0,*_arg1); |
d24a34bb | 728 | |
474c48f9 | 729 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 730 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
731 | } Py_INCREF(Py_None); |
732 | _resultobj = Py_None; | |
733 | { | |
734 | if (_obj1) | |
735 | delete _arg1; | |
736 | } | |
737 | return _resultobj; | |
738 | } | |
739 | ||
740 | #define wxPrintData_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
107e4716 | 741 | static PyObject *_wrap_wxPrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
742 | PyObject * _resultobj; |
743 | wxPrintData * _arg0; | |
744 | bool _arg1; | |
2d091820 | 745 | PyObject * _argo0 = 0; |
d24a34bb | 746 | int tempbool1; |
107e4716 | 747 | char *_kwnames[] = { "self","colour", NULL }; |
d24a34bb RD |
748 | |
749 | self = self; | |
107e4716 | 750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetColour",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 751 | return NULL; |
2d091820 RD |
752 | if (_argo0) { |
753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetColour. Expected _wxPrintData_p."); |
756 | return NULL; | |
757 | } | |
758 | } | |
759 | _arg1 = (bool ) tempbool1; | |
760 | { | |
474c48f9 | 761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 762 | wxPrintData_SetColour(_arg0,_arg1); |
d24a34bb | 763 | |
474c48f9 | 764 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 765 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
766 | } Py_INCREF(Py_None); |
767 | _resultobj = Py_None; | |
768 | return _resultobj; | |
769 | } | |
770 | ||
771 | #define wxPrintData_SetDuplex(_swigobj,_swigarg0) (_swigobj->SetDuplex(_swigarg0)) | |
107e4716 | 772 | static PyObject *_wrap_wxPrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
773 | PyObject * _resultobj; |
774 | wxPrintData * _arg0; | |
775 | wxDuplexMode _arg1; | |
2d091820 | 776 | PyObject * _argo0 = 0; |
107e4716 | 777 | char *_kwnames[] = { "self","duplex", NULL }; |
d24a34bb RD |
778 | |
779 | self = self; | |
107e4716 | 780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetDuplex",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 781 | return NULL; |
2d091820 RD |
782 | if (_argo0) { |
783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetDuplex. Expected _wxPrintData_p."); |
786 | return NULL; | |
787 | } | |
788 | } | |
789 | { | |
474c48f9 | 790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 791 | wxPrintData_SetDuplex(_arg0,_arg1); |
d24a34bb | 792 | |
474c48f9 | 793 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 794 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
795 | } Py_INCREF(Py_None); |
796 | _resultobj = Py_None; | |
797 | return _resultobj; | |
798 | } | |
799 | ||
800 | #define wxPrintData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0)) | |
107e4716 | 801 | static PyObject *_wrap_wxPrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
802 | PyObject * _resultobj; |
803 | wxPrintData * _arg0; | |
804 | wxPaperSize _arg1; | |
2d091820 | 805 | PyObject * _argo0 = 0; |
107e4716 | 806 | char *_kwnames[] = { "self","sizeId", NULL }; |
d24a34bb RD |
807 | |
808 | self = self; | |
107e4716 | 809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPaperId",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 810 | return NULL; |
2d091820 RD |
811 | if (_argo0) { |
812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperId. Expected _wxPrintData_p."); |
815 | return NULL; | |
816 | } | |
817 | } | |
818 | { | |
474c48f9 | 819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 820 | wxPrintData_SetPaperId(_arg0,_arg1); |
d24a34bb | 821 | |
474c48f9 | 822 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 823 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
824 | } Py_INCREF(Py_None); |
825 | _resultobj = Py_None; | |
826 | return _resultobj; | |
827 | } | |
828 | ||
829 | #define wxPrintData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0)) | |
107e4716 | 830 | static PyObject *_wrap_wxPrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
831 | PyObject * _resultobj; |
832 | wxPrintData * _arg0; | |
833 | wxSize * _arg1; | |
2d091820 | 834 | PyObject * _argo0 = 0; |
37f6a977 RD |
835 | wxSize temp; |
836 | PyObject * _obj1 = 0; | |
107e4716 | 837 | char *_kwnames[] = { "self","sz", NULL }; |
d24a34bb RD |
838 | |
839 | self = self; | |
37f6a977 | 840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPaperSize",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 841 | return NULL; |
2d091820 RD |
842 | if (_argo0) { |
843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPaperSize. Expected _wxPrintData_p."); |
846 | return NULL; | |
847 | } | |
848 | } | |
37f6a977 RD |
849 | { |
850 | _arg1 = &temp; | |
851 | if (! wxSize_helper(_obj1, &_arg1)) | |
d24a34bb | 852 | return NULL; |
37f6a977 | 853 | } |
d24a34bb | 854 | { |
474c48f9 | 855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 856 | wxPrintData_SetPaperSize(_arg0,*_arg1); |
d24a34bb | 857 | |
474c48f9 | 858 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 859 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
860 | } Py_INCREF(Py_None); |
861 | _resultobj = Py_None; | |
862 | return _resultobj; | |
863 | } | |
864 | ||
865 | #define wxPrintData_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0)) | |
107e4716 | 866 | static PyObject *_wrap_wxPrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
867 | PyObject * _resultobj; |
868 | wxPrintData * _arg0; | |
869 | wxPrintQuality _arg1; | |
2d091820 | 870 | PyObject * _argo0 = 0; |
107e4716 | 871 | char *_kwnames[] = { "self","quality", NULL }; |
d24a34bb RD |
872 | |
873 | self = self; | |
107e4716 | 874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetQuality",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 875 | return NULL; |
2d091820 RD |
876 | if (_argo0) { |
877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
d24a34bb RD |
879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetQuality. Expected _wxPrintData_p."); |
880 | return NULL; | |
881 | } | |
882 | } | |
883 | { | |
474c48f9 | 884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 885 | wxPrintData_SetQuality(_arg0,_arg1); |
d24a34bb | 886 | |
474c48f9 | 887 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 888 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
889 | } Py_INCREF(Py_None); |
890 | _resultobj = Py_None; | |
891 | return _resultobj; | |
892 | } | |
893 | ||
9e689c06 RD |
894 | #define wxPrintData_GetPrinterCommand(_swigobj) (_swigobj->GetPrinterCommand()) |
895 | static PyObject *_wrap_wxPrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
896 | PyObject * _resultobj; | |
897 | wxString * _result; | |
898 | wxPrintData * _arg0; | |
899 | PyObject * _argo0 = 0; | |
900 | char *_kwnames[] = { "self", NULL }; | |
901 | ||
902 | self = self; | |
903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterCommand",_kwnames,&_argo0)) | |
904 | return NULL; | |
905 | if (_argo0) { | |
906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterCommand. Expected _wxPrintData_p."); | |
909 | return NULL; | |
910 | } | |
911 | } | |
912 | { | |
474c48f9 | 913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 914 | const wxString & _result_ref = wxPrintData_GetPrinterCommand(_arg0); |
9e689c06 RD |
915 | _result = (wxString *) &_result_ref; |
916 | ||
474c48f9 | 917 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 918 | if (PyErr_Occurred()) return NULL; |
9e689c06 | 919 | }{ |
c8bc7bb8 | 920 | #if wxUSE_UNICODE |
b67a9327 | 921 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 922 | #else |
9e689c06 | 923 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 924 | #endif |
9e689c06 RD |
925 | } |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxPrintData_GetPrinterOptions(_swigobj) (_swigobj->GetPrinterOptions()) | |
930 | static PyObject *_wrap_wxPrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | wxString * _result; | |
933 | wxPrintData * _arg0; | |
934 | PyObject * _argo0 = 0; | |
935 | char *_kwnames[] = { "self", NULL }; | |
936 | ||
937 | self = self; | |
938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterOptions",_kwnames,&_argo0)) | |
939 | return NULL; | |
940 | if (_argo0) { | |
941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterOptions. Expected _wxPrintData_p."); | |
944 | return NULL; | |
945 | } | |
946 | } | |
947 | { | |
474c48f9 | 948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 949 | const wxString & _result_ref = wxPrintData_GetPrinterOptions(_arg0); |
9e689c06 RD |
950 | _result = (wxString *) &_result_ref; |
951 | ||
474c48f9 | 952 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 953 | if (PyErr_Occurred()) return NULL; |
9e689c06 | 954 | }{ |
c8bc7bb8 | 955 | #if wxUSE_UNICODE |
b67a9327 | 956 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 957 | #else |
9e689c06 | 958 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 959 | #endif |
9e689c06 RD |
960 | } |
961 | return _resultobj; | |
962 | } | |
963 | ||
964 | #define wxPrintData_GetPreviewCommand(_swigobj) (_swigobj->GetPreviewCommand()) | |
965 | static PyObject *_wrap_wxPrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
966 | PyObject * _resultobj; | |
967 | wxString * _result; | |
968 | wxPrintData * _arg0; | |
969 | PyObject * _argo0 = 0; | |
970 | char *_kwnames[] = { "self", NULL }; | |
971 | ||
972 | self = self; | |
973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPreviewCommand",_kwnames,&_argo0)) | |
974 | return NULL; | |
975 | if (_argo0) { | |
976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPreviewCommand. Expected _wxPrintData_p."); | |
979 | return NULL; | |
980 | } | |
981 | } | |
982 | { | |
474c48f9 | 983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 984 | const wxString & _result_ref = wxPrintData_GetPreviewCommand(_arg0); |
9e689c06 RD |
985 | _result = (wxString *) &_result_ref; |
986 | ||
474c48f9 | 987 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 988 | if (PyErr_Occurred()) return NULL; |
9e689c06 | 989 | }{ |
c8bc7bb8 | 990 | #if wxUSE_UNICODE |
b67a9327 | 991 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 992 | #else |
9e689c06 | 993 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 994 | #endif |
9e689c06 RD |
995 | } |
996 | return _resultobj; | |
997 | } | |
998 | ||
999 | #define wxPrintData_GetFilename(_swigobj) (_swigobj->GetFilename()) | |
1000 | static PyObject *_wrap_wxPrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1001 | PyObject * _resultobj; | |
1002 | wxString * _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_GetFilename",_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_GetFilename. Expected _wxPrintData_p."); | |
1014 | return NULL; | |
1015 | } | |
1016 | } | |
1017 | { | |
474c48f9 | 1018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1019 | const wxString & _result_ref = wxPrintData_GetFilename(_arg0); |
9e689c06 RD |
1020 | _result = (wxString *) &_result_ref; |
1021 | ||
474c48f9 | 1022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1023 | if (PyErr_Occurred()) return NULL; |
9e689c06 | 1024 | }{ |
c8bc7bb8 | 1025 | #if wxUSE_UNICODE |
b67a9327 | 1026 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1027 | #else |
9e689c06 | 1028 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1029 | #endif |
9e689c06 RD |
1030 | } |
1031 | return _resultobj; | |
1032 | } | |
1033 | ||
1034 | #define wxPrintData_GetFontMetricPath(_swigobj) (_swigobj->GetFontMetricPath()) | |
1035 | static PyObject *_wrap_wxPrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1036 | PyObject * _resultobj; | |
1037 | wxString * _result; | |
1038 | wxPrintData * _arg0; | |
1039 | PyObject * _argo0 = 0; | |
1040 | char *_kwnames[] = { "self", NULL }; | |
1041 | ||
1042 | self = self; | |
1043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetFontMetricPath",_kwnames,&_argo0)) | |
1044 | return NULL; | |
1045 | if (_argo0) { | |
1046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetFontMetricPath. Expected _wxPrintData_p."); | |
1049 | return NULL; | |
1050 | } | |
1051 | } | |
1052 | { | |
474c48f9 | 1053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1054 | const wxString & _result_ref = wxPrintData_GetFontMetricPath(_arg0); |
9e689c06 RD |
1055 | _result = (wxString *) &_result_ref; |
1056 | ||
474c48f9 | 1057 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1058 | if (PyErr_Occurred()) return NULL; |
9e689c06 | 1059 | }{ |
c8bc7bb8 | 1060 | #if wxUSE_UNICODE |
b67a9327 | 1061 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1062 | #else |
9e689c06 | 1063 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 1064 | #endif |
9e689c06 RD |
1065 | } |
1066 | return _resultobj; | |
1067 | } | |
1068 | ||
1069 | #define wxPrintData_GetPrinterScaleX(_swigobj) (_swigobj->GetPrinterScaleX()) | |
1070 | static PyObject *_wrap_wxPrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1071 | PyObject * _resultobj; | |
1072 | double _result; | |
1073 | wxPrintData * _arg0; | |
1074 | PyObject * _argo0 = 0; | |
1075 | char *_kwnames[] = { "self", NULL }; | |
1076 | ||
1077 | self = self; | |
1078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleX",_kwnames,&_argo0)) | |
1079 | return NULL; | |
1080 | if (_argo0) { | |
1081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleX. Expected _wxPrintData_p."); | |
1084 | return NULL; | |
1085 | } | |
1086 | } | |
1087 | { | |
474c48f9 | 1088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1089 | _result = (double )wxPrintData_GetPrinterScaleX(_arg0); |
9e689c06 | 1090 | |
474c48f9 | 1091 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1092 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1093 | } _resultobj = Py_BuildValue("d",_result); |
1094 | return _resultobj; | |
1095 | } | |
1096 | ||
1097 | #define wxPrintData_GetPrinterScaleY(_swigobj) (_swigobj->GetPrinterScaleY()) | |
1098 | static PyObject *_wrap_wxPrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1099 | PyObject * _resultobj; | |
1100 | double _result; | |
1101 | wxPrintData * _arg0; | |
1102 | PyObject * _argo0 = 0; | |
1103 | char *_kwnames[] = { "self", NULL }; | |
1104 | ||
1105 | self = self; | |
1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterScaleY",_kwnames,&_argo0)) | |
1107 | return NULL; | |
1108 | if (_argo0) { | |
1109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterScaleY. Expected _wxPrintData_p."); | |
1112 | return NULL; | |
1113 | } | |
1114 | } | |
1115 | { | |
474c48f9 | 1116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1117 | _result = (double )wxPrintData_GetPrinterScaleY(_arg0); |
9e689c06 | 1118 | |
474c48f9 | 1119 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1120 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1121 | } _resultobj = Py_BuildValue("d",_result); |
1122 | return _resultobj; | |
1123 | } | |
1124 | ||
1125 | #define wxPrintData_GetPrinterTranslateX(_swigobj) (_swigobj->GetPrinterTranslateX()) | |
1126 | static PyObject *_wrap_wxPrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1127 | PyObject * _resultobj; | |
1128 | long _result; | |
1129 | wxPrintData * _arg0; | |
1130 | PyObject * _argo0 = 0; | |
1131 | char *_kwnames[] = { "self", NULL }; | |
1132 | ||
1133 | self = self; | |
1134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateX",_kwnames,&_argo0)) | |
1135 | return NULL; | |
1136 | if (_argo0) { | |
1137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrinterTranslateX. Expected _wxPrintData_p."); | |
1140 | return NULL; | |
1141 | } | |
1142 | } | |
1143 | { | |
474c48f9 | 1144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1145 | _result = (long )wxPrintData_GetPrinterTranslateX(_arg0); |
9e689c06 | 1146 | |
474c48f9 | 1147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1148 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1149 | } _resultobj = Py_BuildValue("l",_result); |
1150 | return _resultobj; | |
1151 | } | |
1152 | ||
1153 | #define wxPrintData_GetPrinterTranslateY(_swigobj) (_swigobj->GetPrinterTranslateY()) | |
1154 | static PyObject *_wrap_wxPrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1155 | PyObject * _resultobj; | |
1156 | long _result; | |
1157 | wxPrintData * _arg0; | |
1158 | PyObject * _argo0 = 0; | |
1159 | char *_kwnames[] = { "self", NULL }; | |
1160 | ||
1161 | self = self; | |
1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrinterTranslateY",_kwnames,&_argo0)) | |
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_GetPrinterTranslateY. Expected _wxPrintData_p."); | |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1171 | { | |
474c48f9 | 1172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1173 | _result = (long )wxPrintData_GetPrinterTranslateY(_arg0); |
9e689c06 | 1174 | |
474c48f9 | 1175 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1176 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1177 | } _resultobj = Py_BuildValue("l",_result); |
1178 | return _resultobj; | |
1179 | } | |
1180 | ||
1181 | #define wxPrintData_GetPrintMode(_swigobj) (_swigobj->GetPrintMode()) | |
1182 | static PyObject *_wrap_wxPrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1183 | PyObject * _resultobj; | |
1fded56b | 1184 | wxPrintMode _result; |
9e689c06 RD |
1185 | wxPrintData * _arg0; |
1186 | PyObject * _argo0 = 0; | |
1187 | char *_kwnames[] = { "self", NULL }; | |
9e689c06 RD |
1188 | |
1189 | self = self; | |
1190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintData_GetPrintMode",_kwnames,&_argo0)) | |
1191 | return NULL; | |
1192 | if (_argo0) { | |
1193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_GetPrintMode. Expected _wxPrintData_p."); | |
1196 | return NULL; | |
1197 | } | |
1198 | } | |
1199 | { | |
474c48f9 | 1200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 1201 | _result = (wxPrintMode )wxPrintData_GetPrintMode(_arg0); |
9e689c06 | 1202 | |
474c48f9 | 1203 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1204 | if (PyErr_Occurred()) return NULL; |
1fded56b | 1205 | } _resultobj = Py_BuildValue("i",_result); |
9e689c06 RD |
1206 | return _resultobj; |
1207 | } | |
1208 | ||
1209 | #define wxPrintData_SetPrinterCommand(_swigobj,_swigarg0) (_swigobj->SetPrinterCommand(_swigarg0)) | |
1210 | static PyObject *_wrap_wxPrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1211 | PyObject * _resultobj; | |
1212 | wxPrintData * _arg0; | |
1213 | wxString * _arg1; | |
1214 | PyObject * _argo0 = 0; | |
1215 | PyObject * _obj1 = 0; | |
1216 | char *_kwnames[] = { "self","command", NULL }; | |
1217 | ||
1218 | self = self; | |
1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterCommand",_kwnames,&_argo0,&_obj1)) | |
1220 | return NULL; | |
1221 | if (_argo0) { | |
1222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterCommand. Expected _wxPrintData_p."); | |
1225 | return NULL; | |
1226 | } | |
1227 | } | |
1228 | { | |
c8bc7bb8 RD |
1229 | _arg1 = wxString_in_helper(_obj1); |
1230 | if (_arg1 == NULL) | |
9e689c06 | 1231 | return NULL; |
9e689c06 RD |
1232 | } |
1233 | { | |
474c48f9 | 1234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1235 | wxPrintData_SetPrinterCommand(_arg0,*_arg1); |
9e689c06 | 1236 | |
474c48f9 | 1237 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1238 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1239 | } Py_INCREF(Py_None); |
1240 | _resultobj = Py_None; | |
1241 | { | |
1242 | if (_obj1) | |
1243 | delete _arg1; | |
1244 | } | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
1248 | #define wxPrintData_SetPrinterOptions(_swigobj,_swigarg0) (_swigobj->SetPrinterOptions(_swigarg0)) | |
1249 | static PyObject *_wrap_wxPrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1250 | PyObject * _resultobj; | |
1251 | wxPrintData * _arg0; | |
1252 | wxString * _arg1; | |
1253 | PyObject * _argo0 = 0; | |
1254 | PyObject * _obj1 = 0; | |
1255 | char *_kwnames[] = { "self","options", NULL }; | |
1256 | ||
1257 | self = self; | |
1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPrinterOptions",_kwnames,&_argo0,&_obj1)) | |
1259 | return NULL; | |
1260 | if (_argo0) { | |
1261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterOptions. Expected _wxPrintData_p."); | |
1264 | return NULL; | |
1265 | } | |
1266 | } | |
1267 | { | |
c8bc7bb8 RD |
1268 | _arg1 = wxString_in_helper(_obj1); |
1269 | if (_arg1 == NULL) | |
9e689c06 | 1270 | return NULL; |
9e689c06 RD |
1271 | } |
1272 | { | |
474c48f9 | 1273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1274 | wxPrintData_SetPrinterOptions(_arg0,*_arg1); |
9e689c06 | 1275 | |
474c48f9 | 1276 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1277 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1278 | } Py_INCREF(Py_None); |
1279 | _resultobj = Py_None; | |
1280 | { | |
1281 | if (_obj1) | |
1282 | delete _arg1; | |
1283 | } | |
1284 | return _resultobj; | |
1285 | } | |
1286 | ||
1287 | #define wxPrintData_SetPreviewCommand(_swigobj,_swigarg0) (_swigobj->SetPreviewCommand(_swigarg0)) | |
1288 | static PyObject *_wrap_wxPrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1289 | PyObject * _resultobj; | |
1290 | wxPrintData * _arg0; | |
1291 | wxString * _arg1; | |
1292 | PyObject * _argo0 = 0; | |
1293 | PyObject * _obj1 = 0; | |
1294 | char *_kwnames[] = { "self","command", NULL }; | |
1295 | ||
1296 | self = self; | |
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetPreviewCommand",_kwnames,&_argo0,&_obj1)) | |
1298 | return NULL; | |
1299 | if (_argo0) { | |
1300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPreviewCommand. Expected _wxPrintData_p."); | |
1303 | return NULL; | |
1304 | } | |
1305 | } | |
1306 | { | |
c8bc7bb8 RD |
1307 | _arg1 = wxString_in_helper(_obj1); |
1308 | if (_arg1 == NULL) | |
9e689c06 | 1309 | return NULL; |
9e689c06 RD |
1310 | } |
1311 | { | |
474c48f9 | 1312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1313 | wxPrintData_SetPreviewCommand(_arg0,*_arg1); |
9e689c06 | 1314 | |
474c48f9 | 1315 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1316 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1317 | } Py_INCREF(Py_None); |
1318 | _resultobj = Py_None; | |
1319 | { | |
1320 | if (_obj1) | |
1321 | delete _arg1; | |
1322 | } | |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxPrintData_SetFilename(_swigobj,_swigarg0) (_swigobj->SetFilename(_swigarg0)) | |
1327 | static PyObject *_wrap_wxPrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxPrintData * _arg0; | |
1330 | wxString * _arg1; | |
1331 | PyObject * _argo0 = 0; | |
1332 | PyObject * _obj1 = 0; | |
1333 | char *_kwnames[] = { "self","filename", NULL }; | |
1334 | ||
1335 | self = self; | |
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFilename",_kwnames,&_argo0,&_obj1)) | |
1337 | return NULL; | |
1338 | if (_argo0) { | |
1339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFilename. Expected _wxPrintData_p."); | |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
1345 | { | |
c8bc7bb8 RD |
1346 | _arg1 = wxString_in_helper(_obj1); |
1347 | if (_arg1 == NULL) | |
9e689c06 | 1348 | return NULL; |
9e689c06 RD |
1349 | } |
1350 | { | |
474c48f9 | 1351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1352 | wxPrintData_SetFilename(_arg0,*_arg1); |
9e689c06 | 1353 | |
474c48f9 | 1354 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1355 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1356 | } Py_INCREF(Py_None); |
1357 | _resultobj = Py_None; | |
1358 | { | |
1359 | if (_obj1) | |
1360 | delete _arg1; | |
1361 | } | |
1362 | return _resultobj; | |
1363 | } | |
1364 | ||
1365 | #define wxPrintData_SetFontMetricPath(_swigobj,_swigarg0) (_swigobj->SetFontMetricPath(_swigarg0)) | |
1366 | static PyObject *_wrap_wxPrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1367 | PyObject * _resultobj; | |
1368 | wxPrintData * _arg0; | |
1369 | wxString * _arg1; | |
1370 | PyObject * _argo0 = 0; | |
1371 | PyObject * _obj1 = 0; | |
1372 | char *_kwnames[] = { "self","path", NULL }; | |
1373 | ||
1374 | self = self; | |
1375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintData_SetFontMetricPath",_kwnames,&_argo0,&_obj1)) | |
1376 | return NULL; | |
1377 | if (_argo0) { | |
1378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetFontMetricPath. Expected _wxPrintData_p."); | |
1381 | return NULL; | |
1382 | } | |
1383 | } | |
1384 | { | |
c8bc7bb8 RD |
1385 | _arg1 = wxString_in_helper(_obj1); |
1386 | if (_arg1 == NULL) | |
9e689c06 | 1387 | return NULL; |
9e689c06 RD |
1388 | } |
1389 | { | |
474c48f9 | 1390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1391 | wxPrintData_SetFontMetricPath(_arg0,*_arg1); |
9e689c06 | 1392 | |
474c48f9 | 1393 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1394 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1395 | } Py_INCREF(Py_None); |
1396 | _resultobj = Py_None; | |
1397 | { | |
1398 | if (_obj1) | |
1399 | delete _arg1; | |
1400 | } | |
1401 | return _resultobj; | |
1402 | } | |
1403 | ||
1404 | #define wxPrintData_SetPrinterScaleX(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleX(_swigarg0)) | |
1405 | static PyObject *_wrap_wxPrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1406 | PyObject * _resultobj; | |
1407 | wxPrintData * _arg0; | |
1408 | double _arg1; | |
1409 | PyObject * _argo0 = 0; | |
1410 | char *_kwnames[] = { "self","x", NULL }; | |
1411 | ||
1412 | self = self; | |
1413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleX",_kwnames,&_argo0,&_arg1)) | |
1414 | return NULL; | |
1415 | if (_argo0) { | |
1416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleX. Expected _wxPrintData_p."); | |
1419 | return NULL; | |
1420 | } | |
1421 | } | |
1422 | { | |
474c48f9 | 1423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1424 | wxPrintData_SetPrinterScaleX(_arg0,_arg1); |
9e689c06 | 1425 | |
474c48f9 | 1426 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1427 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1428 | } Py_INCREF(Py_None); |
1429 | _resultobj = Py_None; | |
1430 | return _resultobj; | |
1431 | } | |
1432 | ||
1433 | #define wxPrintData_SetPrinterScaleY(_swigobj,_swigarg0) (_swigobj->SetPrinterScaleY(_swigarg0)) | |
1434 | static PyObject *_wrap_wxPrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1435 | PyObject * _resultobj; | |
1436 | wxPrintData * _arg0; | |
1437 | double _arg1; | |
1438 | PyObject * _argo0 = 0; | |
1439 | char *_kwnames[] = { "self","y", NULL }; | |
1440 | ||
1441 | self = self; | |
1442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPrintData_SetPrinterScaleY",_kwnames,&_argo0,&_arg1)) | |
1443 | return NULL; | |
1444 | if (_argo0) { | |
1445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaleY. Expected _wxPrintData_p."); | |
1448 | return NULL; | |
1449 | } | |
1450 | } | |
1451 | { | |
474c48f9 | 1452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1453 | wxPrintData_SetPrinterScaleY(_arg0,_arg1); |
9e689c06 | 1454 | |
474c48f9 | 1455 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1456 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1457 | } Py_INCREF(Py_None); |
1458 | _resultobj = Py_None; | |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
1462 | #define wxPrintData_SetPrinterScaling(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterScaling(_swigarg0,_swigarg1)) | |
1463 | static PyObject *_wrap_wxPrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1464 | PyObject * _resultobj; | |
1465 | wxPrintData * _arg0; | |
1466 | double _arg1; | |
1467 | double _arg2; | |
1468 | PyObject * _argo0 = 0; | |
1469 | char *_kwnames[] = { "self","x","y", NULL }; | |
1470 | ||
1471 | self = self; | |
1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxPrintData_SetPrinterScaling",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1473 | return NULL; | |
1474 | if (_argo0) { | |
1475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterScaling. Expected _wxPrintData_p."); | |
1478 | return NULL; | |
1479 | } | |
1480 | } | |
1481 | { | |
474c48f9 | 1482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1483 | wxPrintData_SetPrinterScaling(_arg0,_arg1,_arg2); |
9e689c06 | 1484 | |
474c48f9 | 1485 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1486 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1487 | } Py_INCREF(Py_None); |
1488 | _resultobj = Py_None; | |
1489 | return _resultobj; | |
1490 | } | |
1491 | ||
1492 | #define wxPrintData_SetPrinterTranslateX(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateX(_swigarg0)) | |
1493 | static PyObject *_wrap_wxPrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject * _resultobj; | |
1495 | wxPrintData * _arg0; | |
1496 | long _arg1; | |
1497 | PyObject * _argo0 = 0; | |
1498 | char *_kwnames[] = { "self","x", NULL }; | |
1499 | ||
1500 | self = self; | |
1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateX",_kwnames,&_argo0,&_arg1)) | |
1502 | return NULL; | |
1503 | if (_argo0) { | |
1504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateX. Expected _wxPrintData_p."); | |
1507 | return NULL; | |
1508 | } | |
1509 | } | |
1510 | { | |
474c48f9 | 1511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1512 | wxPrintData_SetPrinterTranslateX(_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 | ||
1521 | #define wxPrintData_SetPrinterTranslateY(_swigobj,_swigarg0) (_swigobj->SetPrinterTranslateY(_swigarg0)) | |
1522 | static PyObject *_wrap_wxPrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1523 | PyObject * _resultobj; | |
1524 | wxPrintData * _arg0; | |
1525 | long _arg1; | |
1526 | PyObject * _argo0 = 0; | |
1527 | char *_kwnames[] = { "self","y", NULL }; | |
1528 | ||
1529 | self = self; | |
1530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPrintData_SetPrinterTranslateY",_kwnames,&_argo0,&_arg1)) | |
1531 | return NULL; | |
1532 | if (_argo0) { | |
1533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslateY. Expected _wxPrintData_p."); | |
1536 | return NULL; | |
1537 | } | |
1538 | } | |
1539 | { | |
474c48f9 | 1540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1541 | wxPrintData_SetPrinterTranslateY(_arg0,_arg1); |
9e689c06 | 1542 | |
474c48f9 | 1543 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1544 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1545 | } Py_INCREF(Py_None); |
1546 | _resultobj = Py_None; | |
1547 | return _resultobj; | |
1548 | } | |
1549 | ||
1550 | #define wxPrintData_SetPrinterTranslation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetPrinterTranslation(_swigarg0,_swigarg1)) | |
1551 | static PyObject *_wrap_wxPrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject * _resultobj; | |
1553 | wxPrintData * _arg0; | |
1554 | long _arg1; | |
1555 | long _arg2; | |
1556 | PyObject * _argo0 = 0; | |
1557 | char *_kwnames[] = { "self","x","y", NULL }; | |
1558 | ||
1559 | self = self; | |
1560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPrintData_SetPrinterTranslation",_kwnames,&_argo0,&_arg1,&_arg2)) | |
1561 | return NULL; | |
1562 | if (_argo0) { | |
1563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrinterTranslation. Expected _wxPrintData_p."); | |
1566 | return NULL; | |
1567 | } | |
1568 | } | |
1569 | { | |
474c48f9 | 1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1571 | wxPrintData_SetPrinterTranslation(_arg0,_arg1,_arg2); |
9e689c06 | 1572 | |
474c48f9 | 1573 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1574 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1575 | } Py_INCREF(Py_None); |
1576 | _resultobj = Py_None; | |
1577 | return _resultobj; | |
1578 | } | |
1579 | ||
1580 | #define wxPrintData_SetPrintMode(_swigobj,_swigarg0) (_swigobj->SetPrintMode(_swigarg0)) | |
1581 | static PyObject *_wrap_wxPrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1582 | PyObject * _resultobj; | |
1583 | wxPrintData * _arg0; | |
1fded56b | 1584 | wxPrintMode _arg1; |
9e689c06 | 1585 | PyObject * _argo0 = 0; |
9e689c06 RD |
1586 | char *_kwnames[] = { "self","printMode", NULL }; |
1587 | ||
1588 | self = self; | |
1fded56b | 1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintData_SetPrintMode",_kwnames,&_argo0,&_arg1)) |
9e689c06 RD |
1590 | return NULL; |
1591 | if (_argo0) { | |
1592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { | |
1594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintData_SetPrintMode. Expected _wxPrintData_p."); | |
1595 | return NULL; | |
1596 | } | |
1597 | } | |
9e689c06 | 1598 | { |
474c48f9 | 1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 1600 | wxPrintData_SetPrintMode(_arg0,_arg1); |
9e689c06 | 1601 | |
474c48f9 | 1602 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1603 | if (PyErr_Occurred()) return NULL; |
9e689c06 RD |
1604 | } Py_INCREF(Py_None); |
1605 | _resultobj = Py_None; | |
1606 | return _resultobj; | |
1607 | } | |
1608 | ||
56456d9f RD |
1609 | static void *SwigwxPostScriptDCTowxDC(void *ptr) { |
1610 | wxPostScriptDC *src; | |
1611 | wxDC *dest; | |
1612 | src = (wxPostScriptDC *) ptr; | |
1613 | dest = (wxDC *) src; | |
1614 | return (void *) dest; | |
1615 | } | |
1616 | ||
1617 | static void *SwigwxPostScriptDCTowxObject(void *ptr) { | |
1618 | wxPostScriptDC *src; | |
1619 | wxObject *dest; | |
1620 | src = (wxPostScriptDC *) ptr; | |
1621 | dest = (wxObject *) src; | |
1622 | return (void *) dest; | |
1623 | } | |
1624 | ||
1625 | #define new_wxPostScriptDC(_swigarg0) (new wxPostScriptDC(_swigarg0)) | |
1626 | static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | wxPostScriptDC * _result; | |
1629 | wxPrintData * _arg0; | |
1630 | PyObject * _argo0 = 0; | |
1631 | char *_kwnames[] = { "printData", NULL }; | |
1632 | char _ptemp[128]; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPostScriptDC",_kwnames,&_argo0)) | |
1636 | return NULL; | |
1637 | if (_argo0) { | |
b67a9327 | 1638 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintData_p")) { |
56456d9f RD |
1639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPostScriptDC. Expected _wxPrintData_p."); |
1640 | return NULL; | |
1641 | } | |
1642 | } | |
1643 | { | |
474c48f9 | 1644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1645 | _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0); |
56456d9f | 1646 | |
474c48f9 | 1647 | wxPyEndAllowThreads(__tstate); |
56456d9f RD |
1648 | if (PyErr_Occurred()) return NULL; |
1649 | } if (_result) { | |
1650 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p"); | |
1651 | _resultobj = Py_BuildValue("s",_ptemp); | |
1652 | } else { | |
1653 | Py_INCREF(Py_None); | |
1654 | _resultobj = Py_None; | |
1655 | } | |
1656 | return _resultobj; | |
1657 | } | |
1658 | ||
56456d9f RD |
1659 | #define wxPostScriptDC_GetPrintData(_swigobj) (_swigobj->GetPrintData()) |
1660 | static PyObject *_wrap_wxPostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1661 | PyObject * _resultobj; | |
1662 | wxPrintData * _result; | |
1663 | wxPostScriptDC * _arg0; | |
1664 | PyObject * _argo0 = 0; | |
1665 | char *_kwnames[] = { "self", NULL }; | |
1666 | char _ptemp[128]; | |
1667 | ||
1668 | self = self; | |
1669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPostScriptDC_GetPrintData",_kwnames,&_argo0)) | |
1670 | return NULL; | |
1671 | if (_argo0) { | |
1672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) { | |
1674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_GetPrintData. Expected _wxPostScriptDC_p."); | |
1675 | return NULL; | |
1676 | } | |
1677 | } | |
1678 | { | |
474c48f9 | 1679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1680 | wxPrintData & _result_ref = wxPostScriptDC_GetPrintData(_arg0); |
56456d9f RD |
1681 | _result = (wxPrintData *) &_result_ref; |
1682 | ||
474c48f9 | 1683 | wxPyEndAllowThreads(__tstate); |
56456d9f RD |
1684 | if (PyErr_Occurred()) return NULL; |
1685 | } if (_result) { | |
1686 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); | |
1687 | _resultobj = Py_BuildValue("s",_ptemp); | |
1688 | } else { | |
1689 | Py_INCREF(Py_None); | |
1690 | _resultobj = Py_None; | |
1691 | } | |
1692 | return _resultobj; | |
1693 | } | |
1694 | ||
1695 | #define wxPostScriptDC_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0)) | |
1696 | static PyObject *_wrap_wxPostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1697 | PyObject * _resultobj; | |
1698 | wxPostScriptDC * _arg0; | |
1699 | wxPrintData * _arg1; | |
1700 | PyObject * _argo0 = 0; | |
1701 | PyObject * _argo1 = 0; | |
1702 | char *_kwnames[] = { "self","data", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostScriptDC_SetPrintData",_kwnames,&_argo0,&_argo1)) | |
1706 | return NULL; | |
1707 | if (_argo0) { | |
1708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPostScriptDC_p")) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostScriptDC_SetPrintData. Expected _wxPostScriptDC_p."); | |
1711 | return NULL; | |
1712 | } | |
1713 | } | |
1714 | if (_argo1) { | |
b67a9327 | 1715 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) { |
56456d9f RD |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostScriptDC_SetPrintData. Expected _wxPrintData_p."); |
1717 | return NULL; | |
1718 | } | |
1719 | } | |
1720 | { | |
474c48f9 | 1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1722 | wxPostScriptDC_SetPrintData(_arg0,*_arg1); |
56456d9f | 1723 | |
474c48f9 | 1724 | wxPyEndAllowThreads(__tstate); |
56456d9f RD |
1725 | if (PyErr_Occurred()) return NULL; |
1726 | } Py_INCREF(Py_None); | |
1727 | _resultobj = Py_None; | |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
1731 | static PyObject *_wrap_wxPostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1732 | PyObject * _resultobj; | |
1733 | int _arg0; | |
1734 | char *_kwnames[] = { "ppi", NULL }; | |
1735 | ||
1736 | self = self; | |
1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxPostScriptDC_SetResolution",_kwnames,&_arg0)) | |
1738 | return NULL; | |
1739 | { | |
474c48f9 | 1740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1741 | wxPostScriptDC::SetResolution(_arg0); |
56456d9f | 1742 | |
474c48f9 | 1743 | wxPyEndAllowThreads(__tstate); |
56456d9f RD |
1744 | if (PyErr_Occurred()) return NULL; |
1745 | } Py_INCREF(Py_None); | |
1746 | _resultobj = Py_None; | |
1747 | return _resultobj; | |
1748 | } | |
1749 | ||
1750 | static PyObject *_wrap_wxPostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1751 | PyObject * _resultobj; | |
1752 | int _result; | |
1753 | char *_kwnames[] = { NULL }; | |
1754 | ||
1755 | self = self; | |
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPostScriptDC_GetResolution",_kwnames)) | |
1757 | return NULL; | |
1758 | { | |
474c48f9 | 1759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1760 | _result = (int )wxPostScriptDC::GetResolution(); |
56456d9f | 1761 | |
474c48f9 | 1762 | wxPyEndAllowThreads(__tstate); |
56456d9f RD |
1763 | if (PyErr_Occurred()) return NULL; |
1764 | } _resultobj = Py_BuildValue("i",_result); | |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
9df61a29 RD |
1768 | static void *SwigwxPageSetupDialogDataTowxObject(void *ptr) { |
1769 | wxPageSetupDialogData *src; | |
1770 | wxObject *dest; | |
1771 | src = (wxPageSetupDialogData *) ptr; | |
1772 | dest = (wxObject *) src; | |
1773 | return (void *) dest; | |
1774 | } | |
1775 | ||
d24a34bb | 1776 | #define new_wxPageSetupDialogData() (new wxPageSetupDialogData()) |
107e4716 | 1777 | static PyObject *_wrap_new_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1778 | PyObject * _resultobj; |
1779 | wxPageSetupDialogData * _result; | |
107e4716 | 1780 | char *_kwnames[] = { NULL }; |
d24a34bb RD |
1781 | char _ptemp[128]; |
1782 | ||
1783 | self = self; | |
107e4716 | 1784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPageSetupDialogData",_kwnames)) |
d24a34bb RD |
1785 | return NULL; |
1786 | { | |
474c48f9 | 1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1788 | _result = (wxPageSetupDialogData *)new_wxPageSetupDialogData(); |
d24a34bb | 1789 | |
474c48f9 | 1790 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1791 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
1792 | } if (_result) { |
1793 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p"); | |
1794 | _resultobj = Py_BuildValue("s",_ptemp); | |
1795 | } else { | |
1796 | Py_INCREF(Py_None); | |
1797 | _resultobj = Py_None; | |
1798 | } | |
d24a34bb RD |
1799 | return _resultobj; |
1800 | } | |
1801 | ||
1802 | #define delete_wxPageSetupDialogData(_swigobj) (delete _swigobj) | |
107e4716 | 1803 | static PyObject *_wrap_delete_wxPageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1804 | PyObject * _resultobj; |
1805 | wxPageSetupDialogData * _arg0; | |
2d091820 | 1806 | PyObject * _argo0 = 0; |
107e4716 | 1807 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
1808 | |
1809 | self = self; | |
107e4716 | 1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPageSetupDialogData",_kwnames,&_argo0)) |
d24a34bb | 1811 | return NULL; |
2d091820 RD |
1812 | if (_argo0) { |
1813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPageSetupDialogData. Expected _wxPageSetupDialogData_p."); |
1816 | return NULL; | |
1817 | } | |
1818 | } | |
1819 | { | |
474c48f9 | 1820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1821 | delete_wxPageSetupDialogData(_arg0); |
d24a34bb | 1822 | |
474c48f9 | 1823 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1824 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1825 | } Py_INCREF(Py_None); |
1826 | _resultobj = Py_None; | |
1827 | return _resultobj; | |
1828 | } | |
1829 | ||
1830 | #define wxPageSetupDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0)) | |
107e4716 | 1831 | static PyObject *_wrap_wxPageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1832 | PyObject * _resultobj; |
1833 | wxPageSetupDialogData * _arg0; | |
1834 | bool _arg1; | |
2d091820 | 1835 | PyObject * _argo0 = 0; |
d24a34bb | 1836 | int tempbool1; |
107e4716 | 1837 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
1838 | |
1839 | self = self; | |
107e4716 | 1840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 1841 | return NULL; |
2d091820 RD |
1842 | if (_argo0) { |
1843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableHelp. Expected _wxPageSetupDialogData_p."); |
1846 | return NULL; | |
1847 | } | |
1848 | } | |
1849 | _arg1 = (bool ) tempbool1; | |
1850 | { | |
474c48f9 | 1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1852 | wxPageSetupDialogData_EnableHelp(_arg0,_arg1); |
d24a34bb | 1853 | |
474c48f9 | 1854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1855 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1856 | } Py_INCREF(Py_None); |
1857 | _resultobj = Py_None; | |
1858 | return _resultobj; | |
1859 | } | |
1860 | ||
1861 | #define wxPageSetupDialogData_EnableMargins(_swigobj,_swigarg0) (_swigobj->EnableMargins(_swigarg0)) | |
107e4716 | 1862 | static PyObject *_wrap_wxPageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1863 | PyObject * _resultobj; |
1864 | wxPageSetupDialogData * _arg0; | |
1865 | bool _arg1; | |
2d091820 | 1866 | PyObject * _argo0 = 0; |
d24a34bb | 1867 | int tempbool1; |
107e4716 | 1868 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
1869 | |
1870 | self = self; | |
107e4716 | 1871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableMargins",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 1872 | return NULL; |
2d091820 RD |
1873 | if (_argo0) { |
1874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableMargins. Expected _wxPageSetupDialogData_p."); |
1877 | return NULL; | |
1878 | } | |
1879 | } | |
1880 | _arg1 = (bool ) tempbool1; | |
1881 | { | |
474c48f9 | 1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1883 | wxPageSetupDialogData_EnableMargins(_arg0,_arg1); |
d24a34bb | 1884 | |
474c48f9 | 1885 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1886 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1887 | } Py_INCREF(Py_None); |
1888 | _resultobj = Py_None; | |
1889 | return _resultobj; | |
1890 | } | |
1891 | ||
1892 | #define wxPageSetupDialogData_EnableOrientation(_swigobj,_swigarg0) (_swigobj->EnableOrientation(_swigarg0)) | |
107e4716 | 1893 | static PyObject *_wrap_wxPageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1894 | PyObject * _resultobj; |
1895 | wxPageSetupDialogData * _arg0; | |
1896 | bool _arg1; | |
2d091820 | 1897 | PyObject * _argo0 = 0; |
d24a34bb | 1898 | int tempbool1; |
107e4716 | 1899 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
1900 | |
1901 | self = self; | |
107e4716 | 1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnableOrientation",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 1903 | return NULL; |
2d091820 RD |
1904 | if (_argo0) { |
1905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnableOrientation. Expected _wxPageSetupDialogData_p."); |
1908 | return NULL; | |
1909 | } | |
1910 | } | |
1911 | _arg1 = (bool ) tempbool1; | |
1912 | { | |
474c48f9 | 1913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1914 | wxPageSetupDialogData_EnableOrientation(_arg0,_arg1); |
d24a34bb | 1915 | |
474c48f9 | 1916 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1917 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1918 | } Py_INCREF(Py_None); |
1919 | _resultobj = Py_None; | |
1920 | return _resultobj; | |
1921 | } | |
1922 | ||
1923 | #define wxPageSetupDialogData_EnablePaper(_swigobj,_swigarg0) (_swigobj->EnablePaper(_swigarg0)) | |
107e4716 | 1924 | static PyObject *_wrap_wxPageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1925 | PyObject * _resultobj; |
1926 | wxPageSetupDialogData * _arg0; | |
1927 | bool _arg1; | |
2d091820 | 1928 | PyObject * _argo0 = 0; |
d24a34bb | 1929 | int tempbool1; |
107e4716 | 1930 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
1931 | |
1932 | self = self; | |
107e4716 | 1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePaper",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 1934 | return NULL; |
2d091820 RD |
1935 | if (_argo0) { |
1936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePaper. Expected _wxPageSetupDialogData_p."); |
1939 | return NULL; | |
1940 | } | |
1941 | } | |
1942 | _arg1 = (bool ) tempbool1; | |
1943 | { | |
474c48f9 | 1944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1945 | wxPageSetupDialogData_EnablePaper(_arg0,_arg1); |
d24a34bb | 1946 | |
474c48f9 | 1947 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1948 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1949 | } Py_INCREF(Py_None); |
1950 | _resultobj = Py_None; | |
1951 | return _resultobj; | |
1952 | } | |
1953 | ||
1954 | #define wxPageSetupDialogData_EnablePrinter(_swigobj,_swigarg0) (_swigobj->EnablePrinter(_swigarg0)) | |
107e4716 | 1955 | static PyObject *_wrap_wxPageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1956 | PyObject * _resultobj; |
1957 | wxPageSetupDialogData * _arg0; | |
1958 | bool _arg1; | |
2d091820 | 1959 | PyObject * _argo0 = 0; |
d24a34bb | 1960 | int tempbool1; |
107e4716 | 1961 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
1962 | |
1963 | self = self; | |
107e4716 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_EnablePrinter",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 1965 | return NULL; |
2d091820 RD |
1966 | if (_argo0) { |
1967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_EnablePrinter. Expected _wxPageSetupDialogData_p."); |
1970 | return NULL; | |
1971 | } | |
1972 | } | |
1973 | _arg1 = (bool ) tempbool1; | |
1974 | { | |
474c48f9 | 1975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1976 | wxPageSetupDialogData_EnablePrinter(_arg0,_arg1); |
d24a34bb | 1977 | |
474c48f9 | 1978 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1979 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
1980 | } Py_INCREF(Py_None); |
1981 | _resultobj = Py_None; | |
1982 | return _resultobj; | |
1983 | } | |
1984 | ||
1985 | #define wxPageSetupDialogData_GetDefaultMinMargins(_swigobj) (_swigobj->GetDefaultMinMargins()) | |
107e4716 | 1986 | static PyObject *_wrap_wxPageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1987 | PyObject * _resultobj; |
1988 | bool _result; | |
1989 | wxPageSetupDialogData * _arg0; | |
2d091820 | 1990 | PyObject * _argo0 = 0; |
107e4716 | 1991 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
1992 | |
1993 | self = self; | |
107e4716 | 1994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultMinMargins",_kwnames,&_argo0)) |
d24a34bb | 1995 | return NULL; |
2d091820 RD |
1996 | if (_argo0) { |
1997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
1999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultMinMargins. Expected _wxPageSetupDialogData_p."); |
2000 | return NULL; | |
2001 | } | |
2002 | } | |
2003 | { | |
474c48f9 | 2004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2005 | _result = (bool )wxPageSetupDialogData_GetDefaultMinMargins(_arg0); |
d24a34bb | 2006 | |
474c48f9 | 2007 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2008 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2009 | } _resultobj = Py_BuildValue("i",_result); |
2010 | return _resultobj; | |
2011 | } | |
2012 | ||
2013 | #define wxPageSetupDialogData_GetEnableMargins(_swigobj) (_swigobj->GetEnableMargins()) | |
107e4716 | 2014 | static PyObject *_wrap_wxPageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2015 | PyObject * _resultobj; |
2016 | bool _result; | |
2017 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2018 | PyObject * _argo0 = 0; |
107e4716 | 2019 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2020 | |
2021 | self = self; | |
107e4716 | 2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableMargins",_kwnames,&_argo0)) |
d24a34bb | 2023 | return NULL; |
2d091820 RD |
2024 | if (_argo0) { |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableMargins. Expected _wxPageSetupDialogData_p."); |
2028 | return NULL; | |
2029 | } | |
2030 | } | |
2031 | { | |
474c48f9 | 2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2033 | _result = (bool )wxPageSetupDialogData_GetEnableMargins(_arg0); |
d24a34bb | 2034 | |
474c48f9 | 2035 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2036 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2037 | } _resultobj = Py_BuildValue("i",_result); |
2038 | return _resultobj; | |
2039 | } | |
2040 | ||
2041 | #define wxPageSetupDialogData_GetEnableOrientation(_swigobj) (_swigobj->GetEnableOrientation()) | |
107e4716 | 2042 | static PyObject *_wrap_wxPageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2043 | PyObject * _resultobj; |
2044 | bool _result; | |
2045 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2046 | PyObject * _argo0 = 0; |
107e4716 | 2047 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2048 | |
2049 | self = self; | |
107e4716 | 2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableOrientation",_kwnames,&_argo0)) |
d24a34bb | 2051 | return NULL; |
2d091820 RD |
2052 | if (_argo0) { |
2053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableOrientation. Expected _wxPageSetupDialogData_p."); |
2056 | return NULL; | |
2057 | } | |
2058 | } | |
2059 | { | |
474c48f9 | 2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2061 | _result = (bool )wxPageSetupDialogData_GetEnableOrientation(_arg0); |
d24a34bb | 2062 | |
474c48f9 | 2063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2064 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2065 | } _resultobj = Py_BuildValue("i",_result); |
2066 | return _resultobj; | |
2067 | } | |
2068 | ||
2069 | #define wxPageSetupDialogData_GetEnablePaper(_swigobj) (_swigobj->GetEnablePaper()) | |
107e4716 | 2070 | static PyObject *_wrap_wxPageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2071 | PyObject * _resultobj; |
2072 | bool _result; | |
2073 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2074 | PyObject * _argo0 = 0; |
107e4716 | 2075 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2076 | |
2077 | self = self; | |
107e4716 | 2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePaper",_kwnames,&_argo0)) |
d24a34bb | 2079 | return NULL; |
2d091820 RD |
2080 | if (_argo0) { |
2081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePaper. Expected _wxPageSetupDialogData_p."); |
2084 | return NULL; | |
2085 | } | |
2086 | } | |
2087 | { | |
474c48f9 | 2088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2089 | _result = (bool )wxPageSetupDialogData_GetEnablePaper(_arg0); |
d24a34bb | 2090 | |
474c48f9 | 2091 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2092 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2093 | } _resultobj = Py_BuildValue("i",_result); |
2094 | return _resultobj; | |
2095 | } | |
2096 | ||
2097 | #define wxPageSetupDialogData_GetEnablePrinter(_swigobj) (_swigobj->GetEnablePrinter()) | |
107e4716 | 2098 | static PyObject *_wrap_wxPageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2099 | PyObject * _resultobj; |
2100 | bool _result; | |
2101 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2102 | PyObject * _argo0 = 0; |
107e4716 | 2103 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2104 | |
2105 | self = self; | |
107e4716 | 2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnablePrinter",_kwnames,&_argo0)) |
d24a34bb | 2107 | return NULL; |
2d091820 RD |
2108 | if (_argo0) { |
2109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnablePrinter. Expected _wxPageSetupDialogData_p."); |
2112 | return NULL; | |
2113 | } | |
2114 | } | |
2115 | { | |
474c48f9 | 2116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2117 | _result = (bool )wxPageSetupDialogData_GetEnablePrinter(_arg0); |
d24a34bb | 2118 | |
474c48f9 | 2119 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2120 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2121 | } _resultobj = Py_BuildValue("i",_result); |
2122 | return _resultobj; | |
2123 | } | |
2124 | ||
2125 | #define wxPageSetupDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp()) | |
107e4716 | 2126 | static PyObject *_wrap_wxPageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2127 | PyObject * _resultobj; |
2128 | bool _result; | |
2129 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2130 | PyObject * _argo0 = 0; |
107e4716 | 2131 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2132 | |
2133 | self = self; | |
107e4716 | 2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetEnableHelp",_kwnames,&_argo0)) |
d24a34bb | 2135 | return NULL; |
2d091820 RD |
2136 | if (_argo0) { |
2137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetEnableHelp. Expected _wxPageSetupDialogData_p."); |
2140 | return NULL; | |
2141 | } | |
2142 | } | |
2143 | { | |
474c48f9 | 2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2145 | _result = (bool )wxPageSetupDialogData_GetEnableHelp(_arg0); |
d24a34bb | 2146 | |
474c48f9 | 2147 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2148 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2149 | } _resultobj = Py_BuildValue("i",_result); |
2150 | return _resultobj; | |
2151 | } | |
2152 | ||
2153 | #define wxPageSetupDialogData_GetDefaultInfo(_swigobj) (_swigobj->GetDefaultInfo()) | |
107e4716 | 2154 | static PyObject *_wrap_wxPageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2155 | PyObject * _resultobj; |
2156 | bool _result; | |
2157 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2158 | PyObject * _argo0 = 0; |
107e4716 | 2159 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2160 | |
2161 | self = self; | |
107e4716 | 2162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetDefaultInfo",_kwnames,&_argo0)) |
d24a34bb | 2163 | return NULL; |
2d091820 RD |
2164 | if (_argo0) { |
2165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetDefaultInfo. Expected _wxPageSetupDialogData_p."); |
2168 | return NULL; | |
2169 | } | |
2170 | } | |
2171 | { | |
474c48f9 | 2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2173 | _result = (bool )wxPageSetupDialogData_GetDefaultInfo(_arg0); |
d24a34bb | 2174 | |
474c48f9 | 2175 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2176 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2177 | } _resultobj = Py_BuildValue("i",_result); |
2178 | return _resultobj; | |
2179 | } | |
2180 | ||
2181 | #define wxPageSetupDialogData_GetMarginTopLeft(_swigobj) (_swigobj->GetMarginTopLeft()) | |
107e4716 | 2182 | static PyObject *_wrap_wxPageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2183 | PyObject * _resultobj; |
2184 | wxPoint * _result; | |
2185 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2186 | PyObject * _argo0 = 0; |
107e4716 | 2187 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2188 | char _ptemp[128]; |
2189 | ||
2190 | self = self; | |
107e4716 | 2191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginTopLeft",_kwnames,&_argo0)) |
d24a34bb | 2192 | return NULL; |
2d091820 RD |
2193 | if (_argo0) { |
2194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMarginTopLeft. Expected _wxPageSetupDialogData_p."); |
2197 | return NULL; | |
2198 | } | |
2199 | } | |
2200 | { | |
474c48f9 | 2201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2202 | _result = new wxPoint (wxPageSetupDialogData_GetMarginTopLeft(_arg0)); |
d24a34bb | 2203 | |
474c48f9 | 2204 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2205 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2206 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2207 | _resultobj = Py_BuildValue("s",_ptemp); | |
2208 | return _resultobj; | |
2209 | } | |
2210 | ||
2211 | #define wxPageSetupDialogData_GetMarginBottomRight(_swigobj) (_swigobj->GetMarginBottomRight()) | |
107e4716 | 2212 | static PyObject *_wrap_wxPageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2213 | PyObject * _resultobj; |
2214 | wxPoint * _result; | |
2215 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2216 | PyObject * _argo0 = 0; |
107e4716 | 2217 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2218 | char _ptemp[128]; |
2219 | ||
2220 | self = self; | |
107e4716 | 2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMarginBottomRight",_kwnames,&_argo0)) |
d24a34bb | 2222 | return NULL; |
2d091820 RD |
2223 | if (_argo0) { |
2224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMarginBottomRight. Expected _wxPageSetupDialogData_p."); |
2227 | return NULL; | |
2228 | } | |
2229 | } | |
2230 | { | |
474c48f9 | 2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2232 | _result = new wxPoint (wxPageSetupDialogData_GetMarginBottomRight(_arg0)); |
d24a34bb | 2233 | |
474c48f9 | 2234 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2235 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2236 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2237 | _resultobj = Py_BuildValue("s",_ptemp); | |
2238 | return _resultobj; | |
2239 | } | |
2240 | ||
2241 | #define wxPageSetupDialogData_GetMinMarginTopLeft(_swigobj) (_swigobj->GetMinMarginTopLeft()) | |
107e4716 | 2242 | static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2243 | PyObject * _resultobj; |
2244 | wxPoint * _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_GetMinMarginTopLeft",_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_GetMinMarginTopLeft. Expected _wxPageSetupDialogData_p."); |
2257 | return NULL; | |
2258 | } | |
2259 | } | |
2260 | { | |
474c48f9 | 2261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2262 | _result = new wxPoint (wxPageSetupDialogData_GetMinMarginTopLeft(_arg0)); |
d24a34bb | 2263 | |
474c48f9 | 2264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2265 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2266 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2267 | _resultobj = Py_BuildValue("s",_ptemp); | |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
2271 | #define wxPageSetupDialogData_GetMinMarginBottomRight(_swigobj) (_swigobj->GetMinMarginBottomRight()) | |
107e4716 | 2272 | static PyObject *_wrap_wxPageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2273 | PyObject * _resultobj; |
2274 | wxPoint * _result; | |
2275 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2276 | PyObject * _argo0 = 0; |
107e4716 | 2277 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2278 | char _ptemp[128]; |
2279 | ||
2280 | self = self; | |
107e4716 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetMinMarginBottomRight",_kwnames,&_argo0)) |
d24a34bb | 2282 | return NULL; |
2d091820 RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetMinMarginBottomRight. Expected _wxPageSetupDialogData_p."); |
2287 | return NULL; | |
2288 | } | |
2289 | } | |
2290 | { | |
474c48f9 | 2291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2292 | _result = new wxPoint (wxPageSetupDialogData_GetMinMarginBottomRight(_arg0)); |
d24a34bb | 2293 | |
474c48f9 | 2294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2295 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2297 | _resultobj = Py_BuildValue("s",_ptemp); | |
2298 | return _resultobj; | |
2299 | } | |
2300 | ||
2301 | #define wxPageSetupDialogData_GetPaperId(_swigobj) (_swigobj->GetPaperId()) | |
107e4716 | 2302 | static PyObject *_wrap_wxPageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2303 | PyObject * _resultobj; |
2304 | wxPaperSize _result; | |
2305 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2306 | PyObject * _argo0 = 0; |
107e4716 | 2307 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2308 | |
2309 | self = self; | |
107e4716 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperId",_kwnames,&_argo0)) |
d24a34bb | 2311 | return NULL; |
2d091820 RD |
2312 | if (_argo0) { |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperId. Expected _wxPageSetupDialogData_p."); |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
2319 | { | |
474c48f9 | 2320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2321 | _result = (wxPaperSize )wxPageSetupDialogData_GetPaperId(_arg0); |
d24a34bb | 2322 | |
474c48f9 | 2323 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2324 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2325 | } _resultobj = Py_BuildValue("i",_result); |
2326 | return _resultobj; | |
2327 | } | |
2328 | ||
2329 | #define wxPageSetupDialogData_GetPaperSize(_swigobj) (_swigobj->GetPaperSize()) | |
107e4716 | 2330 | static PyObject *_wrap_wxPageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2331 | PyObject * _resultobj; |
2332 | wxSize * _result; | |
2333 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2334 | PyObject * _argo0 = 0; |
107e4716 | 2335 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2336 | char _ptemp[128]; |
2337 | ||
2338 | self = self; | |
107e4716 | 2339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPaperSize",_kwnames,&_argo0)) |
d24a34bb | 2340 | return NULL; |
2d091820 RD |
2341 | if (_argo0) { |
2342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPaperSize. Expected _wxPageSetupDialogData_p."); |
2345 | return NULL; | |
2346 | } | |
2347 | } | |
2348 | { | |
474c48f9 | 2349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2350 | _result = new wxSize (wxPageSetupDialogData_GetPaperSize(_arg0)); |
d24a34bb | 2351 | |
474c48f9 | 2352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2353 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2354 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2355 | _resultobj = Py_BuildValue("s",_ptemp); | |
2356 | return _resultobj; | |
2357 | } | |
2358 | ||
2359 | static wxPrintData * wxPageSetupDialogData_GetPrintData(wxPageSetupDialogData *self) { | |
2360 | return new wxPrintData(self->GetPrintData()); // force a copy | |
2361 | } | |
107e4716 | 2362 | static PyObject *_wrap_wxPageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2363 | PyObject * _resultobj; |
2364 | wxPrintData * _result; | |
2365 | wxPageSetupDialogData * _arg0; | |
2d091820 | 2366 | PyObject * _argo0 = 0; |
107e4716 | 2367 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2368 | char _ptemp[128]; |
2369 | ||
2370 | self = self; | |
107e4716 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_GetPrintData",_kwnames,&_argo0)) |
d24a34bb | 2372 | return NULL; |
2d091820 RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_GetPrintData. Expected _wxPageSetupDialogData_p."); |
2377 | return NULL; | |
2378 | } | |
2379 | } | |
2380 | { | |
474c48f9 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | _result = (wxPrintData *)wxPageSetupDialogData_GetPrintData(_arg0); |
d24a34bb | 2383 | |
474c48f9 | 2384 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2385 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2386 | } if (_result) { |
2387 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); | |
2388 | _resultobj = Py_BuildValue("s",_ptemp); | |
2389 | } else { | |
2390 | Py_INCREF(Py_None); | |
2391 | _resultobj = Py_None; | |
2392 | } | |
d24a34bb RD |
2393 | return _resultobj; |
2394 | } | |
2395 | ||
12d1116b RD |
2396 | #define wxPageSetupDialogData_Ok(_swigobj) (_swigobj->Ok()) |
2397 | static PyObject *_wrap_wxPageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2398 | PyObject * _resultobj; | |
2399 | bool _result; | |
2400 | wxPageSetupDialogData * _arg0; | |
2401 | PyObject * _argo0 = 0; | |
2402 | char *_kwnames[] = { "self", NULL }; | |
2403 | ||
2404 | self = self; | |
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialogData_Ok",_kwnames,&_argo0)) | |
2406 | return NULL; | |
2407 | if (_argo0) { | |
2408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_Ok. Expected _wxPageSetupDialogData_p."); | |
2411 | return NULL; | |
2412 | } | |
2413 | } | |
2414 | { | |
2415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2416 | _result = (bool )wxPageSetupDialogData_Ok(_arg0); | |
2417 | ||
2418 | wxPyEndAllowThreads(__tstate); | |
2419 | if (PyErr_Occurred()) return NULL; | |
2420 | } _resultobj = Py_BuildValue("i",_result); | |
2421 | return _resultobj; | |
2422 | } | |
2423 | ||
d24a34bb | 2424 | #define wxPageSetupDialogData_SetDefaultInfo(_swigobj,_swigarg0) (_swigobj->SetDefaultInfo(_swigarg0)) |
107e4716 | 2425 | static PyObject *_wrap_wxPageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2426 | PyObject * _resultobj; |
2427 | wxPageSetupDialogData * _arg0; | |
2428 | bool _arg1; | |
2d091820 | 2429 | PyObject * _argo0 = 0; |
d24a34bb | 2430 | int tempbool1; |
107e4716 | 2431 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
2432 | |
2433 | self = self; | |
107e4716 | 2434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultInfo",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 2435 | return NULL; |
2d091820 RD |
2436 | if (_argo0) { |
2437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultInfo. Expected _wxPageSetupDialogData_p."); |
2440 | return NULL; | |
2441 | } | |
2442 | } | |
2443 | _arg1 = (bool ) tempbool1; | |
2444 | { | |
474c48f9 | 2445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2446 | wxPageSetupDialogData_SetDefaultInfo(_arg0,_arg1); |
d24a34bb | 2447 | |
474c48f9 | 2448 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2449 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2450 | } Py_INCREF(Py_None); |
2451 | _resultobj = Py_None; | |
2452 | return _resultobj; | |
2453 | } | |
2454 | ||
2455 | #define wxPageSetupDialogData_SetDefaultMinMargins(_swigobj,_swigarg0) (_swigobj->SetDefaultMinMargins(_swigarg0)) | |
107e4716 | 2456 | static PyObject *_wrap_wxPageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2457 | PyObject * _resultobj; |
2458 | wxPageSetupDialogData * _arg0; | |
2459 | bool _arg1; | |
2d091820 | 2460 | PyObject * _argo0 = 0; |
d24a34bb | 2461 | int tempbool1; |
107e4716 | 2462 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
2463 | |
2464 | self = self; | |
107e4716 | 2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetDefaultMinMargins",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 2466 | return NULL; |
2d091820 RD |
2467 | if (_argo0) { |
2468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetDefaultMinMargins. Expected _wxPageSetupDialogData_p."); |
2471 | return NULL; | |
2472 | } | |
2473 | } | |
2474 | _arg1 = (bool ) tempbool1; | |
2475 | { | |
474c48f9 | 2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2477 | wxPageSetupDialogData_SetDefaultMinMargins(_arg0,_arg1); |
d24a34bb | 2478 | |
474c48f9 | 2479 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2480 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2481 | } Py_INCREF(Py_None); |
2482 | _resultobj = Py_None; | |
2483 | return _resultobj; | |
2484 | } | |
2485 | ||
2486 | #define wxPageSetupDialogData_SetMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMarginTopLeft(_swigarg0)) | |
107e4716 | 2487 | static PyObject *_wrap_wxPageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2488 | PyObject * _resultobj; |
2489 | wxPageSetupDialogData * _arg0; | |
2490 | wxPoint * _arg1; | |
2d091820 | 2491 | PyObject * _argo0 = 0; |
37f6a977 RD |
2492 | wxPoint temp; |
2493 | PyObject * _obj1 = 0; | |
107e4716 | 2494 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
2495 | |
2496 | self = self; | |
37f6a977 | 2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginTopLeft",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2498 | return NULL; |
2d091820 RD |
2499 | if (_argo0) { |
2500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginTopLeft. Expected _wxPageSetupDialogData_p."); |
2503 | return NULL; | |
2504 | } | |
2505 | } | |
37f6a977 RD |
2506 | { |
2507 | _arg1 = &temp; | |
2508 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 2509 | return NULL; |
37f6a977 | 2510 | } |
d24a34bb | 2511 | { |
474c48f9 | 2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2513 | wxPageSetupDialogData_SetMarginTopLeft(_arg0,*_arg1); |
d24a34bb | 2514 | |
474c48f9 | 2515 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2516 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2517 | } Py_INCREF(Py_None); |
2518 | _resultobj = Py_None; | |
2519 | return _resultobj; | |
2520 | } | |
2521 | ||
2522 | #define wxPageSetupDialogData_SetMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMarginBottomRight(_swigarg0)) | |
107e4716 | 2523 | static PyObject *_wrap_wxPageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2524 | PyObject * _resultobj; |
2525 | wxPageSetupDialogData * _arg0; | |
2526 | wxPoint * _arg1; | |
2d091820 | 2527 | PyObject * _argo0 = 0; |
37f6a977 RD |
2528 | wxPoint temp; |
2529 | PyObject * _obj1 = 0; | |
107e4716 | 2530 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
2531 | |
2532 | self = self; | |
37f6a977 | 2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMarginBottomRight",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2534 | return NULL; |
2d091820 RD |
2535 | if (_argo0) { |
2536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMarginBottomRight. Expected _wxPageSetupDialogData_p."); |
2539 | return NULL; | |
2540 | } | |
2541 | } | |
37f6a977 RD |
2542 | { |
2543 | _arg1 = &temp; | |
2544 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 2545 | return NULL; |
37f6a977 | 2546 | } |
d24a34bb | 2547 | { |
474c48f9 | 2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2549 | wxPageSetupDialogData_SetMarginBottomRight(_arg0,*_arg1); |
d24a34bb | 2550 | |
474c48f9 | 2551 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2552 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2553 | } Py_INCREF(Py_None); |
2554 | _resultobj = Py_None; | |
2555 | return _resultobj; | |
2556 | } | |
2557 | ||
2558 | #define wxPageSetupDialogData_SetMinMarginTopLeft(_swigobj,_swigarg0) (_swigobj->SetMinMarginTopLeft(_swigarg0)) | |
107e4716 | 2559 | static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2560 | PyObject * _resultobj; |
2561 | wxPageSetupDialogData * _arg0; | |
2562 | wxPoint * _arg1; | |
2d091820 | 2563 | PyObject * _argo0 = 0; |
37f6a977 RD |
2564 | wxPoint temp; |
2565 | PyObject * _obj1 = 0; | |
107e4716 | 2566 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
2567 | |
2568 | self = self; | |
37f6a977 | 2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginTopLeft",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2570 | return NULL; |
2d091820 RD |
2571 | if (_argo0) { |
2572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginTopLeft. Expected _wxPageSetupDialogData_p."); |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
37f6a977 RD |
2578 | { |
2579 | _arg1 = &temp; | |
2580 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 2581 | return NULL; |
37f6a977 | 2582 | } |
d24a34bb | 2583 | { |
474c48f9 | 2584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2585 | wxPageSetupDialogData_SetMinMarginTopLeft(_arg0,*_arg1); |
d24a34bb | 2586 | |
474c48f9 | 2587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2588 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2589 | } Py_INCREF(Py_None); |
2590 | _resultobj = Py_None; | |
2591 | return _resultobj; | |
2592 | } | |
2593 | ||
2594 | #define wxPageSetupDialogData_SetMinMarginBottomRight(_swigobj,_swigarg0) (_swigobj->SetMinMarginBottomRight(_swigarg0)) | |
107e4716 | 2595 | static PyObject *_wrap_wxPageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2596 | PyObject * _resultobj; |
2597 | wxPageSetupDialogData * _arg0; | |
2598 | wxPoint * _arg1; | |
2d091820 | 2599 | PyObject * _argo0 = 0; |
37f6a977 RD |
2600 | wxPoint temp; |
2601 | PyObject * _obj1 = 0; | |
107e4716 | 2602 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
2603 | |
2604 | self = self; | |
37f6a977 | 2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetMinMarginBottomRight",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2606 | return NULL; |
2d091820 RD |
2607 | if (_argo0) { |
2608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetMinMarginBottomRight. Expected _wxPageSetupDialogData_p."); |
2611 | return NULL; | |
2612 | } | |
2613 | } | |
37f6a977 RD |
2614 | { |
2615 | _arg1 = &temp; | |
2616 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 2617 | return NULL; |
37f6a977 | 2618 | } |
d24a34bb | 2619 | { |
474c48f9 | 2620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2621 | wxPageSetupDialogData_SetMinMarginBottomRight(_arg0,*_arg1); |
d24a34bb | 2622 | |
474c48f9 | 2623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2624 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2625 | } Py_INCREF(Py_None); |
2626 | _resultobj = Py_None; | |
2627 | return _resultobj; | |
2628 | } | |
2629 | ||
2630 | #define wxPageSetupDialogData_SetPaperId(_swigobj,_swigarg0) (_swigobj->SetPaperId(_swigarg0)) | |
107e4716 | 2631 | static PyObject *_wrap_wxPageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2632 | PyObject * _resultobj; |
2633 | wxPageSetupDialogData * _arg0; | |
3ca6a5f0 | 2634 | wxPaperSize _arg1; |
2d091820 | 2635 | PyObject * _argo0 = 0; |
107e4716 | 2636 | char *_kwnames[] = { "self","id", NULL }; |
d24a34bb RD |
2637 | |
2638 | self = self; | |
3ca6a5f0 | 2639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPageSetupDialogData_SetPaperId",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 2640 | return NULL; |
2d091820 RD |
2641 | if (_argo0) { |
2642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperId. Expected _wxPageSetupDialogData_p."); |
2645 | return NULL; | |
2646 | } | |
2647 | } | |
d24a34bb | 2648 | { |
474c48f9 | 2649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2650 | wxPageSetupDialogData_SetPaperId(_arg0,_arg1); |
d24a34bb | 2651 | |
474c48f9 | 2652 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2653 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2654 | } Py_INCREF(Py_None); |
2655 | _resultobj = Py_None; | |
2656 | return _resultobj; | |
2657 | } | |
2658 | ||
2659 | #define wxPageSetupDialogData_SetPaperSize(_swigobj,_swigarg0) (_swigobj->SetPaperSize(_swigarg0)) | |
107e4716 | 2660 | static PyObject *_wrap_wxPageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2661 | PyObject * _resultobj; |
2662 | wxPageSetupDialogData * _arg0; | |
2663 | wxSize * _arg1; | |
2d091820 | 2664 | PyObject * _argo0 = 0; |
37f6a977 RD |
2665 | wxSize temp; |
2666 | PyObject * _obj1 = 0; | |
107e4716 | 2667 | char *_kwnames[] = { "self","size", NULL }; |
d24a34bb RD |
2668 | |
2669 | self = self; | |
37f6a977 | 2670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPaperSize",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2671 | return NULL; |
2d091820 RD |
2672 | if (_argo0) { |
2673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPaperSize. Expected _wxPageSetupDialogData_p."); |
2676 | return NULL; | |
2677 | } | |
2678 | } | |
37f6a977 RD |
2679 | { |
2680 | _arg1 = &temp; | |
2681 | if (! wxSize_helper(_obj1, &_arg1)) | |
d24a34bb | 2682 | return NULL; |
37f6a977 | 2683 | } |
d24a34bb | 2684 | { |
474c48f9 | 2685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2686 | wxPageSetupDialogData_SetPaperSize(_arg0,*_arg1); |
d24a34bb | 2687 | |
474c48f9 | 2688 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2689 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2690 | } Py_INCREF(Py_None); |
2691 | _resultobj = Py_None; | |
2692 | return _resultobj; | |
2693 | } | |
2694 | ||
2695 | #define wxPageSetupDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0)) | |
107e4716 | 2696 | static PyObject *_wrap_wxPageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2697 | PyObject * _resultobj; |
2698 | wxPageSetupDialogData * _arg0; | |
2699 | wxPrintData * _arg1; | |
2d091820 RD |
2700 | PyObject * _argo0 = 0; |
2701 | PyObject * _argo1 = 0; | |
107e4716 | 2702 | char *_kwnames[] = { "self","printData", NULL }; |
d24a34bb RD |
2703 | |
2704 | self = self; | |
107e4716 | 2705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPageSetupDialogData_SetPrintData",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 2706 | return NULL; |
2d091820 RD |
2707 | if (_argo0) { |
2708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialogData_SetPrintData. Expected _wxPageSetupDialogData_p."); |
2711 | return NULL; | |
2712 | } | |
2713 | } | |
2d091820 | 2714 | if (_argo1) { |
b67a9327 | 2715 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) { |
d24a34bb RD |
2716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPageSetupDialogData_SetPrintData. Expected _wxPrintData_p."); |
2717 | return NULL; | |
2718 | } | |
2719 | } | |
2720 | { | |
474c48f9 | 2721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2722 | wxPageSetupDialogData_SetPrintData(_arg0,*_arg1); |
d24a34bb | 2723 | |
474c48f9 | 2724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2725 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2726 | } Py_INCREF(Py_None); |
2727 | _resultobj = Py_None; | |
2728 | return _resultobj; | |
2729 | } | |
2730 | ||
2731 | static void *SwigwxPageSetupDialogTowxDialog(void *ptr) { | |
2732 | wxPageSetupDialog *src; | |
2733 | wxDialog *dest; | |
2734 | src = (wxPageSetupDialog *) ptr; | |
2735 | dest = (wxDialog *) src; | |
2736 | return (void *) dest; | |
2737 | } | |
2738 | ||
32c988a3 | 2739 | static void *SwigwxPageSetupDialogTowxTopLevelWindow(void *ptr) { |
d24a34bb | 2740 | wxPageSetupDialog *src; |
32c988a3 | 2741 | wxTopLevelWindow *dest; |
d24a34bb | 2742 | src = (wxPageSetupDialog *) ptr; |
32c988a3 | 2743 | dest = (wxTopLevelWindow *) src; |
d24a34bb RD |
2744 | return (void *) dest; |
2745 | } | |
2746 | ||
2747 | static void *SwigwxPageSetupDialogTowxWindow(void *ptr) { | |
2748 | wxPageSetupDialog *src; | |
2749 | wxWindow *dest; | |
2750 | src = (wxPageSetupDialog *) ptr; | |
2751 | dest = (wxWindow *) src; | |
2752 | return (void *) dest; | |
2753 | } | |
2754 | ||
2755 | static void *SwigwxPageSetupDialogTowxEvtHandler(void *ptr) { | |
2756 | wxPageSetupDialog *src; | |
2757 | wxEvtHandler *dest; | |
2758 | src = (wxPageSetupDialog *) ptr; | |
2759 | dest = (wxEvtHandler *) src; | |
2760 | return (void *) dest; | |
2761 | } | |
2762 | ||
9df61a29 RD |
2763 | static void *SwigwxPageSetupDialogTowxObject(void *ptr) { |
2764 | wxPageSetupDialog *src; | |
2765 | wxObject *dest; | |
2766 | src = (wxPageSetupDialog *) ptr; | |
2767 | dest = (wxObject *) src; | |
2768 | return (void *) dest; | |
2769 | } | |
2770 | ||
d24a34bb | 2771 | #define new_wxPageSetupDialog(_swigarg0,_swigarg1) (new wxPageSetupDialog(_swigarg0,_swigarg1)) |
107e4716 | 2772 | static PyObject *_wrap_new_wxPageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2773 | PyObject * _resultobj; |
2774 | wxPageSetupDialog * _result; | |
2775 | wxWindow * _arg0; | |
2d091820 RD |
2776 | wxPageSetupDialogData * _arg1 = (wxPageSetupDialogData *) NULL; |
2777 | PyObject * _argo0 = 0; | |
2778 | PyObject * _argo1 = 0; | |
107e4716 | 2779 | char *_kwnames[] = { "parent","data", NULL }; |
d24a34bb RD |
2780 | char _ptemp[128]; |
2781 | ||
2782 | self = self; | |
107e4716 | 2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPageSetupDialog",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 2784 | return NULL; |
2d091820 RD |
2785 | if (_argo0) { |
2786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
2788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPageSetupDialog. Expected _wxWindow_p."); |
2789 | return NULL; | |
2790 | } | |
2791 | } | |
2d091820 RD |
2792 | if (_argo1) { |
2793 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2794 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPageSetupDialogData_p")) { | |
d24a34bb RD |
2795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPageSetupDialog. Expected _wxPageSetupDialogData_p."); |
2796 | return NULL; | |
2797 | } | |
2798 | } | |
2799 | { | |
474c48f9 | 2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2801 | _result = (wxPageSetupDialog *)new_wxPageSetupDialog(_arg0,_arg1); |
d24a34bb | 2802 | |
474c48f9 | 2803 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2804 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2805 | } if (_result) { |
2806 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialog_p"); | |
2807 | _resultobj = Py_BuildValue("s",_ptemp); | |
2808 | } else { | |
2809 | Py_INCREF(Py_None); | |
2810 | _resultobj = Py_None; | |
2811 | } | |
d24a34bb RD |
2812 | return _resultobj; |
2813 | } | |
2814 | ||
2815 | #define wxPageSetupDialog_GetPageSetupData(_swigobj) (_swigobj->GetPageSetupData()) | |
107e4716 | 2816 | static PyObject *_wrap_wxPageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2817 | PyObject * _resultobj; |
2818 | wxPageSetupDialogData * _result; | |
2819 | wxPageSetupDialog * _arg0; | |
2d091820 | 2820 | PyObject * _argo0 = 0; |
107e4716 | 2821 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2822 | char _ptemp[128]; |
2823 | ||
2824 | self = self; | |
107e4716 | 2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_GetPageSetupData",_kwnames,&_argo0)) |
d24a34bb | 2826 | return NULL; |
2d091820 RD |
2827 | if (_argo0) { |
2828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) { | |
d24a34bb RD |
2830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_GetPageSetupData. Expected _wxPageSetupDialog_p."); |
2831 | return NULL; | |
2832 | } | |
2833 | } | |
2834 | { | |
474c48f9 | 2835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2836 | wxPageSetupDialogData & _result_ref = wxPageSetupDialog_GetPageSetupData(_arg0); |
d24a34bb RD |
2837 | _result = (wxPageSetupDialogData *) &_result_ref; |
2838 | ||
474c48f9 | 2839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2840 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2841 | } if (_result) { |
2842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPageSetupDialogData_p"); | |
2843 | _resultobj = Py_BuildValue("s",_ptemp); | |
2844 | } else { | |
2845 | Py_INCREF(Py_None); | |
2846 | _resultobj = Py_None; | |
2847 | } | |
d24a34bb RD |
2848 | return _resultobj; |
2849 | } | |
2850 | ||
2851 | #define wxPageSetupDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 2852 | static PyObject *_wrap_wxPageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2853 | PyObject * _resultobj; |
2854 | int _result; | |
2855 | wxPageSetupDialog * _arg0; | |
2d091820 | 2856 | PyObject * _argo0 = 0; |
107e4716 | 2857 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2858 | |
2859 | self = self; | |
107e4716 | 2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPageSetupDialog_ShowModal",_kwnames,&_argo0)) |
d24a34bb | 2861 | return NULL; |
2d091820 RD |
2862 | if (_argo0) { |
2863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPageSetupDialog_p")) { | |
d24a34bb RD |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPageSetupDialog_ShowModal. Expected _wxPageSetupDialog_p."); |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
474c48f9 | 2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2871 | _result = (int )wxPageSetupDialog_ShowModal(_arg0); |
d24a34bb | 2872 | |
474c48f9 | 2873 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2874 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2875 | } _resultobj = Py_BuildValue("i",_result); |
2876 | return _resultobj; | |
2877 | } | |
2878 | ||
9df61a29 RD |
2879 | static void *SwigwxPrintDialogDataTowxObject(void *ptr) { |
2880 | wxPrintDialogData *src; | |
2881 | wxObject *dest; | |
2882 | src = (wxPrintDialogData *) ptr; | |
2883 | dest = (wxObject *) src; | |
2884 | return (void *) dest; | |
2885 | } | |
2886 | ||
d24a34bb | 2887 | #define new_wxPrintDialogData() (new wxPrintDialogData()) |
107e4716 | 2888 | static PyObject *_wrap_new_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2889 | PyObject * _resultobj; |
2890 | wxPrintDialogData * _result; | |
107e4716 | 2891 | char *_kwnames[] = { NULL }; |
d24a34bb RD |
2892 | char _ptemp[128]; |
2893 | ||
2894 | self = self; | |
107e4716 | 2895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrintDialogData",_kwnames)) |
d24a34bb RD |
2896 | return NULL; |
2897 | { | |
474c48f9 | 2898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2899 | _result = (wxPrintDialogData *)new_wxPrintDialogData(); |
d24a34bb | 2900 | |
474c48f9 | 2901 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2902 | if (PyErr_Occurred()) return NULL; |
2d091820 RD |
2903 | } if (_result) { |
2904 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p"); | |
2905 | _resultobj = Py_BuildValue("s",_ptemp); | |
2906 | } else { | |
2907 | Py_INCREF(Py_None); | |
2908 | _resultobj = Py_None; | |
2909 | } | |
d24a34bb RD |
2910 | return _resultobj; |
2911 | } | |
2912 | ||
2913 | #define delete_wxPrintDialogData(_swigobj) (delete _swigobj) | |
107e4716 | 2914 | static PyObject *_wrap_delete_wxPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2915 | PyObject * _resultobj; |
2916 | wxPrintDialogData * _arg0; | |
2d091820 | 2917 | PyObject * _argo0 = 0; |
107e4716 | 2918 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2919 | |
2920 | self = self; | |
107e4716 | 2921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrintDialogData",_kwnames,&_argo0)) |
d24a34bb | 2922 | return NULL; |
2d091820 RD |
2923 | if (_argo0) { |
2924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
d24a34bb RD |
2926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrintDialogData. Expected _wxPrintDialogData_p."); |
2927 | return NULL; | |
2928 | } | |
2929 | } | |
2930 | { | |
474c48f9 | 2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2932 | delete_wxPrintDialogData(_arg0); |
d24a34bb | 2933 | |
474c48f9 | 2934 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2935 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
2936 | } Py_INCREF(Py_None); |
2937 | _resultobj = Py_None; | |
2938 | return _resultobj; | |
2939 | } | |
2940 | ||
1fded56b RD |
2941 | #define wxPrintDialogData_GetFromPage(_swigobj) (_swigobj->GetFromPage()) |
2942 | static PyObject *_wrap_wxPrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 2943 | PyObject * _resultobj; |
1fded56b | 2944 | int _result; |
d24a34bb | 2945 | wxPrintDialogData * _arg0; |
2d091820 | 2946 | PyObject * _argo0 = 0; |
1fded56b | 2947 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2948 | |
2949 | self = self; | |
1fded56b | 2950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetFromPage",_kwnames,&_argo0)) |
d24a34bb | 2951 | return NULL; |
2d091820 RD |
2952 | if (_argo0) { |
2953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 2955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetFromPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
2956 | return NULL; |
2957 | } | |
2958 | } | |
d24a34bb | 2959 | { |
474c48f9 | 2960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 2961 | _result = (int )wxPrintDialogData_GetFromPage(_arg0); |
d24a34bb | 2962 | |
474c48f9 | 2963 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2964 | if (PyErr_Occurred()) return NULL; |
1fded56b | 2965 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
2966 | return _resultobj; |
2967 | } | |
2968 | ||
1fded56b RD |
2969 | #define wxPrintDialogData_GetToPage(_swigobj) (_swigobj->GetToPage()) |
2970 | static PyObject *_wrap_wxPrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 2971 | PyObject * _resultobj; |
1fded56b | 2972 | int _result; |
d24a34bb | 2973 | wxPrintDialogData * _arg0; |
2d091820 | 2974 | PyObject * _argo0 = 0; |
1fded56b | 2975 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2976 | |
2977 | self = self; | |
1fded56b | 2978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetToPage",_kwnames,&_argo0)) |
d24a34bb | 2979 | return NULL; |
2d091820 RD |
2980 | if (_argo0) { |
2981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 2983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetToPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
2984 | return NULL; |
2985 | } | |
2986 | } | |
d24a34bb | 2987 | { |
474c48f9 | 2988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 2989 | _result = (int )wxPrintDialogData_GetToPage(_arg0); |
d24a34bb | 2990 | |
474c48f9 | 2991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2992 | if (PyErr_Occurred()) return NULL; |
1fded56b | 2993 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
2994 | return _resultobj; |
2995 | } | |
2996 | ||
1fded56b RD |
2997 | #define wxPrintDialogData_GetMinPage(_swigobj) (_swigobj->GetMinPage()) |
2998 | static PyObject *_wrap_wxPrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 2999 | PyObject * _resultobj; |
1fded56b | 3000 | int _result; |
d24a34bb | 3001 | wxPrintDialogData * _arg0; |
2d091820 | 3002 | PyObject * _argo0 = 0; |
1fded56b | 3003 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3004 | |
3005 | self = self; | |
1fded56b | 3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMinPage",_kwnames,&_argo0)) |
d24a34bb | 3007 | return NULL; |
2d091820 RD |
3008 | if (_argo0) { |
3009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMinPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3012 | return NULL; |
3013 | } | |
3014 | } | |
d24a34bb | 3015 | { |
474c48f9 | 3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3017 | _result = (int )wxPrintDialogData_GetMinPage(_arg0); |
d24a34bb | 3018 | |
474c48f9 | 3019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3020 | if (PyErr_Occurred()) return NULL; |
1fded56b | 3021 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
3022 | return _resultobj; |
3023 | } | |
3024 | ||
1fded56b RD |
3025 | #define wxPrintDialogData_GetMaxPage(_swigobj) (_swigobj->GetMaxPage()) |
3026 | static PyObject *_wrap_wxPrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3027 | PyObject * _resultobj; |
1fded56b | 3028 | int _result; |
d24a34bb | 3029 | wxPrintDialogData * _arg0; |
2d091820 | 3030 | PyObject * _argo0 = 0; |
1fded56b | 3031 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3032 | |
3033 | self = self; | |
1fded56b | 3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetMaxPage",_kwnames,&_argo0)) |
d24a34bb | 3035 | return NULL; |
2d091820 RD |
3036 | if (_argo0) { |
3037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetMaxPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3040 | return NULL; |
3041 | } | |
3042 | } | |
d24a34bb | 3043 | { |
474c48f9 | 3044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3045 | _result = (int )wxPrintDialogData_GetMaxPage(_arg0); |
d24a34bb | 3046 | |
474c48f9 | 3047 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3048 | if (PyErr_Occurred()) return NULL; |
1fded56b | 3049 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
3050 | return _resultobj; |
3051 | } | |
3052 | ||
1fded56b RD |
3053 | #define wxPrintDialogData_GetNoCopies(_swigobj) (_swigobj->GetNoCopies()) |
3054 | static PyObject *_wrap_wxPrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3055 | PyObject * _resultobj; |
1fded56b | 3056 | int _result; |
d24a34bb | 3057 | wxPrintDialogData * _arg0; |
2d091820 | 3058 | PyObject * _argo0 = 0; |
107e4716 | 3059 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3060 | |
3061 | self = self; | |
1fded56b | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetNoCopies",_kwnames,&_argo0)) |
d24a34bb | 3063 | return NULL; |
2d091820 RD |
3064 | if (_argo0) { |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetNoCopies. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3068 | return NULL; |
3069 | } | |
3070 | } | |
3071 | { | |
474c48f9 | 3072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3073 | _result = (int )wxPrintDialogData_GetNoCopies(_arg0); |
d24a34bb | 3074 | |
474c48f9 | 3075 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3076 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3077 | } _resultobj = Py_BuildValue("i",_result); |
3078 | return _resultobj; | |
3079 | } | |
3080 | ||
1fded56b RD |
3081 | #define wxPrintDialogData_GetAllPages(_swigobj) (_swigobj->GetAllPages()) |
3082 | static PyObject *_wrap_wxPrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3083 | PyObject * _resultobj; |
3084 | bool _result; | |
3085 | wxPrintDialogData * _arg0; | |
2d091820 | 3086 | PyObject * _argo0 = 0; |
107e4716 | 3087 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3088 | |
3089 | self = self; | |
1fded56b | 3090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetAllPages",_kwnames,&_argo0)) |
d24a34bb | 3091 | return NULL; |
2d091820 RD |
3092 | if (_argo0) { |
3093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetAllPages. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3096 | return NULL; |
3097 | } | |
3098 | } | |
3099 | { | |
474c48f9 | 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3101 | _result = (bool )wxPrintDialogData_GetAllPages(_arg0); |
d24a34bb | 3102 | |
474c48f9 | 3103 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3104 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3105 | } _resultobj = Py_BuildValue("i",_result); |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
1fded56b RD |
3109 | #define wxPrintDialogData_GetSelection(_swigobj) (_swigobj->GetSelection()) |
3110 | static PyObject *_wrap_wxPrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3111 | PyObject * _resultobj; |
1fded56b | 3112 | bool _result; |
d24a34bb | 3113 | wxPrintDialogData * _arg0; |
2d091820 | 3114 | PyObject * _argo0 = 0; |
107e4716 | 3115 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3116 | |
3117 | self = self; | |
1fded56b | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetSelection",_kwnames,&_argo0)) |
d24a34bb | 3119 | return NULL; |
2d091820 RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetSelection. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3124 | return NULL; |
3125 | } | |
3126 | } | |
3127 | { | |
474c48f9 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3129 | _result = (bool )wxPrintDialogData_GetSelection(_arg0); |
d24a34bb | 3130 | |
474c48f9 | 3131 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3132 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3133 | } _resultobj = Py_BuildValue("i",_result); |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
1fded56b RD |
3137 | #define wxPrintDialogData_GetCollate(_swigobj) (_swigobj->GetCollate()) |
3138 | static PyObject *_wrap_wxPrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3139 | PyObject * _resultobj; |
1fded56b | 3140 | bool _result; |
d24a34bb | 3141 | wxPrintDialogData * _arg0; |
2d091820 | 3142 | PyObject * _argo0 = 0; |
107e4716 | 3143 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3144 | |
3145 | self = self; | |
1fded56b | 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetCollate",_kwnames,&_argo0)) |
d24a34bb | 3147 | return NULL; |
2d091820 RD |
3148 | if (_argo0) { |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetCollate. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3152 | return NULL; |
3153 | } | |
3154 | } | |
3155 | { | |
474c48f9 | 3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3157 | _result = (bool )wxPrintDialogData_GetCollate(_arg0); |
d24a34bb | 3158 | |
474c48f9 | 3159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3160 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3161 | } _resultobj = Py_BuildValue("i",_result); |
3162 | return _resultobj; | |
3163 | } | |
3164 | ||
1fded56b RD |
3165 | #define wxPrintDialogData_GetPrintToFile(_swigobj) (_swigobj->GetPrintToFile()) |
3166 | static PyObject *_wrap_wxPrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3167 | PyObject * _resultobj; |
1fded56b | 3168 | bool _result; |
d24a34bb | 3169 | wxPrintDialogData * _arg0; |
2d091820 | 3170 | PyObject * _argo0 = 0; |
107e4716 | 3171 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3172 | |
3173 | self = self; | |
1fded56b | 3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintToFile",_kwnames,&_argo0)) |
d24a34bb | 3175 | return NULL; |
2d091820 RD |
3176 | if (_argo0) { |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintToFile. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3180 | return NULL; |
3181 | } | |
3182 | } | |
3183 | { | |
474c48f9 | 3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3185 | _result = (bool )wxPrintDialogData_GetPrintToFile(_arg0); |
d24a34bb | 3186 | |
474c48f9 | 3187 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3188 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3189 | } _resultobj = Py_BuildValue("i",_result); |
3190 | return _resultobj; | |
3191 | } | |
3192 | ||
1fded56b RD |
3193 | #define wxPrintDialogData_GetSetupDialog(_swigobj) (_swigobj->GetSetupDialog()) |
3194 | static PyObject *_wrap_wxPrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3195 | PyObject * _resultobj; |
1fded56b | 3196 | bool _result; |
d24a34bb | 3197 | wxPrintDialogData * _arg0; |
2d091820 | 3198 | PyObject * _argo0 = 0; |
107e4716 | 3199 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3200 | |
3201 | self = self; | |
1fded56b | 3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetSetupDialog",_kwnames,&_argo0)) |
d24a34bb | 3203 | return NULL; |
2d091820 RD |
3204 | if (_argo0) { |
3205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetSetupDialog. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3208 | return NULL; |
3209 | } | |
3210 | } | |
3211 | { | |
474c48f9 | 3212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3213 | _result = (bool )wxPrintDialogData_GetSetupDialog(_arg0); |
d24a34bb | 3214 | |
474c48f9 | 3215 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3216 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3217 | } _resultobj = Py_BuildValue("i",_result); |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
1fded56b RD |
3221 | #define wxPrintDialogData_SetFromPage(_swigobj,_swigarg0) (_swigobj->SetFromPage(_swigarg0)) |
3222 | static PyObject *_wrap_wxPrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3223 | PyObject * _resultobj; |
d24a34bb | 3224 | wxPrintDialogData * _arg0; |
1fded56b | 3225 | int _arg1; |
2d091820 | 3226 | PyObject * _argo0 = 0; |
1fded56b | 3227 | char *_kwnames[] = { "self","v", NULL }; |
d24a34bb RD |
3228 | |
3229 | self = self; | |
1fded56b | 3230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetFromPage",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 3231 | return NULL; |
2d091820 RD |
3232 | if (_argo0) { |
3233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetFromPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3236 | return NULL; |
3237 | } | |
3238 | } | |
3239 | { | |
474c48f9 | 3240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3241 | wxPrintDialogData_SetFromPage(_arg0,_arg1); |
d24a34bb | 3242 | |
474c48f9 | 3243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3244 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
3245 | } Py_INCREF(Py_None); |
3246 | _resultobj = Py_None; | |
d24a34bb RD |
3247 | return _resultobj; |
3248 | } | |
3249 | ||
1fded56b RD |
3250 | #define wxPrintDialogData_SetToPage(_swigobj,_swigarg0) (_swigobj->SetToPage(_swigarg0)) |
3251 | static PyObject *_wrap_wxPrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3252 | PyObject * _resultobj; |
d24a34bb | 3253 | wxPrintDialogData * _arg0; |
1fded56b | 3254 | int _arg1; |
2d091820 | 3255 | PyObject * _argo0 = 0; |
1fded56b | 3256 | char *_kwnames[] = { "self","v", NULL }; |
d24a34bb RD |
3257 | |
3258 | self = self; | |
1fded56b | 3259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetToPage",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 3260 | return NULL; |
2d091820 RD |
3261 | if (_argo0) { |
3262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetToPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3265 | return NULL; |
3266 | } | |
3267 | } | |
3268 | { | |
474c48f9 | 3269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3270 | wxPrintDialogData_SetToPage(_arg0,_arg1); |
d24a34bb | 3271 | |
474c48f9 | 3272 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3273 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
3274 | } Py_INCREF(Py_None); |
3275 | _resultobj = Py_None; | |
d24a34bb RD |
3276 | return _resultobj; |
3277 | } | |
3278 | ||
1fded56b RD |
3279 | #define wxPrintDialogData_SetMinPage(_swigobj,_swigarg0) (_swigobj->SetMinPage(_swigarg0)) |
3280 | static PyObject *_wrap_wxPrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3281 | PyObject * _resultobj; |
d24a34bb | 3282 | wxPrintDialogData * _arg0; |
1fded56b | 3283 | int _arg1; |
2d091820 | 3284 | PyObject * _argo0 = 0; |
1fded56b | 3285 | char *_kwnames[] = { "self","v", NULL }; |
d24a34bb RD |
3286 | |
3287 | self = self; | |
1fded56b | 3288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMinPage",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 3289 | return NULL; |
2d091820 RD |
3290 | if (_argo0) { |
3291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMinPage. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3294 | return NULL; |
3295 | } | |
3296 | } | |
3297 | { | |
474c48f9 | 3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3299 | wxPrintDialogData_SetMinPage(_arg0,_arg1); |
d24a34bb | 3300 | |
474c48f9 | 3301 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3302 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
3303 | } Py_INCREF(Py_None); |
3304 | _resultobj = Py_None; | |
d24a34bb RD |
3305 | return _resultobj; |
3306 | } | |
3307 | ||
1fded56b RD |
3308 | #define wxPrintDialogData_SetMaxPage(_swigobj,_swigarg0) (_swigobj->SetMaxPage(_swigarg0)) |
3309 | static PyObject *_wrap_wxPrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12d1116b | 3310 | PyObject * _resultobj; |
12d1116b | 3311 | wxPrintDialogData * _arg0; |
1fded56b | 3312 | int _arg1; |
12d1116b | 3313 | PyObject * _argo0 = 0; |
1fded56b | 3314 | char *_kwnames[] = { "self","v", NULL }; |
12d1116b RD |
3315 | |
3316 | self = self; | |
1fded56b | 3317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetMaxPage",_kwnames,&_argo0,&_arg1)) |
12d1116b RD |
3318 | return NULL; |
3319 | if (_argo0) { | |
3320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetMaxPage. Expected _wxPrintDialogData_p."); |
12d1116b RD |
3323 | return NULL; |
3324 | } | |
3325 | } | |
3326 | { | |
3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fded56b | 3328 | wxPrintDialogData_SetMaxPage(_arg0,_arg1); |
12d1116b RD |
3329 | |
3330 | wxPyEndAllowThreads(__tstate); | |
3331 | if (PyErr_Occurred()) return NULL; | |
1fded56b RD |
3332 | } Py_INCREF(Py_None); |
3333 | _resultobj = Py_None; | |
12d1116b RD |
3334 | return _resultobj; |
3335 | } | |
3336 | ||
1fded56b RD |
3337 | #define wxPrintDialogData_SetNoCopies(_swigobj,_swigarg0) (_swigobj->SetNoCopies(_swigarg0)) |
3338 | static PyObject *_wrap_wxPrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3339 | PyObject * _resultobj; |
3340 | wxPrintDialogData * _arg0; | |
1fded56b | 3341 | int _arg1; |
2d091820 | 3342 | PyObject * _argo0 = 0; |
1fded56b | 3343 | char *_kwnames[] = { "self","v", NULL }; |
d24a34bb RD |
3344 | |
3345 | self = self; | |
1fded56b | 3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetNoCopies",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 3347 | return NULL; |
2d091820 RD |
3348 | if (_argo0) { |
3349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetNoCopies. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3352 | return NULL; |
3353 | } | |
3354 | } | |
d24a34bb | 3355 | { |
474c48f9 | 3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3357 | wxPrintDialogData_SetNoCopies(_arg0,_arg1); |
d24a34bb | 3358 | |
474c48f9 | 3359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3360 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3361 | } Py_INCREF(Py_None); |
3362 | _resultobj = Py_None; | |
3363 | return _resultobj; | |
3364 | } | |
3365 | ||
1fded56b RD |
3366 | #define wxPrintDialogData_SetAllPages(_swigobj,_swigarg0) (_swigobj->SetAllPages(_swigarg0)) |
3367 | static PyObject *_wrap_wxPrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3368 | PyObject * _resultobj; |
3369 | wxPrintDialogData * _arg0; | |
1fded56b | 3370 | bool _arg1; |
2d091820 | 3371 | PyObject * _argo0 = 0; |
1fded56b RD |
3372 | int tempbool1; |
3373 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3374 | |
3375 | self = self; | |
1fded56b | 3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetAllPages",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3377 | return NULL; |
2d091820 RD |
3378 | if (_argo0) { |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetAllPages. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3382 | return NULL; |
3383 | } | |
3384 | } | |
1fded56b | 3385 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3386 | { |
474c48f9 | 3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3388 | wxPrintDialogData_SetAllPages(_arg0,_arg1); |
d24a34bb | 3389 | |
474c48f9 | 3390 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3391 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3392 | } Py_INCREF(Py_None); |
3393 | _resultobj = Py_None; | |
3394 | return _resultobj; | |
3395 | } | |
3396 | ||
1fded56b RD |
3397 | #define wxPrintDialogData_SetSelection(_swigobj,_swigarg0) (_swigobj->SetSelection(_swigarg0)) |
3398 | static PyObject *_wrap_wxPrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3399 | PyObject * _resultobj; |
3400 | wxPrintDialogData * _arg0; | |
1fded56b | 3401 | bool _arg1; |
2d091820 | 3402 | PyObject * _argo0 = 0; |
1fded56b RD |
3403 | int tempbool1; |
3404 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3405 | |
3406 | self = self; | |
1fded56b | 3407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetSelection",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3408 | return NULL; |
2d091820 RD |
3409 | if (_argo0) { |
3410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetSelection. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3413 | return NULL; |
3414 | } | |
3415 | } | |
1fded56b | 3416 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3417 | { |
474c48f9 | 3418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3419 | wxPrintDialogData_SetSelection(_arg0,_arg1); |
d24a34bb | 3420 | |
474c48f9 | 3421 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3422 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3423 | } Py_INCREF(Py_None); |
3424 | _resultobj = Py_None; | |
3425 | return _resultobj; | |
3426 | } | |
3427 | ||
1fded56b RD |
3428 | #define wxPrintDialogData_SetCollate(_swigobj,_swigarg0) (_swigobj->SetCollate(_swigarg0)) |
3429 | static PyObject *_wrap_wxPrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3430 | PyObject * _resultobj; |
3431 | wxPrintDialogData * _arg0; | |
1fded56b | 3432 | bool _arg1; |
2d091820 | 3433 | PyObject * _argo0 = 0; |
1fded56b RD |
3434 | int tempbool1; |
3435 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3436 | |
3437 | self = self; | |
1fded56b | 3438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetCollate",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3439 | return NULL; |
2d091820 RD |
3440 | if (_argo0) { |
3441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetCollate. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3444 | return NULL; |
3445 | } | |
3446 | } | |
1fded56b | 3447 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3448 | { |
474c48f9 | 3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3450 | wxPrintDialogData_SetCollate(_arg0,_arg1); |
d24a34bb | 3451 | |
474c48f9 | 3452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3453 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3454 | } Py_INCREF(Py_None); |
3455 | _resultobj = Py_None; | |
3456 | return _resultobj; | |
3457 | } | |
3458 | ||
1fded56b RD |
3459 | #define wxPrintDialogData_SetPrintToFile(_swigobj,_swigarg0) (_swigobj->SetPrintToFile(_swigarg0)) |
3460 | static PyObject *_wrap_wxPrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3461 | PyObject * _resultobj; |
3462 | wxPrintDialogData * _arg0; | |
1fded56b | 3463 | bool _arg1; |
2d091820 | 3464 | PyObject * _argo0 = 0; |
1fded56b RD |
3465 | int tempbool1; |
3466 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3467 | |
3468 | self = self; | |
1fded56b | 3469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetPrintToFile",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3470 | return NULL; |
2d091820 RD |
3471 | if (_argo0) { |
3472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintToFile. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3475 | return NULL; |
3476 | } | |
3477 | } | |
1fded56b | 3478 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3479 | { |
474c48f9 | 3480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3481 | wxPrintDialogData_SetPrintToFile(_arg0,_arg1); |
d24a34bb | 3482 | |
474c48f9 | 3483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3484 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3485 | } Py_INCREF(Py_None); |
3486 | _resultobj = Py_None; | |
3487 | return _resultobj; | |
3488 | } | |
3489 | ||
1fded56b RD |
3490 | #define wxPrintDialogData_SetSetupDialog(_swigobj,_swigarg0) (_swigobj->SetSetupDialog(_swigarg0)) |
3491 | static PyObject *_wrap_wxPrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3492 | PyObject * _resultobj; |
3493 | wxPrintDialogData * _arg0; | |
1fded56b | 3494 | bool _arg1; |
2d091820 | 3495 | PyObject * _argo0 = 0; |
1fded56b RD |
3496 | int tempbool1; |
3497 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3498 | |
3499 | self = self; | |
1fded56b | 3500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_SetSetupDialog",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3501 | return NULL; |
2d091820 RD |
3502 | if (_argo0) { |
3503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetSetupDialog. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3506 | return NULL; |
3507 | } | |
3508 | } | |
1fded56b | 3509 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3510 | { |
474c48f9 | 3511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3512 | wxPrintDialogData_SetSetupDialog(_arg0,_arg1); |
d24a34bb | 3513 | |
474c48f9 | 3514 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3515 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3516 | } Py_INCREF(Py_None); |
3517 | _resultobj = Py_None; | |
3518 | return _resultobj; | |
3519 | } | |
3520 | ||
1fded56b RD |
3521 | #define wxPrintDialogData_EnablePrintToFile(_swigobj,_swigarg0) (_swigobj->EnablePrintToFile(_swigarg0)) |
3522 | static PyObject *_wrap_wxPrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3523 | PyObject * _resultobj; |
3524 | wxPrintDialogData * _arg0; | |
3525 | bool _arg1; | |
2d091820 | 3526 | PyObject * _argo0 = 0; |
d24a34bb | 3527 | int tempbool1; |
107e4716 | 3528 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
3529 | |
3530 | self = self; | |
1fded56b | 3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePrintToFile",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3532 | return NULL; |
2d091820 RD |
3533 | if (_argo0) { |
3534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePrintToFile. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3537 | return NULL; |
3538 | } | |
3539 | } | |
3540 | _arg1 = (bool ) tempbool1; | |
3541 | { | |
474c48f9 | 3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3543 | wxPrintDialogData_EnablePrintToFile(_arg0,_arg1); |
d24a34bb | 3544 | |
474c48f9 | 3545 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3546 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3547 | } Py_INCREF(Py_None); |
3548 | _resultobj = Py_None; | |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
1fded56b RD |
3552 | #define wxPrintDialogData_EnableSelection(_swigobj,_swigarg0) (_swigobj->EnableSelection(_swigarg0)) |
3553 | static PyObject *_wrap_wxPrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3554 | PyObject * _resultobj; |
3555 | wxPrintDialogData * _arg0; | |
3556 | bool _arg1; | |
2d091820 | 3557 | PyObject * _argo0 = 0; |
d24a34bb | 3558 | int tempbool1; |
107e4716 | 3559 | char *_kwnames[] = { "self","flag", NULL }; |
d24a34bb RD |
3560 | |
3561 | self = self; | |
1fded56b | 3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableSelection",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3563 | return NULL; |
2d091820 RD |
3564 | if (_argo0) { |
3565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableSelection. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3568 | return NULL; |
3569 | } | |
3570 | } | |
3571 | _arg1 = (bool ) tempbool1; | |
3572 | { | |
474c48f9 | 3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3574 | wxPrintDialogData_EnableSelection(_arg0,_arg1); |
d24a34bb | 3575 | |
474c48f9 | 3576 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3577 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3578 | } Py_INCREF(Py_None); |
3579 | _resultobj = Py_None; | |
3580 | return _resultobj; | |
3581 | } | |
3582 | ||
1fded56b RD |
3583 | #define wxPrintDialogData_EnablePageNumbers(_swigobj,_swigarg0) (_swigobj->EnablePageNumbers(_swigarg0)) |
3584 | static PyObject *_wrap_wxPrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
3585 | PyObject * _resultobj; |
3586 | wxPrintDialogData * _arg0; | |
1fded56b | 3587 | bool _arg1; |
2d091820 | 3588 | PyObject * _argo0 = 0; |
1fded56b RD |
3589 | int tempbool1; |
3590 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb RD |
3591 | |
3592 | self = self; | |
1fded56b | 3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnablePageNumbers",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 3594 | return NULL; |
2d091820 RD |
3595 | if (_argo0) { |
3596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
1fded56b | 3598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnablePageNumbers. Expected _wxPrintDialogData_p."); |
d24a34bb RD |
3599 | return NULL; |
3600 | } | |
3601 | } | |
1fded56b | 3602 | _arg1 = (bool ) tempbool1; |
d24a34bb | 3603 | { |
474c48f9 | 3604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3605 | wxPrintDialogData_EnablePageNumbers(_arg0,_arg1); |
d24a34bb | 3606 | |
474c48f9 | 3607 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3608 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3609 | } Py_INCREF(Py_None); |
3610 | _resultobj = Py_None; | |
3611 | return _resultobj; | |
3612 | } | |
3613 | ||
1fded56b RD |
3614 | #define wxPrintDialogData_EnableHelp(_swigobj,_swigarg0) (_swigobj->EnableHelp(_swigarg0)) |
3615 | static PyObject *_wrap_wxPrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3616 | PyObject * _resultobj; | |
3617 | wxPrintDialogData * _arg0; | |
3618 | bool _arg1; | |
3619 | PyObject * _argo0 = 0; | |
3620 | int tempbool1; | |
3621 | char *_kwnames[] = { "self","flag", NULL }; | |
d24a34bb | 3622 | |
1fded56b RD |
3623 | self = self; |
3624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintDialogData_EnableHelp",_kwnames,&_argo0,&tempbool1)) | |
3625 | return NULL; | |
3626 | if (_argo0) { | |
3627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
3629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_EnableHelp. Expected _wxPrintDialogData_p."); | |
3630 | return NULL; | |
3631 | } | |
3632 | } | |
3633 | _arg1 = (bool ) tempbool1; | |
3634 | { | |
3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3636 | wxPrintDialogData_EnableHelp(_arg0,_arg1); | |
d24a34bb | 3637 | |
1fded56b RD |
3638 | wxPyEndAllowThreads(__tstate); |
3639 | if (PyErr_Occurred()) return NULL; | |
3640 | } Py_INCREF(Py_None); | |
3641 | _resultobj = Py_None; | |
3642 | return _resultobj; | |
9df61a29 RD |
3643 | } |
3644 | ||
1fded56b RD |
3645 | #define wxPrintDialogData_GetEnablePrintToFile(_swigobj) (_swigobj->GetEnablePrintToFile()) |
3646 | static PyObject *_wrap_wxPrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3647 | PyObject * _resultobj; |
1fded56b RD |
3648 | bool _result; |
3649 | wxPrintDialogData * _arg0; | |
2d091820 | 3650 | PyObject * _argo0 = 0; |
1fded56b | 3651 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3652 | |
3653 | self = self; | |
1fded56b | 3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnablePrintToFile",_kwnames,&_argo0)) |
d24a34bb | 3655 | return NULL; |
2d091820 RD |
3656 | if (_argo0) { |
3657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
3658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnablePrintToFile. Expected _wxPrintDialogData_p."); | |
d24a34bb RD |
3660 | return NULL; |
3661 | } | |
3662 | } | |
3663 | { | |
474c48f9 | 3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3665 | _result = (bool )wxPrintDialogData_GetEnablePrintToFile(_arg0); |
d24a34bb | 3666 | |
474c48f9 | 3667 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3668 | if (PyErr_Occurred()) return NULL; |
1fded56b | 3669 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
3670 | return _resultobj; |
3671 | } | |
3672 | ||
1fded56b RD |
3673 | #define wxPrintDialogData_GetEnableSelection(_swigobj) (_swigobj->GetEnableSelection()) |
3674 | static PyObject *_wrap_wxPrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3675 | PyObject * _resultobj; |
1fded56b RD |
3676 | bool _result; |
3677 | wxPrintDialogData * _arg0; | |
2d091820 | 3678 | PyObject * _argo0 = 0; |
107e4716 | 3679 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3680 | |
3681 | self = self; | |
1fded56b | 3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnableSelection",_kwnames,&_argo0)) |
d24a34bb | 3683 | return NULL; |
2d091820 RD |
3684 | if (_argo0) { |
3685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
3686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { |
3687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnableSelection. Expected _wxPrintDialogData_p."); | |
d24a34bb RD |
3688 | return NULL; |
3689 | } | |
3690 | } | |
3691 | { | |
474c48f9 | 3692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3693 | _result = (bool )wxPrintDialogData_GetEnableSelection(_arg0); |
d24a34bb | 3694 | |
474c48f9 | 3695 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3696 | if (PyErr_Occurred()) return NULL; |
1fded56b | 3697 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
3698 | return _resultobj; |
3699 | } | |
3700 | ||
1fded56b RD |
3701 | #define wxPrintDialogData_GetEnablePageNumbers(_swigobj) (_swigobj->GetEnablePageNumbers()) |
3702 | static PyObject *_wrap_wxPrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3703 | PyObject * _resultobj; |
1fded56b RD |
3704 | bool _result; |
3705 | wxPrintDialogData * _arg0; | |
2d091820 | 3706 | PyObject * _argo0 = 0; |
107e4716 | 3707 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3708 | |
3709 | self = self; | |
1fded56b | 3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnablePageNumbers",_kwnames,&_argo0)) |
d24a34bb | 3711 | return NULL; |
2d091820 RD |
3712 | if (_argo0) { |
3713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
3714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { |
3715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnablePageNumbers. Expected _wxPrintDialogData_p."); | |
d24a34bb RD |
3716 | return NULL; |
3717 | } | |
3718 | } | |
3719 | { | |
474c48f9 | 3720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3721 | _result = (bool )wxPrintDialogData_GetEnablePageNumbers(_arg0); |
d24a34bb | 3722 | |
474c48f9 | 3723 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3724 | if (PyErr_Occurred()) return NULL; |
1fded56b | 3725 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
3726 | return _resultobj; |
3727 | } | |
3728 | ||
1fded56b RD |
3729 | #define wxPrintDialogData_GetEnableHelp(_swigobj) (_swigobj->GetEnableHelp()) |
3730 | static PyObject *_wrap_wxPrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3731 | PyObject * _resultobj; |
1fded56b RD |
3732 | bool _result; |
3733 | wxPrintDialogData * _arg0; | |
2d091820 | 3734 | PyObject * _argo0 = 0; |
107e4716 | 3735 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
3736 | |
3737 | self = self; | |
1fded56b | 3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetEnableHelp",_kwnames,&_argo0)) |
d24a34bb | 3739 | return NULL; |
2d091820 RD |
3740 | if (_argo0) { |
3741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
3742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { |
3743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetEnableHelp. Expected _wxPrintDialogData_p."); | |
d24a34bb RD |
3744 | return NULL; |
3745 | } | |
3746 | } | |
3747 | { | |
474c48f9 | 3748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3749 | _result = (bool )wxPrintDialogData_GetEnableHelp(_arg0); |
d24a34bb | 3750 | |
474c48f9 | 3751 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3752 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
3753 | } _resultobj = Py_BuildValue("i",_result); |
3754 | return _resultobj; | |
3755 | } | |
3756 | ||
1fded56b RD |
3757 | #define wxPrintDialogData_Ok(_swigobj) (_swigobj->Ok()) |
3758 | static PyObject *_wrap_wxPrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3759 | PyObject * _resultobj; | |
3760 | bool _result; | |
3761 | wxPrintDialogData * _arg0; | |
3762 | PyObject * _argo0 = 0; | |
3763 | char *_kwnames[] = { "self", NULL }; | |
3764 | ||
3765 | self = self; | |
3766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_Ok",_kwnames,&_argo0)) | |
3767 | return NULL; | |
3768 | if (_argo0) { | |
3769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
3771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_Ok. Expected _wxPrintDialogData_p."); | |
3772 | return NULL; | |
3773 | } | |
3774 | } | |
3775 | { | |
3776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3777 | _result = (bool )wxPrintDialogData_Ok(_arg0); | |
3778 | ||
3779 | wxPyEndAllowThreads(__tstate); | |
3780 | if (PyErr_Occurred()) return NULL; | |
3781 | } _resultobj = Py_BuildValue("i",_result); | |
3782 | return _resultobj; | |
9df61a29 RD |
3783 | } |
3784 | ||
1fded56b RD |
3785 | static wxPrintData * wxPrintDialogData_GetPrintData(wxPrintDialogData *self) { |
3786 | return new wxPrintData(self->GetPrintData()); // force a copy | |
3787 | } | |
3788 | static PyObject *_wrap_wxPrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3789 | PyObject * _resultobj; |
1fded56b RD |
3790 | wxPrintData * _result; |
3791 | wxPrintDialogData * _arg0; | |
3792 | PyObject * _argo0 = 0; | |
3793 | char *_kwnames[] = { "self", NULL }; | |
d24a34bb RD |
3794 | char _ptemp[128]; |
3795 | ||
3796 | self = self; | |
1fded56b | 3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialogData_GetPrintData",_kwnames,&_argo0)) |
d24a34bb | 3798 | return NULL; |
1fded56b RD |
3799 | if (_argo0) { |
3800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
3802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_GetPrintData. Expected _wxPrintDialogData_p."); | |
9a74fcaf | 3803 | return NULL; |
1fded56b RD |
3804 | } |
3805 | } | |
d24a34bb | 3806 | { |
474c48f9 | 3807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3808 | _result = (wxPrintData *)wxPrintDialogData_GetPrintData(_arg0); |
d24a34bb | 3809 | |
474c48f9 | 3810 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3811 | if (PyErr_Occurred()) return NULL; |
2d091820 | 3812 | } if (_result) { |
1fded56b | 3813 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintData_p"); |
2d091820 RD |
3814 | _resultobj = Py_BuildValue("s",_ptemp); |
3815 | } else { | |
3816 | Py_INCREF(Py_None); | |
3817 | _resultobj = Py_None; | |
3818 | } | |
1fded56b | 3819 | return _resultobj; |
9a74fcaf | 3820 | } |
1fded56b RD |
3821 | |
3822 | #define wxPrintDialogData_SetPrintData(_swigobj,_swigarg0) (_swigobj->SetPrintData(_swigarg0)) | |
3823 | static PyObject *_wrap_wxPrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3824 | PyObject * _resultobj; | |
3825 | wxPrintDialogData * _arg0; | |
3826 | wxPrintData * _arg1; | |
3827 | PyObject * _argo0 = 0; | |
3828 | PyObject * _argo1 = 0; | |
3829 | char *_kwnames[] = { "self","printData", NULL }; | |
3830 | ||
3831 | self = self; | |
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintDialogData_SetPrintData",_kwnames,&_argo0,&_argo1)) | |
3833 | return NULL; | |
3834 | if (_argo0) { | |
3835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
3837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialogData_SetPrintData. Expected _wxPrintDialogData_p."); | |
3838 | return NULL; | |
3839 | } | |
3840 | } | |
3841 | if (_argo1) { | |
3842 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintData_p")) { | |
3843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintDialogData_SetPrintData. Expected _wxPrintData_p."); | |
3844 | return NULL; | |
3845 | } | |
3846 | } | |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | wxPrintDialogData_SetPrintData(_arg0,*_arg1); | |
3850 | ||
3851 | wxPyEndAllowThreads(__tstate); | |
3852 | if (PyErr_Occurred()) return NULL; | |
3853 | } Py_INCREF(Py_None); | |
3854 | _resultobj = Py_None; | |
d24a34bb RD |
3855 | return _resultobj; |
3856 | } | |
3857 | ||
1fded56b RD |
3858 | static void *SwigwxPrintDialogTowxDialog(void *ptr) { |
3859 | wxPrintDialog *src; | |
3860 | wxDialog *dest; | |
3861 | src = (wxPrintDialog *) ptr; | |
3862 | dest = (wxDialog *) src; | |
3863 | return (void *) dest; | |
3864 | } | |
3865 | ||
3866 | static void *SwigwxPrintDialogTowxTopLevelWindow(void *ptr) { | |
3867 | wxPrintDialog *src; | |
3868 | wxTopLevelWindow *dest; | |
3869 | src = (wxPrintDialog *) ptr; | |
3870 | dest = (wxTopLevelWindow *) src; | |
3871 | return (void *) dest; | |
3872 | } | |
3873 | ||
3874 | static void *SwigwxPrintDialogTowxWindow(void *ptr) { | |
3875 | wxPrintDialog *src; | |
3876 | wxWindow *dest; | |
3877 | src = (wxPrintDialog *) ptr; | |
3878 | dest = (wxWindow *) src; | |
3879 | return (void *) dest; | |
3880 | } | |
3881 | ||
3882 | static void *SwigwxPrintDialogTowxEvtHandler(void *ptr) { | |
3883 | wxPrintDialog *src; | |
3884 | wxEvtHandler *dest; | |
3885 | src = (wxPrintDialog *) ptr; | |
3886 | dest = (wxEvtHandler *) src; | |
3887 | return (void *) dest; | |
3888 | } | |
3889 | ||
3890 | static void *SwigwxPrintDialogTowxObject(void *ptr) { | |
3891 | wxPrintDialog *src; | |
3892 | wxObject *dest; | |
3893 | src = (wxPrintDialog *) ptr; | |
3894 | dest = (wxObject *) src; | |
3895 | return (void *) dest; | |
3896 | } | |
3897 | ||
3898 | #define new_wxPrintDialog(_swigarg0,_swigarg1) (new wxPrintDialog(_swigarg0,_swigarg1)) | |
3899 | static PyObject *_wrap_new_wxPrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 3900 | PyObject * _resultobj; |
1fded56b RD |
3901 | wxPrintDialog * _result; |
3902 | wxWindow * _arg0; | |
3903 | wxPrintDialogData * _arg1 = (wxPrintDialogData *) NULL; | |
2d091820 | 3904 | PyObject * _argo0 = 0; |
1fded56b RD |
3905 | PyObject * _argo1 = 0; |
3906 | char *_kwnames[] = { "parent","data", NULL }; | |
3907 | char _ptemp[128]; | |
d24a34bb RD |
3908 | |
3909 | self = self; | |
1fded56b | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxPrintDialog",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 3911 | return NULL; |
2d091820 RD |
3912 | if (_argo0) { |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintDialog. Expected _wxWindow_p."); | |
3916 | return NULL; | |
3917 | } | |
3918 | } | |
3919 | if (_argo1) { | |
3920 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintDialogData_p")) { | |
3922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintDialog. Expected _wxPrintDialogData_p."); | |
d24a34bb RD |
3923 | return NULL; |
3924 | } | |
3925 | } | |
3926 | { | |
1fded56b RD |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3928 | _result = (wxPrintDialog *)new_wxPrintDialog(_arg0,_arg1); | |
3929 | ||
3930 | wxPyEndAllowThreads(__tstate); | |
3931 | if (PyErr_Occurred()) return NULL; | |
3932 | } if (_result) { | |
3933 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialog_p"); | |
3934 | _resultobj = Py_BuildValue("s",_ptemp); | |
3935 | } else { | |
3936 | Py_INCREF(Py_None); | |
3937 | _resultobj = Py_None; | |
3938 | } | |
3939 | return _resultobj; | |
d24a34bb | 3940 | } |
1fded56b RD |
3941 | |
3942 | #define wxPrintDialog_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData()) | |
3943 | static PyObject *_wrap_wxPrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3944 | PyObject * _resultobj; | |
3945 | wxPrintDialogData * _result; | |
3946 | wxPrintDialog * _arg0; | |
3947 | PyObject * _argo0 = 0; | |
3948 | char *_kwnames[] = { "self", NULL }; | |
3949 | char _ptemp[128]; | |
3950 | ||
3951 | self = self; | |
3952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDialogData",_kwnames,&_argo0)) | |
3953 | return NULL; | |
3954 | if (_argo0) { | |
3955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) { | |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDialogData. Expected _wxPrintDialog_p."); | |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
f6bcfd97 | 3961 | { |
1fded56b RD |
3962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3963 | wxPrintDialogData & _result_ref = wxPrintDialog_GetPrintDialogData(_arg0); | |
3964 | _result = (wxPrintDialogData *) &_result_ref; | |
3965 | ||
3966 | wxPyEndAllowThreads(__tstate); | |
3967 | if (PyErr_Occurred()) return NULL; | |
3968 | } if (_result) { | |
3969 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p"); | |
3970 | _resultobj = Py_BuildValue("s",_ptemp); | |
3971 | } else { | |
3972 | Py_INCREF(Py_None); | |
3973 | _resultobj = Py_None; | |
3974 | } | |
3975 | return _resultobj; | |
f6bcfd97 | 3976 | } |
1fded56b RD |
3977 | |
3978 | #define wxPrintDialog_GetPrintDC(_swigobj) (_swigobj->GetPrintDC()) | |
3979 | static PyObject *_wrap_wxPrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3980 | PyObject * _resultobj; | |
3981 | wxDC * _result; | |
3982 | wxPrintDialog * _arg0; | |
3983 | PyObject * _argo0 = 0; | |
3984 | char *_kwnames[] = { "self", NULL }; | |
3985 | ||
3986 | self = self; | |
3987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_GetPrintDC",_kwnames,&_argo0)) | |
3988 | return NULL; | |
3989 | if (_argo0) { | |
3990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) { | |
3992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_GetPrintDC. Expected _wxPrintDialog_p."); | |
3993 | return NULL; | |
3994 | } | |
3995 | } | |
d24a34bb | 3996 | { |
474c48f9 | 3997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 3998 | _result = (wxDC *)wxPrintDialog_GetPrintDC(_arg0); |
d24a34bb | 3999 | |
474c48f9 | 4000 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4001 | if (PyErr_Occurred()) return NULL; |
1fded56b | 4002 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d24a34bb RD |
4003 | return _resultobj; |
4004 | } | |
4005 | ||
1fded56b RD |
4006 | #define wxPrintDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) |
4007 | static PyObject *_wrap_wxPrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 4008 | PyObject * _resultobj; |
1fded56b RD |
4009 | int _result; |
4010 | wxPrintDialog * _arg0; | |
2d091820 | 4011 | PyObject * _argo0 = 0; |
107e4716 | 4012 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
4013 | |
4014 | self = self; | |
1fded56b RD |
4015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintDialog_ShowModal",_kwnames,&_argo0)) |
4016 | return NULL; | |
4017 | if (_argo0) { | |
4018 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4019 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialog_p")) { | |
4020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintDialog_ShowModal. Expected _wxPrintDialog_p."); | |
4021 | return NULL; | |
4022 | } | |
4023 | } | |
4024 | { | |
4025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4026 | _result = (int )wxPrintDialog_ShowModal(_arg0); | |
4027 | ||
4028 | wxPyEndAllowThreads(__tstate); | |
4029 | if (PyErr_Occurred()) return NULL; | |
4030 | } _resultobj = Py_BuildValue("i",_result); | |
4031 | return _resultobj; | |
4032 | } | |
4033 | ||
4034 | static void *SwigwxPyPrintoutTowxObject(void *ptr) { | |
4035 | wxPyPrintout *src; | |
4036 | wxObject *dest; | |
4037 | src = (wxPyPrintout *) ptr; | |
4038 | dest = (wxObject *) src; | |
4039 | return (void *) dest; | |
4040 | } | |
4041 | ||
4042 | #define new_wxPrintout(_swigarg0) (new wxPyPrintout(_swigarg0)) | |
4043 | static PyObject *_wrap_new_wxPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject * _resultobj; | |
4045 | wxPyPrintout * _result; | |
4046 | wxString * _arg0 = (wxString *) &wxPyPrintoutTitleStr; | |
4047 | PyObject * _obj0 = 0; | |
4048 | char *_kwnames[] = { "title", NULL }; | |
4049 | char _ptemp[128]; | |
4050 | ||
4051 | self = self; | |
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrintout",_kwnames,&_obj0)) | |
4053 | return NULL; | |
4054 | if (_obj0) | |
4055 | { | |
4056 | _arg0 = wxString_in_helper(_obj0); | |
4057 | if (_arg0 == NULL) | |
4058 | return NULL; | |
4059 | } | |
4060 | { | |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4062 | _result = (wxPyPrintout *)new_wxPrintout(*_arg0); | |
4063 | ||
4064 | wxPyEndAllowThreads(__tstate); | |
4065 | if (PyErr_Occurred()) return NULL; | |
4066 | } if (_result) { | |
4067 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintout_p"); | |
4068 | _resultobj = Py_BuildValue("s",_ptemp); | |
4069 | } else { | |
4070 | Py_INCREF(Py_None); | |
4071 | _resultobj = Py_None; | |
4072 | } | |
4073 | { | |
4074 | if (_obj0) | |
4075 | delete _arg0; | |
4076 | } | |
4077 | return _resultobj; | |
4078 | } | |
4079 | ||
4080 | #define wxPrintout__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
4081 | static PyObject *_wrap_wxPrintout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject * _resultobj; | |
4083 | wxPyPrintout * _arg0; | |
4084 | PyObject * _arg1; | |
4085 | PyObject * _arg2; | |
4086 | PyObject * _argo0 = 0; | |
4087 | PyObject * _obj1 = 0; | |
4088 | PyObject * _obj2 = 0; | |
4089 | char *_kwnames[] = { "self","self","_class", NULL }; | |
4090 | ||
4091 | self = self; | |
4092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintout__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
4093 | return NULL; | |
4094 | if (_argo0) { | |
4095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout__setCallbackInfo. Expected _wxPyPrintout_p."); | |
4098 | return NULL; | |
4099 | } | |
4100 | } | |
4101 | { | |
4102 | _arg1 = _obj1; | |
4103 | } | |
4104 | { | |
4105 | _arg2 = _obj2; | |
4106 | } | |
4107 | { | |
4108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4109 | wxPrintout__setCallbackInfo(_arg0,_arg1,_arg2); | |
4110 | ||
4111 | wxPyEndAllowThreads(__tstate); | |
4112 | if (PyErr_Occurred()) return NULL; | |
4113 | } Py_INCREF(Py_None); | |
4114 | _resultobj = Py_None; | |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
4118 | static void wxPyPrintout_Destroy(wxPyPrintout *self) { delete self; } | |
4119 | static PyObject *_wrap_wxPrintout_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4120 | PyObject * _resultobj; | |
4121 | wxPyPrintout * _arg0; | |
4122 | PyObject * _argo0 = 0; | |
4123 | char *_kwnames[] = { "self", NULL }; | |
4124 | ||
4125 | self = self; | |
4126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_Destroy",_kwnames,&_argo0)) | |
4127 | return NULL; | |
4128 | if (_argo0) { | |
4129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_Destroy. Expected _wxPyPrintout_p."); | |
4132 | return NULL; | |
4133 | } | |
4134 | } | |
4135 | { | |
4136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4137 | wxPyPrintout_Destroy(_arg0); | |
4138 | ||
4139 | wxPyEndAllowThreads(__tstate); | |
4140 | if (PyErr_Occurred()) return NULL; | |
4141 | } Py_INCREF(Py_None); | |
4142 | _resultobj = Py_None; | |
4143 | return _resultobj; | |
4144 | } | |
4145 | ||
4146 | #define wxPrintout_GetDC(_swigobj) (_swigobj->GetDC()) | |
4147 | static PyObject *_wrap_wxPrintout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4148 | PyObject * _resultobj; | |
4149 | wxDC * _result; | |
4150 | wxPyPrintout * _arg0; | |
4151 | PyObject * _argo0 = 0; | |
4152 | char *_kwnames[] = { "self", NULL }; | |
4153 | ||
4154 | self = self; | |
4155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetDC",_kwnames,&_argo0)) | |
4156 | return NULL; | |
4157 | if (_argo0) { | |
4158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetDC. Expected _wxPyPrintout_p."); | |
4161 | return NULL; | |
4162 | } | |
4163 | } | |
4164 | { | |
4165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4166 | _result = (wxDC *)wxPrintout_GetDC(_arg0); | |
4167 | ||
4168 | wxPyEndAllowThreads(__tstate); | |
4169 | if (PyErr_Occurred()) return NULL; | |
4170 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4171 | return _resultobj; | |
4172 | } | |
4173 | ||
4174 | #define wxPrintout_GetPageSizeMM(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizeMM(_swigarg0,_swigarg1)) | |
4175 | static PyObject *_wrap_wxPrintout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4176 | PyObject * _resultobj; | |
4177 | wxPyPrintout * _arg0; | |
4178 | int * _arg1; | |
4179 | int temp; | |
4180 | int * _arg2; | |
4181 | int temp0; | |
4182 | PyObject * _argo0 = 0; | |
4183 | char *_kwnames[] = { "self", NULL }; | |
4184 | ||
4185 | self = self; | |
4186 | { | |
4187 | _arg1 = &temp; | |
4188 | } | |
4189 | { | |
4190 | _arg2 = &temp0; | |
4191 | } | |
4192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizeMM",_kwnames,&_argo0)) | |
4193 | return NULL; | |
4194 | if (_argo0) { | |
4195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizeMM. Expected _wxPyPrintout_p."); | |
4198 | return NULL; | |
4199 | } | |
4200 | } | |
4201 | { | |
4202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4203 | wxPrintout_GetPageSizeMM(_arg0,_arg1,_arg2); | |
4204 | ||
4205 | wxPyEndAllowThreads(__tstate); | |
4206 | if (PyErr_Occurred()) return NULL; | |
4207 | } Py_INCREF(Py_None); | |
4208 | _resultobj = Py_None; | |
4209 | { | |
4210 | PyObject *o; | |
4211 | o = PyInt_FromLong((long) (*_arg1)); | |
4212 | _resultobj = t_output_helper(_resultobj, o); | |
4213 | } | |
4214 | { | |
4215 | PyObject *o; | |
4216 | o = PyInt_FromLong((long) (*_arg2)); | |
4217 | _resultobj = t_output_helper(_resultobj, o); | |
4218 | } | |
4219 | return _resultobj; | |
4220 | } | |
4221 | ||
4222 | #define wxPrintout_GetPageSizePixels(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPageSizePixels(_swigarg0,_swigarg1)) | |
4223 | static PyObject *_wrap_wxPrintout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4224 | PyObject * _resultobj; | |
4225 | wxPyPrintout * _arg0; | |
4226 | int * _arg1; | |
4227 | int temp; | |
4228 | int * _arg2; | |
4229 | int temp0; | |
4230 | PyObject * _argo0 = 0; | |
4231 | char *_kwnames[] = { "self", NULL }; | |
4232 | ||
4233 | self = self; | |
4234 | { | |
4235 | _arg1 = &temp; | |
4236 | } | |
4237 | { | |
4238 | _arg2 = &temp0; | |
4239 | } | |
4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPageSizePixels",_kwnames,&_argo0)) | |
4241 | return NULL; | |
4242 | if (_argo0) { | |
4243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPageSizePixels. Expected _wxPyPrintout_p."); | |
4246 | return NULL; | |
4247 | } | |
4248 | } | |
4249 | { | |
4250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4251 | wxPrintout_GetPageSizePixels(_arg0,_arg1,_arg2); | |
4252 | ||
4253 | wxPyEndAllowThreads(__tstate); | |
4254 | if (PyErr_Occurred()) return NULL; | |
4255 | } Py_INCREF(Py_None); | |
4256 | _resultobj = Py_None; | |
4257 | { | |
4258 | PyObject *o; | |
4259 | o = PyInt_FromLong((long) (*_arg1)); | |
4260 | _resultobj = t_output_helper(_resultobj, o); | |
4261 | } | |
4262 | { | |
4263 | PyObject *o; | |
4264 | o = PyInt_FromLong((long) (*_arg2)); | |
4265 | _resultobj = t_output_helper(_resultobj, o); | |
4266 | } | |
4267 | return _resultobj; | |
4268 | } | |
4269 | ||
4270 | #define wxPrintout_GetPPIPrinter(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIPrinter(_swigarg0,_swigarg1)) | |
4271 | static PyObject *_wrap_wxPrintout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4272 | PyObject * _resultobj; | |
4273 | wxPyPrintout * _arg0; | |
4274 | int * _arg1; | |
4275 | int temp; | |
4276 | int * _arg2; | |
4277 | int temp0; | |
4278 | PyObject * _argo0 = 0; | |
4279 | char *_kwnames[] = { "self", NULL }; | |
4280 | ||
4281 | self = self; | |
4282 | { | |
4283 | _arg1 = &temp; | |
4284 | } | |
4285 | { | |
4286 | _arg2 = &temp0; | |
4287 | } | |
4288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIPrinter",_kwnames,&_argo0)) | |
4289 | return NULL; | |
4290 | if (_argo0) { | |
4291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIPrinter. Expected _wxPyPrintout_p."); | |
4294 | return NULL; | |
4295 | } | |
4296 | } | |
4297 | { | |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4299 | wxPrintout_GetPPIPrinter(_arg0,_arg1,_arg2); | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
4302 | if (PyErr_Occurred()) return NULL; | |
4303 | } Py_INCREF(Py_None); | |
4304 | _resultobj = Py_None; | |
4305 | { | |
4306 | PyObject *o; | |
4307 | o = PyInt_FromLong((long) (*_arg1)); | |
4308 | _resultobj = t_output_helper(_resultobj, o); | |
4309 | } | |
4310 | { | |
4311 | PyObject *o; | |
4312 | o = PyInt_FromLong((long) (*_arg2)); | |
4313 | _resultobj = t_output_helper(_resultobj, o); | |
4314 | } | |
4315 | return _resultobj; | |
4316 | } | |
4317 | ||
4318 | #define wxPrintout_GetPPIScreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPPIScreen(_swigarg0,_swigarg1)) | |
4319 | static PyObject *_wrap_wxPrintout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4320 | PyObject * _resultobj; | |
4321 | wxPyPrintout * _arg0; | |
4322 | int * _arg1; | |
4323 | int temp; | |
4324 | int * _arg2; | |
4325 | int temp0; | |
4326 | PyObject * _argo0 = 0; | |
4327 | char *_kwnames[] = { "self", NULL }; | |
4328 | ||
4329 | self = self; | |
4330 | { | |
4331 | _arg1 = &temp; | |
4332 | } | |
4333 | { | |
4334 | _arg2 = &temp0; | |
4335 | } | |
4336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_GetPPIScreen",_kwnames,&_argo0)) | |
4337 | return NULL; | |
4338 | if (_argo0) { | |
4339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_GetPPIScreen. Expected _wxPyPrintout_p."); | |
4342 | return NULL; | |
4343 | } | |
4344 | } | |
4345 | { | |
4346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4347 | wxPrintout_GetPPIScreen(_arg0,_arg1,_arg2); | |
4348 | ||
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) return NULL; | |
4351 | } Py_INCREF(Py_None); | |
4352 | _resultobj = Py_None; | |
4353 | { | |
4354 | PyObject *o; | |
4355 | o = PyInt_FromLong((long) (*_arg1)); | |
4356 | _resultobj = t_output_helper(_resultobj, o); | |
4357 | } | |
4358 | { | |
4359 | PyObject *o; | |
4360 | o = PyInt_FromLong((long) (*_arg2)); | |
4361 | _resultobj = t_output_helper(_resultobj, o); | |
4362 | } | |
4363 | return _resultobj; | |
4364 | } | |
4365 | ||
4366 | #define wxPrintout_IsPreview(_swigobj) (_swigobj->IsPreview()) | |
4367 | static PyObject *_wrap_wxPrintout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4368 | PyObject * _resultobj; | |
4369 | bool _result; | |
4370 | wxPyPrintout * _arg0; | |
4371 | PyObject * _argo0 = 0; | |
4372 | char *_kwnames[] = { "self", NULL }; | |
4373 | ||
4374 | self = self; | |
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_IsPreview",_kwnames,&_argo0)) | |
4376 | return NULL; | |
4377 | if (_argo0) { | |
4378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_IsPreview. Expected _wxPyPrintout_p."); | |
4381 | return NULL; | |
4382 | } | |
4383 | } | |
4384 | { | |
4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4386 | _result = (bool )wxPrintout_IsPreview(_arg0); | |
4387 | ||
4388 | wxPyEndAllowThreads(__tstate); | |
4389 | if (PyErr_Occurred()) return NULL; | |
4390 | } _resultobj = Py_BuildValue("i",_result); | |
4391 | return _resultobj; | |
4392 | } | |
4393 | ||
4394 | #define wxPrintout_base_OnBeginDocument(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnBeginDocument(_swigarg0,_swigarg1)) | |
4395 | static PyObject *_wrap_wxPrintout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4396 | PyObject * _resultobj; | |
4397 | bool _result; | |
4398 | wxPyPrintout * _arg0; | |
4399 | int _arg1; | |
4400 | int _arg2; | |
4401 | PyObject * _argo0 = 0; | |
4402 | char *_kwnames[] = { "self","startPage","endPage", NULL }; | |
4403 | ||
4404 | self = self; | |
4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxPrintout_base_OnBeginDocument",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4406 | return NULL; | |
4407 | if (_argo0) { | |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginDocument. Expected _wxPyPrintout_p."); | |
4411 | return NULL; | |
4412 | } | |
4413 | } | |
4414 | { | |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | _result = (bool )wxPrintout_base_OnBeginDocument(_arg0,_arg1,_arg2); | |
4417 | ||
4418 | wxPyEndAllowThreads(__tstate); | |
4419 | if (PyErr_Occurred()) return NULL; | |
4420 | } _resultobj = Py_BuildValue("i",_result); | |
4421 | return _resultobj; | |
4422 | } | |
4423 | ||
4424 | #define wxPrintout_base_OnEndDocument(_swigobj) (_swigobj->base_OnEndDocument()) | |
4425 | static PyObject *_wrap_wxPrintout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4426 | PyObject * _resultobj; | |
4427 | wxPyPrintout * _arg0; | |
4428 | PyObject * _argo0 = 0; | |
4429 | char *_kwnames[] = { "self", NULL }; | |
4430 | ||
4431 | self = self; | |
4432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndDocument",_kwnames,&_argo0)) | |
4433 | return NULL; | |
4434 | if (_argo0) { | |
4435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndDocument. Expected _wxPyPrintout_p."); | |
4438 | return NULL; | |
4439 | } | |
4440 | } | |
4441 | { | |
4442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4443 | wxPrintout_base_OnEndDocument(_arg0); | |
4444 | ||
4445 | wxPyEndAllowThreads(__tstate); | |
4446 | if (PyErr_Occurred()) return NULL; | |
4447 | } Py_INCREF(Py_None); | |
4448 | _resultobj = Py_None; | |
4449 | return _resultobj; | |
4450 | } | |
4451 | ||
4452 | #define wxPrintout_base_OnBeginPrinting(_swigobj) (_swigobj->base_OnBeginPrinting()) | |
4453 | static PyObject *_wrap_wxPrintout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4454 | PyObject * _resultobj; | |
4455 | wxPyPrintout * _arg0; | |
4456 | PyObject * _argo0 = 0; | |
4457 | char *_kwnames[] = { "self", NULL }; | |
4458 | ||
4459 | self = self; | |
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnBeginPrinting",_kwnames,&_argo0)) | |
4461 | return NULL; | |
4462 | if (_argo0) { | |
4463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnBeginPrinting. Expected _wxPyPrintout_p."); | |
4466 | return NULL; | |
4467 | } | |
4468 | } | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | wxPrintout_base_OnBeginPrinting(_arg0); | |
4472 | ||
4473 | wxPyEndAllowThreads(__tstate); | |
4474 | if (PyErr_Occurred()) return NULL; | |
4475 | } Py_INCREF(Py_None); | |
4476 | _resultobj = Py_None; | |
4477 | return _resultobj; | |
4478 | } | |
4479 | ||
4480 | #define wxPrintout_base_OnEndPrinting(_swigobj) (_swigobj->base_OnEndPrinting()) | |
4481 | static PyObject *_wrap_wxPrintout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4482 | PyObject * _resultobj; | |
4483 | wxPyPrintout * _arg0; | |
4484 | PyObject * _argo0 = 0; | |
4485 | char *_kwnames[] = { "self", NULL }; | |
4486 | ||
4487 | self = self; | |
4488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnEndPrinting",_kwnames,&_argo0)) | |
4489 | return NULL; | |
4490 | if (_argo0) { | |
4491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnEndPrinting. Expected _wxPyPrintout_p."); | |
4494 | return NULL; | |
4495 | } | |
4496 | } | |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | wxPrintout_base_OnEndPrinting(_arg0); | |
4500 | ||
4501 | wxPyEndAllowThreads(__tstate); | |
4502 | if (PyErr_Occurred()) return NULL; | |
4503 | } Py_INCREF(Py_None); | |
4504 | _resultobj = Py_None; | |
4505 | return _resultobj; | |
4506 | } | |
4507 | ||
4508 | #define wxPrintout_base_OnPreparePrinting(_swigobj) (_swigobj->base_OnPreparePrinting()) | |
4509 | static PyObject *_wrap_wxPrintout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4510 | PyObject * _resultobj; | |
4511 | wxPyPrintout * _arg0; | |
4512 | PyObject * _argo0 = 0; | |
4513 | char *_kwnames[] = { "self", NULL }; | |
4514 | ||
4515 | self = self; | |
4516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_OnPreparePrinting",_kwnames,&_argo0)) | |
4517 | return NULL; | |
4518 | if (_argo0) { | |
4519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_OnPreparePrinting. Expected _wxPyPrintout_p."); | |
4522 | return NULL; | |
4523 | } | |
4524 | } | |
4525 | { | |
4526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4527 | wxPrintout_base_OnPreparePrinting(_arg0); | |
4528 | ||
4529 | wxPyEndAllowThreads(__tstate); | |
4530 | if (PyErr_Occurred()) return NULL; | |
4531 | } Py_INCREF(Py_None); | |
4532 | _resultobj = Py_None; | |
4533 | return _resultobj; | |
4534 | } | |
4535 | ||
4536 | #define wxPrintout_base_GetPageInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->base_GetPageInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4537 | static PyObject *_wrap_wxPrintout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4538 | PyObject * _resultobj; | |
4539 | wxPyPrintout * _arg0; | |
4540 | int * _arg1; | |
4541 | int temp; | |
4542 | int * _arg2; | |
4543 | int temp0; | |
4544 | int * _arg3; | |
4545 | int temp1; | |
4546 | int * _arg4; | |
4547 | int temp2; | |
4548 | PyObject * _argo0 = 0; | |
4549 | char *_kwnames[] = { "self", NULL }; | |
4550 | ||
4551 | self = self; | |
4552 | { | |
4553 | _arg1 = &temp; | |
4554 | } | |
4555 | { | |
4556 | _arg2 = &temp0; | |
4557 | } | |
4558 | { | |
4559 | _arg3 = &temp1; | |
4560 | } | |
4561 | { | |
4562 | _arg4 = &temp2; | |
4563 | } | |
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintout_base_GetPageInfo",_kwnames,&_argo0)) | |
4565 | return NULL; | |
4566 | if (_argo0) { | |
4567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_GetPageInfo. Expected _wxPyPrintout_p."); | |
4570 | return NULL; | |
4571 | } | |
4572 | } | |
4573 | { | |
4574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4575 | wxPrintout_base_GetPageInfo(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4576 | ||
4577 | wxPyEndAllowThreads(__tstate); | |
4578 | if (PyErr_Occurred()) return NULL; | |
4579 | } Py_INCREF(Py_None); | |
4580 | _resultobj = Py_None; | |
4581 | { | |
4582 | PyObject *o; | |
4583 | o = PyInt_FromLong((long) (*_arg1)); | |
4584 | _resultobj = t_output_helper(_resultobj, o); | |
4585 | } | |
4586 | { | |
4587 | PyObject *o; | |
4588 | o = PyInt_FromLong((long) (*_arg2)); | |
4589 | _resultobj = t_output_helper(_resultobj, o); | |
4590 | } | |
4591 | { | |
4592 | PyObject *o; | |
4593 | o = PyInt_FromLong((long) (*_arg3)); | |
4594 | _resultobj = t_output_helper(_resultobj, o); | |
4595 | } | |
4596 | { | |
4597 | PyObject *o; | |
4598 | o = PyInt_FromLong((long) (*_arg4)); | |
4599 | _resultobj = t_output_helper(_resultobj, o); | |
4600 | } | |
4601 | return _resultobj; | |
4602 | } | |
4603 | ||
4604 | #define wxPrintout_base_HasPage(_swigobj,_swigarg0) (_swigobj->base_HasPage(_swigarg0)) | |
4605 | static PyObject *_wrap_wxPrintout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4606 | PyObject * _resultobj; | |
4607 | bool _result; | |
4608 | wxPyPrintout * _arg0; | |
4609 | int _arg1; | |
4610 | PyObject * _argo0 = 0; | |
4611 | char *_kwnames[] = { "self","page", NULL }; | |
4612 | ||
4613 | self = self; | |
4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintout_base_HasPage",_kwnames,&_argo0,&_arg1)) | |
4615 | return NULL; | |
4616 | if (_argo0) { | |
4617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
4619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintout_base_HasPage. Expected _wxPyPrintout_p."); | |
4620 | return NULL; | |
4621 | } | |
4622 | } | |
4623 | { | |
4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4625 | _result = (bool )wxPrintout_base_HasPage(_arg0,_arg1); | |
4626 | ||
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) return NULL; | |
4629 | } _resultobj = Py_BuildValue("i",_result); | |
4630 | return _resultobj; | |
4631 | } | |
4632 | ||
4633 | static void *SwigwxPrinterTowxObject(void *ptr) { | |
4634 | wxPrinter *src; | |
4635 | wxObject *dest; | |
4636 | src = (wxPrinter *) ptr; | |
4637 | dest = (wxObject *) src; | |
4638 | return (void *) dest; | |
4639 | } | |
4640 | ||
4641 | #define new_wxPrinter(_swigarg0) (new wxPrinter(_swigarg0)) | |
4642 | static PyObject *_wrap_new_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4643 | PyObject * _resultobj; | |
4644 | wxPrinter * _result; | |
4645 | wxPrintDialogData * _arg0 = (wxPrintDialogData *) NULL; | |
4646 | PyObject * _argo0 = 0; | |
4647 | char *_kwnames[] = { "data", NULL }; | |
4648 | char _ptemp[128]; | |
4649 | ||
4650 | self = self; | |
4651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxPrinter",_kwnames,&_argo0)) | |
4652 | return NULL; | |
4653 | if (_argo0) { | |
4654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintDialogData_p")) { | |
4656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrinter. Expected _wxPrintDialogData_p."); | |
4657 | return NULL; | |
4658 | } | |
4659 | } | |
4660 | { | |
4661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4662 | _result = (wxPrinter *)new_wxPrinter(_arg0); | |
4663 | ||
4664 | wxPyEndAllowThreads(__tstate); | |
4665 | if (PyErr_Occurred()) return NULL; | |
4666 | } if (_result) { | |
4667 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrinter_p"); | |
4668 | _resultobj = Py_BuildValue("s",_ptemp); | |
4669 | } else { | |
4670 | Py_INCREF(Py_None); | |
4671 | _resultobj = Py_None; | |
4672 | } | |
4673 | return _resultobj; | |
4674 | } | |
4675 | ||
4676 | #define delete_wxPrinter(_swigobj) (delete _swigobj) | |
4677 | static PyObject *_wrap_delete_wxPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4678 | PyObject * _resultobj; | |
4679 | wxPrinter * _arg0; | |
4680 | PyObject * _argo0 = 0; | |
4681 | char *_kwnames[] = { "self", NULL }; | |
4682 | ||
4683 | self = self; | |
4684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPrinter",_kwnames,&_argo0)) | |
4685 | return NULL; | |
4686 | if (_argo0) { | |
4687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPrinter. Expected _wxPrinter_p."); | |
4690 | return NULL; | |
4691 | } | |
4692 | } | |
4693 | { | |
4694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4695 | delete_wxPrinter(_arg0); | |
4696 | ||
4697 | wxPyEndAllowThreads(__tstate); | |
4698 | if (PyErr_Occurred()) return NULL; | |
4699 | } Py_INCREF(Py_None); | |
4700 | _resultobj = Py_None; | |
4701 | return _resultobj; | |
4702 | } | |
4703 | ||
4704 | #define wxPrinter_CreateAbortWindow(_swigobj,_swigarg0,_swigarg1) (_swigobj->CreateAbortWindow(_swigarg0,_swigarg1)) | |
4705 | static PyObject *_wrap_wxPrinter_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4706 | PyObject * _resultobj; | |
4707 | wxPrinter * _arg0; | |
4708 | wxWindow * _arg1; | |
4709 | wxPyPrintout * _arg2; | |
4710 | PyObject * _argo0 = 0; | |
4711 | PyObject * _argo1 = 0; | |
4712 | PyObject * _argo2 = 0; | |
4713 | char *_kwnames[] = { "self","parent","printout", NULL }; | |
4714 | ||
4715 | self = self; | |
4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrinter_CreateAbortWindow",_kwnames,&_argo0,&_argo1,&_argo2)) | |
4717 | return NULL; | |
4718 | if (_argo0) { | |
4719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_CreateAbortWindow. Expected _wxPrinter_p."); | |
4722 | return NULL; | |
4723 | } | |
4724 | } | |
4725 | if (_argo1) { | |
4726 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4727 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_CreateAbortWindow. Expected _wxWindow_p."); | |
4729 | return NULL; | |
4730 | } | |
4731 | } | |
4732 | if (_argo2) { | |
4733 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4734 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) { | |
4735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_CreateAbortWindow. Expected _wxPyPrintout_p."); | |
4736 | return NULL; | |
4737 | } | |
4738 | } | |
4739 | { | |
4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4741 | wxPrinter_CreateAbortWindow(_arg0,_arg1,_arg2); | |
4742 | ||
4743 | wxPyEndAllowThreads(__tstate); | |
4744 | if (PyErr_Occurred()) return NULL; | |
4745 | } Py_INCREF(Py_None); | |
4746 | _resultobj = Py_None; | |
4747 | return _resultobj; | |
4748 | } | |
4749 | ||
4750 | #define wxPrinter_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData()) | |
4751 | static PyObject *_wrap_wxPrinter_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject * _resultobj; | |
4753 | wxPrintDialogData * _result; | |
4754 | wxPrinter * _arg0; | |
4755 | PyObject * _argo0 = 0; | |
4756 | char *_kwnames[] = { "self", NULL }; | |
4757 | char _ptemp[128]; | |
4758 | ||
4759 | self = self; | |
4760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrinter_GetPrintDialogData",_kwnames,&_argo0)) | |
4761 | return NULL; | |
4762 | if (_argo0) { | |
4763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_GetPrintDialogData. Expected _wxPrinter_p."); | |
4766 | return NULL; | |
4767 | } | |
4768 | } | |
4769 | { | |
4770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4771 | wxPrintDialogData & _result_ref = wxPrinter_GetPrintDialogData(_arg0); | |
4772 | _result = (wxPrintDialogData *) &_result_ref; | |
4773 | ||
4774 | wxPyEndAllowThreads(__tstate); | |
4775 | if (PyErr_Occurred()) return NULL; | |
4776 | } if (_result) { | |
4777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p"); | |
4778 | _resultobj = Py_BuildValue("s",_ptemp); | |
4779 | } else { | |
4780 | Py_INCREF(Py_None); | |
4781 | _resultobj = Py_None; | |
4782 | } | |
4783 | return _resultobj; | |
4784 | } | |
4785 | ||
4786 | #define wxPrinter_Print(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Print(_swigarg0,_swigarg1,_swigarg2)) | |
4787 | static PyObject *_wrap_wxPrinter_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4788 | PyObject * _resultobj; | |
4789 | bool _result; | |
4790 | wxPrinter * _arg0; | |
4791 | wxWindow * _arg1; | |
4792 | wxPyPrintout * _arg2; | |
4793 | int _arg3 = (int ) TRUE; | |
4794 | PyObject * _argo0 = 0; | |
4795 | PyObject * _argo1 = 0; | |
4796 | PyObject * _argo2 = 0; | |
4797 | char *_kwnames[] = { "self","parent","printout","prompt", NULL }; | |
4798 | ||
4799 | self = self; | |
4800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPrinter_Print",_kwnames,&_argo0,&_argo1,&_argo2,&_arg3)) | |
4801 | return NULL; | |
4802 | if (_argo0) { | |
4803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Print. Expected _wxPrinter_p."); | |
4806 | return NULL; | |
4807 | } | |
4808 | } | |
4809 | if (_argo1) { | |
4810 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4811 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Print. Expected _wxWindow_p."); | |
4813 | return NULL; | |
4814 | } | |
4815 | } | |
4816 | if (_argo2) { | |
4817 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4818 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) { | |
4819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_Print. Expected _wxPyPrintout_p."); | |
4820 | return NULL; | |
4821 | } | |
4822 | } | |
4823 | { | |
4824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4825 | _result = (bool )wxPrinter_Print(_arg0,_arg1,_arg2,_arg3); | |
4826 | ||
4827 | wxPyEndAllowThreads(__tstate); | |
4828 | if (PyErr_Occurred()) return NULL; | |
4829 | } _resultobj = Py_BuildValue("i",_result); | |
4830 | return _resultobj; | |
4831 | } | |
4832 | ||
4833 | #define wxPrinter_PrintDialog(_swigobj,_swigarg0) (_swigobj->PrintDialog(_swigarg0)) | |
4834 | static PyObject *_wrap_wxPrinter_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4835 | PyObject * _resultobj; | |
4836 | wxDC * _result; | |
4837 | wxPrinter * _arg0; | |
4838 | wxWindow * _arg1; | |
4839 | PyObject * _argo0 = 0; | |
4840 | PyObject * _argo1 = 0; | |
4841 | char *_kwnames[] = { "self","parent", NULL }; | |
4842 | ||
4843 | self = self; | |
4844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_PrintDialog",_kwnames,&_argo0,&_argo1)) | |
4845 | return NULL; | |
4846 | if (_argo0) { | |
4847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_PrintDialog. Expected _wxPrinter_p."); | |
4850 | return NULL; | |
4851 | } | |
4852 | } | |
4853 | if (_argo1) { | |
4854 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4855 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_PrintDialog. Expected _wxWindow_p."); | |
4857 | return NULL; | |
4858 | } | |
4859 | } | |
4860 | { | |
4861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4862 | _result = (wxDC *)wxPrinter_PrintDialog(_arg0,_arg1); | |
4863 | ||
4864 | wxPyEndAllowThreads(__tstate); | |
4865 | if (PyErr_Occurred()) return NULL; | |
4866 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4867 | return _resultobj; | |
4868 | } | |
4869 | ||
4870 | #define wxPrinter_ReportError(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ReportError(_swigarg0,_swigarg1,_swigarg2)) | |
4871 | static PyObject *_wrap_wxPrinter_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4872 | PyObject * _resultobj; | |
4873 | wxPrinter * _arg0; | |
4874 | wxWindow * _arg1; | |
4875 | wxPyPrintout * _arg2; | |
4876 | wxString * _arg3; | |
4877 | PyObject * _argo0 = 0; | |
4878 | PyObject * _argo1 = 0; | |
4879 | PyObject * _argo2 = 0; | |
4880 | PyObject * _obj3 = 0; | |
4881 | char *_kwnames[] = { "self","parent","printout","message", NULL }; | |
4882 | ||
4883 | self = self; | |
4884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxPrinter_ReportError",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3)) | |
4885 | return NULL; | |
4886 | if (_argo0) { | |
4887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_ReportError. Expected _wxPrinter_p."); | |
4890 | return NULL; | |
4891 | } | |
4892 | } | |
4893 | if (_argo1) { | |
4894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_ReportError. Expected _wxWindow_p."); | |
4897 | return NULL; | |
4898 | } | |
4899 | } | |
4900 | if (_argo2) { | |
4901 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4902 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyPrintout_p")) { | |
4903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrinter_ReportError. Expected _wxPyPrintout_p."); | |
4904 | return NULL; | |
4905 | } | |
4906 | } | |
4907 | { | |
4908 | _arg3 = wxString_in_helper(_obj3); | |
4909 | if (_arg3 == NULL) | |
4910 | return NULL; | |
4911 | } | |
4912 | { | |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4914 | wxPrinter_ReportError(_arg0,_arg1,_arg2,*_arg3); | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
4917 | if (PyErr_Occurred()) return NULL; | |
4918 | } Py_INCREF(Py_None); | |
4919 | _resultobj = Py_None; | |
4920 | { | |
4921 | if (_obj3) | |
4922 | delete _arg3; | |
4923 | } | |
4924 | return _resultobj; | |
4925 | } | |
4926 | ||
4927 | #define wxPrinter_Setup(_swigobj,_swigarg0) (_swigobj->Setup(_swigarg0)) | |
4928 | static PyObject *_wrap_wxPrinter_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject * _resultobj; | |
4930 | bool _result; | |
4931 | wxPrinter * _arg0; | |
4932 | wxWindow * _arg1; | |
4933 | PyObject * _argo0 = 0; | |
4934 | PyObject * _argo1 = 0; | |
4935 | char *_kwnames[] = { "self","parent", NULL }; | |
4936 | ||
4937 | self = self; | |
4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrinter_Setup",_kwnames,&_argo0,&_argo1)) | |
4939 | return NULL; | |
4940 | if (_argo0) { | |
4941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_Setup. Expected _wxPrinter_p."); | |
4944 | return NULL; | |
4945 | } | |
4946 | } | |
4947 | if (_argo1) { | |
4948 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4949 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
4950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrinter_Setup. Expected _wxWindow_p."); | |
4951 | return NULL; | |
4952 | } | |
4953 | } | |
4954 | { | |
4955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4956 | _result = (bool )wxPrinter_Setup(_arg0,_arg1); | |
4957 | ||
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) return NULL; | |
4960 | } _resultobj = Py_BuildValue("i",_result); | |
4961 | return _resultobj; | |
4962 | } | |
4963 | ||
4964 | #define wxPrinter_GetAbort(_swigobj) (_swigobj->GetAbort()) | |
4965 | static PyObject *_wrap_wxPrinter_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4966 | PyObject * _resultobj; | |
4967 | bool _result; | |
4968 | wxPrinter * _arg0; | |
4969 | PyObject * _argo0 = 0; | |
4970 | char *_kwnames[] = { "self", NULL }; | |
4971 | ||
4972 | self = self; | |
4973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrinter_GetAbort",_kwnames,&_argo0)) | |
4974 | return NULL; | |
4975 | if (_argo0) { | |
4976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrinter_p")) { | |
4978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrinter_GetAbort. Expected _wxPrinter_p."); | |
4979 | return NULL; | |
4980 | } | |
4981 | } | |
4982 | { | |
4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4984 | _result = (bool )wxPrinter_GetAbort(_arg0); | |
4985 | ||
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) return NULL; | |
4988 | } _resultobj = Py_BuildValue("i",_result); | |
4989 | return _resultobj; | |
4990 | } | |
4991 | ||
4992 | static PyObject *_wrap_wxPrinter_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4993 | PyObject * _resultobj; | |
4994 | wxPrinterError _result; | |
4995 | char *_kwnames[] = { NULL }; | |
4996 | ||
4997 | self = self; | |
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxPrinter_GetLastError",_kwnames)) | |
4999 | return NULL; | |
5000 | { | |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | _result = (wxPrinterError )wxPrinter::GetLastError(); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) return NULL; | |
5006 | } _resultobj = Py_BuildValue("i",_result); | |
5007 | return _resultobj; | |
5008 | } | |
5009 | ||
5010 | static void *SwigwxPrintAbortDialogTowxDialog(void *ptr) { | |
5011 | wxPrintAbortDialog *src; | |
5012 | wxDialog *dest; | |
5013 | src = (wxPrintAbortDialog *) ptr; | |
5014 | dest = (wxDialog *) src; | |
5015 | return (void *) dest; | |
5016 | } | |
5017 | ||
5018 | static void *SwigwxPrintAbortDialogTowxTopLevelWindow(void *ptr) { | |
5019 | wxPrintAbortDialog *src; | |
5020 | wxTopLevelWindow *dest; | |
5021 | src = (wxPrintAbortDialog *) ptr; | |
5022 | dest = (wxTopLevelWindow *) src; | |
5023 | return (void *) dest; | |
5024 | } | |
5025 | ||
5026 | static void *SwigwxPrintAbortDialogTowxWindow(void *ptr) { | |
5027 | wxPrintAbortDialog *src; | |
5028 | wxWindow *dest; | |
5029 | src = (wxPrintAbortDialog *) ptr; | |
5030 | dest = (wxWindow *) src; | |
5031 | return (void *) dest; | |
5032 | } | |
5033 | ||
5034 | static void *SwigwxPrintAbortDialogTowxEvtHandler(void *ptr) { | |
5035 | wxPrintAbortDialog *src; | |
5036 | wxEvtHandler *dest; | |
5037 | src = (wxPrintAbortDialog *) ptr; | |
5038 | dest = (wxEvtHandler *) src; | |
5039 | return (void *) dest; | |
5040 | } | |
5041 | ||
5042 | static void *SwigwxPrintAbortDialogTowxObject(void *ptr) { | |
5043 | wxPrintAbortDialog *src; | |
5044 | wxObject *dest; | |
5045 | src = (wxPrintAbortDialog *) ptr; | |
5046 | dest = (wxObject *) src; | |
5047 | return (void *) dest; | |
5048 | } | |
5049 | ||
5050 | #define new_wxPrintAbortDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPrintAbortDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
5051 | static PyObject *_wrap_new_wxPrintAbortDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5052 | PyObject * _resultobj; | |
5053 | wxPrintAbortDialog * _result; | |
5054 | wxWindow * _arg0; | |
5055 | wxString * _arg1; | |
5056 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5057 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5058 | long _arg4 = (long ) 0; | |
5059 | wxString * _arg5 = (wxString *) &wxPyDialogNameStr; | |
5060 | PyObject * _argo0 = 0; | |
5061 | PyObject * _obj1 = 0; | |
5062 | wxPoint temp; | |
5063 | PyObject * _obj2 = 0; | |
5064 | wxSize temp0; | |
5065 | PyObject * _obj3 = 0; | |
5066 | PyObject * _obj5 = 0; | |
5067 | char *_kwnames[] = { "parent","title","pos","size","style","name", NULL }; | |
5068 | char _ptemp[128]; | |
5069 | ||
5070 | self = self; | |
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxPrintAbortDialog",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
5072 | return NULL; | |
5073 | if (_argo0) { | |
5074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintAbortDialog. Expected _wxWindow_p."); | |
5077 | return NULL; | |
5078 | } | |
5079 | } | |
5080 | { | |
5081 | _arg1 = wxString_in_helper(_obj1); | |
5082 | if (_arg1 == NULL) | |
5083 | return NULL; | |
5084 | } | |
5085 | if (_obj2) | |
5086 | { | |
5087 | _arg2 = &temp; | |
5088 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5089 | return NULL; | |
5090 | } | |
5091 | if (_obj3) | |
5092 | { | |
5093 | _arg3 = &temp0; | |
5094 | if (! wxSize_helper(_obj3, &_arg3)) | |
5095 | return NULL; | |
5096 | } | |
5097 | if (_obj5) | |
5098 | { | |
5099 | _arg5 = wxString_in_helper(_obj5); | |
5100 | if (_arg5 == NULL) | |
5101 | return NULL; | |
5102 | } | |
5103 | { | |
5104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5105 | _result = (wxPrintAbortDialog *)new_wxPrintAbortDialog(_arg0,*_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
5106 | ||
5107 | wxPyEndAllowThreads(__tstate); | |
5108 | if (PyErr_Occurred()) return NULL; | |
5109 | } if (_result) { | |
5110 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintAbortDialog_p"); | |
5111 | _resultobj = Py_BuildValue("s",_ptemp); | |
5112 | } else { | |
5113 | Py_INCREF(Py_None); | |
5114 | _resultobj = Py_None; | |
5115 | } | |
5116 | { | |
5117 | if (_obj1) | |
5118 | delete _arg1; | |
5119 | } | |
5120 | { | |
5121 | if (_obj5) | |
5122 | delete _arg5; | |
5123 | } | |
5124 | return _resultobj; | |
5125 | } | |
5126 | ||
5127 | static void *SwigwxPrintPreviewTowxObject(void *ptr) { | |
5128 | wxPrintPreview *src; | |
5129 | wxObject *dest; | |
5130 | src = (wxPrintPreview *) ptr; | |
5131 | dest = (wxObject *) src; | |
5132 | return (void *) dest; | |
5133 | } | |
5134 | ||
5135 | #define new_wxPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPrintPreview(_swigarg0,_swigarg1,_swigarg2)) | |
5136 | static PyObject *_wrap_new_wxPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5137 | PyObject * _resultobj; | |
5138 | wxPrintPreview * _result; | |
5139 | wxPyPrintout * _arg0; | |
5140 | wxPyPrintout * _arg1; | |
5141 | wxPrintData * _arg2 = (wxPrintData *) NULL; | |
5142 | PyObject * _argo0 = 0; | |
5143 | PyObject * _argo1 = 0; | |
5144 | PyObject * _argo2 = 0; | |
5145 | char *_kwnames[] = { "printout","printoutForPrinting","data", NULL }; | |
5146 | char _ptemp[128]; | |
5147 | ||
5148 | self = self; | |
5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:new_wxPrintPreview",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5150 | return NULL; | |
5151 | if (_argo0) { | |
5152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
5154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPrintPreview. Expected _wxPyPrintout_p."); | |
5155 | return NULL; | |
5156 | } | |
5157 | } | |
5158 | if (_argo1) { | |
5159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) { | |
5161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPrintPreview. Expected _wxPyPrintout_p."); | |
5162 | return NULL; | |
5163 | } | |
5164 | } | |
5165 | if (_argo2) { | |
5166 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5167 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPrintData_p")) { | |
5168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPrintPreview. Expected _wxPrintData_p."); | |
5169 | return NULL; | |
5170 | } | |
5171 | } | |
5172 | { | |
5173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5174 | _result = (wxPrintPreview *)new_wxPrintPreview(_arg0,_arg1,_arg2); | |
5175 | ||
5176 | wxPyEndAllowThreads(__tstate); | |
5177 | if (PyErr_Occurred()) return NULL; | |
5178 | } if (_result) { | |
5179 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p"); | |
5180 | _resultobj = Py_BuildValue("s",_ptemp); | |
5181 | } else { | |
5182 | Py_INCREF(Py_None); | |
5183 | _resultobj = Py_None; | |
5184 | } | |
5185 | return _resultobj; | |
5186 | } | |
5187 | ||
5188 | #define wxPrintPreview_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->SetCurrentPage(_swigarg0)) | |
5189 | static PyObject *_wrap_wxPrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5190 | PyObject * _resultobj; | |
5191 | bool _result; | |
5192 | wxPrintPreview * _arg0; | |
5193 | int _arg1; | |
5194 | PyObject * _argo0 = 0; | |
5195 | char *_kwnames[] = { "self","pageNum", NULL }; | |
5196 | ||
5197 | self = self; | |
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetCurrentPage",_kwnames,&_argo0,&_arg1)) | |
5199 | return NULL; | |
5200 | if (_argo0) { | |
5201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCurrentPage. Expected _wxPrintPreview_p."); | |
5204 | return NULL; | |
5205 | } | |
5206 | } | |
5207 | { | |
5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5209 | _result = (bool )wxPrintPreview_SetCurrentPage(_arg0,_arg1); | |
5210 | ||
5211 | wxPyEndAllowThreads(__tstate); | |
5212 | if (PyErr_Occurred()) return NULL; | |
5213 | } _resultobj = Py_BuildValue("i",_result); | |
5214 | return _resultobj; | |
5215 | } | |
5216 | ||
5217 | #define wxPrintPreview_GetCurrentPage(_swigobj) (_swigobj->GetCurrentPage()) | |
5218 | static PyObject *_wrap_wxPrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject * _resultobj; | |
5220 | int _result; | |
5221 | wxPrintPreview * _arg0; | |
5222 | PyObject * _argo0 = 0; | |
5223 | char *_kwnames[] = { "self", NULL }; | |
5224 | ||
5225 | self = self; | |
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCurrentPage",_kwnames,&_argo0)) | |
5227 | return NULL; | |
5228 | if (_argo0) { | |
5229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCurrentPage. Expected _wxPrintPreview_p."); | |
5232 | return NULL; | |
5233 | } | |
5234 | } | |
5235 | { | |
5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5237 | _result = (int )wxPrintPreview_GetCurrentPage(_arg0); | |
5238 | ||
5239 | wxPyEndAllowThreads(__tstate); | |
5240 | if (PyErr_Occurred()) return NULL; | |
5241 | } _resultobj = Py_BuildValue("i",_result); | |
5242 | return _resultobj; | |
5243 | } | |
5244 | ||
5245 | #define wxPrintPreview_SetPrintout(_swigobj,_swigarg0) (_swigobj->SetPrintout(_swigarg0)) | |
5246 | static PyObject *_wrap_wxPrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5247 | PyObject * _resultobj; | |
5248 | wxPrintPreview * _arg0; | |
5249 | wxPyPrintout * _arg1; | |
5250 | PyObject * _argo0 = 0; | |
5251 | PyObject * _argo1 = 0; | |
5252 | char *_kwnames[] = { "self","printout", NULL }; | |
5253 | ||
5254 | self = self; | |
5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetPrintout",_kwnames,&_argo0,&_argo1)) | |
5256 | return NULL; | |
5257 | if (_argo0) { | |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetPrintout. Expected _wxPrintPreview_p."); | |
5261 | return NULL; | |
5262 | } | |
5263 | } | |
5264 | if (_argo1) { | |
5265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) { | |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetPrintout. Expected _wxPyPrintout_p."); | |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
5271 | { | |
5272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5273 | wxPrintPreview_SetPrintout(_arg0,_arg1); | |
5274 | ||
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) return NULL; | |
5277 | } Py_INCREF(Py_None); | |
5278 | _resultobj = Py_None; | |
5279 | return _resultobj; | |
5280 | } | |
5281 | ||
5282 | #define wxPrintPreview_GetPrintout(_swigobj) (_swigobj->GetPrintout()) | |
5283 | static PyObject *_wrap_wxPrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject * _resultobj; | |
5285 | wxPyPrintout * _result; | |
5286 | wxPrintPreview * _arg0; | |
5287 | PyObject * _argo0 = 0; | |
5288 | char *_kwnames[] = { "self", NULL }; | |
5289 | ||
5290 | self = self; | |
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintout",_kwnames,&_argo0)) | |
5292 | return NULL; | |
5293 | if (_argo0) { | |
5294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintout. Expected _wxPrintPreview_p."); | |
5297 | return NULL; | |
5298 | } | |
5299 | } | |
5300 | { | |
5301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5302 | _result = (wxPyPrintout *)wxPrintPreview_GetPrintout(_arg0); | |
5303 | ||
5304 | wxPyEndAllowThreads(__tstate); | |
5305 | if (PyErr_Occurred()) return NULL; | |
5306 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5307 | return _resultobj; | |
5308 | } | |
5309 | ||
5310 | #define wxPrintPreview_GetPrintoutForPrinting(_swigobj) (_swigobj->GetPrintoutForPrinting()) | |
5311 | static PyObject *_wrap_wxPrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5312 | PyObject * _resultobj; | |
5313 | wxPyPrintout * _result; | |
5314 | wxPrintPreview * _arg0; | |
5315 | PyObject * _argo0 = 0; | |
5316 | char *_kwnames[] = { "self", NULL }; | |
5317 | ||
5318 | self = self; | |
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintoutForPrinting",_kwnames,&_argo0)) | |
5320 | return NULL; | |
5321 | if (_argo0) { | |
5322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintoutForPrinting. Expected _wxPrintPreview_p."); | |
5325 | return NULL; | |
5326 | } | |
5327 | } | |
5328 | { | |
5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5330 | _result = (wxPyPrintout *)wxPrintPreview_GetPrintoutForPrinting(_arg0); | |
5331 | ||
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) return NULL; | |
5334 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5335 | return _resultobj; | |
5336 | } | |
5337 | ||
5338 | #define wxPrintPreview_SetFrame(_swigobj,_swigarg0) (_swigobj->SetFrame(_swigarg0)) | |
5339 | static PyObject *_wrap_wxPrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject * _resultobj; | |
5341 | wxPrintPreview * _arg0; | |
5342 | wxFrame * _arg1; | |
5343 | PyObject * _argo0 = 0; | |
5344 | PyObject * _argo1 = 0; | |
5345 | char *_kwnames[] = { "self","frame", NULL }; | |
5346 | ||
5347 | self = self; | |
5348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetFrame",_kwnames,&_argo0,&_argo1)) | |
5349 | return NULL; | |
5350 | if (_argo0) { | |
5351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetFrame. Expected _wxPrintPreview_p."); | |
5354 | return NULL; | |
5355 | } | |
5356 | } | |
5357 | if (_argo1) { | |
5358 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) { | |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetFrame. Expected _wxFrame_p."); | |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
5364 | { | |
5365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5366 | wxPrintPreview_SetFrame(_arg0,_arg1); | |
5367 | ||
5368 | wxPyEndAllowThreads(__tstate); | |
5369 | if (PyErr_Occurred()) return NULL; | |
5370 | } Py_INCREF(Py_None); | |
5371 | _resultobj = Py_None; | |
5372 | return _resultobj; | |
5373 | } | |
5374 | ||
5375 | #define wxPrintPreview_SetCanvas(_swigobj,_swigarg0) (_swigobj->SetCanvas(_swigarg0)) | |
5376 | static PyObject *_wrap_wxPrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5377 | PyObject * _resultobj; | |
5378 | wxPrintPreview * _arg0; | |
5379 | wxWindow * _arg1; | |
5380 | PyObject * _argo0 = 0; | |
5381 | PyObject * _argo1 = 0; | |
5382 | char *_kwnames[] = { "self","canvas", NULL }; | |
5383 | ||
5384 | self = self; | |
5385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPrintPreview_SetCanvas",_kwnames,&_argo0,&_argo1)) | |
5386 | return NULL; | |
5387 | if (_argo0) { | |
5388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetCanvas. Expected _wxPrintPreview_p."); | |
5391 | return NULL; | |
5392 | } | |
5393 | } | |
5394 | if (_argo1) { | |
5395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_SetCanvas. Expected _wxWindow_p."); | |
5398 | return NULL; | |
5399 | } | |
5400 | } | |
5401 | { | |
5402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5403 | wxPrintPreview_SetCanvas(_arg0,_arg1); | |
5404 | ||
5405 | wxPyEndAllowThreads(__tstate); | |
5406 | if (PyErr_Occurred()) return NULL; | |
5407 | } Py_INCREF(Py_None); | |
5408 | _resultobj = Py_None; | |
5409 | return _resultobj; | |
5410 | } | |
5411 | ||
5412 | #define wxPrintPreview_GetFrame(_swigobj) (_swigobj->GetFrame()) | |
5413 | static PyObject *_wrap_wxPrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5414 | PyObject * _resultobj; | |
5415 | wxFrame * _result; | |
5416 | wxPrintPreview * _arg0; | |
5417 | PyObject * _argo0 = 0; | |
5418 | char *_kwnames[] = { "self", NULL }; | |
5419 | ||
5420 | self = self; | |
5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetFrame",_kwnames,&_argo0)) | |
5422 | return NULL; | |
5423 | if (_argo0) { | |
5424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetFrame. Expected _wxPrintPreview_p."); | |
5427 | return NULL; | |
5428 | } | |
5429 | } | |
5430 | { | |
5431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5432 | _result = (wxFrame *)wxPrintPreview_GetFrame(_arg0); | |
5433 | ||
5434 | wxPyEndAllowThreads(__tstate); | |
5435 | if (PyErr_Occurred()) return NULL; | |
5436 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5437 | return _resultobj; | |
5438 | } | |
5439 | ||
5440 | #define wxPrintPreview_GetCanvas(_swigobj) (_swigobj->GetCanvas()) | |
5441 | static PyObject *_wrap_wxPrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5442 | PyObject * _resultobj; | |
5443 | wxWindow * _result; | |
5444 | wxPrintPreview * _arg0; | |
5445 | PyObject * _argo0 = 0; | |
5446 | char *_kwnames[] = { "self", NULL }; | |
5447 | ||
5448 | self = self; | |
5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetCanvas",_kwnames,&_argo0)) | |
5450 | return NULL; | |
5451 | if (_argo0) { | |
5452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetCanvas. Expected _wxPrintPreview_p."); | |
5455 | return NULL; | |
5456 | } | |
5457 | } | |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | _result = (wxWindow *)wxPrintPreview_GetCanvas(_arg0); | |
5461 | ||
5462 | wxPyEndAllowThreads(__tstate); | |
5463 | if (PyErr_Occurred()) return NULL; | |
5464 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5465 | return _resultobj; | |
5466 | } | |
5467 | ||
5468 | #define wxPrintPreview_PaintPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->PaintPage(_swigarg0,_swigarg1)) | |
5469 | static PyObject *_wrap_wxPrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5470 | PyObject * _resultobj; | |
5471 | bool _result; | |
5472 | wxPrintPreview * _arg0; | |
5473 | wxWindow * _arg1; | |
5474 | wxDC * _arg2; | |
5475 | PyObject * _argo0 = 0; | |
5476 | PyObject * _argo1 = 0; | |
5477 | PyObject * _argo2 = 0; | |
5478 | char *_kwnames[] = { "self","canvas","dc", NULL }; | |
5479 | ||
5480 | self = self; | |
5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintPreview_PaintPage",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5482 | return NULL; | |
5483 | if (_argo0) { | |
5484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_PaintPage. Expected _wxPrintPreview_p."); | |
5487 | return NULL; | |
5488 | } | |
5489 | } | |
5490 | if (_argo1) { | |
5491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_PaintPage. Expected _wxWindow_p."); | |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
5497 | if (_argo2) { | |
5498 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
5499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrintPreview_PaintPage. Expected _wxDC_p."); | |
5500 | return NULL; | |
5501 | } | |
5502 | } | |
5503 | { | |
5504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5505 | _result = (bool )wxPrintPreview_PaintPage(_arg0,_arg1,*_arg2); | |
5506 | ||
5507 | wxPyEndAllowThreads(__tstate); | |
5508 | if (PyErr_Occurred()) return NULL; | |
5509 | } _resultobj = Py_BuildValue("i",_result); | |
5510 | return _resultobj; | |
5511 | } | |
5512 | ||
5513 | #define wxPrintPreview_DrawBlankPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawBlankPage(_swigarg0,_swigarg1)) | |
5514 | static PyObject *_wrap_wxPrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5515 | PyObject * _resultobj; | |
5516 | bool _result; | |
5517 | wxPrintPreview * _arg0; | |
5518 | wxWindow * _arg1; | |
5519 | wxDC * _arg2; | |
5520 | PyObject * _argo0 = 0; | |
5521 | PyObject * _argo1 = 0; | |
5522 | PyObject * _argo2 = 0; | |
5523 | char *_kwnames[] = { "self","canvas","dc", NULL }; | |
5524 | ||
5525 | self = self; | |
5526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPrintPreview_DrawBlankPage",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5527 | return NULL; | |
5528 | if (_argo0) { | |
5529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_DrawBlankPage. Expected _wxPrintPreview_p."); | |
5532 | return NULL; | |
5533 | } | |
5534 | } | |
5535 | if (_argo1) { | |
5536 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5537 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPrintPreview_DrawBlankPage. Expected _wxWindow_p."); | |
5539 | return NULL; | |
5540 | } | |
5541 | } | |
5542 | if (_argo2) { | |
5543 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
5544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPrintPreview_DrawBlankPage. Expected _wxDC_p."); | |
5545 | return NULL; | |
5546 | } | |
5547 | } | |
5548 | { | |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | _result = (bool )wxPrintPreview_DrawBlankPage(_arg0,_arg1,*_arg2); | |
5551 | ||
5552 | wxPyEndAllowThreads(__tstate); | |
5553 | if (PyErr_Occurred()) return NULL; | |
5554 | } _resultobj = Py_BuildValue("i",_result); | |
5555 | return _resultobj; | |
5556 | } | |
5557 | ||
5558 | #define wxPrintPreview_RenderPage(_swigobj,_swigarg0) (_swigobj->RenderPage(_swigarg0)) | |
5559 | static PyObject *_wrap_wxPrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5560 | PyObject * _resultobj; | |
5561 | bool _result; | |
5562 | wxPrintPreview * _arg0; | |
5563 | int _arg1; | |
5564 | PyObject * _argo0 = 0; | |
5565 | char *_kwnames[] = { "self","pageNum", NULL }; | |
5566 | ||
5567 | self = self; | |
5568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_RenderPage",_kwnames,&_argo0,&_arg1)) | |
5569 | return NULL; | |
5570 | if (_argo0) { | |
5571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_RenderPage. Expected _wxPrintPreview_p."); | |
5574 | return NULL; | |
5575 | } | |
5576 | } | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | _result = (bool )wxPrintPreview_RenderPage(_arg0,_arg1); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) return NULL; | |
5583 | } _resultobj = Py_BuildValue("i",_result); | |
5584 | return _resultobj; | |
5585 | } | |
5586 | ||
5587 | #define wxPrintPreview_GetPrintDialogData(_swigobj) (_swigobj->GetPrintDialogData()) | |
5588 | static PyObject *_wrap_wxPrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5589 | PyObject * _resultobj; | |
5590 | wxPrintDialogData * _result; | |
5591 | wxPrintPreview * _arg0; | |
5592 | PyObject * _argo0 = 0; | |
5593 | char *_kwnames[] = { "self", NULL }; | |
5594 | char _ptemp[128]; | |
5595 | ||
5596 | self = self; | |
5597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetPrintDialogData",_kwnames,&_argo0)) | |
5598 | return NULL; | |
5599 | if (_argo0) { | |
5600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
5602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetPrintDialogData. Expected _wxPrintPreview_p."); | |
5603 | return NULL; | |
5604 | } | |
5605 | } | |
5606 | { | |
5607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5608 | wxPrintDialogData & _result_ref = wxPrintPreview_GetPrintDialogData(_arg0); | |
5609 | _result = (wxPrintDialogData *) &_result_ref; | |
5610 | ||
5611 | wxPyEndAllowThreads(__tstate); | |
5612 | if (PyErr_Occurred()) return NULL; | |
5613 | } if (_result) { | |
5614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintDialogData_p"); | |
5615 | _resultobj = Py_BuildValue("s",_ptemp); | |
5616 | } else { | |
5617 | Py_INCREF(Py_None); | |
5618 | _resultobj = Py_None; | |
5619 | } | |
5620 | return _resultobj; | |
5621 | } | |
5622 | ||
5623 | #define wxPrintPreview_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0)) | |
5624 | static PyObject *_wrap_wxPrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5625 | PyObject * _resultobj; | |
5626 | wxPrintPreview * _arg0; | |
5627 | int _arg1; | |
5628 | PyObject * _argo0 = 0; | |
5629 | char *_kwnames[] = { "self","percent", NULL }; | |
5630 | ||
5631 | self = self; | |
5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetZoom",_kwnames,&_argo0,&_arg1)) | |
d24a34bb | 5633 | return NULL; |
2d091820 RD |
5634 | if (_argo0) { |
5635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetZoom. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5638 | return NULL; |
5639 | } | |
5640 | } | |
5641 | { | |
474c48f9 | 5642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5643 | wxPrintPreview_SetZoom(_arg0,_arg1); |
d24a34bb | 5644 | |
474c48f9 | 5645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5646 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
5647 | } Py_INCREF(Py_None); |
5648 | _resultobj = Py_None; | |
5649 | return _resultobj; | |
5650 | } | |
5651 | ||
1fded56b RD |
5652 | #define wxPrintPreview_GetZoom(_swigobj) (_swigobj->GetZoom()) |
5653 | static PyObject *_wrap_wxPrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5654 | PyObject * _resultobj; |
1fded56b RD |
5655 | int _result; |
5656 | wxPrintPreview * _arg0; | |
2d091820 | 5657 | PyObject * _argo0 = 0; |
107e4716 | 5658 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5659 | |
5660 | self = self; | |
1fded56b | 5661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetZoom",_kwnames,&_argo0)) |
d24a34bb | 5662 | return NULL; |
2d091820 RD |
5663 | if (_argo0) { |
5664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetZoom. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5667 | return NULL; |
5668 | } | |
5669 | } | |
5670 | { | |
474c48f9 | 5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5672 | _result = (int )wxPrintPreview_GetZoom(_arg0); |
d24a34bb | 5673 | |
474c48f9 | 5674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5675 | if (PyErr_Occurred()) return NULL; |
1fded56b | 5676 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
5677 | return _resultobj; |
5678 | } | |
5679 | ||
1fded56b RD |
5680 | #define wxPrintPreview_GetMaxPage(_swigobj) (_swigobj->GetMaxPage()) |
5681 | static PyObject *_wrap_wxPrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5682 | PyObject * _resultobj; |
1fded56b RD |
5683 | int _result; |
5684 | wxPrintPreview * _arg0; | |
2d091820 | 5685 | PyObject * _argo0 = 0; |
107e4716 | 5686 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5687 | |
5688 | self = self; | |
1fded56b | 5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMaxPage",_kwnames,&_argo0)) |
d24a34bb | 5690 | return NULL; |
2d091820 RD |
5691 | if (_argo0) { |
5692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMaxPage. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5695 | return NULL; |
5696 | } | |
5697 | } | |
5698 | { | |
474c48f9 | 5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5700 | _result = (int )wxPrintPreview_GetMaxPage(_arg0); |
d24a34bb | 5701 | |
474c48f9 | 5702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5703 | if (PyErr_Occurred()) return NULL; |
1fded56b | 5704 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
5705 | return _resultobj; |
5706 | } | |
5707 | ||
1fded56b RD |
5708 | #define wxPrintPreview_GetMinPage(_swigobj) (_swigobj->GetMinPage()) |
5709 | static PyObject *_wrap_wxPrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5710 | PyObject * _resultobj; |
1fded56b RD |
5711 | int _result; |
5712 | wxPrintPreview * _arg0; | |
2d091820 | 5713 | PyObject * _argo0 = 0; |
107e4716 | 5714 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5715 | |
5716 | self = self; | |
1fded56b | 5717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_GetMinPage",_kwnames,&_argo0)) |
d24a34bb | 5718 | return NULL; |
2d091820 RD |
5719 | if (_argo0) { |
5720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_GetMinPage. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5723 | return NULL; |
5724 | } | |
5725 | } | |
5726 | { | |
474c48f9 | 5727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5728 | _result = (int )wxPrintPreview_GetMinPage(_arg0); |
d24a34bb | 5729 | |
474c48f9 | 5730 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5731 | if (PyErr_Occurred()) return NULL; |
1fded56b | 5732 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
5733 | return _resultobj; |
5734 | } | |
5735 | ||
1fded56b RD |
5736 | #define wxPrintPreview_Ok(_swigobj) (_swigobj->Ok()) |
5737 | static PyObject *_wrap_wxPrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5738 | PyObject * _resultobj; |
1fded56b RD |
5739 | bool _result; |
5740 | wxPrintPreview * _arg0; | |
2d091820 | 5741 | PyObject * _argo0 = 0; |
107e4716 | 5742 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5743 | |
5744 | self = self; | |
1fded56b | 5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_Ok",_kwnames,&_argo0)) |
d24a34bb | 5746 | return NULL; |
2d091820 RD |
5747 | if (_argo0) { |
5748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Ok. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5751 | return NULL; |
5752 | } | |
5753 | } | |
5754 | { | |
474c48f9 | 5755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5756 | _result = (bool )wxPrintPreview_Ok(_arg0); |
d24a34bb | 5757 | |
474c48f9 | 5758 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5759 | if (PyErr_Occurred()) return NULL; |
1fded56b | 5760 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
5761 | return _resultobj; |
5762 | } | |
5763 | ||
1fded56b RD |
5764 | #define wxPrintPreview_SetOk(_swigobj,_swigarg0) (_swigobj->SetOk(_swigarg0)) |
5765 | static PyObject *_wrap_wxPrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5766 | PyObject * _resultobj; |
1fded56b RD |
5767 | wxPrintPreview * _arg0; |
5768 | bool _arg1; | |
2d091820 | 5769 | PyObject * _argo0 = 0; |
1fded56b RD |
5770 | int tempbool1; |
5771 | char *_kwnames[] = { "self","ok", NULL }; | |
d24a34bb RD |
5772 | |
5773 | self = self; | |
1fded56b | 5774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_SetOk",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 5775 | return NULL; |
2d091820 RD |
5776 | if (_argo0) { |
5777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_SetOk. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5780 | return NULL; |
5781 | } | |
5782 | } | |
1fded56b | 5783 | _arg1 = (bool ) tempbool1; |
d24a34bb | 5784 | { |
474c48f9 | 5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5786 | wxPrintPreview_SetOk(_arg0,_arg1); |
d24a34bb | 5787 | |
474c48f9 | 5788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5789 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
5790 | } Py_INCREF(Py_None); |
5791 | _resultobj = Py_None; | |
d24a34bb RD |
5792 | return _resultobj; |
5793 | } | |
5794 | ||
1fded56b RD |
5795 | #define wxPrintPreview_Print(_swigobj,_swigarg0) (_swigobj->Print(_swigarg0)) |
5796 | static PyObject *_wrap_wxPrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb RD |
5797 | PyObject * _resultobj; |
5798 | bool _result; | |
1fded56b RD |
5799 | wxPrintPreview * _arg0; |
5800 | bool _arg1; | |
2d091820 | 5801 | PyObject * _argo0 = 0; |
1fded56b RD |
5802 | int tempbool1; |
5803 | char *_kwnames[] = { "self","interactive", NULL }; | |
d24a34bb RD |
5804 | |
5805 | self = self; | |
1fded56b | 5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPrintPreview_Print",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 5807 | return NULL; |
2d091820 RD |
5808 | if (_argo0) { |
5809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_Print. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5812 | return NULL; |
5813 | } | |
5814 | } | |
1fded56b | 5815 | _arg1 = (bool ) tempbool1; |
d24a34bb | 5816 | { |
474c48f9 | 5817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5818 | _result = (bool )wxPrintPreview_Print(_arg0,_arg1); |
d24a34bb | 5819 | |
474c48f9 | 5820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5821 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
5822 | } _resultobj = Py_BuildValue("i",_result); |
5823 | return _resultobj; | |
5824 | } | |
5825 | ||
1fded56b RD |
5826 | #define wxPrintPreview_DetermineScaling(_swigobj) (_swigobj->DetermineScaling()) |
5827 | static PyObject *_wrap_wxPrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5828 | PyObject * _resultobj; |
1fded56b | 5829 | wxPrintPreview * _arg0; |
2d091820 | 5830 | PyObject * _argo0 = 0; |
1fded56b | 5831 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5832 | |
5833 | self = self; | |
1fded56b | 5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPrintPreview_DetermineScaling",_kwnames,&_argo0)) |
d24a34bb | 5835 | return NULL; |
2d091820 RD |
5836 | if (_argo0) { |
5837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPrintPreview_DetermineScaling. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
5840 | return NULL; |
5841 | } | |
5842 | } | |
5843 | { | |
474c48f9 | 5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5845 | wxPrintPreview_DetermineScaling(_arg0); |
d24a34bb | 5846 | |
474c48f9 | 5847 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5848 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
5849 | } Py_INCREF(Py_None); |
5850 | _resultobj = Py_None; | |
d24a34bb RD |
5851 | return _resultobj; |
5852 | } | |
5853 | ||
1fded56b RD |
5854 | static void *SwigwxPreviewFrameTowxFrame(void *ptr) { |
5855 | wxPreviewFrame *src; | |
5856 | wxFrame *dest; | |
5857 | src = (wxPreviewFrame *) ptr; | |
5858 | dest = (wxFrame *) src; | |
5859 | return (void *) dest; | |
5860 | } | |
5861 | ||
5862 | static void *SwigwxPreviewFrameTowxTopLevelWindow(void *ptr) { | |
5863 | wxPreviewFrame *src; | |
5864 | wxTopLevelWindow *dest; | |
5865 | src = (wxPreviewFrame *) ptr; | |
5866 | dest = (wxTopLevelWindow *) src; | |
5867 | return (void *) dest; | |
5868 | } | |
5869 | ||
5870 | static void *SwigwxPreviewFrameTowxWindow(void *ptr) { | |
5871 | wxPreviewFrame *src; | |
5872 | wxWindow *dest; | |
5873 | src = (wxPreviewFrame *) ptr; | |
5874 | dest = (wxWindow *) src; | |
5875 | return (void *) dest; | |
5876 | } | |
5877 | ||
5878 | static void *SwigwxPreviewFrameTowxEvtHandler(void *ptr) { | |
5879 | wxPreviewFrame *src; | |
5880 | wxEvtHandler *dest; | |
5881 | src = (wxPreviewFrame *) ptr; | |
5882 | dest = (wxEvtHandler *) src; | |
5883 | return (void *) dest; | |
5884 | } | |
5885 | ||
5886 | static void *SwigwxPreviewFrameTowxObject(void *ptr) { | |
5887 | wxPreviewFrame *src; | |
5888 | wxObject *dest; | |
5889 | src = (wxPreviewFrame *) ptr; | |
5890 | dest = (wxObject *) src; | |
5891 | return (void *) dest; | |
5892 | } | |
5893 | ||
5894 | #define new_wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5895 | static PyObject *_wrap_new_wxPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5896 | PyObject * _resultobj; |
1fded56b RD |
5897 | wxPreviewFrame * _result; |
5898 | wxPrintPreview * _arg0; | |
5899 | wxFrame * _arg1; | |
5900 | wxString * _arg2; | |
5901 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5902 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5903 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
5904 | wxString * _arg6 = (wxString *) &wxPyFrameNameStr; | |
2d091820 | 5905 | PyObject * _argo0 = 0; |
1fded56b RD |
5906 | PyObject * _argo1 = 0; |
5907 | PyObject * _obj2 = 0; | |
5908 | wxPoint temp; | |
5909 | PyObject * _obj3 = 0; | |
5910 | wxSize temp0; | |
5911 | PyObject * _obj4 = 0; | |
5912 | PyObject * _obj6 = 0; | |
5913 | char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL }; | |
5914 | char _ptemp[128]; | |
d24a34bb RD |
5915 | |
5916 | self = self; | |
1fded56b | 5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
d24a34bb | 5918 | return NULL; |
2d091820 RD |
5919 | if (_argo0) { |
5920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
5922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewFrame. Expected _wxPrintPreview_p."); | |
5923 | return NULL; | |
5924 | } | |
5925 | } | |
5926 | if (_argo1) { | |
5927 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5928 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) { | |
5929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPreviewFrame. Expected _wxFrame_p."); | |
d24a34bb RD |
5930 | return NULL; |
5931 | } | |
5932 | } | |
1fded56b RD |
5933 | { |
5934 | _arg2 = wxString_in_helper(_obj2); | |
5935 | if (_arg2 == NULL) | |
5936 | return NULL; | |
5937 | } | |
5938 | if (_obj3) | |
5939 | { | |
5940 | _arg3 = &temp; | |
5941 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5942 | return NULL; | |
5943 | } | |
5944 | if (_obj4) | |
5945 | { | |
5946 | _arg4 = &temp0; | |
5947 | if (! wxSize_helper(_obj4, &_arg4)) | |
5948 | return NULL; | |
5949 | } | |
5950 | if (_obj6) | |
5951 | { | |
5952 | _arg6 = wxString_in_helper(_obj6); | |
5953 | if (_arg6 == NULL) | |
5954 | return NULL; | |
5955 | } | |
d24a34bb | 5956 | { |
474c48f9 | 5957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5958 | _result = (wxPreviewFrame *)new_wxPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
d24a34bb | 5959 | |
474c48f9 | 5960 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5961 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
5962 | } if (_result) { |
5963 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewFrame_p"); | |
5964 | _resultobj = Py_BuildValue("s",_ptemp); | |
5965 | } else { | |
5966 | Py_INCREF(Py_None); | |
5967 | _resultobj = Py_None; | |
5968 | } | |
5969 | { | |
5970 | if (_obj2) | |
5971 | delete _arg2; | |
5972 | } | |
5973 | { | |
5974 | if (_obj6) | |
5975 | delete _arg6; | |
5976 | } | |
d24a34bb RD |
5977 | return _resultobj; |
5978 | } | |
5979 | ||
1fded56b RD |
5980 | #define wxPreviewFrame_Initialize(_swigobj) (_swigobj->Initialize()) |
5981 | static PyObject *_wrap_wxPreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 5982 | PyObject * _resultobj; |
1fded56b | 5983 | wxPreviewFrame * _arg0; |
2d091820 | 5984 | PyObject * _argo0 = 0; |
107e4716 | 5985 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
5986 | |
5987 | self = self; | |
1fded56b | 5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_Initialize",_kwnames,&_argo0)) |
d24a34bb | 5989 | return NULL; |
2d091820 RD |
5990 | if (_argo0) { |
5991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
5992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) { |
5993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_Initialize. Expected _wxPreviewFrame_p."); | |
d24a34bb RD |
5994 | return NULL; |
5995 | } | |
5996 | } | |
5997 | { | |
474c48f9 | 5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 5999 | wxPreviewFrame_Initialize(_arg0); |
d24a34bb | 6000 | |
474c48f9 | 6001 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6002 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6003 | } Py_INCREF(Py_None); |
6004 | _resultobj = Py_None; | |
6005 | return _resultobj; | |
6006 | } | |
6007 | ||
1fded56b RD |
6008 | #define wxPreviewFrame_CreateControlBar(_swigobj) (_swigobj->CreateControlBar()) |
6009 | static PyObject *_wrap_wxPreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6010 | PyObject * _resultobj; |
1fded56b | 6011 | wxPreviewFrame * _arg0; |
2d091820 | 6012 | PyObject * _argo0 = 0; |
107e4716 | 6013 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6014 | |
6015 | self = self; | |
1fded56b | 6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_CreateControlBar",_kwnames,&_argo0)) |
d24a34bb | 6017 | return NULL; |
2d091820 RD |
6018 | if (_argo0) { |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) { |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_CreateControlBar. Expected _wxPreviewFrame_p."); | |
d24a34bb RD |
6022 | return NULL; |
6023 | } | |
6024 | } | |
6025 | { | |
474c48f9 | 6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6027 | wxPreviewFrame_CreateControlBar(_arg0); |
d24a34bb | 6028 | |
474c48f9 | 6029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6030 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6031 | } Py_INCREF(Py_None); |
6032 | _resultobj = Py_None; | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
1fded56b RD |
6036 | #define wxPreviewFrame_CreateCanvas(_swigobj) (_swigobj->CreateCanvas()) |
6037 | static PyObject *_wrap_wxPreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6038 | PyObject * _resultobj; |
1fded56b | 6039 | wxPreviewFrame * _arg0; |
2d091820 | 6040 | PyObject * _argo0 = 0; |
107e4716 | 6041 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6042 | |
6043 | self = self; | |
1fded56b | 6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewFrame_CreateCanvas",_kwnames,&_argo0)) |
d24a34bb | 6045 | return NULL; |
2d091820 RD |
6046 | if (_argo0) { |
6047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewFrame_p")) { |
6049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewFrame_CreateCanvas. Expected _wxPreviewFrame_p."); | |
d24a34bb RD |
6050 | return NULL; |
6051 | } | |
6052 | } | |
6053 | { | |
474c48f9 | 6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6055 | wxPreviewFrame_CreateCanvas(_arg0); |
d24a34bb | 6056 | |
474c48f9 | 6057 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6058 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6059 | } Py_INCREF(Py_None); |
6060 | _resultobj = Py_None; | |
6061 | return _resultobj; | |
6062 | } | |
6063 | ||
1fded56b RD |
6064 | static void *SwigwxPreviewCanvasTowxScrolledWindow(void *ptr) { |
6065 | wxPreviewCanvas *src; | |
6066 | wxScrolledWindow *dest; | |
6067 | src = (wxPreviewCanvas *) ptr; | |
6068 | dest = (wxScrolledWindow *) src; | |
6069 | return (void *) dest; | |
6070 | } | |
d24a34bb | 6071 | |
1fded56b RD |
6072 | static void *SwigwxPreviewCanvasTowxPanel(void *ptr) { |
6073 | wxPreviewCanvas *src; | |
6074 | wxPanel *dest; | |
6075 | src = (wxPreviewCanvas *) ptr; | |
6076 | dest = (wxPanel *) src; | |
6077 | return (void *) dest; | |
d24a34bb | 6078 | } |
1fded56b RD |
6079 | |
6080 | static void *SwigwxPreviewCanvasTowxWindow(void *ptr) { | |
6081 | wxPreviewCanvas *src; | |
6082 | wxWindow *dest; | |
6083 | src = (wxPreviewCanvas *) ptr; | |
6084 | dest = (wxWindow *) src; | |
6085 | return (void *) dest; | |
d24a34bb | 6086 | } |
1fded56b RD |
6087 | |
6088 | static void *SwigwxPreviewCanvasTowxEvtHandler(void *ptr) { | |
6089 | wxPreviewCanvas *src; | |
6090 | wxEvtHandler *dest; | |
6091 | src = (wxPreviewCanvas *) ptr; | |
6092 | dest = (wxEvtHandler *) src; | |
6093 | return (void *) dest; | |
d24a34bb | 6094 | } |
1fded56b RD |
6095 | |
6096 | static void *SwigwxPreviewCanvasTowxObject(void *ptr) { | |
6097 | wxPreviewCanvas *src; | |
6098 | wxObject *dest; | |
6099 | src = (wxPreviewCanvas *) ptr; | |
6100 | dest = (wxObject *) src; | |
6101 | return (void *) dest; | |
d24a34bb | 6102 | } |
1fded56b RD |
6103 | |
6104 | #define new_wxPreviewCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPreviewCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6105 | static PyObject *_wrap_new_wxPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6106 | PyObject * _resultobj; | |
6107 | wxPreviewCanvas * _result; | |
6108 | wxPrintPreview * _arg0; | |
6109 | wxWindow * _arg1; | |
6110 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
6111 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
6112 | long _arg4 = (long ) 0; | |
6113 | wxString * _arg5 = (wxString *) &wxPyPreviewCanvasNameStr; | |
6114 | PyObject * _argo0 = 0; | |
6115 | PyObject * _argo1 = 0; | |
6116 | wxPoint temp; | |
6117 | PyObject * _obj2 = 0; | |
6118 | wxSize temp0; | |
6119 | PyObject * _obj3 = 0; | |
6120 | PyObject * _obj5 = 0; | |
6121 | char *_kwnames[] = { "preview","parent","pos","size","style","name", NULL }; | |
6122 | char _ptemp[128]; | |
6123 | ||
6124 | self = self; | |
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OOlO:new_wxPreviewCanvas",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_arg4,&_obj5)) | |
d24a34bb | 6126 | return NULL; |
2d091820 RD |
6127 | if (_argo0) { |
6128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { |
6130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewCanvas. Expected _wxPrintPreview_p."); | |
d24a34bb RD |
6131 | return NULL; |
6132 | } | |
6133 | } | |
1fded56b RD |
6134 | if (_argo1) { |
6135 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6136 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPreviewCanvas. Expected _wxWindow_p."); | |
6138 | return NULL; | |
6139 | } | |
6140 | } | |
6141 | if (_obj2) | |
d24a34bb | 6142 | { |
1fded56b RD |
6143 | _arg2 = &temp; |
6144 | if (! wxPoint_helper(_obj2, &_arg2)) | |
6145 | return NULL; | |
d24a34bb | 6146 | } |
1fded56b | 6147 | if (_obj3) |
d24a34bb | 6148 | { |
1fded56b RD |
6149 | _arg3 = &temp0; |
6150 | if (! wxSize_helper(_obj3, &_arg3)) | |
6151 | return NULL; | |
d24a34bb | 6152 | } |
1fded56b | 6153 | if (_obj5) |
d24a34bb | 6154 | { |
1fded56b RD |
6155 | _arg5 = wxString_in_helper(_obj5); |
6156 | if (_arg5 == NULL) | |
6157 | return NULL; | |
d24a34bb RD |
6158 | } |
6159 | { | |
1fded56b RD |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6161 | _result = (wxPreviewCanvas *)new_wxPreviewCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) return NULL; | |
6165 | } if (_result) { | |
6166 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewCanvas_p"); | |
6167 | _resultobj = Py_BuildValue("s",_ptemp); | |
6168 | } else { | |
6169 | Py_INCREF(Py_None); | |
6170 | _resultobj = Py_None; | |
6171 | } | |
6172 | { | |
6173 | if (_obj5) | |
6174 | delete _arg5; | |
d24a34bb RD |
6175 | } |
6176 | return _resultobj; | |
6177 | } | |
6178 | ||
1fded56b RD |
6179 | static void *SwigwxPreviewControlBarTowxPanel(void *ptr) { |
6180 | wxPreviewControlBar *src; | |
6181 | wxPanel *dest; | |
6182 | src = (wxPreviewControlBar *) ptr; | |
6183 | dest = (wxPanel *) src; | |
6184 | return (void *) dest; | |
6185 | } | |
d24a34bb | 6186 | |
1fded56b RD |
6187 | static void *SwigwxPreviewControlBarTowxWindow(void *ptr) { |
6188 | wxPreviewControlBar *src; | |
6189 | wxWindow *dest; | |
6190 | src = (wxPreviewControlBar *) ptr; | |
6191 | dest = (wxWindow *) src; | |
6192 | return (void *) dest; | |
6193 | } | |
d24a34bb | 6194 | |
1fded56b RD |
6195 | static void *SwigwxPreviewControlBarTowxEvtHandler(void *ptr) { |
6196 | wxPreviewControlBar *src; | |
6197 | wxEvtHandler *dest; | |
6198 | src = (wxPreviewControlBar *) ptr; | |
6199 | dest = (wxEvtHandler *) src; | |
6200 | return (void *) dest; | |
d24a34bb RD |
6201 | } |
6202 | ||
1fded56b RD |
6203 | static void *SwigwxPreviewControlBarTowxObject(void *ptr) { |
6204 | wxPreviewControlBar *src; | |
9df61a29 | 6205 | wxObject *dest; |
1fded56b | 6206 | src = (wxPreviewControlBar *) ptr; |
9df61a29 RD |
6207 | dest = (wxObject *) src; |
6208 | return (void *) dest; | |
6209 | } | |
6210 | ||
1fded56b RD |
6211 | #define new_wxPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
6212 | static PyObject *_wrap_new_wxPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6213 | PyObject * _resultobj; |
1fded56b RD |
6214 | wxPreviewControlBar * _result; |
6215 | wxPrintPreview * _arg0; | |
6216 | long _arg1; | |
6217 | wxWindow * _arg2; | |
6218 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6219 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6220 | long _arg5 = (long ) 0; | |
6221 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
2d091820 | 6222 | PyObject * _argo0 = 0; |
1fded56b RD |
6223 | PyObject * _argo2 = 0; |
6224 | wxPoint temp; | |
6225 | PyObject * _obj3 = 0; | |
6226 | wxSize temp0; | |
6227 | PyObject * _obj4 = 0; | |
6228 | PyObject * _obj6 = 0; | |
6229 | char *_kwnames[] = { "preview","buttons","parent","pos","size","style","name", NULL }; | |
d24a34bb RD |
6230 | char _ptemp[128]; |
6231 | ||
6232 | self = self; | |
1fded56b | 6233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|OOlO:new_wxPreviewControlBar",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) |
d24a34bb | 6234 | return NULL; |
2d091820 | 6235 | if (_argo0) { |
1fded56b RD |
6236 | if (_argo0 == Py_None) { _arg0 = NULL; } |
6237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
6238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPreviewControlBar. Expected _wxPrintPreview_p."); | |
6239 | return NULL; | |
6240 | } | |
6241 | } | |
6242 | if (_argo2) { | |
6243 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6244 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
6245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPreviewControlBar. Expected _wxWindow_p."); | |
d24a34bb RD |
6246 | return NULL; |
6247 | } | |
6248 | } | |
1fded56b RD |
6249 | if (_obj3) |
6250 | { | |
6251 | _arg3 = &temp; | |
6252 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6253 | return NULL; | |
6254 | } | |
6255 | if (_obj4) | |
6256 | { | |
6257 | _arg4 = &temp0; | |
6258 | if (! wxSize_helper(_obj4, &_arg4)) | |
6259 | return NULL; | |
6260 | } | |
6261 | if (_obj6) | |
6262 | { | |
6263 | _arg6 = wxString_in_helper(_obj6); | |
6264 | if (_arg6 == NULL) | |
6265 | return NULL; | |
6266 | } | |
d24a34bb | 6267 | { |
474c48f9 | 6268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6269 | _result = (wxPreviewControlBar *)new_wxPreviewControlBar(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
d24a34bb | 6270 | |
474c48f9 | 6271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6272 | if (PyErr_Occurred()) return NULL; |
2d091820 | 6273 | } if (_result) { |
1fded56b | 6274 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPreviewControlBar_p"); |
2d091820 RD |
6275 | _resultobj = Py_BuildValue("s",_ptemp); |
6276 | } else { | |
6277 | Py_INCREF(Py_None); | |
6278 | _resultobj = Py_None; | |
6279 | } | |
1fded56b RD |
6280 | { |
6281 | if (_obj6) | |
6282 | delete _arg6; | |
6283 | } | |
d24a34bb RD |
6284 | return _resultobj; |
6285 | } | |
6286 | ||
1fded56b RD |
6287 | #define wxPreviewControlBar_GetZoomControl(_swigobj) (_swigobj->GetZoomControl()) |
6288 | static PyObject *_wrap_wxPreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6289 | PyObject * _resultobj; |
1fded56b RD |
6290 | int _result; |
6291 | wxPreviewControlBar * _arg0; | |
2d091820 | 6292 | PyObject * _argo0 = 0; |
107e4716 | 6293 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6294 | |
6295 | self = self; | |
1fded56b | 6296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_GetZoomControl",_kwnames,&_argo0)) |
d24a34bb | 6297 | return NULL; |
2d091820 RD |
6298 | if (_argo0) { |
6299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_GetZoomControl. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6302 | return NULL; |
6303 | } | |
6304 | } | |
6305 | { | |
474c48f9 | 6306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6307 | _result = (int )wxPreviewControlBar_GetZoomControl(_arg0); |
d24a34bb | 6308 | |
474c48f9 | 6309 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6310 | if (PyErr_Occurred()) return NULL; |
1fded56b | 6311 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
6312 | return _resultobj; |
6313 | } | |
6314 | ||
1fded56b RD |
6315 | #define wxPreviewControlBar_SetZoomControl(_swigobj,_swigarg0) (_swigobj->SetZoomControl(_swigarg0)) |
6316 | static PyObject *_wrap_wxPreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6317 | PyObject * _resultobj; |
1fded56b RD |
6318 | wxPreviewControlBar * _arg0; |
6319 | int _arg1; | |
2d091820 | 6320 | PyObject * _argo0 = 0; |
1fded56b | 6321 | char *_kwnames[] = { "self","zoom", NULL }; |
d24a34bb RD |
6322 | |
6323 | self = self; | |
1fded56b | 6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPreviewControlBar_SetZoomControl",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 6325 | return NULL; |
2d091820 RD |
6326 | if (_argo0) { |
6327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_SetZoomControl. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6330 | return NULL; |
6331 | } | |
6332 | } | |
6333 | { | |
474c48f9 | 6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6335 | wxPreviewControlBar_SetZoomControl(_arg0,_arg1); |
d24a34bb | 6336 | |
474c48f9 | 6337 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6338 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6339 | } Py_INCREF(Py_None); |
6340 | _resultobj = Py_None; | |
6341 | return _resultobj; | |
6342 | } | |
6343 | ||
1fded56b RD |
6344 | #define wxPreviewControlBar_GetPrintPreview(_swigobj) (_swigobj->GetPrintPreview()) |
6345 | static PyObject *_wrap_wxPreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6346 | PyObject * _resultobj; |
1fded56b RD |
6347 | wxPrintPreview * _result; |
6348 | wxPreviewControlBar * _arg0; | |
2d091820 | 6349 | PyObject * _argo0 = 0; |
107e4716 | 6350 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6351 | char _ptemp[128]; |
6352 | ||
6353 | self = self; | |
1fded56b | 6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_GetPrintPreview",_kwnames,&_argo0)) |
d24a34bb | 6355 | return NULL; |
2d091820 RD |
6356 | if (_argo0) { |
6357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_GetPrintPreview. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6360 | return NULL; |
6361 | } | |
6362 | } | |
6363 | { | |
474c48f9 | 6364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6365 | _result = (wxPrintPreview *)wxPreviewControlBar_GetPrintPreview(_arg0); |
d24a34bb | 6366 | |
474c48f9 | 6367 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6368 | if (PyErr_Occurred()) return NULL; |
2d091820 | 6369 | } if (_result) { |
1fded56b | 6370 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPrintPreview_p"); |
2d091820 RD |
6371 | _resultobj = Py_BuildValue("s",_ptemp); |
6372 | } else { | |
6373 | Py_INCREF(Py_None); | |
6374 | _resultobj = Py_None; | |
6375 | } | |
d24a34bb RD |
6376 | return _resultobj; |
6377 | } | |
6378 | ||
1fded56b RD |
6379 | #define wxPreviewControlBar_OnNext(_swigobj) (_swigobj->OnNext()) |
6380 | static PyObject *_wrap_wxPreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6381 | PyObject * _resultobj; |
1fded56b | 6382 | wxPreviewControlBar * _arg0; |
2d091820 | 6383 | PyObject * _argo0 = 0; |
1fded56b | 6384 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6385 | |
6386 | self = self; | |
1fded56b | 6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnNext",_kwnames,&_argo0)) |
d24a34bb | 6388 | return NULL; |
2d091820 RD |
6389 | if (_argo0) { |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnNext. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6393 | return NULL; |
6394 | } | |
6395 | } | |
6396 | { | |
474c48f9 | 6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6398 | wxPreviewControlBar_OnNext(_arg0); |
d24a34bb | 6399 | |
474c48f9 | 6400 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6401 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6402 | } Py_INCREF(Py_None); |
6403 | _resultobj = Py_None; | |
d24a34bb RD |
6404 | return _resultobj; |
6405 | } | |
6406 | ||
1fded56b RD |
6407 | #define wxPreviewControlBar_OnPrevious(_swigobj) (_swigobj->OnPrevious()) |
6408 | static PyObject *_wrap_wxPreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6409 | PyObject * _resultobj; |
1fded56b | 6410 | wxPreviewControlBar * _arg0; |
2d091820 | 6411 | PyObject * _argo0 = 0; |
1fded56b | 6412 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6413 | |
6414 | self = self; | |
1fded56b | 6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnPrevious",_kwnames,&_argo0)) |
d24a34bb | 6416 | return NULL; |
2d091820 RD |
6417 | if (_argo0) { |
6418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnPrevious. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6421 | return NULL; |
6422 | } | |
6423 | } | |
6424 | { | |
474c48f9 | 6425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6426 | wxPreviewControlBar_OnPrevious(_arg0); |
d24a34bb | 6427 | |
474c48f9 | 6428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6429 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6430 | } Py_INCREF(Py_None); |
6431 | _resultobj = Py_None; | |
d24a34bb RD |
6432 | return _resultobj; |
6433 | } | |
6434 | ||
1fded56b RD |
6435 | #define wxPreviewControlBar_OnFirst(_swigobj) (_swigobj->OnFirst()) |
6436 | static PyObject *_wrap_wxPreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6437 | PyObject * _resultobj; |
1fded56b | 6438 | wxPreviewControlBar * _arg0; |
2d091820 | 6439 | PyObject * _argo0 = 0; |
1fded56b | 6440 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6441 | |
6442 | self = self; | |
1fded56b | 6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnFirst",_kwnames,&_argo0)) |
d24a34bb | 6444 | return NULL; |
2d091820 RD |
6445 | if (_argo0) { |
6446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnFirst. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6449 | return NULL; |
6450 | } | |
6451 | } | |
1fded56b RD |
6452 | { |
6453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6454 | wxPreviewControlBar_OnFirst(_arg0); | |
6455 | ||
6456 | wxPyEndAllowThreads(__tstate); | |
6457 | if (PyErr_Occurred()) return NULL; | |
6458 | } Py_INCREF(Py_None); | |
6459 | _resultobj = Py_None; | |
6460 | return _resultobj; | |
6461 | } | |
6462 | ||
6463 | #define wxPreviewControlBar_OnLast(_swigobj) (_swigobj->OnLast()) | |
6464 | static PyObject *_wrap_wxPreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject * _resultobj; | |
6466 | wxPreviewControlBar * _arg0; | |
6467 | PyObject * _argo0 = 0; | |
6468 | char *_kwnames[] = { "self", NULL }; | |
6469 | ||
6470 | self = self; | |
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnLast",_kwnames,&_argo0)) | |
d24a34bb | 6472 | return NULL; |
1fded56b RD |
6473 | if (_argo0) { |
6474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { | |
6476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnLast. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6477 | return NULL; |
6478 | } | |
6479 | } | |
6480 | { | |
474c48f9 | 6481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6482 | wxPreviewControlBar_OnLast(_arg0); |
d24a34bb | 6483 | |
474c48f9 | 6484 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6485 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6486 | } Py_INCREF(Py_None); |
6487 | _resultobj = Py_None; | |
6488 | return _resultobj; | |
6489 | } | |
6490 | ||
1fded56b RD |
6491 | #define wxPreviewControlBar_OnGoto(_swigobj) (_swigobj->OnGoto()) |
6492 | static PyObject *_wrap_wxPreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6493 | PyObject * _resultobj; |
1fded56b | 6494 | wxPreviewControlBar * _arg0; |
2d091820 | 6495 | PyObject * _argo0 = 0; |
1fded56b | 6496 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6497 | |
6498 | self = self; | |
1fded56b | 6499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPreviewControlBar_OnGoto",_kwnames,&_argo0)) |
d24a34bb | 6500 | return NULL; |
2d091820 RD |
6501 | if (_argo0) { |
6502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPreviewControlBar_p")) { |
6504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPreviewControlBar_OnGoto. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
6505 | return NULL; |
6506 | } | |
6507 | } | |
6508 | { | |
474c48f9 | 6509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6510 | wxPreviewControlBar_OnGoto(_arg0); |
d24a34bb | 6511 | |
474c48f9 | 6512 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6513 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6514 | } Py_INCREF(Py_None); |
6515 | _resultobj = Py_None; | |
d24a34bb RD |
6516 | return _resultobj; |
6517 | } | |
6518 | ||
1fded56b RD |
6519 | static void *SwigwxPyPrintPreviewTowxPrintPreview(void *ptr) { |
6520 | wxPyPrintPreview *src; | |
6521 | wxPrintPreview *dest; | |
6522 | src = (wxPyPrintPreview *) ptr; | |
6523 | dest = (wxPrintPreview *) src; | |
6524 | return (void *) dest; | |
6525 | } | |
6526 | ||
6527 | static void *SwigwxPyPrintPreviewTowxObject(void *ptr) { | |
6528 | wxPyPrintPreview *src; | |
9df61a29 | 6529 | wxObject *dest; |
1fded56b | 6530 | src = (wxPyPrintPreview *) ptr; |
9df61a29 RD |
6531 | dest = (wxObject *) src; |
6532 | return (void *) dest; | |
6533 | } | |
6534 | ||
1fded56b RD |
6535 | #define new_wxPyPrintPreview(_swigarg0,_swigarg1,_swigarg2) (new wxPyPrintPreview(_swigarg0,_swigarg1,_swigarg2)) |
6536 | static PyObject *_wrap_new_wxPyPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6537 | PyObject * _resultobj; |
1fded56b | 6538 | wxPyPrintPreview * _result; |
d24a34bb RD |
6539 | wxPyPrintout * _arg0; |
6540 | wxPyPrintout * _arg1; | |
2d091820 RD |
6541 | wxPrintData * _arg2 = (wxPrintData *) NULL; |
6542 | PyObject * _argo0 = 0; | |
6543 | PyObject * _argo1 = 0; | |
6544 | PyObject * _argo2 = 0; | |
107e4716 | 6545 | char *_kwnames[] = { "printout","printoutForPrinting","data", NULL }; |
d24a34bb RD |
6546 | char _ptemp[128]; |
6547 | ||
6548 | self = self; | |
1fded56b | 6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:new_wxPyPrintPreview",_kwnames,&_argo0,&_argo1,&_argo2)) |
d24a34bb | 6550 | return NULL; |
2d091820 RD |
6551 | if (_argo0) { |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintout_p")) { | |
1fded56b | 6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPrintPreview. Expected _wxPyPrintout_p."); |
d24a34bb RD |
6555 | return NULL; |
6556 | } | |
6557 | } | |
2d091820 RD |
6558 | if (_argo1) { |
6559 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6560 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPyPrintout_p")) { | |
1fded56b | 6561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPyPrintPreview. Expected _wxPyPrintout_p."); |
d24a34bb RD |
6562 | return NULL; |
6563 | } | |
6564 | } | |
2d091820 RD |
6565 | if (_argo2) { |
6566 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6567 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPrintData_p")) { | |
1fded56b | 6568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPyPrintPreview. Expected _wxPrintData_p."); |
d24a34bb RD |
6569 | return NULL; |
6570 | } | |
6571 | } | |
6572 | { | |
474c48f9 | 6573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6574 | _result = (wxPyPrintPreview *)new_wxPyPrintPreview(_arg0,_arg1,_arg2); |
d24a34bb | 6575 | |
474c48f9 | 6576 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6577 | if (PyErr_Occurred()) return NULL; |
2d091820 | 6578 | } if (_result) { |
1fded56b | 6579 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPrintPreview_p"); |
2d091820 RD |
6580 | _resultobj = Py_BuildValue("s",_ptemp); |
6581 | } else { | |
6582 | Py_INCREF(Py_None); | |
6583 | _resultobj = Py_None; | |
6584 | } | |
d24a34bb RD |
6585 | return _resultobj; |
6586 | } | |
6587 | ||
1fded56b RD |
6588 | #define wxPyPrintPreview__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6589 | static PyObject *_wrap_wxPyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6590 | PyObject * _resultobj; | |
6591 | wxPyPrintPreview * _arg0; | |
6592 | PyObject * _arg1; | |
6593 | PyObject * _arg2; | |
2d091820 | 6594 | PyObject * _argo0 = 0; |
1fded56b RD |
6595 | PyObject * _obj1 = 0; |
6596 | PyObject * _obj2 = 0; | |
6597 | char *_kwnames[] = { "self","self","_class", NULL }; | |
d24a34bb RD |
6598 | |
6599 | self = self; | |
1fded56b | 6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
d24a34bb | 6601 | return NULL; |
2d091820 RD |
6602 | if (_argo0) { |
6603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview__setCallbackInfo. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6606 | return NULL; |
6607 | } | |
6608 | } | |
1fded56b RD |
6609 | { |
6610 | _arg1 = _obj1; | |
6611 | } | |
6612 | { | |
6613 | _arg2 = _obj2; | |
6614 | } | |
d24a34bb | 6615 | { |
474c48f9 | 6616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6617 | wxPyPrintPreview__setCallbackInfo(_arg0,_arg1,_arg2); |
d24a34bb | 6618 | |
474c48f9 | 6619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6620 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6621 | } Py_INCREF(Py_None); |
6622 | _resultobj = Py_None; | |
d24a34bb RD |
6623 | return _resultobj; |
6624 | } | |
6625 | ||
1fded56b RD |
6626 | #define wxPyPrintPreview_base_SetCurrentPage(_swigobj,_swigarg0) (_swigobj->base_SetCurrentPage(_swigarg0)) |
6627 | static PyObject *_wrap_wxPyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6628 | PyObject * _resultobj; |
1fded56b RD |
6629 | bool _result; |
6630 | wxPyPrintPreview * _arg0; | |
6631 | int _arg1; | |
2d091820 | 6632 | PyObject * _argo0 = 0; |
1fded56b | 6633 | char *_kwnames[] = { "self","pageNum", NULL }; |
d24a34bb RD |
6634 | |
6635 | self = self; | |
1fded56b | 6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_SetCurrentPage",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 6637 | return NULL; |
2d091820 RD |
6638 | if (_argo0) { |
6639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_SetCurrentPage. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6642 | return NULL; |
6643 | } | |
6644 | } | |
6645 | { | |
474c48f9 | 6646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6647 | _result = (bool )wxPyPrintPreview_base_SetCurrentPage(_arg0,_arg1); |
d24a34bb | 6648 | |
474c48f9 | 6649 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6650 | if (PyErr_Occurred()) return NULL; |
1fded56b | 6651 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
6652 | return _resultobj; |
6653 | } | |
6654 | ||
1fded56b RD |
6655 | #define wxPyPrintPreview_base_PaintPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_PaintPage(_swigarg0,_swigarg1)) |
6656 | static PyObject *_wrap_wxPyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6657 | PyObject * _resultobj; |
1fded56b RD |
6658 | bool _result; |
6659 | wxPyPrintPreview * _arg0; | |
6660 | wxWindow * _arg1; | |
6661 | wxDC * _arg2; | |
2d091820 | 6662 | PyObject * _argo0 = 0; |
1fded56b RD |
6663 | PyObject * _argo1 = 0; |
6664 | PyObject * _argo2 = 0; | |
6665 | char *_kwnames[] = { "self","canvas","dc", NULL }; | |
d24a34bb RD |
6666 | |
6667 | self = self; | |
1fded56b | 6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview_base_PaintPage",_kwnames,&_argo0,&_argo1,&_argo2)) |
d24a34bb | 6669 | return NULL; |
2d091820 RD |
6670 | if (_argo0) { |
6671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_PaintPage. Expected _wxPyPrintPreview_p."); | |
6674 | return NULL; | |
6675 | } | |
6676 | } | |
6677 | if (_argo1) { | |
6678 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6679 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPrintPreview_base_PaintPage. Expected _wxWindow_p."); | |
6681 | return NULL; | |
6682 | } | |
6683 | } | |
6684 | if (_argo2) { | |
6685 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
6686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyPrintPreview_base_PaintPage. Expected _wxDC_p."); | |
d24a34bb RD |
6687 | return NULL; |
6688 | } | |
6689 | } | |
6690 | { | |
474c48f9 | 6691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6692 | _result = (bool )wxPyPrintPreview_base_PaintPage(_arg0,_arg1,*_arg2); |
d24a34bb | 6693 | |
474c48f9 | 6694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6695 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6696 | } _resultobj = Py_BuildValue("i",_result); |
6697 | return _resultobj; | |
6698 | } | |
6699 | ||
1fded56b RD |
6700 | #define wxPyPrintPreview_base_DrawBlankPage(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_DrawBlankPage(_swigarg0,_swigarg1)) |
6701 | static PyObject *_wrap_wxPyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6702 | PyObject * _resultobj; |
1fded56b RD |
6703 | bool _result; |
6704 | wxPyPrintPreview * _arg0; | |
6705 | wxWindow * _arg1; | |
6706 | wxDC * _arg2; | |
2d091820 | 6707 | PyObject * _argo0 = 0; |
1fded56b RD |
6708 | PyObject * _argo1 = 0; |
6709 | PyObject * _argo2 = 0; | |
6710 | char *_kwnames[] = { "self","canvas","dc", NULL }; | |
d24a34bb RD |
6711 | |
6712 | self = self; | |
1fded56b | 6713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPrintPreview_base_DrawBlankPage",_kwnames,&_argo0,&_argo1,&_argo2)) |
d24a34bb | 6714 | return NULL; |
2d091820 RD |
6715 | if (_argo0) { |
6716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxPyPrintPreview_p."); | |
6719 | return NULL; | |
6720 | } | |
6721 | } | |
6722 | if (_argo1) { | |
6723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxWindow_p."); | |
6726 | return NULL; | |
6727 | } | |
6728 | } | |
6729 | if (_argo2) { | |
6730 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { | |
6731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPyPrintPreview_base_DrawBlankPage. Expected _wxDC_p."); | |
d24a34bb RD |
6732 | return NULL; |
6733 | } | |
6734 | } | |
6735 | { | |
474c48f9 | 6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6737 | _result = (bool )wxPyPrintPreview_base_DrawBlankPage(_arg0,_arg1,*_arg2); |
d24a34bb | 6738 | |
474c48f9 | 6739 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6740 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
6741 | } _resultobj = Py_BuildValue("i",_result); |
6742 | return _resultobj; | |
6743 | } | |
6744 | ||
1fded56b RD |
6745 | #define wxPyPrintPreview_base_RenderPage(_swigobj,_swigarg0) (_swigobj->base_RenderPage(_swigarg0)) |
6746 | static PyObject *_wrap_wxPyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6747 | PyObject * _resultobj; |
1fded56b RD |
6748 | bool _result; |
6749 | wxPyPrintPreview * _arg0; | |
6750 | int _arg1; | |
2d091820 | 6751 | PyObject * _argo0 = 0; |
1fded56b | 6752 | char *_kwnames[] = { "self","pageNum", NULL }; |
d24a34bb RD |
6753 | |
6754 | self = self; | |
1fded56b | 6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_RenderPage",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 6756 | return NULL; |
2d091820 RD |
6757 | if (_argo0) { |
6758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_RenderPage. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6761 | return NULL; |
6762 | } | |
6763 | } | |
6764 | { | |
474c48f9 | 6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6766 | _result = (bool )wxPyPrintPreview_base_RenderPage(_arg0,_arg1); |
d24a34bb | 6767 | |
474c48f9 | 6768 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6769 | if (PyErr_Occurred()) return NULL; |
1fded56b | 6770 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
6771 | return _resultobj; |
6772 | } | |
6773 | ||
1fded56b RD |
6774 | #define wxPyPrintPreview_base_SetZoom(_swigobj,_swigarg0) (_swigobj->base_SetZoom(_swigarg0)) |
6775 | static PyObject *_wrap_wxPyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6776 | PyObject * _resultobj; |
1fded56b RD |
6777 | wxPyPrintPreview * _arg0; |
6778 | int _arg1; | |
2d091820 | 6779 | PyObject * _argo0 = 0; |
1fded56b | 6780 | char *_kwnames[] = { "self","percent", NULL }; |
d24a34bb RD |
6781 | |
6782 | self = self; | |
1fded56b | 6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_SetZoom",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 6784 | return NULL; |
2d091820 RD |
6785 | if (_argo0) { |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_SetZoom. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6789 | return NULL; |
6790 | } | |
6791 | } | |
6792 | { | |
474c48f9 | 6793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6794 | wxPyPrintPreview_base_SetZoom(_arg0,_arg1); |
d24a34bb | 6795 | |
474c48f9 | 6796 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6797 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6798 | } Py_INCREF(Py_None); |
6799 | _resultobj = Py_None; | |
d24a34bb RD |
6800 | return _resultobj; |
6801 | } | |
6802 | ||
1fded56b RD |
6803 | #define wxPyPrintPreview_base_Print(_swigobj,_swigarg0) (_swigobj->base_Print(_swigarg0)) |
6804 | static PyObject *_wrap_wxPyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6805 | PyObject * _resultobj; |
1fded56b RD |
6806 | bool _result; |
6807 | wxPyPrintPreview * _arg0; | |
6808 | bool _arg1; | |
2d091820 | 6809 | PyObject * _argo0 = 0; |
1fded56b RD |
6810 | int tempbool1; |
6811 | char *_kwnames[] = { "self","interactive", NULL }; | |
d24a34bb RD |
6812 | |
6813 | self = self; | |
1fded56b | 6814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPrintPreview_base_Print",_kwnames,&_argo0,&tempbool1)) |
d24a34bb | 6815 | return NULL; |
2d091820 RD |
6816 | if (_argo0) { |
6817 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6818 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_Print. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6820 | return NULL; |
6821 | } | |
6822 | } | |
1fded56b | 6823 | _arg1 = (bool ) tempbool1; |
d24a34bb | 6824 | { |
474c48f9 | 6825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6826 | _result = (bool )wxPyPrintPreview_base_Print(_arg0,_arg1); |
d24a34bb | 6827 | |
474c48f9 | 6828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6829 | if (PyErr_Occurred()) return NULL; |
1fded56b | 6830 | } _resultobj = Py_BuildValue("i",_result); |
d24a34bb RD |
6831 | return _resultobj; |
6832 | } | |
6833 | ||
1fded56b RD |
6834 | #define wxPyPrintPreview_base_DetermineScaling(_swigobj) (_swigobj->base_DetermineScaling()) |
6835 | static PyObject *_wrap_wxPyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6836 | PyObject * _resultobj; |
1fded56b | 6837 | wxPyPrintPreview * _arg0; |
2d091820 | 6838 | PyObject * _argo0 = 0; |
107e4716 | 6839 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
6840 | |
6841 | self = self; | |
1fded56b | 6842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPrintPreview_base_DetermineScaling",_kwnames,&_argo0)) |
d24a34bb | 6843 | return NULL; |
2d091820 RD |
6844 | if (_argo0) { |
6845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
6846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPrintPreview_p")) { |
6847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPrintPreview_base_DetermineScaling. Expected _wxPyPrintPreview_p."); | |
d24a34bb RD |
6848 | return NULL; |
6849 | } | |
6850 | } | |
6851 | { | |
474c48f9 | 6852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6853 | wxPyPrintPreview_base_DetermineScaling(_arg0); |
d24a34bb | 6854 | |
474c48f9 | 6855 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6856 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6857 | } Py_INCREF(Py_None); |
6858 | _resultobj = Py_None; | |
d24a34bb RD |
6859 | return _resultobj; |
6860 | } | |
6861 | ||
1fded56b RD |
6862 | static void *SwigwxPyPreviewFrameTowxPreviewFrame(void *ptr) { |
6863 | wxPyPreviewFrame *src; | |
6864 | wxPreviewFrame *dest; | |
6865 | src = (wxPyPreviewFrame *) ptr; | |
6866 | dest = (wxPreviewFrame *) src; | |
6867 | return (void *) dest; | |
6868 | } | |
6869 | ||
6870 | static void *SwigwxPyPreviewFrameTowxFrame(void *ptr) { | |
6871 | wxPyPreviewFrame *src; | |
6872 | wxFrame *dest; | |
6873 | src = (wxPyPreviewFrame *) ptr; | |
6874 | dest = (wxFrame *) src; | |
6875 | return (void *) dest; | |
6876 | } | |
6877 | ||
6878 | static void *SwigwxPyPreviewFrameTowxTopLevelWindow(void *ptr) { | |
6879 | wxPyPreviewFrame *src; | |
6880 | wxTopLevelWindow *dest; | |
6881 | src = (wxPyPreviewFrame *) ptr; | |
6882 | dest = (wxTopLevelWindow *) src; | |
6883 | return (void *) dest; | |
6884 | } | |
6885 | ||
6886 | static void *SwigwxPyPreviewFrameTowxWindow(void *ptr) { | |
6887 | wxPyPreviewFrame *src; | |
6888 | wxWindow *dest; | |
6889 | src = (wxPyPreviewFrame *) ptr; | |
6890 | dest = (wxWindow *) src; | |
6891 | return (void *) dest; | |
6892 | } | |
6893 | ||
6894 | static void *SwigwxPyPreviewFrameTowxEvtHandler(void *ptr) { | |
6895 | wxPyPreviewFrame *src; | |
6896 | wxEvtHandler *dest; | |
6897 | src = (wxPyPreviewFrame *) ptr; | |
6898 | dest = (wxEvtHandler *) src; | |
6899 | return (void *) dest; | |
6900 | } | |
6901 | ||
6902 | static void *SwigwxPyPreviewFrameTowxObject(void *ptr) { | |
6903 | wxPyPreviewFrame *src; | |
6904 | wxObject *dest; | |
6905 | src = (wxPyPreviewFrame *) ptr; | |
6906 | dest = (wxObject *) src; | |
6907 | return (void *) dest; | |
6908 | } | |
6909 | ||
6910 | #define new_wxPyPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyPreviewFrame(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6911 | static PyObject *_wrap_new_wxPyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6912 | PyObject * _resultobj; |
1fded56b | 6913 | wxPyPreviewFrame * _result; |
d24a34bb | 6914 | wxPrintPreview * _arg0; |
1fded56b RD |
6915 | wxFrame * _arg1; |
6916 | wxString * _arg2; | |
6917 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6918 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6919 | long _arg5 = (long ) wxDEFAULT_FRAME_STYLE; | |
6920 | wxString * _arg6 = (wxString *) &wxPyFrameNameStr; | |
2d091820 | 6921 | PyObject * _argo0 = 0; |
1fded56b RD |
6922 | PyObject * _argo1 = 0; |
6923 | PyObject * _obj2 = 0; | |
6924 | wxPoint temp; | |
6925 | PyObject * _obj3 = 0; | |
6926 | wxSize temp0; | |
6927 | PyObject * _obj4 = 0; | |
6928 | PyObject * _obj6 = 0; | |
6929 | char *_kwnames[] = { "preview","parent","title","pos","size","style","name", NULL }; | |
6930 | char _ptemp[128]; | |
d24a34bb RD |
6931 | |
6932 | self = self; | |
1fded56b | 6933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|OOlO:new_wxPyPreviewFrame",_kwnames,&_argo0,&_argo1,&_obj2,&_obj3,&_obj4,&_arg5,&_obj6)) |
d24a34bb | 6934 | return NULL; |
2d091820 RD |
6935 | if (_argo0) { |
6936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
1fded56b RD |
6938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPreviewFrame. Expected _wxPrintPreview_p."); |
6939 | return NULL; | |
6940 | } | |
6941 | } | |
6942 | if (_argo1) { | |
6943 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6944 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) { | |
6945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxPyPreviewFrame. Expected _wxFrame_p."); | |
d24a34bb RD |
6946 | return NULL; |
6947 | } | |
6948 | } | |
1fded56b RD |
6949 | { |
6950 | _arg2 = wxString_in_helper(_obj2); | |
6951 | if (_arg2 == NULL) | |
6952 | return NULL; | |
6953 | } | |
6954 | if (_obj3) | |
6955 | { | |
6956 | _arg3 = &temp; | |
6957 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6958 | return NULL; | |
6959 | } | |
6960 | if (_obj4) | |
6961 | { | |
6962 | _arg4 = &temp0; | |
6963 | if (! wxSize_helper(_obj4, &_arg4)) | |
6964 | return NULL; | |
6965 | } | |
6966 | if (_obj6) | |
6967 | { | |
6968 | _arg6 = wxString_in_helper(_obj6); | |
6969 | if (_arg6 == NULL) | |
6970 | return NULL; | |
6971 | } | |
d24a34bb | 6972 | { |
474c48f9 | 6973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 6974 | _result = (wxPyPreviewFrame *)new_wxPyPreviewFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
d24a34bb | 6975 | |
474c48f9 | 6976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6977 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
6978 | } if (_result) { |
6979 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPreviewFrame_p"); | |
6980 | _resultobj = Py_BuildValue("s",_ptemp); | |
6981 | } else { | |
6982 | Py_INCREF(Py_None); | |
6983 | _resultobj = Py_None; | |
6984 | } | |
6985 | { | |
6986 | if (_obj2) | |
6987 | delete _arg2; | |
6988 | } | |
6989 | { | |
6990 | if (_obj6) | |
6991 | delete _arg6; | |
6992 | } | |
d24a34bb RD |
6993 | return _resultobj; |
6994 | } | |
6995 | ||
1fded56b RD |
6996 | #define wxPyPreviewFrame__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6997 | static PyObject *_wrap_wxPyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 6998 | PyObject * _resultobj; |
1fded56b RD |
6999 | wxPyPreviewFrame * _arg0; |
7000 | PyObject * _arg1; | |
7001 | PyObject * _arg2; | |
2d091820 | 7002 | PyObject * _argo0 = 0; |
1fded56b RD |
7003 | PyObject * _obj1 = 0; |
7004 | PyObject * _obj2 = 0; | |
7005 | char *_kwnames[] = { "self","self","_class", NULL }; | |
d24a34bb RD |
7006 | |
7007 | self = self; | |
1fded56b | 7008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPreviewFrame__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
d24a34bb | 7009 | return NULL; |
2d091820 RD |
7010 | if (_argo0) { |
7011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame__setCallbackInfo. Expected _wxPyPreviewFrame_p."); | |
d24a34bb RD |
7014 | return NULL; |
7015 | } | |
7016 | } | |
1fded56b RD |
7017 | { |
7018 | _arg1 = _obj1; | |
7019 | } | |
7020 | { | |
7021 | _arg2 = _obj2; | |
7022 | } | |
d24a34bb | 7023 | { |
474c48f9 | 7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7025 | wxPyPreviewFrame__setCallbackInfo(_arg0,_arg1,_arg2); |
d24a34bb | 7026 | |
474c48f9 | 7027 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7028 | if (PyErr_Occurred()) return NULL; |
1fded56b RD |
7029 | } Py_INCREF(Py_None); |
7030 | _resultobj = Py_None; | |
d24a34bb RD |
7031 | return _resultobj; |
7032 | } | |
7033 | ||
1fded56b RD |
7034 | #define wxPyPreviewFrame_SetPreviewCanvas(_swigobj,_swigarg0) (_swigobj->SetPreviewCanvas(_swigarg0)) |
7035 | static PyObject *_wrap_wxPyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7036 | PyObject * _resultobj; |
1fded56b | 7037 | wxPyPreviewFrame * _arg0; |
d24a34bb | 7038 | wxWindow * _arg1; |
2d091820 RD |
7039 | PyObject * _argo0 = 0; |
7040 | PyObject * _argo1 = 0; | |
1fded56b | 7041 | char *_kwnames[] = { "self","canvas", NULL }; |
d24a34bb RD |
7042 | |
7043 | self = self; | |
1fded56b | 7044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewFrame_SetPreviewCanvas",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 7045 | return NULL; |
2d091820 RD |
7046 | if (_argo0) { |
7047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_SetPreviewCanvas. Expected _wxPyPreviewFrame_p."); | |
d24a34bb RD |
7050 | return NULL; |
7051 | } | |
7052 | } | |
2d091820 RD |
7053 | if (_argo1) { |
7054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1fded56b | 7056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewFrame_SetPreviewCanvas. Expected _wxWindow_p."); |
d24a34bb RD |
7057 | return NULL; |
7058 | } | |
7059 | } | |
7060 | { | |
474c48f9 | 7061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7062 | wxPyPreviewFrame_SetPreviewCanvas(_arg0,_arg1); |
d24a34bb | 7063 | |
474c48f9 | 7064 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7065 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7066 | } Py_INCREF(Py_None); |
7067 | _resultobj = Py_None; | |
7068 | return _resultobj; | |
7069 | } | |
7070 | ||
1fded56b RD |
7071 | #define wxPyPreviewFrame_SetControlBar(_swigobj,_swigarg0) (_swigobj->SetControlBar(_swigarg0)) |
7072 | static PyObject *_wrap_wxPyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7073 | PyObject * _resultobj; |
1fded56b RD |
7074 | wxPyPreviewFrame * _arg0; |
7075 | wxPreviewControlBar * _arg1; | |
2d091820 | 7076 | PyObject * _argo0 = 0; |
1fded56b RD |
7077 | PyObject * _argo1 = 0; |
7078 | char *_kwnames[] = { "self","bar", NULL }; | |
d24a34bb RD |
7079 | |
7080 | self = self; | |
1fded56b | 7081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewFrame_SetControlBar",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 7082 | return NULL; |
2d091820 RD |
7083 | if (_argo0) { |
7084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_SetControlBar. Expected _wxPyPreviewFrame_p."); | |
7087 | return NULL; | |
7088 | } | |
7089 | } | |
7090 | if (_argo1) { | |
7091 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7092 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPreviewControlBar_p")) { | |
7093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewFrame_SetControlBar. Expected _wxPreviewControlBar_p."); | |
d24a34bb RD |
7094 | return NULL; |
7095 | } | |
7096 | } | |
7097 | { | |
474c48f9 | 7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7099 | wxPyPreviewFrame_SetControlBar(_arg0,_arg1); |
d24a34bb | 7100 | |
474c48f9 | 7101 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7102 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7103 | } Py_INCREF(Py_None); |
7104 | _resultobj = Py_None; | |
7105 | return _resultobj; | |
7106 | } | |
7107 | ||
1fded56b RD |
7108 | #define wxPyPreviewFrame_base_Initialize(_swigobj) (_swigobj->base_Initialize()) |
7109 | static PyObject *_wrap_wxPyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7110 | PyObject * _resultobj; |
1fded56b | 7111 | wxPyPreviewFrame * _arg0; |
2d091820 | 7112 | PyObject * _argo0 = 0; |
1fded56b | 7113 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7114 | |
7115 | self = self; | |
1fded56b | 7116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_Initialize",_kwnames,&_argo0)) |
d24a34bb | 7117 | return NULL; |
2d091820 RD |
7118 | if (_argo0) { |
7119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_Initialize. Expected _wxPyPreviewFrame_p."); | |
d24a34bb RD |
7122 | return NULL; |
7123 | } | |
7124 | } | |
7125 | { | |
474c48f9 | 7126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7127 | wxPyPreviewFrame_base_Initialize(_arg0); |
d24a34bb | 7128 | |
474c48f9 | 7129 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7130 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7131 | } Py_INCREF(Py_None); |
7132 | _resultobj = Py_None; | |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
1fded56b RD |
7136 | #define wxPyPreviewFrame_base_CreateCanvas(_swigobj) (_swigobj->base_CreateCanvas()) |
7137 | static PyObject *_wrap_wxPyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7138 | PyObject * _resultobj; |
1fded56b | 7139 | wxPyPreviewFrame * _arg0; |
2d091820 | 7140 | PyObject * _argo0 = 0; |
1fded56b | 7141 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7142 | |
7143 | self = self; | |
1fded56b | 7144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_CreateCanvas",_kwnames,&_argo0)) |
d24a34bb | 7145 | return NULL; |
2d091820 RD |
7146 | if (_argo0) { |
7147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_CreateCanvas. Expected _wxPyPreviewFrame_p."); | |
d24a34bb RD |
7150 | return NULL; |
7151 | } | |
7152 | } | |
7153 | { | |
474c48f9 | 7154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7155 | wxPyPreviewFrame_base_CreateCanvas(_arg0); |
d24a34bb | 7156 | |
474c48f9 | 7157 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7158 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7159 | } Py_INCREF(Py_None); |
7160 | _resultobj = Py_None; | |
7161 | return _resultobj; | |
7162 | } | |
7163 | ||
1fded56b RD |
7164 | #define wxPyPreviewFrame_base_CreateControlBar(_swigobj) (_swigobj->base_CreateControlBar()) |
7165 | static PyObject *_wrap_wxPyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7166 | PyObject * _resultobj; |
1fded56b | 7167 | wxPyPreviewFrame * _arg0; |
2d091820 | 7168 | PyObject * _argo0 = 0; |
1fded56b | 7169 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7170 | |
7171 | self = self; | |
1fded56b | 7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewFrame_base_CreateControlBar",_kwnames,&_argo0)) |
d24a34bb | 7173 | return NULL; |
2d091820 RD |
7174 | if (_argo0) { |
7175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewFrame_p")) { |
7177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewFrame_base_CreateControlBar. Expected _wxPyPreviewFrame_p."); | |
d24a34bb RD |
7178 | return NULL; |
7179 | } | |
7180 | } | |
7181 | { | |
474c48f9 | 7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7183 | wxPyPreviewFrame_base_CreateControlBar(_arg0); |
d24a34bb | 7184 | |
474c48f9 | 7185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7186 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7187 | } Py_INCREF(Py_None); |
7188 | _resultobj = Py_None; | |
7189 | return _resultobj; | |
7190 | } | |
7191 | ||
1fded56b RD |
7192 | static void *SwigwxPyPreviewControlBarTowxPreviewControlBar(void *ptr) { |
7193 | wxPyPreviewControlBar *src; | |
7194 | wxPreviewControlBar *dest; | |
7195 | src = (wxPyPreviewControlBar *) ptr; | |
7196 | dest = (wxPreviewControlBar *) src; | |
d24a34bb RD |
7197 | return (void *) dest; |
7198 | } | |
7199 | ||
1fded56b RD |
7200 | static void *SwigwxPyPreviewControlBarTowxPanel(void *ptr) { |
7201 | wxPyPreviewControlBar *src; | |
7202 | wxPanel *dest; | |
7203 | src = (wxPyPreviewControlBar *) ptr; | |
7204 | dest = (wxPanel *) src; | |
32c988a3 RD |
7205 | return (void *) dest; |
7206 | } | |
7207 | ||
1fded56b RD |
7208 | static void *SwigwxPyPreviewControlBarTowxWindow(void *ptr) { |
7209 | wxPyPreviewControlBar *src; | |
d24a34bb | 7210 | wxWindow *dest; |
1fded56b | 7211 | src = (wxPyPreviewControlBar *) ptr; |
d24a34bb RD |
7212 | dest = (wxWindow *) src; |
7213 | return (void *) dest; | |
7214 | } | |
7215 | ||
1fded56b RD |
7216 | static void *SwigwxPyPreviewControlBarTowxEvtHandler(void *ptr) { |
7217 | wxPyPreviewControlBar *src; | |
d24a34bb | 7218 | wxEvtHandler *dest; |
1fded56b | 7219 | src = (wxPyPreviewControlBar *) ptr; |
d24a34bb RD |
7220 | dest = (wxEvtHandler *) src; |
7221 | return (void *) dest; | |
7222 | } | |
7223 | ||
1fded56b RD |
7224 | static void *SwigwxPyPreviewControlBarTowxObject(void *ptr) { |
7225 | wxPyPreviewControlBar *src; | |
9df61a29 | 7226 | wxObject *dest; |
1fded56b | 7227 | src = (wxPyPreviewControlBar *) ptr; |
9df61a29 RD |
7228 | dest = (wxObject *) src; |
7229 | return (void *) dest; | |
7230 | } | |
7231 | ||
1fded56b RD |
7232 | #define new_wxPyPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyPreviewControlBar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
7233 | static PyObject *_wrap_new_wxPyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7234 | PyObject * _resultobj; |
1fded56b | 7235 | wxPyPreviewControlBar * _result; |
d24a34bb | 7236 | wxPrintPreview * _arg0; |
1fded56b RD |
7237 | long _arg1; |
7238 | wxWindow * _arg2; | |
b68dc582 RD |
7239 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
7240 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1fded56b RD |
7241 | long _arg5 = (long ) 0; |
7242 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; | |
2d091820 | 7243 | PyObject * _argo0 = 0; |
1fded56b | 7244 | PyObject * _argo2 = 0; |
37f6a977 RD |
7245 | wxPoint temp; |
7246 | PyObject * _obj3 = 0; | |
7247 | wxSize temp0; | |
7248 | PyObject * _obj4 = 0; | |
9a74fcaf | 7249 | PyObject * _obj6 = 0; |
1fded56b | 7250 | char *_kwnames[] = { "preview","buttons","parent","pos","size","style","name", NULL }; |
d24a34bb RD |
7251 | char _ptemp[128]; |
7252 | ||
7253 | self = self; | |
1fded56b | 7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|OOlO:new_wxPyPreviewControlBar",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3,&_obj4,&_arg5,&_obj6)) |
d24a34bb | 7255 | return NULL; |
2d091820 RD |
7256 | if (_argo0) { |
7257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPrintPreview_p")) { | |
1fded56b | 7259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPyPreviewControlBar. Expected _wxPrintPreview_p."); |
d24a34bb RD |
7260 | return NULL; |
7261 | } | |
7262 | } | |
1fded56b RD |
7263 | if (_argo2) { |
7264 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPyPreviewControlBar. Expected _wxWindow_p."); | |
d24a34bb RD |
7267 | return NULL; |
7268 | } | |
7269 | } | |
37f6a977 RD |
7270 | if (_obj3) |
7271 | { | |
7272 | _arg3 = &temp; | |
7273 | if (! wxPoint_helper(_obj3, &_arg3)) | |
d24a34bb | 7274 | return NULL; |
37f6a977 RD |
7275 | } |
7276 | if (_obj4) | |
7277 | { | |
7278 | _arg4 = &temp0; | |
7279 | if (! wxSize_helper(_obj4, &_arg4)) | |
d24a34bb | 7280 | return NULL; |
9a74fcaf RD |
7281 | } |
7282 | if (_obj6) | |
7283 | { | |
7284 | _arg6 = wxString_in_helper(_obj6); | |
7285 | if (_arg6 == NULL) | |
7286 | return NULL; | |
37f6a977 | 7287 | } |
d24a34bb | 7288 | { |
474c48f9 | 7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b | 7290 | _result = (wxPyPreviewControlBar *)new_wxPyPreviewControlBar(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
d24a34bb | 7291 | |
474c48f9 | 7292 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7293 | if (PyErr_Occurred()) return NULL; |
2d091820 | 7294 | } if (_result) { |
1fded56b | 7295 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPreviewControlBar_p"); |
2d091820 RD |
7296 | _resultobj = Py_BuildValue("s",_ptemp); |
7297 | } else { | |
7298 | Py_INCREF(Py_None); | |
7299 | _resultobj = Py_None; | |
7300 | } | |
9a74fcaf RD |
7301 | { |
7302 | if (_obj6) | |
7303 | delete _arg6; | |
d24a34bb RD |
7304 | } |
7305 | return _resultobj; | |
7306 | } | |
7307 | ||
1fded56b RD |
7308 | #define wxPyPreviewControlBar__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
7309 | static PyObject *_wrap_wxPyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d24a34bb | 7310 | PyObject * _resultobj; |
1fded56b RD |
7311 | wxPyPreviewControlBar * _arg0; |
7312 | PyObject * _arg1; | |
7313 | PyObject * _arg2; | |
7314 | PyObject * _argo0 = 0; | |
7315 | PyObject * _obj1 = 0; | |
7316 | PyObject * _obj2 = 0; | |
7317 | char *_kwnames[] = { "self","self","_class", NULL }; | |
7318 | ||
7319 | self = self; | |
7320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyPreviewControlBar__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
7321 | return NULL; | |
7322 | if (_argo0) { | |
7323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) { | |
7325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar__setCallbackInfo. Expected _wxPyPreviewControlBar_p."); | |
7326 | return NULL; | |
7327 | } | |
7328 | } | |
7329 | { | |
7330 | _arg1 = _obj1; | |
7331 | } | |
7332 | { | |
7333 | _arg2 = _obj2; | |
7334 | } | |
7335 | { | |
7336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7337 | wxPyPreviewControlBar__setCallbackInfo(_arg0,_arg1,_arg2); | |
7338 | ||
7339 | wxPyEndAllowThreads(__tstate); | |
7340 | if (PyErr_Occurred()) return NULL; | |
7341 | } Py_INCREF(Py_None); | |
7342 | _resultobj = Py_None; | |
7343 | return _resultobj; | |
7344 | } | |
7345 | ||
7346 | #define wxPyPreviewControlBar_SetPrintPreview(_swigobj,_swigarg0) (_swigobj->SetPrintPreview(_swigarg0)) | |
7347 | static PyObject *_wrap_wxPyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7348 | PyObject * _resultobj; | |
7349 | wxPyPreviewControlBar * _arg0; | |
7350 | wxPrintPreview * _arg1; | |
7351 | PyObject * _argo0 = 0; | |
7352 | PyObject * _argo1 = 0; | |
7353 | char *_kwnames[] = { "self","preview", NULL }; | |
7354 | ||
7355 | self = self; | |
7356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPreviewControlBar_SetPrintPreview",_kwnames,&_argo0,&_argo1)) | |
7357 | return NULL; | |
7358 | if (_argo0) { | |
7359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) { | |
7361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_SetPrintPreview. Expected _wxPyPreviewControlBar_p."); | |
7362 | return NULL; | |
7363 | } | |
7364 | } | |
7365 | if (_argo1) { | |
7366 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7367 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPrintPreview_p")) { | |
7368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyPreviewControlBar_SetPrintPreview. Expected _wxPrintPreview_p."); | |
7369 | return NULL; | |
7370 | } | |
7371 | } | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | wxPyPreviewControlBar_SetPrintPreview(_arg0,_arg1); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) return NULL; | |
7378 | } Py_INCREF(Py_None); | |
7379 | _resultobj = Py_None; | |
7380 | return _resultobj; | |
7381 | } | |
7382 | ||
7383 | #define wxPyPreviewControlBar_base_CreateButtons(_swigobj) (_swigobj->base_CreateButtons()) | |
7384 | static PyObject *_wrap_wxPyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject * _resultobj; | |
7386 | wxPyPreviewControlBar * _arg0; | |
2d091820 | 7387 | PyObject * _argo0 = 0; |
107e4716 | 7388 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
7389 | |
7390 | self = self; | |
1fded56b | 7391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyPreviewControlBar_base_CreateButtons",_kwnames,&_argo0)) |
d24a34bb | 7392 | return NULL; |
2d091820 RD |
7393 | if (_argo0) { |
7394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1fded56b RD |
7395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) { |
7396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_base_CreateButtons. Expected _wxPyPreviewControlBar_p."); | |
d24a34bb RD |
7397 | return NULL; |
7398 | } | |
7399 | } | |
7400 | { | |
474c48f9 | 7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1fded56b RD |
7402 | wxPyPreviewControlBar_base_CreateButtons(_arg0); |
7403 | ||
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) return NULL; | |
7406 | } Py_INCREF(Py_None); | |
7407 | _resultobj = Py_None; | |
7408 | return _resultobj; | |
7409 | } | |
7410 | ||
7411 | #define wxPyPreviewControlBar_base_SetZoomControl(_swigobj,_swigarg0) (_swigobj->base_SetZoomControl(_swigarg0)) | |
7412 | static PyObject *_wrap_wxPyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject * _resultobj; | |
7414 | wxPyPreviewControlBar * _arg0; | |
7415 | int _arg1; | |
7416 | PyObject * _argo0 = 0; | |
7417 | char *_kwnames[] = { "self","zoom", NULL }; | |
7418 | ||
7419 | self = self; | |
7420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPyPreviewControlBar_base_SetZoomControl",_kwnames,&_argo0,&_arg1)) | |
7421 | return NULL; | |
7422 | if (_argo0) { | |
7423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPreviewControlBar_p")) { | |
7425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPreviewControlBar_base_SetZoomControl. Expected _wxPyPreviewControlBar_p."); | |
7426 | return NULL; | |
7427 | } | |
7428 | } | |
7429 | { | |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | wxPyPreviewControlBar_base_SetZoomControl(_arg0,_arg1); | |
d24a34bb | 7432 | |
474c48f9 | 7433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7434 | if (PyErr_Occurred()) return NULL; |
d24a34bb RD |
7435 | } Py_INCREF(Py_None); |
7436 | _resultobj = Py_None; | |
7437 | return _resultobj; | |
7438 | } | |
7439 | ||
7440 | static PyMethodDef printfwcMethods[] = { | |
1fded56b RD |
7441 | { "wxPyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_wxPyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, |
7442 | { "wxPyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_wxPyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
7443 | { "wxPyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_wxPyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
7444 | { "wxPyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_wxPyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
7445 | { "new_wxPyPreviewControlBar", (PyCFunction) _wrap_new_wxPyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
7446 | { "wxPyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_wxPyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
7447 | { "wxPyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_wxPyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
7448 | { "wxPyPreviewFrame_base_Initialize", (PyCFunction) _wrap_wxPyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
7449 | { "wxPyPreviewFrame_SetControlBar", (PyCFunction) _wrap_wxPyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
7450 | { "wxPyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_wxPyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
7451 | { "wxPyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_wxPyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
7452 | { "new_wxPyPreviewFrame", (PyCFunction) _wrap_new_wxPyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
7453 | { "wxPyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_wxPyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
7454 | { "wxPyPrintPreview_base_Print", (PyCFunction) _wrap_wxPyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
7455 | { "wxPyPrintPreview_base_SetZoom", (PyCFunction) _wrap_wxPyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
7456 | { "wxPyPrintPreview_base_RenderPage", (PyCFunction) _wrap_wxPyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
7457 | { "wxPyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_wxPyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
7458 | { "wxPyPrintPreview_base_PaintPage", (PyCFunction) _wrap_wxPyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
7459 | { "wxPyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_wxPyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
7460 | { "wxPyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_wxPyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
7461 | { "new_wxPyPrintPreview", (PyCFunction) _wrap_new_wxPyPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
7462 | { "wxPreviewControlBar_OnGoto", (PyCFunction) _wrap_wxPreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
7463 | { "wxPreviewControlBar_OnLast", (PyCFunction) _wrap_wxPreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
7464 | { "wxPreviewControlBar_OnFirst", (PyCFunction) _wrap_wxPreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
7465 | { "wxPreviewControlBar_OnPrevious", (PyCFunction) _wrap_wxPreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
7466 | { "wxPreviewControlBar_OnNext", (PyCFunction) _wrap_wxPreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
7467 | { "wxPreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_wxPreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
7468 | { "wxPreviewControlBar_SetZoomControl", (PyCFunction) _wrap_wxPreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
7469 | { "wxPreviewControlBar_GetZoomControl", (PyCFunction) _wrap_wxPreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
7470 | { "new_wxPreviewControlBar", (PyCFunction) _wrap_new_wxPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
7471 | { "new_wxPreviewCanvas", (PyCFunction) _wrap_new_wxPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
7472 | { "wxPreviewFrame_CreateCanvas", (PyCFunction) _wrap_wxPreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
7473 | { "wxPreviewFrame_CreateControlBar", (PyCFunction) _wrap_wxPreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7474 | { "wxPreviewFrame_Initialize", (PyCFunction) _wrap_wxPreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, |
7475 | { "new_wxPreviewFrame", (PyCFunction) _wrap_new_wxPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b | 7476 | { "wxPrintPreview_DetermineScaling", (PyCFunction) _wrap_wxPrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7477 | { "wxPrintPreview_Print", (PyCFunction) _wrap_wxPrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 7478 | { "wxPrintPreview_SetOk", (PyCFunction) _wrap_wxPrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7479 | { "wxPrintPreview_Ok", (PyCFunction) _wrap_wxPrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7480 | { "wxPrintPreview_GetMinPage", (PyCFunction) _wrap_wxPrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, |
7481 | { "wxPrintPreview_GetMaxPage", (PyCFunction) _wrap_wxPrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b RD |
7482 | { "wxPrintPreview_GetZoom", (PyCFunction) _wrap_wxPrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, |
7483 | { "wxPrintPreview_SetZoom", (PyCFunction) _wrap_wxPrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
7484 | { "wxPrintPreview_GetPrintDialogData", (PyCFunction) _wrap_wxPrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
7485 | { "wxPrintPreview_RenderPage", (PyCFunction) _wrap_wxPrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
7486 | { "wxPrintPreview_DrawBlankPage", (PyCFunction) _wrap_wxPrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
7487 | { "wxPrintPreview_PaintPage", (PyCFunction) _wrap_wxPrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
7488 | { "wxPrintPreview_GetCanvas", (PyCFunction) _wrap_wxPrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7489 | { "wxPrintPreview_GetFrame", (PyCFunction) _wrap_wxPrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
7490 | { "wxPrintPreview_SetCanvas", (PyCFunction) _wrap_wxPrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, |
7491 | { "wxPrintPreview_SetFrame", (PyCFunction) _wrap_wxPrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
7492 | { "wxPrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_wxPrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
7493 | { "wxPrintPreview_GetPrintout", (PyCFunction) _wrap_wxPrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
7494 | { "wxPrintPreview_SetPrintout", (PyCFunction) _wrap_wxPrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7495 | { "wxPrintPreview_GetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 7496 | { "wxPrintPreview_SetCurrentPage", (PyCFunction) _wrap_wxPrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7497 | { "new_wxPrintPreview", (PyCFunction) _wrap_new_wxPrintPreview, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
7498 | { "new_wxPrintAbortDialog", (PyCFunction) _wrap_new_wxPrintAbortDialog, METH_VARARGS | METH_KEYWORDS }, |
7499 | { "wxPrinter_GetLastError", (PyCFunction) _wrap_wxPrinter_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
7500 | { "wxPrinter_GetAbort", (PyCFunction) _wrap_wxPrinter_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7501 | { "wxPrinter_Setup", (PyCFunction) _wrap_wxPrinter_Setup, METH_VARARGS | METH_KEYWORDS }, |
7502 | { "wxPrinter_ReportError", (PyCFunction) _wrap_wxPrinter_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
7503 | { "wxPrinter_PrintDialog", (PyCFunction) _wrap_wxPrinter_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
7504 | { "wxPrinter_Print", (PyCFunction) _wrap_wxPrinter_Print, METH_VARARGS | METH_KEYWORDS }, | |
7505 | { "wxPrinter_GetPrintDialogData", (PyCFunction) _wrap_wxPrinter_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
7506 | { "wxPrinter_CreateAbortWindow", (PyCFunction) _wrap_wxPrinter_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
7507 | { "delete_wxPrinter", (PyCFunction) _wrap_delete_wxPrinter, METH_VARARGS | METH_KEYWORDS }, | |
7508 | { "new_wxPrinter", (PyCFunction) _wrap_new_wxPrinter, METH_VARARGS | METH_KEYWORDS }, | |
7509 | { "wxPrintout_base_HasPage", (PyCFunction) _wrap_wxPrintout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
7510 | { "wxPrintout_base_GetPageInfo", (PyCFunction) _wrap_wxPrintout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
7511 | { "wxPrintout_base_OnPreparePrinting", (PyCFunction) _wrap_wxPrintout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
7512 | { "wxPrintout_base_OnEndPrinting", (PyCFunction) _wrap_wxPrintout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
7513 | { "wxPrintout_base_OnBeginPrinting", (PyCFunction) _wrap_wxPrintout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
7514 | { "wxPrintout_base_OnEndDocument", (PyCFunction) _wrap_wxPrintout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
7515 | { "wxPrintout_base_OnBeginDocument", (PyCFunction) _wrap_wxPrintout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
7516 | { "wxPrintout_IsPreview", (PyCFunction) _wrap_wxPrintout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
7517 | { "wxPrintout_GetPPIScreen", (PyCFunction) _wrap_wxPrintout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
7518 | { "wxPrintout_GetPPIPrinter", (PyCFunction) _wrap_wxPrintout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
7519 | { "wxPrintout_GetPageSizePixels", (PyCFunction) _wrap_wxPrintout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
7520 | { "wxPrintout_GetPageSizeMM", (PyCFunction) _wrap_wxPrintout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
7521 | { "wxPrintout_GetDC", (PyCFunction) _wrap_wxPrintout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
7522 | { "wxPrintout_Destroy", (PyCFunction) _wrap_wxPrintout_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 7523 | { "wxPrintout__setCallbackInfo", (PyCFunction) _wrap_wxPrintout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7524 | { "new_wxPrintout", (PyCFunction) _wrap_new_wxPrintout, METH_VARARGS | METH_KEYWORDS }, |
7525 | { "wxPrintDialog_ShowModal", (PyCFunction) _wrap_wxPrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
7526 | { "wxPrintDialog_GetPrintDC", (PyCFunction) _wrap_wxPrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
7527 | { "wxPrintDialog_GetPrintDialogData", (PyCFunction) _wrap_wxPrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
7528 | { "new_wxPrintDialog", (PyCFunction) _wrap_new_wxPrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b RD |
7529 | { "wxPrintDialogData_SetPrintData", (PyCFunction) _wrap_wxPrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, |
7530 | { "wxPrintDialogData_GetPrintData", (PyCFunction) _wrap_wxPrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
7531 | { "wxPrintDialogData_Ok", (PyCFunction) _wrap_wxPrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
7532 | { "wxPrintDialogData_GetEnableHelp", (PyCFunction) _wrap_wxPrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
7533 | { "wxPrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_wxPrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
7534 | { "wxPrintDialogData_GetEnableSelection", (PyCFunction) _wrap_wxPrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
7535 | { "wxPrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_wxPrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
7536 | { "wxPrintDialogData_EnableHelp", (PyCFunction) _wrap_wxPrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
7537 | { "wxPrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_wxPrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
7538 | { "wxPrintDialogData_EnableSelection", (PyCFunction) _wrap_wxPrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
7539 | { "wxPrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_wxPrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7540 | { "wxPrintDialogData_SetSetupDialog", (PyCFunction) _wrap_wxPrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, |
7541 | { "wxPrintDialogData_SetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b RD |
7542 | { "wxPrintDialogData_SetCollate", (PyCFunction) _wrap_wxPrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, |
7543 | { "wxPrintDialogData_SetSelection", (PyCFunction) _wrap_wxPrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7544 | { "wxPrintDialogData_SetAllPages", (PyCFunction) _wrap_wxPrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7545 | { "wxPrintDialogData_SetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7546 | { "wxPrintDialogData_SetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
7547 | { "wxPrintDialogData_SetMinPage", (PyCFunction) _wrap_wxPrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, |
7548 | { "wxPrintDialogData_SetToPage", (PyCFunction) _wrap_wxPrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7549 | { "wxPrintDialogData_SetFromPage", (PyCFunction) _wrap_wxPrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, |
1fded56b | 7550 | { "wxPrintDialogData_GetSetupDialog", (PyCFunction) _wrap_wxPrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7551 | { "wxPrintDialogData_GetPrintToFile", (PyCFunction) _wrap_wxPrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
7552 | { "wxPrintDialogData_GetCollate", (PyCFunction) _wrap_wxPrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, |
7553 | { "wxPrintDialogData_GetSelection", (PyCFunction) _wrap_wxPrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
7554 | { "wxPrintDialogData_GetAllPages", (PyCFunction) _wrap_wxPrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7555 | { "wxPrintDialogData_GetNoCopies", (PyCFunction) _wrap_wxPrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7556 | { "wxPrintDialogData_GetMaxPage", (PyCFunction) _wrap_wxPrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, |
1fded56b RD |
7557 | { "wxPrintDialogData_GetMinPage", (PyCFunction) _wrap_wxPrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, |
7558 | { "wxPrintDialogData_GetToPage", (PyCFunction) _wrap_wxPrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7559 | { "wxPrintDialogData_GetFromPage", (PyCFunction) _wrap_wxPrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7560 | { "delete_wxPrintDialogData", (PyCFunction) _wrap_delete_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS }, |
7561 | { "new_wxPrintDialogData", (PyCFunction) _wrap_new_wxPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
7562 | { "wxPageSetupDialog_ShowModal", (PyCFunction) _wrap_wxPageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
7563 | { "wxPageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_wxPageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
7564 | { "new_wxPageSetupDialog", (PyCFunction) _wrap_new_wxPageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
7565 | { "wxPageSetupDialogData_SetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
7566 | { "wxPageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
7567 | { "wxPageSetupDialogData_SetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
7568 | { "wxPageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
7569 | { "wxPageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
7570 | { "wxPageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
7571 | { "wxPageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
7572 | { "wxPageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
7573 | { "wxPageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
12d1116b | 7574 | { "wxPageSetupDialogData_Ok", (PyCFunction) _wrap_wxPageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7575 | { "wxPageSetupDialogData_GetPrintData", (PyCFunction) _wrap_wxPageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, |
7576 | { "wxPageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
7577 | { "wxPageSetupDialogData_GetPaperId", (PyCFunction) _wrap_wxPageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
7578 | { "wxPageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
7579 | { "wxPageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
7580 | { "wxPageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
7581 | { "wxPageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_wxPageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
7582 | { "wxPageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
7583 | { "wxPageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
7584 | { "wxPageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
7585 | { "wxPageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
7586 | { "wxPageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
7587 | { "wxPageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
7588 | { "wxPageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_wxPageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
7589 | { "wxPageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
7590 | { "wxPageSetupDialogData_EnablePaper", (PyCFunction) _wrap_wxPageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
7591 | { "wxPageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_wxPageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
7592 | { "wxPageSetupDialogData_EnableMargins", (PyCFunction) _wrap_wxPageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
7593 | { "wxPageSetupDialogData_EnableHelp", (PyCFunction) _wrap_wxPageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
7594 | { "delete_wxPageSetupDialogData", (PyCFunction) _wrap_delete_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
7595 | { "new_wxPageSetupDialogData", (PyCFunction) _wrap_new_wxPageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
56456d9f RD |
7596 | { "wxPostScriptDC_GetResolution", (PyCFunction) _wrap_wxPostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS }, |
7597 | { "wxPostScriptDC_SetResolution", (PyCFunction) _wrap_wxPostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS }, | |
7598 | { "wxPostScriptDC_SetPrintData", (PyCFunction) _wrap_wxPostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
7599 | { "wxPostScriptDC_GetPrintData", (PyCFunction) _wrap_wxPostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
56456d9f | 7600 | { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS }, |
9e689c06 RD |
7601 | { "wxPrintData_SetPrintMode", (PyCFunction) _wrap_wxPrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, |
7602 | { "wxPrintData_SetPrinterTranslation", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
7603 | { "wxPrintData_SetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
7604 | { "wxPrintData_SetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
7605 | { "wxPrintData_SetPrinterScaling", (PyCFunction) _wrap_wxPrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
7606 | { "wxPrintData_SetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
7607 | { "wxPrintData_SetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
7608 | { "wxPrintData_SetFontMetricPath", (PyCFunction) _wrap_wxPrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
7609 | { "wxPrintData_SetFilename", (PyCFunction) _wrap_wxPrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
7610 | { "wxPrintData_SetPreviewCommand", (PyCFunction) _wrap_wxPrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
7611 | { "wxPrintData_SetPrinterOptions", (PyCFunction) _wrap_wxPrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
7612 | { "wxPrintData_SetPrinterCommand", (PyCFunction) _wrap_wxPrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
7613 | { "wxPrintData_GetPrintMode", (PyCFunction) _wrap_wxPrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
7614 | { "wxPrintData_GetPrinterTranslateY", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
7615 | { "wxPrintData_GetPrinterTranslateX", (PyCFunction) _wrap_wxPrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
7616 | { "wxPrintData_GetPrinterScaleY", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
7617 | { "wxPrintData_GetPrinterScaleX", (PyCFunction) _wrap_wxPrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
7618 | { "wxPrintData_GetFontMetricPath", (PyCFunction) _wrap_wxPrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
7619 | { "wxPrintData_GetFilename", (PyCFunction) _wrap_wxPrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
7620 | { "wxPrintData_GetPreviewCommand", (PyCFunction) _wrap_wxPrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
7621 | { "wxPrintData_GetPrinterOptions", (PyCFunction) _wrap_wxPrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
7622 | { "wxPrintData_GetPrinterCommand", (PyCFunction) _wrap_wxPrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7623 | { "wxPrintData_SetQuality", (PyCFunction) _wrap_wxPrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, |
7624 | { "wxPrintData_SetPaperSize", (PyCFunction) _wrap_wxPrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
7625 | { "wxPrintData_SetPaperId", (PyCFunction) _wrap_wxPrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
7626 | { "wxPrintData_SetDuplex", (PyCFunction) _wrap_wxPrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
7627 | { "wxPrintData_SetColour", (PyCFunction) _wrap_wxPrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
7628 | { "wxPrintData_SetPrinterName", (PyCFunction) _wrap_wxPrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
7629 | { "wxPrintData_SetOrientation", (PyCFunction) _wrap_wxPrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
7630 | { "wxPrintData_SetCollate", (PyCFunction) _wrap_wxPrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
7631 | { "wxPrintData_SetNoCopies", (PyCFunction) _wrap_wxPrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
7632 | { "wxPrintData_GetQuality", (PyCFunction) _wrap_wxPrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
7633 | { "wxPrintData_GetPaperSize", (PyCFunction) _wrap_wxPrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
7634 | { "wxPrintData_GetPaperId", (PyCFunction) _wrap_wxPrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
7635 | { "wxPrintData_GetDuplex", (PyCFunction) _wrap_wxPrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
7636 | { "wxPrintData_GetColour", (PyCFunction) _wrap_wxPrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
7637 | { "wxPrintData_GetPrinterName", (PyCFunction) _wrap_wxPrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
12d1116b | 7638 | { "wxPrintData_Ok", (PyCFunction) _wrap_wxPrintData_Ok, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7639 | { "wxPrintData_GetOrientation", (PyCFunction) _wrap_wxPrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, |
7640 | { "wxPrintData_GetCollate", (PyCFunction) _wrap_wxPrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
7641 | { "wxPrintData_GetNoCopies", (PyCFunction) _wrap_wxPrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
7642 | { "delete_wxPrintData", (PyCFunction) _wrap_delete_wxPrintData, METH_VARARGS | METH_KEYWORDS }, | |
7643 | { "new_wxPrintData", (PyCFunction) _wrap_new_wxPrintData, METH_VARARGS | METH_KEYWORDS }, | |
d24a34bb RD |
7644 | { NULL, NULL } |
7645 | }; | |
2d091820 RD |
7646 | #ifdef __cplusplus |
7647 | } | |
7648 | #endif | |
7649 | /* | |
7650 | * This table is used by the pointer type-checker | |
7651 | */ | |
7652 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
2d091820 | 7653 | { "_signed_long","_long",0}, |
4120ef2b | 7654 | { "_wxPrintQuality","_wxCoord",0}, |
2d091820 RD |
7655 | { "_wxPrintQuality","_int",0}, |
7656 | { "_wxPrintQuality","_signed_int",0}, | |
7657 | { "_wxPrintQuality","_unsigned_int",0}, | |
7658 | { "_wxPrintQuality","_wxWindowID",0}, | |
7659 | { "_wxPrintQuality","_uint",0}, | |
7660 | { "_wxPrintQuality","_EBool",0}, | |
7661 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 7662 | { "_wxPrintQuality","_time_t",0}, |
2d091820 | 7663 | { "_byte","_unsigned_char",0}, |
2d091820 RD |
7664 | { "_long","_unsigned_long",0}, |
7665 | { "_long","_signed_long",0}, | |
56456d9f | 7666 | { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC}, |
1fded56b | 7667 | { "_wxPrintPreview","_wxPyPrintPreview",SwigwxPyPrintPreviewTowxPrintPreview}, |
4120ef2b | 7668 | { "_size_t","_wxCoord",0}, |
2d091820 | 7669 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 7670 | { "_size_t","_time_t",0}, |
2d091820 RD |
7671 | { "_size_t","_unsigned_int",0}, |
7672 | { "_size_t","_int",0}, | |
7673 | { "_size_t","_wxWindowID",0}, | |
7674 | { "_size_t","_uint",0}, | |
1fded56b RD |
7675 | { "_wxPanel","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxPanel}, |
7676 | { "_wxPanel","_wxPreviewControlBar",SwigwxPreviewControlBarTowxPanel}, | |
7677 | { "_wxPanel","_wxPreviewCanvas",SwigwxPreviewCanvasTowxPanel}, | |
7678 | { "_wxTopLevelWindow","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxTopLevelWindow}, | |
32c988a3 | 7679 | { "_wxTopLevelWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxTopLevelWindow}, |
1fded56b | 7680 | { "_wxTopLevelWindow","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxTopLevelWindow}, |
32c988a3 | 7681 | { "_wxTopLevelWindow","_wxPrintDialog",SwigwxPrintDialogTowxTopLevelWindow}, |
32c988a3 | 7682 | { "_wxTopLevelWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxTopLevelWindow}, |
4120ef2b | 7683 | { "_uint","_wxCoord",0}, |
2d091820 | 7684 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 7685 | { "_uint","_time_t",0}, |
2d091820 RD |
7686 | { "_uint","_size_t",0}, |
7687 | { "_uint","_unsigned_int",0}, | |
7688 | { "_uint","_int",0}, | |
7689 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 7690 | { "_wxChar","_char",0}, |
f6bcfd97 | 7691 | { "_char","_wxChar",0}, |
059a841c | 7692 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
4120ef2b | 7693 | { "_EBool","_wxCoord",0}, |
2d091820 RD |
7694 | { "_EBool","_wxPrintQuality",0}, |
7695 | { "_EBool","_signed_int",0}, | |
7696 | { "_EBool","_int",0}, | |
7697 | { "_EBool","_wxWindowID",0}, | |
1fded56b | 7698 | { "_wxPreviewControlBar","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxPreviewControlBar}, |
2d091820 | 7699 | { "_unsigned_long","_long",0}, |
059a841c | 7700 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
4120ef2b | 7701 | { "_signed_int","_wxCoord",0}, |
2d091820 RD |
7702 | { "_signed_int","_wxPrintQuality",0}, |
7703 | { "_signed_int","_EBool",0}, | |
7704 | { "_signed_int","_wxWindowID",0}, | |
7705 | { "_signed_int","_int",0}, | |
2d091820 RD |
7706 | { "_WXTYPE","_short",0}, |
7707 | { "_WXTYPE","_signed_short",0}, | |
7708 | { "_WXTYPE","_unsigned_short",0}, | |
2d091820 RD |
7709 | { "_unsigned_short","_WXTYPE",0}, |
7710 | { "_unsigned_short","_short",0}, | |
1fded56b RD |
7711 | { "_wxObject","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxObject}, |
7712 | { "_wxObject","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxObject}, | |
7713 | { "_wxObject","_wxPyPrintPreview",SwigwxPyPrintPreviewTowxObject}, | |
7714 | { "_wxObject","_wxPreviewControlBar",SwigwxPreviewControlBarTowxObject}, | |
7715 | { "_wxObject","_wxPreviewCanvas",SwigwxPreviewCanvasTowxObject}, | |
9df61a29 | 7716 | { "_wxObject","_wxPreviewFrame",SwigwxPreviewFrameTowxObject}, |
9df61a29 | 7717 | { "_wxObject","_wxPrintPreview",SwigwxPrintPreviewTowxObject}, |
1fded56b | 7718 | { "_wxObject","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxObject}, |
9df61a29 | 7719 | { "_wxObject","_wxPrinter",SwigwxPrinterTowxObject}, |
9df61a29 | 7720 | { "_wxObject","_wxPyPrintout",SwigwxPyPrintoutTowxObject}, |
9df61a29 | 7721 | { "_wxObject","_wxPrintDialog",SwigwxPrintDialogTowxObject}, |
9df61a29 | 7722 | { "_wxObject","_wxPrintDialogData",SwigwxPrintDialogDataTowxObject}, |
9df61a29 | 7723 | { "_wxObject","_wxPageSetupDialog",SwigwxPageSetupDialogTowxObject}, |
9df61a29 | 7724 | { "_wxObject","_wxPageSetupDialogData",SwigwxPageSetupDialogDataTowxObject}, |
56456d9f | 7725 | { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject}, |
9df61a29 | 7726 | { "_wxObject","_wxPrintData",SwigwxPrintDataTowxObject}, |
2d091820 RD |
7727 | { "_signed_short","_WXTYPE",0}, |
7728 | { "_signed_short","_short",0}, | |
1fded56b | 7729 | { "_wxScrolledWindow","_wxPreviewCanvas",SwigwxPreviewCanvasTowxScrolledWindow}, |
2d091820 | 7730 | { "_unsigned_char","_byte",0}, |
4120ef2b | 7731 | { "_unsigned_int","_wxCoord",0}, |
2d091820 | 7732 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 7733 | { "_unsigned_int","_time_t",0}, |
2d091820 RD |
7734 | { "_unsigned_int","_size_t",0}, |
7735 | { "_unsigned_int","_uint",0}, | |
7736 | { "_unsigned_int","_wxWindowID",0}, | |
7737 | { "_unsigned_int","_int",0}, | |
1fded56b | 7738 | { "_wxDialog","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxDialog}, |
2d091820 | 7739 | { "_wxDialog","_wxPrintDialog",SwigwxPrintDialogTowxDialog}, |
2d091820 | 7740 | { "_wxDialog","_wxPageSetupDialog",SwigwxPageSetupDialogTowxDialog}, |
2d091820 RD |
7741 | { "_short","_WXTYPE",0}, |
7742 | { "_short","_unsigned_short",0}, | |
7743 | { "_short","_signed_short",0}, | |
1fded56b | 7744 | { "_wxFrame","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxFrame}, |
2d091820 | 7745 | { "_wxFrame","_wxPreviewFrame",SwigwxPreviewFrameTowxFrame}, |
4120ef2b | 7746 | { "_wxWindowID","_wxCoord",0}, |
2d091820 | 7747 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 7748 | { "_wxWindowID","_time_t",0}, |
2d091820 RD |
7749 | { "_wxWindowID","_size_t",0}, |
7750 | { "_wxWindowID","_EBool",0}, | |
7751 | { "_wxWindowID","_uint",0}, | |
7752 | { "_wxWindowID","_int",0}, | |
7753 | { "_wxWindowID","_signed_int",0}, | |
7754 | { "_wxWindowID","_unsigned_int",0}, | |
4120ef2b | 7755 | { "_int","_wxCoord",0}, |
2d091820 | 7756 | { "_int","_wxPrintQuality",0}, |
c368d904 | 7757 | { "_int","_time_t",0}, |
2d091820 RD |
7758 | { "_int","_size_t",0}, |
7759 | { "_int","_EBool",0}, | |
7760 | { "_int","_uint",0}, | |
7761 | { "_int","_wxWindowID",0}, | |
7762 | { "_int","_unsigned_int",0}, | |
7763 | { "_int","_signed_int",0}, | |
c368d904 RD |
7764 | { "_time_t","_wxCoord",0}, |
7765 | { "_time_t","_wxPrintQuality",0}, | |
7766 | { "_time_t","_unsigned_int",0}, | |
7767 | { "_time_t","_int",0}, | |
7768 | { "_time_t","_wxWindowID",0}, | |
7769 | { "_time_t","_uint",0}, | |
7770 | { "_time_t","_size_t",0}, | |
4120ef2b RD |
7771 | { "_wxCoord","_int",0}, |
7772 | { "_wxCoord","_signed_int",0}, | |
7773 | { "_wxCoord","_unsigned_int",0}, | |
7774 | { "_wxCoord","_wxWindowID",0}, | |
7775 | { "_wxCoord","_uint",0}, | |
7776 | { "_wxCoord","_EBool",0}, | |
7777 | { "_wxCoord","_size_t",0}, | |
c368d904 | 7778 | { "_wxCoord","_time_t",0}, |
4120ef2b | 7779 | { "_wxCoord","_wxPrintQuality",0}, |
1fded56b RD |
7780 | { "_wxPreviewFrame","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxPreviewFrame}, |
7781 | { "_wxEvtHandler","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxEvtHandler}, | |
7782 | { "_wxEvtHandler","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxEvtHandler}, | |
7783 | { "_wxEvtHandler","_wxPreviewControlBar",SwigwxPreviewControlBarTowxEvtHandler}, | |
7784 | { "_wxEvtHandler","_wxPreviewCanvas",SwigwxPreviewCanvasTowxEvtHandler}, | |
2d091820 | 7785 | { "_wxEvtHandler","_wxPreviewFrame",SwigwxPreviewFrameTowxEvtHandler}, |
1fded56b | 7786 | { "_wxEvtHandler","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxEvtHandler}, |
2d091820 | 7787 | { "_wxEvtHandler","_wxPrintDialog",SwigwxPrintDialogTowxEvtHandler}, |
2d091820 | 7788 | { "_wxEvtHandler","_wxPageSetupDialog",SwigwxPageSetupDialogTowxEvtHandler}, |
1fded56b RD |
7789 | { "_wxWindow","_wxPyPreviewControlBar",SwigwxPyPreviewControlBarTowxWindow}, |
7790 | { "_wxWindow","_wxPyPreviewFrame",SwigwxPyPreviewFrameTowxWindow}, | |
7791 | { "_wxWindow","_wxPreviewControlBar",SwigwxPreviewControlBarTowxWindow}, | |
7792 | { "_wxWindow","_wxPreviewCanvas",SwigwxPreviewCanvasTowxWindow}, | |
2d091820 | 7793 | { "_wxWindow","_wxPreviewFrame",SwigwxPreviewFrameTowxWindow}, |
1fded56b | 7794 | { "_wxWindow","_wxPrintAbortDialog",SwigwxPrintAbortDialogTowxWindow}, |
2d091820 | 7795 | { "_wxWindow","_wxPrintDialog",SwigwxPrintDialogTowxWindow}, |
2d091820 | 7796 | { "_wxWindow","_wxPageSetupDialog",SwigwxPageSetupDialogTowxWindow}, |
2d091820 RD |
7797 | {0,0,0}}; |
7798 | ||
d24a34bb RD |
7799 | static PyObject *SWIG_globals; |
7800 | #ifdef __cplusplus | |
7801 | extern "C" | |
7802 | #endif | |
2d091820 | 7803 | SWIGEXPORT(void) initprintfwc() { |
d24a34bb RD |
7804 | PyObject *m, *d; |
7805 | SWIG_globals = SWIG_newvarlink(); | |
7806 | m = Py_InitModule("printfwc", printfwcMethods); | |
7807 | d = PyModule_GetDict(m); | |
1fded56b RD |
7808 | PyDict_SetItemString(d,"wxPRINT_MODE_NONE", PyInt_FromLong((long) wxPRINT_MODE_NONE)); |
7809 | PyDict_SetItemString(d,"wxPRINT_MODE_PREVIEW", PyInt_FromLong((long) wxPRINT_MODE_PREVIEW)); | |
7810 | PyDict_SetItemString(d,"wxPRINT_MODE_FILE", PyInt_FromLong((long) wxPRINT_MODE_FILE)); | |
7811 | PyDict_SetItemString(d,"wxPRINT_MODE_PRINTER", PyInt_FromLong((long) wxPRINT_MODE_PRINTER)); | |
7812 | PyDict_SetItemString(d,"wxPRINTER_NO_ERROR", PyInt_FromLong((long) wxPRINTER_NO_ERROR)); | |
7813 | PyDict_SetItemString(d,"wxPRINTER_CANCELLED", PyInt_FromLong((long) wxPRINTER_CANCELLED)); | |
7814 | PyDict_SetItemString(d,"wxPRINTER_ERROR", PyInt_FromLong((long) wxPRINTER_ERROR)); | |
7815 | PyDict_SetItemString(d,"wxPREVIEW_PRINT", PyInt_FromLong((long) wxPREVIEW_PRINT)); | |
7816 | PyDict_SetItemString(d,"wxPREVIEW_PREVIOUS", PyInt_FromLong((long) wxPREVIEW_PREVIOUS)); | |
7817 | PyDict_SetItemString(d,"wxPREVIEW_NEXT", PyInt_FromLong((long) wxPREVIEW_NEXT)); | |
7818 | PyDict_SetItemString(d,"wxPREVIEW_ZOOM", PyInt_FromLong((long) wxPREVIEW_ZOOM)); | |
7819 | PyDict_SetItemString(d,"wxPREVIEW_FIRST", PyInt_FromLong((long) wxPREVIEW_FIRST)); | |
7820 | PyDict_SetItemString(d,"wxPREVIEW_LAST", PyInt_FromLong((long) wxPREVIEW_LAST)); | |
7821 | PyDict_SetItemString(d,"wxPREVIEW_GOTO", PyInt_FromLong((long) wxPREVIEW_GOTO)); | |
7822 | PyDict_SetItemString(d,"wxPREVIEW_DEFAULT", PyInt_FromLong((long) wxPREVIEW_DEFAULT)); | |
7823 | PyDict_SetItemString(d,"wxID_PREVIEW_CLOSE", PyInt_FromLong((long) wxID_PREVIEW_CLOSE)); | |
7824 | PyDict_SetItemString(d,"wxID_PREVIEW_NEXT", PyInt_FromLong((long) wxID_PREVIEW_NEXT)); | |
7825 | PyDict_SetItemString(d,"wxID_PREVIEW_PREVIOUS", PyInt_FromLong((long) wxID_PREVIEW_PREVIOUS)); | |
7826 | PyDict_SetItemString(d,"wxID_PREVIEW_PRINT", PyInt_FromLong((long) wxID_PREVIEW_PRINT)); | |
7827 | PyDict_SetItemString(d,"wxID_PREVIEW_ZOOM", PyInt_FromLong((long) wxID_PREVIEW_ZOOM)); | |
7828 | PyDict_SetItemString(d,"wxID_PREVIEW_FIRST", PyInt_FromLong((long) wxID_PREVIEW_FIRST)); | |
7829 | PyDict_SetItemString(d,"wxID_PREVIEW_LAST", PyInt_FromLong((long) wxID_PREVIEW_LAST)); | |
7830 | PyDict_SetItemString(d,"wxID_PREVIEW_GOTO", PyInt_FromLong((long) wxID_PREVIEW_GOTO)); | |
9df61a29 RD |
7831 | |
7832 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
2d091820 RD |
7833 | { |
7834 | int i; | |
7835 | for (i = 0; _swig_mapping[i].n1; i++) | |
7836 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
7837 | } | |
d24a34bb | 7838 | } |