1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/print.h>
13
14 #include <wx/cmndata.h>
15 #include <wx/print.h>
16 #include <wx/gdicmn.h>
17 #include <wx/dc.h>
18 #include <wx/gdicmn.h>
19 #include <wx/object.h>
20 #include <wx/object.h>
21 #include <wx/object.h>
22
23
24 class sipwxPrintout : public ::wxPrintout
25 {
26 public:
27 sipwxPrintout(const ::wxString&);
28 virtual ~sipwxPrintout();
29
30 /*
31 * There is a protected method for every virtual method visible from
32 * this class.
33 */
34 protected:
35 bool OnPrintPage(int) SIP_OVERRIDE;
36 void OnPreparePrinting() SIP_OVERRIDE;
37 void OnEndPrinting() SIP_OVERRIDE;
38 void OnEndDocument() SIP_OVERRIDE;
39 void OnBeginPrinting() SIP_OVERRIDE;
40 bool OnBeginDocument(int,int) SIP_OVERRIDE;
41 bool IsPreview() const SIP_OVERRIDE;
42 bool HasPage(int) SIP_OVERRIDE;
43 ::wxString GetTitle() const SIP_OVERRIDE;
44 void GetPageInfo(int*,int*,int*,int*) SIP_OVERRIDE;
45
46 public:
47 sipSimpleWrapper *sipPySelf;
48
49 private:
50 sipwxPrintout(const sipwxPrintout &);
51 sipwxPrintout &operator = (const sipwxPrintout &);
52
53 char sipPyMethods[10];
54 };
55
sipwxPrintout(const::wxString & title)56 sipwxPrintout::sipwxPrintout(const ::wxString& title): ::wxPrintout(title), sipPySelf(SIP_NULLPTR)
57 {
58 memset(sipPyMethods, 0, sizeof (sipPyMethods));
59 }
60
~sipwxPrintout()61 sipwxPrintout::~sipwxPrintout()
62 {
63 sipInstanceDestroyedEx(&sipPySelf);
64 }
65
OnPrintPage(int pageNum)66 bool sipwxPrintout::OnPrintPage(int pageNum)
67 {
68 sip_gilstate_t sipGILState;
69 PyObject *sipMeth;
70
71 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Printout,sipName_OnPrintPage);
72
73 if (!sipMeth)
74 return 0;
75
76 extern bool sipVH__core_132(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
77
78 return sipVH__core_132(sipGILState, 0, sipPySelf, sipMeth, pageNum);
79 }
80
OnPreparePrinting()81 void sipwxPrintout::OnPreparePrinting()
82 {
83 sip_gilstate_t sipGILState;
84 PyObject *sipMeth;
85
86 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_OnPreparePrinting);
87
88 if (!sipMeth)
89 {
90 ::wxPrintout::OnPreparePrinting();
91 return;
92 }
93
94 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
95
96 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
97 }
98
OnEndPrinting()99 void sipwxPrintout::OnEndPrinting()
100 {
101 sip_gilstate_t sipGILState;
102 PyObject *sipMeth;
103
104 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_OnEndPrinting);
105
106 if (!sipMeth)
107 {
108 ::wxPrintout::OnEndPrinting();
109 return;
110 }
111
112 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
113
114 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
115 }
116
OnEndDocument()117 void sipwxPrintout::OnEndDocument()
118 {
119 sip_gilstate_t sipGILState;
120 PyObject *sipMeth;
121
122 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_OnEndDocument);
123
124 if (!sipMeth)
125 {
126 ::wxPrintout::OnEndDocument();
127 return;
128 }
129
130 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
131
132 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
133 }
134
OnBeginPrinting()135 void sipwxPrintout::OnBeginPrinting()
136 {
137 sip_gilstate_t sipGILState;
138 PyObject *sipMeth;
139
140 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_OnBeginPrinting);
141
142 if (!sipMeth)
143 {
144 ::wxPrintout::OnBeginPrinting();
145 return;
146 }
147
148 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
149
150 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
151 }
152
OnBeginDocument(int startPage,int endPage)153 bool sipwxPrintout::OnBeginDocument(int startPage,int endPage)
154 {
155 sip_gilstate_t sipGILState;
156 PyObject *sipMeth;
157
158 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,SIP_NULLPTR,sipName_OnBeginDocument);
159
160 if (!sipMeth)
161 return ::wxPrintout::OnBeginDocument(startPage,endPage);
162
163 extern bool sipVH__core_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxCoord, ::wxCoord);
164
165 return sipVH__core_78(sipGILState, 0, sipPySelf, sipMeth, startPage, endPage);
166 }
167
IsPreview() const168 bool sipwxPrintout::IsPreview() const
169 {
170 sip_gilstate_t sipGILState;
171 PyObject *sipMeth;
172
173 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_IsPreview);
174
175 if (!sipMeth)
176 return ::wxPrintout::IsPreview();
177
178 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
179
180 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
181 }
182
HasPage(int pageNum)183 bool sipwxPrintout::HasPage(int pageNum)
184 {
185 sip_gilstate_t sipGILState;
186 PyObject *sipMeth;
187
188 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_HasPage);
189
190 if (!sipMeth)
191 return ::wxPrintout::HasPage(pageNum);
192
193 extern bool sipVH__core_132(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);
194
195 return sipVH__core_132(sipGILState, 0, sipPySelf, sipMeth, pageNum);
196 }
197
GetTitle() const198 ::wxString sipwxPrintout::GetTitle() const
199 {
200 sip_gilstate_t sipGILState;
201 PyObject *sipMeth;
202
203 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_GetTitle);
204
205 if (!sipMeth)
206 return ::wxPrintout::GetTitle();
207
208 extern ::wxString sipVH__core_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
209
210 return sipVH__core_11(sipGILState, 0, sipPySelf, sipMeth);
211 }
212
GetPageInfo(int * minPage,int * maxPage,int * pageFrom,int * pageTo)213 void sipwxPrintout::GetPageInfo(int*minPage,int*maxPage,int*pageFrom,int*pageTo)
214 {
215 sip_gilstate_t sipGILState;
216 PyObject *sipMeth;
217
218 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_GetPageInfo);
219
220 if (!sipMeth)
221 {
222 ::wxPrintout::GetPageInfo(minPage,maxPage,pageFrom,pageTo);
223 return;
224 }
225
226 extern void sipVH__core_209(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*,int*,int*);
227
228 sipVH__core_209(sipGILState, 0, sipPySelf, sipMeth, minPage, maxPage, pageFrom, pageTo);
229 }
230
231
232 PyDoc_STRVAR(doc_wxPrintout_FitThisSizeToPage, "FitThisSizeToPage(imageSize)\n"
233 "\n"
234 "Set the user scale and device origin of the wxDC associated with this\n"
235 "wxPrintout so that the given image size fits entirely within the page\n"
236 "rectangle and the origin is at the top left corner of the page\n"
237 "rectangle.");
238
239 extern "C" {static PyObject *meth_wxPrintout_FitThisSizeToPage(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_FitThisSizeToPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)240 static PyObject *meth_wxPrintout_FitThisSizeToPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
241 {
242 PyObject *sipParseErr = SIP_NULLPTR;
243
244 {
245 const ::wxSize* imageSize;
246 int imageSizeState = 0;
247 ::wxPrintout *sipCpp;
248
249 static const char *sipKwdList[] = {
250 sipName_imageSize,
251 };
252
253 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPrintout, &sipCpp, sipType_wxSize, &imageSize, &imageSizeState))
254 {
255 PyErr_Clear();
256
257 Py_BEGIN_ALLOW_THREADS
258 sipCpp->FitThisSizeToPage(*imageSize);
259 Py_END_ALLOW_THREADS
260 sipReleaseType(const_cast< ::wxSize *>(imageSize),sipType_wxSize,imageSizeState);
261
262 if (PyErr_Occurred())
263 return 0;
264
265 Py_INCREF(Py_None);
266 return Py_None;
267 }
268 }
269
270 /* Raise an exception if the arguments couldn't be parsed. */
271 sipNoMethod(sipParseErr, sipName_Printout, sipName_FitThisSizeToPage, SIP_NULLPTR);
272
273 return SIP_NULLPTR;
274 }
275
276
277 PyDoc_STRVAR(doc_wxPrintout_FitThisSizeToPageMargins, "FitThisSizeToPageMargins(imageSize, pageSetupData)\n"
278 "\n"
279 "Set the user scale and device origin of the wxDC associated with this\n"
280 "wxPrintout so that the given image size fits entirely within the page\n"
281 "margins set in the given wxPageSetupDialogData object.");
282
283 extern "C" {static PyObject *meth_wxPrintout_FitThisSizeToPageMargins(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_FitThisSizeToPageMargins(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)284 static PyObject *meth_wxPrintout_FitThisSizeToPageMargins(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
285 {
286 PyObject *sipParseErr = SIP_NULLPTR;
287
288 {
289 const ::wxSize* imageSize;
290 int imageSizeState = 0;
291 const ::wxPageSetupDialogData* pageSetupData;
292 ::wxPrintout *sipCpp;
293
294 static const char *sipKwdList[] = {
295 sipName_imageSize,
296 sipName_pageSetupData,
297 };
298
299 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J9", &sipSelf, sipType_wxPrintout, &sipCpp, sipType_wxSize, &imageSize, &imageSizeState, sipType_wxPageSetupDialogData, &pageSetupData))
300 {
301 PyErr_Clear();
302
303 Py_BEGIN_ALLOW_THREADS
304 sipCpp->FitThisSizeToPageMargins(*imageSize,*pageSetupData);
305 Py_END_ALLOW_THREADS
306 sipReleaseType(const_cast< ::wxSize *>(imageSize),sipType_wxSize,imageSizeState);
307
308 if (PyErr_Occurred())
309 return 0;
310
311 Py_INCREF(Py_None);
312 return Py_None;
313 }
314 }
315
316 /* Raise an exception if the arguments couldn't be parsed. */
317 sipNoMethod(sipParseErr, sipName_Printout, sipName_FitThisSizeToPageMargins, SIP_NULLPTR);
318
319 return SIP_NULLPTR;
320 }
321
322
323 PyDoc_STRVAR(doc_wxPrintout_FitThisSizeToPaper, "FitThisSizeToPaper(imageSize)\n"
324 "\n"
325 "Set the user scale and device origin of the wxDC associated with this\n"
326 "wxPrintout so that the given image size fits entirely within the paper\n"
327 "and the origin is at the top left corner of the paper.");
328
329 extern "C" {static PyObject *meth_wxPrintout_FitThisSizeToPaper(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_FitThisSizeToPaper(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)330 static PyObject *meth_wxPrintout_FitThisSizeToPaper(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
331 {
332 PyObject *sipParseErr = SIP_NULLPTR;
333
334 {
335 const ::wxSize* imageSize;
336 int imageSizeState = 0;
337 ::wxPrintout *sipCpp;
338
339 static const char *sipKwdList[] = {
340 sipName_imageSize,
341 };
342
343 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxPrintout, &sipCpp, sipType_wxSize, &imageSize, &imageSizeState))
344 {
345 PyErr_Clear();
346
347 Py_BEGIN_ALLOW_THREADS
348 sipCpp->FitThisSizeToPaper(*imageSize);
349 Py_END_ALLOW_THREADS
350 sipReleaseType(const_cast< ::wxSize *>(imageSize),sipType_wxSize,imageSizeState);
351
352 if (PyErr_Occurred())
353 return 0;
354
355 Py_INCREF(Py_None);
356 return Py_None;
357 }
358 }
359
360 /* Raise an exception if the arguments couldn't be parsed. */
361 sipNoMethod(sipParseErr, sipName_Printout, sipName_FitThisSizeToPaper, SIP_NULLPTR);
362
363 return SIP_NULLPTR;
364 }
365
366
367 PyDoc_STRVAR(doc_wxPrintout_GetDC, "GetDC() -> DC\n"
368 "\n"
369 "Returns the device context associated with the printout (given to the\n"
370 "printout at start of printing or previewing).");
371
372 extern "C" {static PyObject *meth_wxPrintout_GetDC(PyObject *, PyObject *);}
meth_wxPrintout_GetDC(PyObject * sipSelf,PyObject * sipArgs)373 static PyObject *meth_wxPrintout_GetDC(PyObject *sipSelf, PyObject *sipArgs)
374 {
375 PyObject *sipParseErr = SIP_NULLPTR;
376
377 {
378 const ::wxPrintout *sipCpp;
379
380 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
381 {
382 ::wxDC*sipRes;
383
384 PyErr_Clear();
385
386 Py_BEGIN_ALLOW_THREADS
387 sipRes = sipCpp->GetDC();
388 Py_END_ALLOW_THREADS
389
390 if (PyErr_Occurred())
391 return 0;
392
393 return sipConvertFromType(sipRes,sipType_wxDC,SIP_NULLPTR);
394 }
395 }
396
397 /* Raise an exception if the arguments couldn't be parsed. */
398 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetDC, SIP_NULLPTR);
399
400 return SIP_NULLPTR;
401 }
402
403
404 PyDoc_STRVAR(doc_wxPrintout_GetLogicalPageMarginsRect, "GetLogicalPageMarginsRect(pageSetupData) -> Rect\n"
405 "\n"
406 "Return the rectangle corresponding to the page margins specified by\n"
407 "the given wxPageSetupDialogData object in the associated wxDC's\n"
408 "logical coordinates for the current user scale and device origin.");
409
410 extern "C" {static PyObject *meth_wxPrintout_GetLogicalPageMarginsRect(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetLogicalPageMarginsRect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)411 static PyObject *meth_wxPrintout_GetLogicalPageMarginsRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
412 {
413 PyObject *sipParseErr = SIP_NULLPTR;
414
415 {
416 const ::wxPageSetupDialogData* pageSetupData;
417 const ::wxPrintout *sipCpp;
418
419 static const char *sipKwdList[] = {
420 sipName_pageSetupData,
421 };
422
423 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPrintout, &sipCpp, sipType_wxPageSetupDialogData, &pageSetupData))
424 {
425 ::wxRect*sipRes;
426
427 PyErr_Clear();
428
429 Py_BEGIN_ALLOW_THREADS
430 sipRes = new ::wxRect(sipCpp->GetLogicalPageMarginsRect(*pageSetupData));
431 Py_END_ALLOW_THREADS
432
433 if (PyErr_Occurred())
434 return 0;
435
436 return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
437 }
438 }
439
440 /* Raise an exception if the arguments couldn't be parsed. */
441 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetLogicalPageMarginsRect, SIP_NULLPTR);
442
443 return SIP_NULLPTR;
444 }
445
446
447 PyDoc_STRVAR(doc_wxPrintout_GetLogicalPageRect, "GetLogicalPageRect() -> Rect\n"
448 "\n"
449 "Return the rectangle corresponding to the page in the associated wxDC\n"
450 "'s logical coordinates for the current user scale and device origin.");
451
452 extern "C" {static PyObject *meth_wxPrintout_GetLogicalPageRect(PyObject *, PyObject *);}
meth_wxPrintout_GetLogicalPageRect(PyObject * sipSelf,PyObject * sipArgs)453 static PyObject *meth_wxPrintout_GetLogicalPageRect(PyObject *sipSelf, PyObject *sipArgs)
454 {
455 PyObject *sipParseErr = SIP_NULLPTR;
456
457 {
458 const ::wxPrintout *sipCpp;
459
460 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
461 {
462 ::wxRect*sipRes;
463
464 PyErr_Clear();
465
466 Py_BEGIN_ALLOW_THREADS
467 sipRes = new ::wxRect(sipCpp->GetLogicalPageRect());
468 Py_END_ALLOW_THREADS
469
470 if (PyErr_Occurred())
471 return 0;
472
473 return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
474 }
475 }
476
477 /* Raise an exception if the arguments couldn't be parsed. */
478 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetLogicalPageRect, SIP_NULLPTR);
479
480 return SIP_NULLPTR;
481 }
482
483
484 PyDoc_STRVAR(doc_wxPrintout_GetLogicalPaperRect, "GetLogicalPaperRect() -> Rect\n"
485 "\n"
486 "Return the rectangle corresponding to the paper in the associated wxDC\n"
487 "'s logical coordinates for the current user scale and device origin.");
488
489 extern "C" {static PyObject *meth_wxPrintout_GetLogicalPaperRect(PyObject *, PyObject *);}
meth_wxPrintout_GetLogicalPaperRect(PyObject * sipSelf,PyObject * sipArgs)490 static PyObject *meth_wxPrintout_GetLogicalPaperRect(PyObject *sipSelf, PyObject *sipArgs)
491 {
492 PyObject *sipParseErr = SIP_NULLPTR;
493
494 {
495 const ::wxPrintout *sipCpp;
496
497 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
498 {
499 ::wxRect*sipRes;
500
501 PyErr_Clear();
502
503 Py_BEGIN_ALLOW_THREADS
504 sipRes = new ::wxRect(sipCpp->GetLogicalPaperRect());
505 Py_END_ALLOW_THREADS
506
507 if (PyErr_Occurred())
508 return 0;
509
510 return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
511 }
512 }
513
514 /* Raise an exception if the arguments couldn't be parsed. */
515 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetLogicalPaperRect, SIP_NULLPTR);
516
517 return SIP_NULLPTR;
518 }
519
520
521 PyDoc_STRVAR(doc_wxPrintout_GetPPIPrinter, "GetPPIPrinter() -> (w, h)\n"
522 "\n"
523 "Returns the number of pixels per logical inch of the printer device\n"
524 "context.");
525
526 extern "C" {static PyObject *meth_wxPrintout_GetPPIPrinter(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetPPIPrinter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)527 static PyObject *meth_wxPrintout_GetPPIPrinter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
528 {
529 PyObject *sipParseErr = SIP_NULLPTR;
530
531 {
532 int w;
533 int h;
534 const ::wxPrintout *sipCpp;
535
536 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
537 {
538 PyErr_Clear();
539
540 Py_BEGIN_ALLOW_THREADS
541 sipCpp->GetPPIPrinter(&w,&h);
542 Py_END_ALLOW_THREADS
543
544 if (PyErr_Occurred())
545 return 0;
546
547 return sipBuildResult(0,"(ii)",w,h);
548 }
549 }
550
551 /* Raise an exception if the arguments couldn't be parsed. */
552 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPPIPrinter, SIP_NULLPTR);
553
554 return SIP_NULLPTR;
555 }
556
557
558 PyDoc_STRVAR(doc_wxPrintout_GetPPIScreen, "GetPPIScreen() -> (w, h)\n"
559 "\n"
560 "Returns the number of pixels per logical inch of the screen device\n"
561 "context.");
562
563 extern "C" {static PyObject *meth_wxPrintout_GetPPIScreen(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetPPIScreen(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)564 static PyObject *meth_wxPrintout_GetPPIScreen(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
565 {
566 PyObject *sipParseErr = SIP_NULLPTR;
567
568 {
569 int w;
570 int h;
571 const ::wxPrintout *sipCpp;
572
573 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
574 {
575 PyErr_Clear();
576
577 Py_BEGIN_ALLOW_THREADS
578 sipCpp->GetPPIScreen(&w,&h);
579 Py_END_ALLOW_THREADS
580
581 if (PyErr_Occurred())
582 return 0;
583
584 return sipBuildResult(0,"(ii)",w,h);
585 }
586 }
587
588 /* Raise an exception if the arguments couldn't be parsed. */
589 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPPIScreen, SIP_NULLPTR);
590
591 return SIP_NULLPTR;
592 }
593
594
595 PyDoc_STRVAR(doc_wxPrintout_GetPageInfo, "GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)\n"
596 "\n"
597 "Called by the framework to obtain information from the application\n"
598 "about minimum and maximum page values that the user can select, and\n"
599 "the required page range to be printed.");
600
601 extern "C" {static PyObject *meth_wxPrintout_GetPageInfo(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetPageInfo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)602 static PyObject *meth_wxPrintout_GetPageInfo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
603 {
604 PyObject *sipParseErr = SIP_NULLPTR;
605 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
606
607 {
608 int minPage;
609 int maxPage;
610 int pageFrom;
611 int pageTo;
612 ::wxPrintout *sipCpp;
613
614 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
615 {
616 PyErr_Clear();
617
618 Py_BEGIN_ALLOW_THREADS
619 (sipSelfWasArg ? sipCpp-> ::wxPrintout::GetPageInfo(&minPage,&maxPage,&pageFrom,&pageTo) : sipCpp->GetPageInfo(&minPage,&maxPage,&pageFrom,&pageTo));
620 Py_END_ALLOW_THREADS
621
622 if (PyErr_Occurred())
623 return 0;
624
625 return sipBuildResult(0,"(iiii)",minPage,maxPage,pageFrom,pageTo);
626 }
627 }
628
629 /* Raise an exception if the arguments couldn't be parsed. */
630 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPageInfo, SIP_NULLPTR);
631
632 return SIP_NULLPTR;
633 }
634
635
636 PyDoc_STRVAR(doc_wxPrintout_GetPageSizeMM, "GetPageSizeMM() -> (w, h)\n"
637 "\n"
638 "Returns the size of the printer page in millimetres.");
639
640 extern "C" {static PyObject *meth_wxPrintout_GetPageSizeMM(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetPageSizeMM(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)641 static PyObject *meth_wxPrintout_GetPageSizeMM(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
642 {
643 PyObject *sipParseErr = SIP_NULLPTR;
644
645 {
646 int w;
647 int h;
648 const ::wxPrintout *sipCpp;
649
650 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
651 {
652 PyErr_Clear();
653
654 Py_BEGIN_ALLOW_THREADS
655 sipCpp->GetPageSizeMM(&w,&h);
656 Py_END_ALLOW_THREADS
657
658 if (PyErr_Occurred())
659 return 0;
660
661 return sipBuildResult(0,"(ii)",w,h);
662 }
663 }
664
665 /* Raise an exception if the arguments couldn't be parsed. */
666 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPageSizeMM, SIP_NULLPTR);
667
668 return SIP_NULLPTR;
669 }
670
671
672 PyDoc_STRVAR(doc_wxPrintout_GetPageSizePixels, "GetPageSizePixels() -> (w, h)\n"
673 "\n"
674 "Returns the size of the printer page in pixels, called the page\n"
675 "rectangle.");
676
677 extern "C" {static PyObject *meth_wxPrintout_GetPageSizePixels(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_GetPageSizePixels(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)678 static PyObject *meth_wxPrintout_GetPageSizePixels(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
679 {
680 PyObject *sipParseErr = SIP_NULLPTR;
681
682 {
683 int w;
684 int h;
685 const ::wxPrintout *sipCpp;
686
687 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
688 {
689 PyErr_Clear();
690
691 Py_BEGIN_ALLOW_THREADS
692 sipCpp->GetPageSizePixels(&w,&h);
693 Py_END_ALLOW_THREADS
694
695 if (PyErr_Occurred())
696 return 0;
697
698 return sipBuildResult(0,"(ii)",w,h);
699 }
700 }
701
702 /* Raise an exception if the arguments couldn't be parsed. */
703 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPageSizePixels, SIP_NULLPTR);
704
705 return SIP_NULLPTR;
706 }
707
708
709 PyDoc_STRVAR(doc_wxPrintout_GetPaperRectPixels, "GetPaperRectPixels() -> Rect\n"
710 "\n"
711 "Returns the rectangle that corresponds to the entire paper in pixels,\n"
712 "called the paper rectangle.");
713
714 extern "C" {static PyObject *meth_wxPrintout_GetPaperRectPixels(PyObject *, PyObject *);}
meth_wxPrintout_GetPaperRectPixels(PyObject * sipSelf,PyObject * sipArgs)715 static PyObject *meth_wxPrintout_GetPaperRectPixels(PyObject *sipSelf, PyObject *sipArgs)
716 {
717 PyObject *sipParseErr = SIP_NULLPTR;
718
719 {
720 const ::wxPrintout *sipCpp;
721
722 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
723 {
724 ::wxRect*sipRes;
725
726 PyErr_Clear();
727
728 Py_BEGIN_ALLOW_THREADS
729 sipRes = new ::wxRect(sipCpp->GetPaperRectPixels());
730 Py_END_ALLOW_THREADS
731
732 if (PyErr_Occurred())
733 return 0;
734
735 return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
736 }
737 }
738
739 /* Raise an exception if the arguments couldn't be parsed. */
740 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPaperRectPixels, SIP_NULLPTR);
741
742 return SIP_NULLPTR;
743 }
744
745
746 PyDoc_STRVAR(doc_wxPrintout_GetTitle, "GetTitle() -> String\n"
747 "\n"
748 "Returns the title of the printout.");
749
750 extern "C" {static PyObject *meth_wxPrintout_GetTitle(PyObject *, PyObject *);}
meth_wxPrintout_GetTitle(PyObject * sipSelf,PyObject * sipArgs)751 static PyObject *meth_wxPrintout_GetTitle(PyObject *sipSelf, PyObject *sipArgs)
752 {
753 PyObject *sipParseErr = SIP_NULLPTR;
754 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
755
756 {
757 const ::wxPrintout *sipCpp;
758
759 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
760 {
761 ::wxString*sipRes;
762
763 PyErr_Clear();
764
765 Py_BEGIN_ALLOW_THREADS
766 sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxPrintout::GetTitle() : sipCpp->GetTitle()));
767 Py_END_ALLOW_THREADS
768
769 if (PyErr_Occurred())
770 return 0;
771
772 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
773 }
774 }
775
776 /* Raise an exception if the arguments couldn't be parsed. */
777 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetTitle, SIP_NULLPTR);
778
779 return SIP_NULLPTR;
780 }
781
782
783 PyDoc_STRVAR(doc_wxPrintout_HasPage, "HasPage(pageNum) -> bool\n"
784 "\n"
785 "Should be overridden to return true if the document has this page, or\n"
786 "false if not.");
787
788 extern "C" {static PyObject *meth_wxPrintout_HasPage(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_HasPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)789 static PyObject *meth_wxPrintout_HasPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
790 {
791 PyObject *sipParseErr = SIP_NULLPTR;
792 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
793
794 {
795 int pageNum;
796 ::wxPrintout *sipCpp;
797
798 static const char *sipKwdList[] = {
799 sipName_pageNum,
800 };
801
802 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPrintout, &sipCpp, &pageNum))
803 {
804 bool sipRes;
805
806 PyErr_Clear();
807
808 Py_BEGIN_ALLOW_THREADS
809 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPrintout::HasPage(pageNum) : sipCpp->HasPage(pageNum));
810 Py_END_ALLOW_THREADS
811
812 if (PyErr_Occurred())
813 return 0;
814
815 return PyBool_FromLong(sipRes);
816 }
817 }
818
819 /* Raise an exception if the arguments couldn't be parsed. */
820 sipNoMethod(sipParseErr, sipName_Printout, sipName_HasPage, SIP_NULLPTR);
821
822 return SIP_NULLPTR;
823 }
824
825
826 PyDoc_STRVAR(doc_wxPrintout_IsPreview, "IsPreview() -> bool\n"
827 "\n"
828 "Returns true if the printout is currently being used for previewing.");
829
830 extern "C" {static PyObject *meth_wxPrintout_IsPreview(PyObject *, PyObject *);}
meth_wxPrintout_IsPreview(PyObject * sipSelf,PyObject * sipArgs)831 static PyObject *meth_wxPrintout_IsPreview(PyObject *sipSelf, PyObject *sipArgs)
832 {
833 PyObject *sipParseErr = SIP_NULLPTR;
834 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
835
836 {
837 const ::wxPrintout *sipCpp;
838
839 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
840 {
841 bool sipRes;
842
843 PyErr_Clear();
844
845 Py_BEGIN_ALLOW_THREADS
846 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPrintout::IsPreview() : sipCpp->IsPreview());
847 Py_END_ALLOW_THREADS
848
849 if (PyErr_Occurred())
850 return 0;
851
852 return PyBool_FromLong(sipRes);
853 }
854 }
855
856 /* Raise an exception if the arguments couldn't be parsed. */
857 sipNoMethod(sipParseErr, sipName_Printout, sipName_IsPreview, SIP_NULLPTR);
858
859 return SIP_NULLPTR;
860 }
861
862
863 PyDoc_STRVAR(doc_wxPrintout_GetPreview, "GetPreview() -> PrintPreview\n"
864 "\n"
865 "Returns the associated preview object if any.");
866
867 extern "C" {static PyObject *meth_wxPrintout_GetPreview(PyObject *, PyObject *);}
meth_wxPrintout_GetPreview(PyObject * sipSelf,PyObject * sipArgs)868 static PyObject *meth_wxPrintout_GetPreview(PyObject *sipSelf, PyObject *sipArgs)
869 {
870 PyObject *sipParseErr = SIP_NULLPTR;
871
872 {
873 const ::wxPrintout *sipCpp;
874
875 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
876 {
877 ::wxPrintPreview*sipRes;
878
879 PyErr_Clear();
880
881 Py_BEGIN_ALLOW_THREADS
882 sipRes = sipCpp->GetPreview();
883 Py_END_ALLOW_THREADS
884
885 if (PyErr_Occurred())
886 return 0;
887
888 return sipConvertFromType(sipRes,sipType_wxPrintPreview,SIP_NULLPTR);
889 }
890 }
891
892 /* Raise an exception if the arguments couldn't be parsed. */
893 sipNoMethod(sipParseErr, sipName_Printout, sipName_GetPreview, SIP_NULLPTR);
894
895 return SIP_NULLPTR;
896 }
897
898
899 PyDoc_STRVAR(doc_wxPrintout_MapScreenSizeToDevice, "MapScreenSizeToDevice()\n"
900 "\n"
901 "Set the user scale and device origin of the wxDC associated with this\n"
902 "wxPrintout so that one screen pixel maps to one device pixel on the\n"
903 "DC.");
904
905 extern "C" {static PyObject *meth_wxPrintout_MapScreenSizeToDevice(PyObject *, PyObject *);}
meth_wxPrintout_MapScreenSizeToDevice(PyObject * sipSelf,PyObject * sipArgs)906 static PyObject *meth_wxPrintout_MapScreenSizeToDevice(PyObject *sipSelf, PyObject *sipArgs)
907 {
908 PyObject *sipParseErr = SIP_NULLPTR;
909
910 {
911 ::wxPrintout *sipCpp;
912
913 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
914 {
915 PyErr_Clear();
916
917 Py_BEGIN_ALLOW_THREADS
918 sipCpp->MapScreenSizeToDevice();
919 Py_END_ALLOW_THREADS
920
921 if (PyErr_Occurred())
922 return 0;
923
924 Py_INCREF(Py_None);
925 return Py_None;
926 }
927 }
928
929 /* Raise an exception if the arguments couldn't be parsed. */
930 sipNoMethod(sipParseErr, sipName_Printout, sipName_MapScreenSizeToDevice, SIP_NULLPTR);
931
932 return SIP_NULLPTR;
933 }
934
935
936 PyDoc_STRVAR(doc_wxPrintout_MapScreenSizeToPage, "MapScreenSizeToPage()\n"
937 "\n"
938 "This sets the user scale of the wxDC associated with this wxPrintout\n"
939 "to the same scale as MapScreenSizeToPaper() but sets the logical\n"
940 "origin to the top left corner of the page rectangle.");
941
942 extern "C" {static PyObject *meth_wxPrintout_MapScreenSizeToPage(PyObject *, PyObject *);}
meth_wxPrintout_MapScreenSizeToPage(PyObject * sipSelf,PyObject * sipArgs)943 static PyObject *meth_wxPrintout_MapScreenSizeToPage(PyObject *sipSelf, PyObject *sipArgs)
944 {
945 PyObject *sipParseErr = SIP_NULLPTR;
946
947 {
948 ::wxPrintout *sipCpp;
949
950 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
951 {
952 PyErr_Clear();
953
954 Py_BEGIN_ALLOW_THREADS
955 sipCpp->MapScreenSizeToPage();
956 Py_END_ALLOW_THREADS
957
958 if (PyErr_Occurred())
959 return 0;
960
961 Py_INCREF(Py_None);
962 return Py_None;
963 }
964 }
965
966 /* Raise an exception if the arguments couldn't be parsed. */
967 sipNoMethod(sipParseErr, sipName_Printout, sipName_MapScreenSizeToPage, SIP_NULLPTR);
968
969 return SIP_NULLPTR;
970 }
971
972
973 PyDoc_STRVAR(doc_wxPrintout_MapScreenSizeToPageMargins, "MapScreenSizeToPageMargins(pageSetupData)\n"
974 "\n"
975 "This sets the user scale of the wxDC associated with this wxPrintout\n"
976 "to the same scale as MapScreenSizeToPageMargins() but sets the logical\n"
977 "origin to the top left corner of the page margins specified by the\n"
978 "given wxPageSetupDialogData object.");
979
980 extern "C" {static PyObject *meth_wxPrintout_MapScreenSizeToPageMargins(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_MapScreenSizeToPageMargins(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)981 static PyObject *meth_wxPrintout_MapScreenSizeToPageMargins(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
982 {
983 PyObject *sipParseErr = SIP_NULLPTR;
984
985 {
986 const ::wxPageSetupDialogData* pageSetupData;
987 ::wxPrintout *sipCpp;
988
989 static const char *sipKwdList[] = {
990 sipName_pageSetupData,
991 };
992
993 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxPrintout, &sipCpp, sipType_wxPageSetupDialogData, &pageSetupData))
994 {
995 PyErr_Clear();
996
997 Py_BEGIN_ALLOW_THREADS
998 sipCpp->MapScreenSizeToPageMargins(*pageSetupData);
999 Py_END_ALLOW_THREADS
1000
1001 if (PyErr_Occurred())
1002 return 0;
1003
1004 Py_INCREF(Py_None);
1005 return Py_None;
1006 }
1007 }
1008
1009 /* Raise an exception if the arguments couldn't be parsed. */
1010 sipNoMethod(sipParseErr, sipName_Printout, sipName_MapScreenSizeToPageMargins, SIP_NULLPTR);
1011
1012 return SIP_NULLPTR;
1013 }
1014
1015
1016 PyDoc_STRVAR(doc_wxPrintout_MapScreenSizeToPaper, "MapScreenSizeToPaper()\n"
1017 "\n"
1018 "Set the user scale and device origin of the wxDC associated with this\n"
1019 "wxPrintout so that the printed page matches the screen size as closely\n"
1020 "as possible and the logical origin is in the top left corner of the\n"
1021 "paper rectangle.");
1022
1023 extern "C" {static PyObject *meth_wxPrintout_MapScreenSizeToPaper(PyObject *, PyObject *);}
meth_wxPrintout_MapScreenSizeToPaper(PyObject * sipSelf,PyObject * sipArgs)1024 static PyObject *meth_wxPrintout_MapScreenSizeToPaper(PyObject *sipSelf, PyObject *sipArgs)
1025 {
1026 PyObject *sipParseErr = SIP_NULLPTR;
1027
1028 {
1029 ::wxPrintout *sipCpp;
1030
1031 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
1032 {
1033 PyErr_Clear();
1034
1035 Py_BEGIN_ALLOW_THREADS
1036 sipCpp->MapScreenSizeToPaper();
1037 Py_END_ALLOW_THREADS
1038
1039 if (PyErr_Occurred())
1040 return 0;
1041
1042 Py_INCREF(Py_None);
1043 return Py_None;
1044 }
1045 }
1046
1047 /* Raise an exception if the arguments couldn't be parsed. */
1048 sipNoMethod(sipParseErr, sipName_Printout, sipName_MapScreenSizeToPaper, SIP_NULLPTR);
1049
1050 return SIP_NULLPTR;
1051 }
1052
1053
1054 PyDoc_STRVAR(doc_wxPrintout_OffsetLogicalOrigin, "OffsetLogicalOrigin(xoff, yoff)\n"
1055 "\n"
1056 "Shift the device origin by an amount specified in logical coordinates.");
1057
1058 extern "C" {static PyObject *meth_wxPrintout_OffsetLogicalOrigin(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_OffsetLogicalOrigin(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1059 static PyObject *meth_wxPrintout_OffsetLogicalOrigin(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1060 {
1061 PyObject *sipParseErr = SIP_NULLPTR;
1062
1063 {
1064 ::wxCoord xoff;
1065 ::wxCoord yoff;
1066 ::wxPrintout *sipCpp;
1067
1068 static const char *sipKwdList[] = {
1069 sipName_xoff,
1070 sipName_yoff,
1071 };
1072
1073 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPrintout, &sipCpp, &xoff, &yoff))
1074 {
1075 PyErr_Clear();
1076
1077 Py_BEGIN_ALLOW_THREADS
1078 sipCpp->OffsetLogicalOrigin(xoff,yoff);
1079 Py_END_ALLOW_THREADS
1080
1081 if (PyErr_Occurred())
1082 return 0;
1083
1084 Py_INCREF(Py_None);
1085 return Py_None;
1086 }
1087 }
1088
1089 /* Raise an exception if the arguments couldn't be parsed. */
1090 sipNoMethod(sipParseErr, sipName_Printout, sipName_OffsetLogicalOrigin, SIP_NULLPTR);
1091
1092 return SIP_NULLPTR;
1093 }
1094
1095
1096 PyDoc_STRVAR(doc_wxPrintout_OnBeginDocument, "OnBeginDocument(startPage, endPage) -> bool\n"
1097 "\n"
1098 "Called by the framework at the start of document printing.");
1099
1100 extern "C" {static PyObject *meth_wxPrintout_OnBeginDocument(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_OnBeginDocument(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1101 static PyObject *meth_wxPrintout_OnBeginDocument(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1102 {
1103 PyObject *sipParseErr = SIP_NULLPTR;
1104 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1105
1106 {
1107 int startPage;
1108 int endPage;
1109 ::wxPrintout *sipCpp;
1110
1111 static const char *sipKwdList[] = {
1112 sipName_startPage,
1113 sipName_endPage,
1114 };
1115
1116 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPrintout, &sipCpp, &startPage, &endPage))
1117 {
1118 bool sipRes;
1119
1120 PyErr_Clear();
1121
1122 Py_BEGIN_ALLOW_THREADS
1123 sipRes = (sipSelfWasArg ? sipCpp-> ::wxPrintout::OnBeginDocument(startPage,endPage) : sipCpp->OnBeginDocument(startPage,endPage));
1124 Py_END_ALLOW_THREADS
1125
1126 if (PyErr_Occurred())
1127 return 0;
1128
1129 return PyBool_FromLong(sipRes);
1130 }
1131 }
1132
1133 /* Raise an exception if the arguments couldn't be parsed. */
1134 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnBeginDocument, SIP_NULLPTR);
1135
1136 return SIP_NULLPTR;
1137 }
1138
1139
1140 PyDoc_STRVAR(doc_wxPrintout_OnBeginPrinting, "OnBeginPrinting()\n"
1141 "\n"
1142 "Called by the framework at the start of printing.");
1143
1144 extern "C" {static PyObject *meth_wxPrintout_OnBeginPrinting(PyObject *, PyObject *);}
meth_wxPrintout_OnBeginPrinting(PyObject * sipSelf,PyObject * sipArgs)1145 static PyObject *meth_wxPrintout_OnBeginPrinting(PyObject *sipSelf, PyObject *sipArgs)
1146 {
1147 PyObject *sipParseErr = SIP_NULLPTR;
1148 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1149
1150 {
1151 ::wxPrintout *sipCpp;
1152
1153 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
1154 {
1155 PyErr_Clear();
1156
1157 Py_BEGIN_ALLOW_THREADS
1158 (sipSelfWasArg ? sipCpp-> ::wxPrintout::OnBeginPrinting() : sipCpp->OnBeginPrinting());
1159 Py_END_ALLOW_THREADS
1160
1161 if (PyErr_Occurred())
1162 return 0;
1163
1164 Py_INCREF(Py_None);
1165 return Py_None;
1166 }
1167 }
1168
1169 /* Raise an exception if the arguments couldn't be parsed. */
1170 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnBeginPrinting, SIP_NULLPTR);
1171
1172 return SIP_NULLPTR;
1173 }
1174
1175
1176 PyDoc_STRVAR(doc_wxPrintout_OnEndDocument, "OnEndDocument()\n"
1177 "\n"
1178 "Called by the framework at the end of document printing.");
1179
1180 extern "C" {static PyObject *meth_wxPrintout_OnEndDocument(PyObject *, PyObject *);}
meth_wxPrintout_OnEndDocument(PyObject * sipSelf,PyObject * sipArgs)1181 static PyObject *meth_wxPrintout_OnEndDocument(PyObject *sipSelf, PyObject *sipArgs)
1182 {
1183 PyObject *sipParseErr = SIP_NULLPTR;
1184 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1185
1186 {
1187 ::wxPrintout *sipCpp;
1188
1189 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
1190 {
1191 PyErr_Clear();
1192
1193 Py_BEGIN_ALLOW_THREADS
1194 (sipSelfWasArg ? sipCpp-> ::wxPrintout::OnEndDocument() : sipCpp->OnEndDocument());
1195 Py_END_ALLOW_THREADS
1196
1197 if (PyErr_Occurred())
1198 return 0;
1199
1200 Py_INCREF(Py_None);
1201 return Py_None;
1202 }
1203 }
1204
1205 /* Raise an exception if the arguments couldn't be parsed. */
1206 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnEndDocument, SIP_NULLPTR);
1207
1208 return SIP_NULLPTR;
1209 }
1210
1211
1212 PyDoc_STRVAR(doc_wxPrintout_OnEndPrinting, "OnEndPrinting()\n"
1213 "\n"
1214 "Called by the framework at the end of printing.");
1215
1216 extern "C" {static PyObject *meth_wxPrintout_OnEndPrinting(PyObject *, PyObject *);}
meth_wxPrintout_OnEndPrinting(PyObject * sipSelf,PyObject * sipArgs)1217 static PyObject *meth_wxPrintout_OnEndPrinting(PyObject *sipSelf, PyObject *sipArgs)
1218 {
1219 PyObject *sipParseErr = SIP_NULLPTR;
1220 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1221
1222 {
1223 ::wxPrintout *sipCpp;
1224
1225 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
1226 {
1227 PyErr_Clear();
1228
1229 Py_BEGIN_ALLOW_THREADS
1230 (sipSelfWasArg ? sipCpp-> ::wxPrintout::OnEndPrinting() : sipCpp->OnEndPrinting());
1231 Py_END_ALLOW_THREADS
1232
1233 if (PyErr_Occurred())
1234 return 0;
1235
1236 Py_INCREF(Py_None);
1237 return Py_None;
1238 }
1239 }
1240
1241 /* Raise an exception if the arguments couldn't be parsed. */
1242 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnEndPrinting, SIP_NULLPTR);
1243
1244 return SIP_NULLPTR;
1245 }
1246
1247
1248 PyDoc_STRVAR(doc_wxPrintout_OnPreparePrinting, "OnPreparePrinting()\n"
1249 "\n"
1250 "Called once by the framework before any other demands are made of the\n"
1251 "wxPrintout object.");
1252
1253 extern "C" {static PyObject *meth_wxPrintout_OnPreparePrinting(PyObject *, PyObject *);}
meth_wxPrintout_OnPreparePrinting(PyObject * sipSelf,PyObject * sipArgs)1254 static PyObject *meth_wxPrintout_OnPreparePrinting(PyObject *sipSelf, PyObject *sipArgs)
1255 {
1256 PyObject *sipParseErr = SIP_NULLPTR;
1257 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1258
1259 {
1260 ::wxPrintout *sipCpp;
1261
1262 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxPrintout, &sipCpp))
1263 {
1264 PyErr_Clear();
1265
1266 Py_BEGIN_ALLOW_THREADS
1267 (sipSelfWasArg ? sipCpp-> ::wxPrintout::OnPreparePrinting() : sipCpp->OnPreparePrinting());
1268 Py_END_ALLOW_THREADS
1269
1270 if (PyErr_Occurred())
1271 return 0;
1272
1273 Py_INCREF(Py_None);
1274 return Py_None;
1275 }
1276 }
1277
1278 /* Raise an exception if the arguments couldn't be parsed. */
1279 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnPreparePrinting, SIP_NULLPTR);
1280
1281 return SIP_NULLPTR;
1282 }
1283
1284
1285 PyDoc_STRVAR(doc_wxPrintout_OnPrintPage, "OnPrintPage(pageNum) -> bool\n"
1286 "\n"
1287 "Called by the framework when a page should be printed.");
1288
1289 extern "C" {static PyObject *meth_wxPrintout_OnPrintPage(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_OnPrintPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1290 static PyObject *meth_wxPrintout_OnPrintPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1291 {
1292 PyObject *sipParseErr = SIP_NULLPTR;
1293 PyObject *sipOrigSelf = sipSelf;
1294
1295 {
1296 int pageNum;
1297 ::wxPrintout *sipCpp;
1298
1299 static const char *sipKwdList[] = {
1300 sipName_pageNum,
1301 };
1302
1303 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxPrintout, &sipCpp, &pageNum))
1304 {
1305 bool sipRes;
1306
1307 if (!sipOrigSelf)
1308 {
1309 sipAbstractMethod(sipName_Printout, sipName_OnPrintPage);
1310 return SIP_NULLPTR;
1311 }
1312
1313 PyErr_Clear();
1314
1315 Py_BEGIN_ALLOW_THREADS
1316 sipRes = sipCpp->OnPrintPage(pageNum);
1317 Py_END_ALLOW_THREADS
1318
1319 if (PyErr_Occurred())
1320 return 0;
1321
1322 return PyBool_FromLong(sipRes);
1323 }
1324 }
1325
1326 /* Raise an exception if the arguments couldn't be parsed. */
1327 sipNoMethod(sipParseErr, sipName_Printout, sipName_OnPrintPage, SIP_NULLPTR);
1328
1329 return SIP_NULLPTR;
1330 }
1331
1332
1333 PyDoc_STRVAR(doc_wxPrintout_SetLogicalOrigin, "SetLogicalOrigin(x, y)\n"
1334 "\n"
1335 "Set the device origin of the associated wxDC so that the current\n"
1336 "logical point becomes the new logical origin.");
1337
1338 extern "C" {static PyObject *meth_wxPrintout_SetLogicalOrigin(PyObject *, PyObject *, PyObject *);}
meth_wxPrintout_SetLogicalOrigin(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1339 static PyObject *meth_wxPrintout_SetLogicalOrigin(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1340 {
1341 PyObject *sipParseErr = SIP_NULLPTR;
1342
1343 {
1344 ::wxCoord x;
1345 ::wxCoord y;
1346 ::wxPrintout *sipCpp;
1347
1348 static const char *sipKwdList[] = {
1349 sipName_x,
1350 sipName_y,
1351 };
1352
1353 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxPrintout, &sipCpp, &x, &y))
1354 {
1355 PyErr_Clear();
1356
1357 Py_BEGIN_ALLOW_THREADS
1358 sipCpp->SetLogicalOrigin(x,y);
1359 Py_END_ALLOW_THREADS
1360
1361 if (PyErr_Occurred())
1362 return 0;
1363
1364 Py_INCREF(Py_None);
1365 return Py_None;
1366 }
1367 }
1368
1369 /* Raise an exception if the arguments couldn't be parsed. */
1370 sipNoMethod(sipParseErr, sipName_Printout, sipName_SetLogicalOrigin, SIP_NULLPTR);
1371
1372 return SIP_NULLPTR;
1373 }
1374
1375
1376 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1377 extern "C" {static void *cast_wxPrintout(void *, const sipTypeDef *);}
cast_wxPrintout(void * sipCppV,const sipTypeDef * targetType)1378 static void *cast_wxPrintout(void *sipCppV, const sipTypeDef *targetType)
1379 {
1380 ::wxPrintout *sipCpp = reinterpret_cast< ::wxPrintout *>(sipCppV);
1381
1382 if (targetType == sipType_wxObject)
1383 return static_cast< ::wxObject *>(sipCpp);
1384
1385 return sipCppV;
1386 }
1387
1388
1389 /* Call the instance's destructor. */
1390 extern "C" {static void release_wxPrintout(void *, int);}
release_wxPrintout(void * sipCppV,int sipState)1391 static void release_wxPrintout(void *sipCppV, int sipState)
1392 {
1393 Py_BEGIN_ALLOW_THREADS
1394
1395 if (sipState & SIP_DERIVED_CLASS)
1396 delete reinterpret_cast<sipwxPrintout *>(sipCppV);
1397 else
1398 delete reinterpret_cast< ::wxPrintout *>(sipCppV);
1399
1400 Py_END_ALLOW_THREADS
1401 }
1402
1403
1404 extern "C" {static void dealloc_wxPrintout(sipSimpleWrapper *);}
dealloc_wxPrintout(sipSimpleWrapper * sipSelf)1405 static void dealloc_wxPrintout(sipSimpleWrapper *sipSelf)
1406 {
1407 if (sipIsDerivedClass(sipSelf))
1408 reinterpret_cast<sipwxPrintout *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1409
1410 if (sipIsOwnedByPython(sipSelf))
1411 {
1412 release_wxPrintout(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1413 }
1414 }
1415
1416
1417 extern "C" {static void *init_type_wxPrintout(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxPrintout(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1418 static void *init_type_wxPrintout(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1419 {
1420 sipwxPrintout *sipCpp = SIP_NULLPTR;
1421
1422 {
1423 const ::wxString& titledef = "Printout";
1424 const ::wxString* title = &titledef;
1425 int titleState = 0;
1426
1427 static const char *sipKwdList[] = {
1428 sipName_title,
1429 };
1430
1431 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J1", sipType_wxString,&title, &titleState))
1432 {
1433
1434 if (!wxPyCheckForApp()) return NULL;
1435
1436 PyErr_Clear();
1437
1438 Py_BEGIN_ALLOW_THREADS
1439 sipCpp = new sipwxPrintout(*title);
1440 Py_END_ALLOW_THREADS
1441 sipReleaseType(const_cast< ::wxString *>(title),sipType_wxString,titleState);
1442
1443 if (PyErr_Occurred())
1444 {
1445 delete sipCpp;
1446 return SIP_NULLPTR;
1447 }
1448
1449 sipCpp->sipPySelf = sipSelf;
1450
1451 return sipCpp;
1452 }
1453 }
1454
1455 return SIP_NULLPTR;
1456 }
1457
1458
1459 /* Define this type's super-types. */
1460 static sipEncodedTypeDef supers_wxPrintout[] = {{358, 255, 1}};
1461
1462
1463 static PyMethodDef methods_wxPrintout[] = {
1464 {SIP_MLNAME_CAST(sipName_FitThisSizeToPage), SIP_MLMETH_CAST(meth_wxPrintout_FitThisSizeToPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_FitThisSizeToPage)},
1465 {SIP_MLNAME_CAST(sipName_FitThisSizeToPageMargins), SIP_MLMETH_CAST(meth_wxPrintout_FitThisSizeToPageMargins), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_FitThisSizeToPageMargins)},
1466 {SIP_MLNAME_CAST(sipName_FitThisSizeToPaper), SIP_MLMETH_CAST(meth_wxPrintout_FitThisSizeToPaper), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_FitThisSizeToPaper)},
1467 {SIP_MLNAME_CAST(sipName_GetDC), meth_wxPrintout_GetDC, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetDC)},
1468 {SIP_MLNAME_CAST(sipName_GetLogicalPageMarginsRect), SIP_MLMETH_CAST(meth_wxPrintout_GetLogicalPageMarginsRect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetLogicalPageMarginsRect)},
1469 {SIP_MLNAME_CAST(sipName_GetLogicalPageRect), meth_wxPrintout_GetLogicalPageRect, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetLogicalPageRect)},
1470 {SIP_MLNAME_CAST(sipName_GetLogicalPaperRect), meth_wxPrintout_GetLogicalPaperRect, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetLogicalPaperRect)},
1471 {SIP_MLNAME_CAST(sipName_GetPPIPrinter), SIP_MLMETH_CAST(meth_wxPrintout_GetPPIPrinter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetPPIPrinter)},
1472 {SIP_MLNAME_CAST(sipName_GetPPIScreen), SIP_MLMETH_CAST(meth_wxPrintout_GetPPIScreen), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetPPIScreen)},
1473 {SIP_MLNAME_CAST(sipName_GetPageInfo), SIP_MLMETH_CAST(meth_wxPrintout_GetPageInfo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetPageInfo)},
1474 {SIP_MLNAME_CAST(sipName_GetPageSizeMM), SIP_MLMETH_CAST(meth_wxPrintout_GetPageSizeMM), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetPageSizeMM)},
1475 {SIP_MLNAME_CAST(sipName_GetPageSizePixels), SIP_MLMETH_CAST(meth_wxPrintout_GetPageSizePixels), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_GetPageSizePixels)},
1476 {SIP_MLNAME_CAST(sipName_GetPaperRectPixels), meth_wxPrintout_GetPaperRectPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetPaperRectPixels)},
1477 {SIP_MLNAME_CAST(sipName_GetPreview), meth_wxPrintout_GetPreview, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetPreview)},
1478 {SIP_MLNAME_CAST(sipName_GetTitle), meth_wxPrintout_GetTitle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_GetTitle)},
1479 {SIP_MLNAME_CAST(sipName_HasPage), SIP_MLMETH_CAST(meth_wxPrintout_HasPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_HasPage)},
1480 {SIP_MLNAME_CAST(sipName_IsPreview), meth_wxPrintout_IsPreview, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_IsPreview)},
1481 {SIP_MLNAME_CAST(sipName_MapScreenSizeToDevice), meth_wxPrintout_MapScreenSizeToDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_MapScreenSizeToDevice)},
1482 {SIP_MLNAME_CAST(sipName_MapScreenSizeToPage), meth_wxPrintout_MapScreenSizeToPage, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_MapScreenSizeToPage)},
1483 {SIP_MLNAME_CAST(sipName_MapScreenSizeToPageMargins), SIP_MLMETH_CAST(meth_wxPrintout_MapScreenSizeToPageMargins), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_MapScreenSizeToPageMargins)},
1484 {SIP_MLNAME_CAST(sipName_MapScreenSizeToPaper), meth_wxPrintout_MapScreenSizeToPaper, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_MapScreenSizeToPaper)},
1485 {SIP_MLNAME_CAST(sipName_OffsetLogicalOrigin), SIP_MLMETH_CAST(meth_wxPrintout_OffsetLogicalOrigin), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_OffsetLogicalOrigin)},
1486 {SIP_MLNAME_CAST(sipName_OnBeginDocument), SIP_MLMETH_CAST(meth_wxPrintout_OnBeginDocument), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_OnBeginDocument)},
1487 {SIP_MLNAME_CAST(sipName_OnBeginPrinting), meth_wxPrintout_OnBeginPrinting, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_OnBeginPrinting)},
1488 {SIP_MLNAME_CAST(sipName_OnEndDocument), meth_wxPrintout_OnEndDocument, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_OnEndDocument)},
1489 {SIP_MLNAME_CAST(sipName_OnEndPrinting), meth_wxPrintout_OnEndPrinting, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_OnEndPrinting)},
1490 {SIP_MLNAME_CAST(sipName_OnPreparePrinting), meth_wxPrintout_OnPreparePrinting, METH_VARARGS, SIP_MLDOC_CAST(doc_wxPrintout_OnPreparePrinting)},
1491 {SIP_MLNAME_CAST(sipName_OnPrintPage), SIP_MLMETH_CAST(meth_wxPrintout_OnPrintPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_OnPrintPage)},
1492 {SIP_MLNAME_CAST(sipName_SetLogicalOrigin), SIP_MLMETH_CAST(meth_wxPrintout_SetLogicalOrigin), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxPrintout_SetLogicalOrigin)}
1493 };
1494
1495 sipVariableDef variables_wxPrintout[] = {
1496 {PropertyVariable, sipName_Title, &methods_wxPrintout[14], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1497 {PropertyVariable, sipName_Preview, &methods_wxPrintout[13], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1498 {PropertyVariable, sipName_PaperRectPixels, &methods_wxPrintout[12], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1499 {PropertyVariable, sipName_LogicalPaperRect, &methods_wxPrintout[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1500 {PropertyVariable, sipName_LogicalPageRect, &methods_wxPrintout[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1501 {PropertyVariable, sipName_DC, &methods_wxPrintout[3], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1502 };
1503
1504 PyDoc_STRVAR(doc_wxPrintout, "Printout(title=\"Printout\")\n"
1505 "\n"
1506 "This class encapsulates the functionality of printing out an\n"
1507 "application document.");
1508
1509
1510 sipClassTypeDef sipTypeDef__core_wxPrintout = {
1511 {
1512 -1,
1513 SIP_NULLPTR,
1514 SIP_NULLPTR,
1515 SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
1516 sipNameNr_wxPrintout,
1517 {SIP_NULLPTR},
1518 SIP_NULLPTR
1519 },
1520 {
1521 sipNameNr_Printout,
1522 {0, 0, 1},
1523 29, methods_wxPrintout,
1524 0, SIP_NULLPTR,
1525 6, variables_wxPrintout,
1526 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1527 },
1528 doc_wxPrintout,
1529 -1,
1530 -1,
1531 supers_wxPrintout,
1532 SIP_NULLPTR,
1533 init_type_wxPrintout,
1534 SIP_NULLPTR,
1535 SIP_NULLPTR,
1536 #if PY_MAJOR_VERSION >= 3
1537 SIP_NULLPTR,
1538 SIP_NULLPTR,
1539 #else
1540 SIP_NULLPTR,
1541 SIP_NULLPTR,
1542 SIP_NULLPTR,
1543 SIP_NULLPTR,
1544 #endif
1545 dealloc_wxPrintout,
1546 SIP_NULLPTR,
1547 SIP_NULLPTR,
1548 SIP_NULLPTR,
1549 release_wxPrintout,
1550 cast_wxPrintout,
1551 SIP_NULLPTR,
1552 SIP_NULLPTR,
1553 SIP_NULLPTR,
1554 SIP_NULLPTR,
1555 SIP_NULLPTR,
1556 SIP_NULLPTR
1557 };
1558