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