Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / print / Print.c
1 /*
2  * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3  * contents of Print.xs. Do not edit this file, edit Print.xs instead.
4  *
5  *      ANY CHANGES MADE HERE WILL BE LOST! 
6  *
7  */
8
9 /////////////////////////////////////////////////////////////////////////////
10 // Name:        ext/print/Print.xs
11 // Purpose:     XS for Print Framework
12 // Author:      Mattia Barbon
13 // Modified by:
14 // Created:     04/05/2001
15 // RCS-ID:      $Id: Print.xs 2700 2009-12-13 11:25:50Z mbarbon $
16 // Copyright:   (c) 2001-2002, 2004-2006, 2008-2009 Mattia Barbon
17 // Licence:     This program is free software; you can redistribute it and/or
18 //              modify it under the same terms as Perl itself
19 /////////////////////////////////////////////////////////////////////////////
20
21 #define PERL_NO_GET_CONTEXT
22
23 #include "cpp/wxapi.h"
24
25 #undef THIS
26
27 #ifndef PERL_UNUSED_VAR
28 #  define PERL_UNUSED_VAR(var) if (0) var = var
29 #endif
30
31 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
32 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
33
34 /* prototype to pass -Wmissing-prototypes */
35 STATIC void
36 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
37
38 STATIC void
39 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
40 {
41     const GV *const gv = CvGV(cv);
42
43     PERL_ARGS_ASSERT_CROAK_XS_USAGE;
44
45     if (gv) {
46         const char *const gvname = GvNAME(gv);
47         const HV *const stash = GvSTASH(gv);
48         const char *const hvname = stash ? HvNAME(stash) : NULL;
49
50         if (hvname)
51             Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
52         else
53             Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
54     } else {
55         /* Pants. I don't think that it should be possible to get here. */
56         Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
57     }
58 }
59 #undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE
60
61 #ifdef PERL_IMPLICIT_CONTEXT
62 #define croak_xs_usage(a,b)     S_croak_xs_usage(aTHX_ a,b)
63 #else
64 #define croak_xs_usage          S_croak_xs_usage
65 #endif
66
67 #endif
68
69 /* NOTE: the prototype of newXSproto() is different in versions of perls,
70  * so we define a portable version of newXSproto()
71  */
72 #ifdef newXS_flags
73 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
74 #else
75 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
76 #endif /* !defined(newXS_flags) */
77
78 #if wxPERL_USE_PRINTING_ARCHITECTURE
79 #define XSubPPtmpAAAA 1
80
81
82 /* INCLUDE:  Including 'XS/PrintData.xs' from 'Print.xs' */
83
84
85 /* INCLUDE:  Including 'XS/PageSetupDialog.xs' from 'XS/PrintData.xs' */
86
87
88 /* INCLUDE:  Including 'XS/PageSetupDialogData.xs' from 'XS/PageSetupDialog.xs' */
89
90
91 /* INCLUDE:  Including 'XS/Printer.xs' from 'XS/PageSetupDialogData.xs' */
92
93
94 /* INCLUDE:  Including 'XS/PrintDialogData.xs' from 'XS/Printer.xs' */
95
96
97 /* INCLUDE:  Including 'XS/PrintPreview.xs' from 'XS/PrintDialogData.xs' */
98
99
100 /* INCLUDE:  Including 'XS/Printout.xs' from 'XS/PrintPreview.xs' */
101
102
103 /* INCLUDE:  Including 'XS/PrintDialog.xs' from 'XS/Printout.xs' */
104
105 #include <wx/printdlg.h>
106 #include <wx/dc.h>
107
108 XS(XS_Wx__PrintDialog_new); /* prototype to pass -Wmissing-prototypes */
109 XS(XS_Wx__PrintDialog_new)
110 {
111 #ifdef dVAR
112     dVAR; dXSARGS;
113 #else
114     dXSARGS;
115 #endif
116     if (items < 2 || items > 3)
117        croak_xs_usage(cv,  "CLASS, parent, data = 0");
118     {
119         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
120         wxPrintDialogData*      data;
121         char *  CLASS = (char *)SvPV_nolen(ST(0));
122         wxPrintDialog * RETVAL;
123
124         if (items < 3)
125             data = 0;
126         else {
127     data = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PrintDialogData" );
128         }
129
130         RETVAL = new wxPrintDialog(parent, data);
131         ST(0) = sv_newmortal();
132     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
133
134     }
135     XSRETURN(1);
136 }
137
138
139 XS(XS_Wx__PrintDialog_GetPrintDialogData); /* prototype to pass -Wmissing-prototypes */
140 XS(XS_Wx__PrintDialog_GetPrintDialogData)
141 {
142 #ifdef dVAR
143     dVAR; dXSARGS;
144 #else
145     dXSARGS;
146 #endif
147     if (items != 1)
148        croak_xs_usage(cv,  "THIS");
149     {
150         wxPrintDialog *    THIS = (wxPrintDialog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialog" );
151         wxPrintDialogData *     RETVAL;
152     RETVAL = new wxPrintDialogData( THIS->GetPrintDialogData() );
153         ST(0) = sv_newmortal();
154     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
155
156     }
157     XSRETURN(1);
158 }
159
160
161 XS(XS_Wx__PrintDialog_GetPrintDC); /* prototype to pass -Wmissing-prototypes */
162 XS(XS_Wx__PrintDialog_GetPrintDC)
163 {
164 #ifdef dVAR
165     dVAR; dXSARGS;
166 #else
167     dXSARGS;
168 #endif
169     if (items != 1)
170        croak_xs_usage(cv,  "THIS");
171     {
172         wxPrintDialog *    THIS = (wxPrintDialog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialog" );
173         wxDC *  RETVAL;
174
175         RETVAL = THIS->GetPrintDC();
176         ST(0) = sv_newmortal();
177     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
178     wxPli_thread_sv_register( aTHX_ "Wx::DC", RETVAL, ST(0) );
179
180     }
181     XSRETURN(1);
182 }
183
184
185 /* INCLUDE: Returning to 'XS/Printout.xs' from 'XS/PrintDialog.xs' */
186
187 #include <wx/print.h>
188 #include <wx/dcprint.h>
189 #include "cpp/printout.h"
190 #if defined( __WXMSW__ )
191 #define XSubPPtmpAAAB 1
192
193
194 XS(XS_Wx__PrinterDC_new); /* prototype to pass -Wmissing-prototypes */
195 XS(XS_Wx__PrinterDC_new)
196 {
197 #ifdef dVAR
198     dVAR; dXSARGS;
199 #else
200     dXSARGS;
201 #endif
202     if (items != 2)
203        croak_xs_usage(cv,  "CLASS, data");
204     {
205         wxPrintData*    data = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintData" );
206         char *  CLASS = (char *)SvPV_nolen(ST(0));
207         wxPrinterDC *   RETVAL;
208     RETVAL = new wxPrinterDC( *data );
209         ST(0) = sv_newmortal();
210     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
211
212     }
213     XSRETURN(1);
214 }
215
216
217 XS(XS_Wx__PrinterDC_GetPaperRect); /* prototype to pass -Wmissing-prototypes */
218 XS(XS_Wx__PrinterDC_GetPaperRect)
219 {
220 #ifdef dVAR
221     dVAR; dXSARGS;
222 #else
223     dXSARGS;
224 #endif
225     if (items != 1)
226        croak_xs_usage(cv,  "THIS");
227     {
228         wxPrinterDC *    THIS = (wxPrinterDC *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrinterDC" );
229         wxRect *        RETVAL;
230     RETVAL = new wxRect( THIS->GetPaperRect() );
231         ST(0) = sv_newmortal();
232     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
233     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
234
235     }
236     XSRETURN(1);
237 }
238
239 #endif
240
241 XS(XS_Wx__Printout_new); /* prototype to pass -Wmissing-prototypes */
242 XS(XS_Wx__Printout_new)
243 {
244 #ifdef dVAR
245     dVAR; dXSARGS;
246 #else
247     dXSARGS;
248 #endif
249     if (items < 1 || items > 2)
250        croak_xs_usage(cv,  "CLASS, title = wxT(\"Printout\")");
251     {
252         wxString        title;
253         char *  CLASS = (char *)SvPV_nolen(ST(0));
254         wxPrintout *    RETVAL;
255
256         if (items < 2)
257             title = wxT("Printout");
258         else {
259     WXSTRING_INPUT( title, wxString, ST(1) );
260         }
261     RETVAL = new wxPlPrintout( CLASS, title );
262         ST(0) = sv_newmortal();
263     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
264
265     }
266     XSRETURN(1);
267 }
268
269
270 XS(XS_Wx__Printout_Destroy); /* prototype to pass -Wmissing-prototypes */
271 XS(XS_Wx__Printout_Destroy)
272 {
273 #ifdef dVAR
274     dVAR; dXSARGS;
275 #else
276     dXSARGS;
277 #endif
278     if (items != 1)
279        croak_xs_usage(cv,  "THIS");
280     {
281         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
282     delete THIS;
283     }
284     XSRETURN_EMPTY;
285 }
286
287
288 XS(XS_Wx__Printout_GetDC); /* prototype to pass -Wmissing-prototypes */
289 XS(XS_Wx__Printout_GetDC)
290 {
291 #ifdef dVAR
292     dVAR; dXSARGS;
293 #else
294     dXSARGS;
295 #endif
296     if (items != 1)
297        croak_xs_usage(cv,  "THIS");
298     {
299         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
300         wxDC *  RETVAL;
301
302         RETVAL = THIS->GetDC();
303         ST(0) = sv_newmortal();
304     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
305     wxPli_thread_sv_register( aTHX_ "Wx::DC", RETVAL, ST(0) );
306
307     wxPli_object_set_deleteable( aTHX_ ST(0), false );
308     }
309     XSRETURN(1);
310 }
311
312
313 XS(XS_Wx__Printout_GetPageInfo); /* prototype to pass -Wmissing-prototypes */
314 XS(XS_Wx__Printout_GetPageInfo)
315 {
316 #ifdef dVAR
317     dVAR; dXSARGS;
318 #else
319     dXSARGS;
320 #endif
321     if (items != 1)
322        croak_xs_usage(cv,  "THIS");
323     PERL_UNUSED_VAR(ax); /* -Wall */
324     SP -= items;
325     {
326     int minPage, maxPage, pageFrom, pageTo;
327         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
328     THIS->wxPrintout::GetPageInfo( &minPage, &maxPage, &pageFrom, &pageTo );
329     EXTEND( SP, 4 );
330     PUSHs( sv_2mortal( newSViv( minPage ) ) );
331     PUSHs( sv_2mortal( newSViv( maxPage ) ) );
332     PUSHs( sv_2mortal( newSViv( pageFrom ) ) );
333     PUSHs( sv_2mortal( newSViv( pageTo ) ) );
334         PUTBACK;
335         return;
336     }
337 }
338
339
340 XS(XS_Wx__Printout_GetPageSizeMM); /* prototype to pass -Wmissing-prototypes */
341 XS(XS_Wx__Printout_GetPageSizeMM)
342 {
343 #ifdef dVAR
344     dVAR; dXSARGS;
345 #else
346     dXSARGS;
347 #endif
348     if (items != 1)
349        croak_xs_usage(cv,  "THIS");
350     PERL_UNUSED_VAR(ax); /* -Wall */
351     SP -= items;
352     {
353     int w, h;
354         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
355     THIS->GetPageSizeMM( &w, &h );
356     EXTEND( SP, 2 );
357     PUSHs( sv_2mortal( newSViv( w ) ) );
358     PUSHs( sv_2mortal( newSViv( h ) ) );
359         PUTBACK;
360         return;
361     }
362 }
363
364
365 XS(XS_Wx__Printout_GetPageSizePixels); /* prototype to pass -Wmissing-prototypes */
366 XS(XS_Wx__Printout_GetPageSizePixels)
367 {
368 #ifdef dVAR
369     dVAR; dXSARGS;
370 #else
371     dXSARGS;
372 #endif
373     if (items != 1)
374        croak_xs_usage(cv,  "THIS");
375     PERL_UNUSED_VAR(ax); /* -Wall */
376     SP -= items;
377     {
378     int w, h;
379         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
380     THIS->GetPageSizePixels( &w, &h );
381     EXTEND( SP, 2 );
382     PUSHs( sv_2mortal( newSViv( w ) ) );
383     PUSHs( sv_2mortal( newSViv( h ) ) );
384         PUTBACK;
385         return;
386     }
387 }
388
389
390 XS(XS_Wx__Printout_GetPPIPrinter); /* prototype to pass -Wmissing-prototypes */
391 XS(XS_Wx__Printout_GetPPIPrinter)
392 {
393 #ifdef dVAR
394     dVAR; dXSARGS;
395 #else
396     dXSARGS;
397 #endif
398     if (items != 1)
399        croak_xs_usage(cv,  "THIS");
400     PERL_UNUSED_VAR(ax); /* -Wall */
401     SP -= items;
402     {
403     int w, h;
404         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
405     THIS->GetPPIPrinter( &w, &h );
406     EXTEND( SP, 2 );
407     PUSHs( sv_2mortal( newSViv( w ) ) );
408     PUSHs( sv_2mortal( newSViv( h ) ) );
409         PUTBACK;
410         return;
411     }
412 }
413
414
415 XS(XS_Wx__Printout_GetPPIScreen); /* prototype to pass -Wmissing-prototypes */
416 XS(XS_Wx__Printout_GetPPIScreen)
417 {
418 #ifdef dVAR
419     dVAR; dXSARGS;
420 #else
421     dXSARGS;
422 #endif
423     if (items != 1)
424        croak_xs_usage(cv,  "THIS");
425     PERL_UNUSED_VAR(ax); /* -Wall */
426     SP -= items;
427     {
428     int w, h;
429         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
430     THIS->GetPPIScreen( &w, &h );
431     EXTEND( SP, 2 );
432     PUSHs( sv_2mortal( newSViv( w ) ) );
433     PUSHs( sv_2mortal( newSViv( h ) ) );
434         PUTBACK;
435         return;
436     }
437 }
438
439 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
440 #define XSubPPtmpAAAC 1
441
442
443 XS(XS_Wx__Printout_GetPaperRectPixels); /* prototype to pass -Wmissing-prototypes */
444 XS(XS_Wx__Printout_GetPaperRectPixels)
445 {
446 #ifdef dVAR
447     dVAR; dXSARGS;
448 #else
449     dXSARGS;
450 #endif
451     if (items != 1)
452        croak_xs_usage(cv,  "THIS");
453     {
454         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
455         wxRect *        RETVAL;
456     RETVAL = new wxRect( THIS->GetPaperRectPixels() );
457         ST(0) = sv_newmortal();
458     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
459     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
460
461     }
462     XSRETURN(1);
463 }
464
465 #endif
466
467 XS(XS_Wx__Printout_GetTitle); /* prototype to pass -Wmissing-prototypes */
468 XS(XS_Wx__Printout_GetTitle)
469 {
470 #ifdef dVAR
471     dVAR; dXSARGS;
472 #else
473     dXSARGS;
474 #endif
475     if (items != 1)
476        croak_xs_usage(cv,  "THIS");
477     {
478         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
479         wxString        RETVAL;
480
481         RETVAL = THIS->GetTitle();
482         ST(0) = sv_newmortal();
483     WXSTRING_OUTPUT( RETVAL, ST(0) );
484
485     }
486     XSRETURN(1);
487 }
488
489
490 XS(XS_Wx__Printout_HasPage); /* prototype to pass -Wmissing-prototypes */
491 XS(XS_Wx__Printout_HasPage)
492 {
493 #ifdef dVAR
494     dVAR; dXSARGS;
495 #else
496     dXSARGS;
497 #endif
498     if (items != 2)
499        croak_xs_usage(cv,  "THIS, pageNum");
500     {
501         int     pageNum = (int)SvIV(ST(1));
502         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
503         bool    RETVAL;
504     RETVAL = THIS->wxPrintout::HasPage( pageNum );
505         ST(0) = boolSV(RETVAL);
506         sv_2mortal(ST(0));
507     }
508     XSRETURN(1);
509 }
510
511
512 XS(XS_Wx__Printout_IsPreview); /* prototype to pass -Wmissing-prototypes */
513 XS(XS_Wx__Printout_IsPreview)
514 {
515 #ifdef dVAR
516     dVAR; dXSARGS;
517 #else
518     dXSARGS;
519 #endif
520     if (items != 1)
521        croak_xs_usage(cv,  "THIS");
522     {
523         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
524         bool    RETVAL;
525
526         RETVAL = THIS->IsPreview();
527         ST(0) = boolSV(RETVAL);
528         sv_2mortal(ST(0));
529     }
530     XSRETURN(1);
531 }
532
533
534 XS(XS_Wx__Printout_OnBeginDocument); /* prototype to pass -Wmissing-prototypes */
535 XS(XS_Wx__Printout_OnBeginDocument)
536 {
537 #ifdef dVAR
538     dVAR; dXSARGS;
539 #else
540     dXSARGS;
541 #endif
542     if (items != 3)
543        croak_xs_usage(cv,  "THIS, startPage, endPage");
544     {
545         int     startPage = (int)SvIV(ST(1));
546         int     endPage = (int)SvIV(ST(2));
547         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
548         bool    RETVAL;
549     RETVAL = THIS->wxPrintout::OnBeginDocument( startPage, endPage );
550         ST(0) = boolSV(RETVAL);
551         sv_2mortal(ST(0));
552     }
553     XSRETURN(1);
554 }
555
556
557 XS(XS_Wx__Printout_OnEndDocument); /* prototype to pass -Wmissing-prototypes */
558 XS(XS_Wx__Printout_OnEndDocument)
559 {
560 #ifdef dVAR
561     dVAR; dXSARGS;
562 #else
563     dXSARGS;
564 #endif
565     if (items != 1)
566        croak_xs_usage(cv,  "THIS");
567     {
568         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
569     THIS->wxPrintout::OnEndDocument();
570     }
571     XSRETURN_EMPTY;
572 }
573
574
575 XS(XS_Wx__Printout_OnBeginPrinting); /* prototype to pass -Wmissing-prototypes */
576 XS(XS_Wx__Printout_OnBeginPrinting)
577 {
578 #ifdef dVAR
579     dVAR; dXSARGS;
580 #else
581     dXSARGS;
582 #endif
583     if (items != 1)
584        croak_xs_usage(cv,  "THIS");
585     {
586         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
587     THIS->wxPrintout::OnBeginPrinting();
588     }
589     XSRETURN_EMPTY;
590 }
591
592
593 XS(XS_Wx__Printout_OnEndPrinting); /* prototype to pass -Wmissing-prototypes */
594 XS(XS_Wx__Printout_OnEndPrinting)
595 {
596 #ifdef dVAR
597     dVAR; dXSARGS;
598 #else
599     dXSARGS;
600 #endif
601     if (items != 1)
602        croak_xs_usage(cv,  "THIS");
603     {
604         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
605     THIS->wxPrintout::OnEndPrinting();
606     }
607     XSRETURN_EMPTY;
608 }
609
610
611 XS(XS_Wx__Printout_OnPreparePrinting); /* prototype to pass -Wmissing-prototypes */
612 XS(XS_Wx__Printout_OnPreparePrinting)
613 {
614 #ifdef dVAR
615     dVAR; dXSARGS;
616 #else
617     dXSARGS;
618 #endif
619     if (items != 1)
620        croak_xs_usage(cv,  "THIS");
621     {
622         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
623     THIS->wxPrintout::OnPreparePrinting();
624     }
625     XSRETURN_EMPTY;
626 }
627
628 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
629 #define XSubPPtmpAAAD 1
630
631
632 XS(XS_Wx__Printout_FitThisSizeToPaper); /* prototype to pass -Wmissing-prototypes */
633 XS(XS_Wx__Printout_FitThisSizeToPaper)
634 {
635 #ifdef dVAR
636     dVAR; dXSARGS;
637 #else
638     dXSARGS;
639 #endif
640     if (items != 2)
641        croak_xs_usage(cv,  "THIS, imageSize");
642     {
643         wxSize    imageSize = wxPli_sv_2_wxsize( aTHX_ ST(1) );
644         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
645
646         THIS->FitThisSizeToPaper(imageSize);
647     }
648     XSRETURN_EMPTY;
649 }
650
651
652 XS(XS_Wx__Printout_FitThisSizeToPage); /* prototype to pass -Wmissing-prototypes */
653 XS(XS_Wx__Printout_FitThisSizeToPage)
654 {
655 #ifdef dVAR
656     dVAR; dXSARGS;
657 #else
658     dXSARGS;
659 #endif
660     if (items != 2)
661        croak_xs_usage(cv,  "THIS, imageSize");
662     {
663         wxSize    imageSize = wxPli_sv_2_wxsize( aTHX_ ST(1) );
664         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
665
666         THIS->FitThisSizeToPage(imageSize);
667     }
668     XSRETURN_EMPTY;
669 }
670
671
672 XS(XS_Wx__Printout_FitThisSizeToPageMargins); /* prototype to pass -Wmissing-prototypes */
673 XS(XS_Wx__Printout_FitThisSizeToPageMargins)
674 {
675 #ifdef dVAR
676     dVAR; dXSARGS;
677 #else
678     dXSARGS;
679 #endif
680     if (items != 3)
681        croak_xs_usage(cv,  "THIS, imageSize, pageSetupData");
682     {
683         wxSize    imageSize = wxPli_sv_2_wxsize( aTHX_ ST(1) );
684         wxPageSetupDialogData*    pageSetupData = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PageSetupDialogData" );
685         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
686
687         THIS->FitThisSizeToPageMargins(imageSize, *pageSetupData);
688     }
689     XSRETURN_EMPTY;
690 }
691
692
693 XS(XS_Wx__Printout_MapScreenSizeToPaper); /* prototype to pass -Wmissing-prototypes */
694 XS(XS_Wx__Printout_MapScreenSizeToPaper)
695 {
696 #ifdef dVAR
697     dVAR; dXSARGS;
698 #else
699     dXSARGS;
700 #endif
701     if (items != 1)
702        croak_xs_usage(cv,  "THIS");
703     {
704         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
705
706         THIS->MapScreenSizeToPaper();
707     }
708     XSRETURN_EMPTY;
709 }
710
711
712 XS(XS_Wx__Printout_MapScreenSizeToPage); /* prototype to pass -Wmissing-prototypes */
713 XS(XS_Wx__Printout_MapScreenSizeToPage)
714 {
715 #ifdef dVAR
716     dVAR; dXSARGS;
717 #else
718     dXSARGS;
719 #endif
720     if (items != 1)
721        croak_xs_usage(cv,  "THIS");
722     {
723         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
724
725         THIS->MapScreenSizeToPage();
726     }
727     XSRETURN_EMPTY;
728 }
729
730
731 XS(XS_Wx__Printout_MapScreenSizeToPageMargins); /* prototype to pass -Wmissing-prototypes */
732 XS(XS_Wx__Printout_MapScreenSizeToPageMargins)
733 {
734 #ifdef dVAR
735     dVAR; dXSARGS;
736 #else
737     dXSARGS;
738 #endif
739     if (items != 2)
740        croak_xs_usage(cv,  "THIS, pageSetupData");
741     {
742         wxPageSetupDialogData*    pageSetupData = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PageSetupDialogData" );
743         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
744
745         THIS->MapScreenSizeToPageMargins(*pageSetupData);
746     }
747     XSRETURN_EMPTY;
748 }
749
750
751 XS(XS_Wx__Printout_MapScreenSizeToDevice); /* prototype to pass -Wmissing-prototypes */
752 XS(XS_Wx__Printout_MapScreenSizeToDevice)
753 {
754 #ifdef dVAR
755     dVAR; dXSARGS;
756 #else
757     dXSARGS;
758 #endif
759     if (items != 1)
760        croak_xs_usage(cv,  "THIS");
761     {
762         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
763
764         THIS->MapScreenSizeToDevice();
765     }
766     XSRETURN_EMPTY;
767 }
768
769
770 XS(XS_Wx__Printout_GetLogicalPaperRect); /* prototype to pass -Wmissing-prototypes */
771 XS(XS_Wx__Printout_GetLogicalPaperRect)
772 {
773 #ifdef dVAR
774     dVAR; dXSARGS;
775 #else
776     dXSARGS;
777 #endif
778     if (items != 1)
779        croak_xs_usage(cv,  "THIS");
780     {
781         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
782         wxRect *        RETVAL;
783     RETVAL = new wxRect( THIS->GetLogicalPaperRect() );
784         ST(0) = sv_newmortal();
785     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
786     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
787
788     }
789     XSRETURN(1);
790 }
791
792
793 XS(XS_Wx__Printout_GetLogicalPageRect); /* prototype to pass -Wmissing-prototypes */
794 XS(XS_Wx__Printout_GetLogicalPageRect)
795 {
796 #ifdef dVAR
797     dVAR; dXSARGS;
798 #else
799     dXSARGS;
800 #endif
801     if (items != 1)
802        croak_xs_usage(cv,  "THIS");
803     {
804         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
805         wxRect *        RETVAL;
806     RETVAL = new wxRect( THIS->GetLogicalPageRect() );
807         ST(0) = sv_newmortal();
808     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
809     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
810
811     }
812     XSRETURN(1);
813 }
814
815
816 XS(XS_Wx__Printout_GetLogicalPageMarginsRect); /* prototype to pass -Wmissing-prototypes */
817 XS(XS_Wx__Printout_GetLogicalPageMarginsRect)
818 {
819 #ifdef dVAR
820     dVAR; dXSARGS;
821 #else
822     dXSARGS;
823 #endif
824     if (items != 2)
825        croak_xs_usage(cv,  "THIS, pageSetupData");
826     {
827         wxPageSetupDialogData*    pageSetupData = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PageSetupDialogData" );
828         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
829         wxRect *        RETVAL;
830     RETVAL = new wxRect( THIS->GetLogicalPageMarginsRect( *pageSetupData ) );
831         ST(0) = sv_newmortal();
832     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Rect" );
833     wxPli_thread_sv_register( aTHX_ "Wx::Rect", RETVAL, ST(0) );
834
835     }
836     XSRETURN(1);
837 }
838
839
840 XS(XS_Wx__Printout_SetLogicalOrigin); /* prototype to pass -Wmissing-prototypes */
841 XS(XS_Wx__Printout_SetLogicalOrigin)
842 {
843 #ifdef dVAR
844     dVAR; dXSARGS;
845 #else
846     dXSARGS;
847 #endif
848     if (items != 3)
849        croak_xs_usage(cv,  "THIS, x, y");
850     {
851         wxCoord x = (wxCoord)SvIV(ST(1));
852         wxCoord y = (wxCoord)SvIV(ST(2));
853         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
854
855         THIS->SetLogicalOrigin(x, y);
856     }
857     XSRETURN_EMPTY;
858 }
859
860
861 XS(XS_Wx__Printout_OffsetLogicalOrigin); /* prototype to pass -Wmissing-prototypes */
862 XS(XS_Wx__Printout_OffsetLogicalOrigin)
863 {
864 #ifdef dVAR
865     dVAR; dXSARGS;
866 #else
867     dXSARGS;
868 #endif
869     if (items != 3)
870        croak_xs_usage(cv,  "THIS, xoff, yoff");
871     {
872         wxCoord xoff = (wxCoord)SvIV(ST(1));
873         wxCoord yoff = (wxCoord)SvIV(ST(2));
874         wxPrintout *    THIS = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printout" );
875
876         THIS->OffsetLogicalOrigin(xoff, yoff);
877     }
878     XSRETURN_EMPTY;
879 }
880
881 #endif
882
883 /* INCLUDE: Returning to 'XS/PrintPreview.xs' from 'XS/Printout.xs' */
884
885 #include <wx/print.h>
886
887 XS(XS_Wx__PrintPreview_new); /* prototype to pass -Wmissing-prototypes */
888 XS(XS_Wx__PrintPreview_new)
889 {
890 #ifdef dVAR
891     dVAR; dXSARGS;
892 #else
893     dXSARGS;
894 #endif
895     if (items < 3 || items > 4)
896        croak_xs_usage(cv,  "CLASS, printout, printoutForPrinting, data = 0");
897     {
898         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Printout" );
899         wxPrintout*    printoutForPrinting = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
900         wxPrintData*    data;
901         char *  CLASS = (char *)SvPV_nolen(ST(0));
902         wxPrintPreview *        RETVAL;
903
904         if (items < 4)
905             data = 0;
906         else {
907     data = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::PrintData" );
908         }
909
910         RETVAL = new wxPrintPreview(printout, printoutForPrinting, data);
911         ST(0) = sv_newmortal();
912     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
913
914     }
915     XSRETURN(1);
916 }
917
918
919 XS(XS_Wx__PrintPreview_Destroy); /* prototype to pass -Wmissing-prototypes */
920 XS(XS_Wx__PrintPreview_Destroy)
921 {
922 #ifdef dVAR
923     dVAR; dXSARGS;
924 #else
925     dXSARGS;
926 #endif
927     if (items != 1)
928        croak_xs_usage(cv,  "THIS");
929     {
930         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
931     delete THIS;
932     }
933     XSRETURN_EMPTY;
934 }
935
936 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
937 #define XSubPPtmpAAAE 1
938
939
940 XS(XS_Wx__PrintPreview_IsOk); /* prototype to pass -Wmissing-prototypes */
941 XS(XS_Wx__PrintPreview_IsOk)
942 {
943 #ifdef dVAR
944     dVAR; dXSARGS;
945 #else
946     dXSARGS;
947 #endif
948     if (items != 1)
949        croak_xs_usage(cv,  "THIS");
950     {
951         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
952         bool    RETVAL;
953
954         RETVAL = THIS->IsOk();
955         ST(0) = boolSV(RETVAL);
956         sv_2mortal(ST(0));
957     }
958     XSRETURN(1);
959 }
960
961 #endif
962
963 XS(XS_Wx__PrintPreview_GetCanvas); /* prototype to pass -Wmissing-prototypes */
964 XS(XS_Wx__PrintPreview_GetCanvas)
965 {
966 #ifdef dVAR
967     dVAR; dXSARGS;
968 #else
969     dXSARGS;
970 #endif
971     if (items != 1)
972        croak_xs_usage(cv,  "THIS");
973     {
974         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
975         wxWindow *      RETVAL;
976
977         RETVAL = THIS->GetCanvas();
978         ST(0) = sv_newmortal();
979     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
980
981     }
982     XSRETURN(1);
983 }
984
985
986 XS(XS_Wx__PrintPreview_GetCurrentPage); /* prototype to pass -Wmissing-prototypes */
987 XS(XS_Wx__PrintPreview_GetCurrentPage)
988 {
989 #ifdef dVAR
990     dVAR; dXSARGS;
991 #else
992     dXSARGS;
993 #endif
994     if (items != 1)
995        croak_xs_usage(cv,  "THIS");
996     {
997         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
998         int     RETVAL;
999         dXSTARG;
1000
1001         RETVAL = THIS->GetCurrentPage();
1002         XSprePUSH; PUSHi((IV)RETVAL);
1003     }
1004     XSRETURN(1);
1005 }
1006
1007
1008 XS(XS_Wx__PrintPreview_GetFrame); /* prototype to pass -Wmissing-prototypes */
1009 XS(XS_Wx__PrintPreview_GetFrame)
1010 {
1011 #ifdef dVAR
1012     dVAR; dXSARGS;
1013 #else
1014     dXSARGS;
1015 #endif
1016     if (items != 1)
1017        croak_xs_usage(cv,  "THIS");
1018     {
1019         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1020         wxFrame *       RETVAL;
1021
1022         RETVAL = THIS->GetFrame();
1023         ST(0) = sv_newmortal();
1024     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1025
1026     }
1027     XSRETURN(1);
1028 }
1029
1030
1031 XS(XS_Wx__PrintPreview_GetMaxPage); /* prototype to pass -Wmissing-prototypes */
1032 XS(XS_Wx__PrintPreview_GetMaxPage)
1033 {
1034 #ifdef dVAR
1035     dVAR; dXSARGS;
1036 #else
1037     dXSARGS;
1038 #endif
1039     if (items != 1)
1040        croak_xs_usage(cv,  "THIS");
1041     {
1042         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1043         int     RETVAL;
1044         dXSTARG;
1045
1046         RETVAL = THIS->GetMaxPage();
1047         XSprePUSH; PUSHi((IV)RETVAL);
1048     }
1049     XSRETURN(1);
1050 }
1051
1052
1053 XS(XS_Wx__PrintPreview_GetMinPage); /* prototype to pass -Wmissing-prototypes */
1054 XS(XS_Wx__PrintPreview_GetMinPage)
1055 {
1056 #ifdef dVAR
1057     dVAR; dXSARGS;
1058 #else
1059     dXSARGS;
1060 #endif
1061     if (items != 1)
1062        croak_xs_usage(cv,  "THIS");
1063     {
1064         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1065         int     RETVAL;
1066         dXSTARG;
1067
1068         RETVAL = THIS->GetMinPage();
1069         XSprePUSH; PUSHi((IV)RETVAL);
1070     }
1071     XSRETURN(1);
1072 }
1073
1074
1075 XS(XS_Wx__PrintPreview_GetPrintout); /* prototype to pass -Wmissing-prototypes */
1076 XS(XS_Wx__PrintPreview_GetPrintout)
1077 {
1078 #ifdef dVAR
1079     dVAR; dXSARGS;
1080 #else
1081     dXSARGS;
1082 #endif
1083     if (items != 1)
1084        croak_xs_usage(cv,  "THIS");
1085     {
1086         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1087         wxPrintout *    RETVAL;
1088
1089         RETVAL = THIS->GetPrintout();
1090         ST(0) = sv_newmortal();
1091     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1092
1093     }
1094     XSRETURN(1);
1095 }
1096
1097
1098 XS(XS_Wx__PrintPreview_GetPrintoutForPrinting); /* prototype to pass -Wmissing-prototypes */
1099 XS(XS_Wx__PrintPreview_GetPrintoutForPrinting)
1100 {
1101 #ifdef dVAR
1102     dVAR; dXSARGS;
1103 #else
1104     dXSARGS;
1105 #endif
1106     if (items != 1)
1107        croak_xs_usage(cv,  "THIS");
1108     {
1109         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1110         wxPrintout *    RETVAL;
1111
1112         RETVAL = THIS->GetPrintoutForPrinting();
1113         ST(0) = sv_newmortal();
1114     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1115
1116     }
1117     XSRETURN(1);
1118 }
1119
1120
1121 XS(XS_Wx__PrintPreview_Ok); /* prototype to pass -Wmissing-prototypes */
1122 XS(XS_Wx__PrintPreview_Ok)
1123 {
1124 #ifdef dVAR
1125     dVAR; dXSARGS;
1126 #else
1127     dXSARGS;
1128 #endif
1129     if (items != 1)
1130        croak_xs_usage(cv,  "THIS");
1131     {
1132         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1133         bool    RETVAL;
1134
1135         RETVAL = THIS->Ok();
1136         ST(0) = boolSV(RETVAL);
1137         sv_2mortal(ST(0));
1138     }
1139     XSRETURN(1);
1140 }
1141
1142 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
1143 #define XSubPPtmpAAAF 1
1144
1145
1146 XS(XS_Wx__PrintPreview_PaintPage); /* prototype to pass -Wmissing-prototypes */
1147 XS(XS_Wx__PrintPreview_PaintPage)
1148 {
1149 #ifdef dVAR
1150     dVAR; dXSARGS;
1151 #else
1152     dXSARGS;
1153 #endif
1154     if (items != 3)
1155        croak_xs_usage(cv,  "THIS, canvas, dc");
1156     {
1157         wxPreviewCanvas*    canvas = (wxPreviewCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PreviewCanvas" );
1158         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::DC" );
1159         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1160         bool    RETVAL;
1161
1162         RETVAL = THIS->PaintPage(canvas, *dc);
1163         ST(0) = boolSV(RETVAL);
1164         sv_2mortal(ST(0));
1165     }
1166     XSRETURN(1);
1167 }
1168
1169 #else
1170 #define XSubPPtmpAAAG 1
1171
1172
1173 XS(XS_Wx__PrintPreview_PaintPage); /* prototype to pass -Wmissing-prototypes */
1174 XS(XS_Wx__PrintPreview_PaintPage)
1175 {
1176 #ifdef dVAR
1177     dVAR; dXSARGS;
1178 #else
1179     dXSARGS;
1180 #endif
1181     if (items != 3)
1182        croak_xs_usage(cv,  "THIS, window, dc");
1183     {
1184         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
1185         wxDC*    dc = (wxDC *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::DC" );
1186         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1187         bool    RETVAL;
1188
1189         RETVAL = THIS->PaintPage(window, *dc);
1190         ST(0) = boolSV(RETVAL);
1191         sv_2mortal(ST(0));
1192     }
1193     XSRETURN(1);
1194 }
1195
1196 #endif
1197
1198 XS(XS_Wx__PrintPreview_Print); /* prototype to pass -Wmissing-prototypes */
1199 XS(XS_Wx__PrintPreview_Print)
1200 {
1201 #ifdef dVAR
1202     dVAR; dXSARGS;
1203 #else
1204     dXSARGS;
1205 #endif
1206     if (items != 2)
1207        croak_xs_usage(cv,  "THIS, prompt");
1208     {
1209         bool    prompt = (bool)SvTRUE(ST(1));
1210         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1211         bool    RETVAL;
1212
1213         RETVAL = THIS->Print(prompt);
1214         ST(0) = boolSV(RETVAL);
1215         sv_2mortal(ST(0));
1216     }
1217     XSRETURN(1);
1218 }
1219
1220 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
1221 #define XSubPPtmpAAAH 1
1222
1223
1224 XS(XS_Wx__PrintPreview_SetCanvas); /* prototype to pass -Wmissing-prototypes */
1225 XS(XS_Wx__PrintPreview_SetCanvas)
1226 {
1227 #ifdef dVAR
1228     dVAR; dXSARGS;
1229 #else
1230     dXSARGS;
1231 #endif
1232     if (items != 2)
1233        croak_xs_usage(cv,  "THIS, canvas");
1234     {
1235         wxPreviewCanvas*    canvas = (wxPreviewCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PreviewCanvas" );
1236         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1237
1238         THIS->SetCanvas(canvas);
1239     }
1240     XSRETURN_EMPTY;
1241 }
1242
1243 #else
1244 #define XSubPPtmpAAAI 1
1245
1246
1247 XS(XS_Wx__PrintPreview_SetCanvas); /* prototype to pass -Wmissing-prototypes */
1248 XS(XS_Wx__PrintPreview_SetCanvas)
1249 {
1250 #ifdef dVAR
1251     dVAR; dXSARGS;
1252 #else
1253     dXSARGS;
1254 #endif
1255     if (items != 2)
1256        croak_xs_usage(cv,  "THIS, window");
1257     {
1258         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
1259         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1260
1261         THIS->SetCanvas(window);
1262     }
1263     XSRETURN_EMPTY;
1264 }
1265
1266 #endif
1267
1268 XS(XS_Wx__PrintPreview_SetCurrentPage); /* prototype to pass -Wmissing-prototypes */
1269 XS(XS_Wx__PrintPreview_SetCurrentPage)
1270 {
1271 #ifdef dVAR
1272     dVAR; dXSARGS;
1273 #else
1274     dXSARGS;
1275 #endif
1276     if (items != 2)
1277        croak_xs_usage(cv,  "THIS, pageNum");
1278     {
1279         int     pageNum = (int)SvIV(ST(1));
1280         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1281
1282         THIS->SetCurrentPage(pageNum);
1283     }
1284     XSRETURN_EMPTY;
1285 }
1286
1287
1288 XS(XS_Wx__PrintPreview_SetFrame); /* prototype to pass -Wmissing-prototypes */
1289 XS(XS_Wx__PrintPreview_SetFrame)
1290 {
1291 #ifdef dVAR
1292     dVAR; dXSARGS;
1293 #else
1294     dXSARGS;
1295 #endif
1296     if (items != 2)
1297        croak_xs_usage(cv,  "THIS, frame");
1298     {
1299         wxFrame*    frame = (wxFrame *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Frame" );
1300         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1301
1302         THIS->SetFrame(frame);
1303     }
1304     XSRETURN_EMPTY;
1305 }
1306
1307
1308 XS(XS_Wx__PrintPreview_SetPrintout); /* prototype to pass -Wmissing-prototypes */
1309 XS(XS_Wx__PrintPreview_SetPrintout)
1310 {
1311 #ifdef dVAR
1312     dVAR; dXSARGS;
1313 #else
1314     dXSARGS;
1315 #endif
1316     if (items != 2)
1317        croak_xs_usage(cv,  "THIS, printout");
1318     {
1319         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Printout" );
1320         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1321
1322         THIS->SetPrintout(printout);
1323     }
1324     XSRETURN_EMPTY;
1325 }
1326
1327
1328 XS(XS_Wx__PrintPreview_SetZoom); /* prototype to pass -Wmissing-prototypes */
1329 XS(XS_Wx__PrintPreview_SetZoom)
1330 {
1331 #ifdef dVAR
1332     dVAR; dXSARGS;
1333 #else
1334     dXSARGS;
1335 #endif
1336     if (items != 2)
1337        croak_xs_usage(cv,  "THIS, percent");
1338     {
1339         int     percent = (int)SvIV(ST(1));
1340         wxPrintPreview *    THIS = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintPreview" );
1341
1342         THIS->SetZoom(percent);
1343     }
1344     XSRETURN_EMPTY;
1345 }
1346
1347
1348 /* INCLUDE: Returning to 'XS/PrintDialogData.xs' from 'XS/PrintPreview.xs' */
1349
1350 #include <wx/cmndata.h>
1351
1352 XS(XS_Wx__PrintDialogData_new); /* prototype to pass -Wmissing-prototypes */
1353 XS(XS_Wx__PrintDialogData_new)
1354 {
1355 #ifdef dVAR
1356     dVAR; dXSARGS;
1357 #else
1358     dXSARGS;
1359 #endif
1360     if (items != 1)
1361        croak_xs_usage(cv,  "CLASS");
1362     {
1363         char *  CLASS = (char *)SvPV_nolen(ST(0));
1364         wxPrintDialogData *     RETVAL;
1365
1366         RETVAL = new wxPrintDialogData();
1367         ST(0) = sv_newmortal();
1368     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1369
1370     }
1371     XSRETURN(1);
1372 }
1373
1374
1375 XS(XS_Wx__PrintDialogData_Destroy); /* prototype to pass -Wmissing-prototypes */
1376 XS(XS_Wx__PrintDialogData_Destroy)
1377 {
1378 #ifdef dVAR
1379     dVAR; dXSARGS;
1380 #else
1381     dXSARGS;
1382 #endif
1383     if (items != 1)
1384        croak_xs_usage(cv,  "THIS");
1385     {
1386         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1387     delete THIS;
1388     }
1389     XSRETURN_EMPTY;
1390 }
1391
1392 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
1393 #define XSubPPtmpAAAJ 1
1394
1395
1396 XS(XS_Wx__PrintDialogData_IsOk); /* prototype to pass -Wmissing-prototypes */
1397 XS(XS_Wx__PrintDialogData_IsOk)
1398 {
1399 #ifdef dVAR
1400     dVAR; dXSARGS;
1401 #else
1402     dXSARGS;
1403 #endif
1404     if (items != 1)
1405        croak_xs_usage(cv,  "THIS");
1406     {
1407         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1408         bool    RETVAL;
1409
1410         RETVAL = THIS->IsOk();
1411         ST(0) = boolSV(RETVAL);
1412         sv_2mortal(ST(0));
1413     }
1414     XSRETURN(1);
1415 }
1416
1417 #endif
1418
1419 XS(XS_Wx__PrintDialogData_EnableHelp); /* prototype to pass -Wmissing-prototypes */
1420 XS(XS_Wx__PrintDialogData_EnableHelp)
1421 {
1422 #ifdef dVAR
1423     dVAR; dXSARGS;
1424 #else
1425     dXSARGS;
1426 #endif
1427     if (items != 2)
1428        croak_xs_usage(cv,  "THIS, enable");
1429     {
1430         bool    enable = (bool)SvTRUE(ST(1));
1431         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1432
1433         THIS->EnableHelp(enable);
1434     }
1435     XSRETURN_EMPTY;
1436 }
1437
1438
1439 XS(XS_Wx__PrintDialogData_EnablePageNumbers); /* prototype to pass -Wmissing-prototypes */
1440 XS(XS_Wx__PrintDialogData_EnablePageNumbers)
1441 {
1442 #ifdef dVAR
1443     dVAR; dXSARGS;
1444 #else
1445     dXSARGS;
1446 #endif
1447     if (items != 2)
1448        croak_xs_usage(cv,  "THIS, enable");
1449     {
1450         bool    enable = (bool)SvTRUE(ST(1));
1451         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1452
1453         THIS->EnablePageNumbers(enable);
1454     }
1455     XSRETURN_EMPTY;
1456 }
1457
1458
1459 XS(XS_Wx__PrintDialogData_EnablePrintToFile); /* prototype to pass -Wmissing-prototypes */
1460 XS(XS_Wx__PrintDialogData_EnablePrintToFile)
1461 {
1462 #ifdef dVAR
1463     dVAR; dXSARGS;
1464 #else
1465     dXSARGS;
1466 #endif
1467     if (items != 2)
1468        croak_xs_usage(cv,  "THIS, enable");
1469     {
1470         bool    enable = (bool)SvTRUE(ST(1));
1471         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1472
1473         THIS->EnablePrintToFile(enable);
1474     }
1475     XSRETURN_EMPTY;
1476 }
1477
1478
1479 XS(XS_Wx__PrintDialogData_EnableSelection); /* prototype to pass -Wmissing-prototypes */
1480 XS(XS_Wx__PrintDialogData_EnableSelection)
1481 {
1482 #ifdef dVAR
1483     dVAR; dXSARGS;
1484 #else
1485     dXSARGS;
1486 #endif
1487     if (items != 2)
1488        croak_xs_usage(cv,  "THIS, enable");
1489     {
1490         bool    enable = (bool)SvTRUE(ST(1));
1491         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1492
1493         THIS->EnableSelection(enable);
1494     }
1495     XSRETURN_EMPTY;
1496 }
1497
1498
1499 XS(XS_Wx__PrintDialogData_GetAllPages); /* prototype to pass -Wmissing-prototypes */
1500 XS(XS_Wx__PrintDialogData_GetAllPages)
1501 {
1502 #ifdef dVAR
1503     dVAR; dXSARGS;
1504 #else
1505     dXSARGS;
1506 #endif
1507     if (items != 1)
1508        croak_xs_usage(cv,  "THIS");
1509     {
1510         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1511         bool    RETVAL;
1512
1513         RETVAL = THIS->GetAllPages();
1514         ST(0) = boolSV(RETVAL);
1515         sv_2mortal(ST(0));
1516     }
1517     XSRETURN(1);
1518 }
1519
1520
1521 XS(XS_Wx__PrintDialogData_GetCollate); /* prototype to pass -Wmissing-prototypes */
1522 XS(XS_Wx__PrintDialogData_GetCollate)
1523 {
1524 #ifdef dVAR
1525     dVAR; dXSARGS;
1526 #else
1527     dXSARGS;
1528 #endif
1529     if (items != 1)
1530        croak_xs_usage(cv,  "THIS");
1531     {
1532         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1533         bool    RETVAL;
1534
1535         RETVAL = THIS->GetCollate();
1536         ST(0) = boolSV(RETVAL);
1537         sv_2mortal(ST(0));
1538     }
1539     XSRETURN(1);
1540 }
1541
1542
1543 XS(XS_Wx__PrintDialogData_GetFromPage); /* prototype to pass -Wmissing-prototypes */
1544 XS(XS_Wx__PrintDialogData_GetFromPage)
1545 {
1546 #ifdef dVAR
1547     dVAR; dXSARGS;
1548 #else
1549     dXSARGS;
1550 #endif
1551     if (items != 1)
1552        croak_xs_usage(cv,  "THIS");
1553     {
1554         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1555         int     RETVAL;
1556         dXSTARG;
1557
1558         RETVAL = THIS->GetFromPage();
1559         XSprePUSH; PUSHi((IV)RETVAL);
1560     }
1561     XSRETURN(1);
1562 }
1563
1564
1565 XS(XS_Wx__PrintDialogData_GetMaxPage); /* prototype to pass -Wmissing-prototypes */
1566 XS(XS_Wx__PrintDialogData_GetMaxPage)
1567 {
1568 #ifdef dVAR
1569     dVAR; dXSARGS;
1570 #else
1571     dXSARGS;
1572 #endif
1573     if (items != 1)
1574        croak_xs_usage(cv,  "THIS");
1575     {
1576         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1577         int     RETVAL;
1578         dXSTARG;
1579
1580         RETVAL = THIS->GetMaxPage();
1581         XSprePUSH; PUSHi((IV)RETVAL);
1582     }
1583     XSRETURN(1);
1584 }
1585
1586
1587 XS(XS_Wx__PrintDialogData_GetMinPage); /* prototype to pass -Wmissing-prototypes */
1588 XS(XS_Wx__PrintDialogData_GetMinPage)
1589 {
1590 #ifdef dVAR
1591     dVAR; dXSARGS;
1592 #else
1593     dXSARGS;
1594 #endif
1595     if (items != 1)
1596        croak_xs_usage(cv,  "THIS");
1597     {
1598         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1599         int     RETVAL;
1600         dXSTARG;
1601
1602         RETVAL = THIS->GetMinPage();
1603         XSprePUSH; PUSHi((IV)RETVAL);
1604     }
1605     XSRETURN(1);
1606 }
1607
1608
1609 XS(XS_Wx__PrintDialogData_GetNoCopies); /* prototype to pass -Wmissing-prototypes */
1610 XS(XS_Wx__PrintDialogData_GetNoCopies)
1611 {
1612 #ifdef dVAR
1613     dVAR; dXSARGS;
1614 #else
1615     dXSARGS;
1616 #endif
1617     if (items != 1)
1618        croak_xs_usage(cv,  "THIS");
1619     {
1620         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1621         int     RETVAL;
1622         dXSTARG;
1623
1624         RETVAL = THIS->GetNoCopies();
1625         XSprePUSH; PUSHi((IV)RETVAL);
1626     }
1627     XSRETURN(1);
1628 }
1629
1630
1631 XS(XS_Wx__PrintDialogData_GetPrintData); /* prototype to pass -Wmissing-prototypes */
1632 XS(XS_Wx__PrintDialogData_GetPrintData)
1633 {
1634 #ifdef dVAR
1635     dVAR; dXSARGS;
1636 #else
1637     dXSARGS;
1638 #endif
1639     if (items != 1)
1640        croak_xs_usage(cv,  "THIS");
1641     {
1642         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1643         wxPrintData *   RETVAL;
1644     RETVAL = &THIS->GetPrintData();
1645         ST(0) = sv_newmortal();
1646     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1647
1648     }
1649     XSRETURN(1);
1650 }
1651
1652
1653 XS(XS_Wx__PrintDialogData_GetPrintToFile); /* prototype to pass -Wmissing-prototypes */
1654 XS(XS_Wx__PrintDialogData_GetPrintToFile)
1655 {
1656 #ifdef dVAR
1657     dVAR; dXSARGS;
1658 #else
1659     dXSARGS;
1660 #endif
1661     if (items != 1)
1662        croak_xs_usage(cv,  "THIS");
1663     {
1664         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1665         bool    RETVAL;
1666
1667         RETVAL = THIS->GetPrintToFile();
1668         ST(0) = boolSV(RETVAL);
1669         sv_2mortal(ST(0));
1670     }
1671     XSRETURN(1);
1672 }
1673
1674
1675 XS(XS_Wx__PrintDialogData_GetSelection); /* prototype to pass -Wmissing-prototypes */
1676 XS(XS_Wx__PrintDialogData_GetSelection)
1677 {
1678 #ifdef dVAR
1679     dVAR; dXSARGS;
1680 #else
1681     dXSARGS;
1682 #endif
1683     if (items != 1)
1684        croak_xs_usage(cv,  "THIS");
1685     {
1686         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1687         bool    RETVAL;
1688
1689         RETVAL = THIS->GetSelection();
1690         ST(0) = boolSV(RETVAL);
1691         sv_2mortal(ST(0));
1692     }
1693     XSRETURN(1);
1694 }
1695
1696
1697 XS(XS_Wx__PrintDialogData_GetToPage); /* prototype to pass -Wmissing-prototypes */
1698 XS(XS_Wx__PrintDialogData_GetToPage)
1699 {
1700 #ifdef dVAR
1701     dVAR; dXSARGS;
1702 #else
1703     dXSARGS;
1704 #endif
1705     if (items != 1)
1706        croak_xs_usage(cv,  "THIS");
1707     {
1708         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1709         int     RETVAL;
1710         dXSTARG;
1711
1712         RETVAL = THIS->GetToPage();
1713         XSprePUSH; PUSHi((IV)RETVAL);
1714     }
1715     XSRETURN(1);
1716 }
1717
1718
1719 XS(XS_Wx__PrintDialogData_SetCollate); /* prototype to pass -Wmissing-prototypes */
1720 XS(XS_Wx__PrintDialogData_SetCollate)
1721 {
1722 #ifdef dVAR
1723     dVAR; dXSARGS;
1724 #else
1725     dXSARGS;
1726 #endif
1727     if (items != 2)
1728        croak_xs_usage(cv,  "THIS, collate");
1729     {
1730         bool    collate = (bool)SvTRUE(ST(1));
1731         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1732
1733         THIS->SetCollate(collate);
1734     }
1735     XSRETURN_EMPTY;
1736 }
1737
1738
1739 XS(XS_Wx__PrintDialogData_SetFromPage); /* prototype to pass -Wmissing-prototypes */
1740 XS(XS_Wx__PrintDialogData_SetFromPage)
1741 {
1742 #ifdef dVAR
1743     dVAR; dXSARGS;
1744 #else
1745     dXSARGS;
1746 #endif
1747     if (items != 2)
1748        croak_xs_usage(cv,  "THIS, page");
1749     {
1750         int     page = (int)SvIV(ST(1));
1751         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1752
1753         THIS->SetFromPage(page);
1754     }
1755     XSRETURN_EMPTY;
1756 }
1757
1758
1759 XS(XS_Wx__PrintDialogData_SetMaxPage); /* prototype to pass -Wmissing-prototypes */
1760 XS(XS_Wx__PrintDialogData_SetMaxPage)
1761 {
1762 #ifdef dVAR
1763     dVAR; dXSARGS;
1764 #else
1765     dXSARGS;
1766 #endif
1767     if (items != 2)
1768        croak_xs_usage(cv,  "THIS, page");
1769     {
1770         int     page = (int)SvIV(ST(1));
1771         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1772
1773         THIS->SetMaxPage(page);
1774     }
1775     XSRETURN_EMPTY;
1776 }
1777
1778
1779 XS(XS_Wx__PrintDialogData_SetMinPage); /* prototype to pass -Wmissing-prototypes */
1780 XS(XS_Wx__PrintDialogData_SetMinPage)
1781 {
1782 #ifdef dVAR
1783     dVAR; dXSARGS;
1784 #else
1785     dXSARGS;
1786 #endif
1787     if (items != 2)
1788        croak_xs_usage(cv,  "THIS, page");
1789     {
1790         int     page = (int)SvIV(ST(1));
1791         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1792
1793         THIS->SetMinPage(page);
1794     }
1795     XSRETURN_EMPTY;
1796 }
1797
1798
1799 XS(XS_Wx__PrintDialogData_SetNoCopies); /* prototype to pass -Wmissing-prototypes */
1800 XS(XS_Wx__PrintDialogData_SetNoCopies)
1801 {
1802 #ifdef dVAR
1803     dVAR; dXSARGS;
1804 #else
1805     dXSARGS;
1806 #endif
1807     if (items != 2)
1808        croak_xs_usage(cv,  "THIS, n");
1809     {
1810         int     n = (int)SvIV(ST(1));
1811         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1812
1813         THIS->SetNoCopies(n);
1814     }
1815     XSRETURN_EMPTY;
1816 }
1817
1818
1819 XS(XS_Wx__PrintDialogData_SetPrintData); /* prototype to pass -Wmissing-prototypes */
1820 XS(XS_Wx__PrintDialogData_SetPrintData)
1821 {
1822 #ifdef dVAR
1823     dVAR; dXSARGS;
1824 #else
1825     dXSARGS;
1826 #endif
1827     if (items != 2)
1828        croak_xs_usage(cv,  "THIS, printData");
1829     {
1830         wxPrintData*    printData = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintData" );
1831         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1832     THIS->SetPrintData( *printData );
1833     }
1834     XSRETURN_EMPTY;
1835 }
1836
1837
1838 XS(XS_Wx__PrintDialogData_SetPrintToFile); /* prototype to pass -Wmissing-prototypes */
1839 XS(XS_Wx__PrintDialogData_SetPrintToFile)
1840 {
1841 #ifdef dVAR
1842     dVAR; dXSARGS;
1843 #else
1844     dXSARGS;
1845 #endif
1846     if (items != 2)
1847        croak_xs_usage(cv,  "THIS, flag");
1848     {
1849         bool    flag = (bool)SvTRUE(ST(1));
1850         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1851
1852         THIS->SetPrintToFile(flag);
1853     }
1854     XSRETURN_EMPTY;
1855 }
1856
1857
1858 XS(XS_Wx__PrintDialogData_SetSelection); /* prototype to pass -Wmissing-prototypes */
1859 XS(XS_Wx__PrintDialogData_SetSelection)
1860 {
1861 #ifdef dVAR
1862     dVAR; dXSARGS;
1863 #else
1864     dXSARGS;
1865 #endif
1866     if (items != 2)
1867        croak_xs_usage(cv,  "THIS, selection");
1868     {
1869         bool    selection = (bool)SvTRUE(ST(1));
1870         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1871
1872         THIS->SetSelection(selection);
1873     }
1874     XSRETURN_EMPTY;
1875 }
1876
1877 #if WXPERL_W_VERSION_GE( 2, 5, 3 ) && WXPERL_W_VERSION_LE( 2, 5, 3 )
1878 #define XSubPPtmpAAAK 1
1879
1880
1881 XS(XS_Wx__PrintDialogData_SetSetupDialog); /* prototype to pass -Wmissing-prototypes */
1882 XS(XS_Wx__PrintDialogData_SetSetupDialog)
1883 {
1884 #ifdef dVAR
1885     dVAR; dXSARGS;
1886 #else
1887     dXSARGS;
1888 #endif
1889     if (items != 2)
1890        croak_xs_usage(cv,  "THIS, flag");
1891     {
1892         bool    flag = (bool)SvTRUE(ST(1));
1893         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1894
1895         THIS->SetSetupDialog(flag);
1896     }
1897     XSRETURN_EMPTY;
1898 }
1899
1900 #endif
1901
1902 XS(XS_Wx__PrintDialogData_SetToPage); /* prototype to pass -Wmissing-prototypes */
1903 XS(XS_Wx__PrintDialogData_SetToPage)
1904 {
1905 #ifdef dVAR
1906     dVAR; dXSARGS;
1907 #else
1908     dXSARGS;
1909 #endif
1910     if (items != 2)
1911        croak_xs_usage(cv,  "THIS, page");
1912     {
1913         int     page = (int)SvIV(ST(1));
1914         wxPrintDialogData *    THIS = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintDialogData" );
1915
1916         THIS->SetToPage(page);
1917     }
1918     XSRETURN_EMPTY;
1919 }
1920
1921
1922 /* INCLUDE: Returning to 'XS/Printer.xs' from 'XS/PrintDialogData.xs' */
1923
1924 #include <wx/print.h>
1925 #include <wx/dc.h>
1926
1927 XS(XS_Wx__Printer_new); /* prototype to pass -Wmissing-prototypes */
1928 XS(XS_Wx__Printer_new)
1929 {
1930 #ifdef dVAR
1931     dVAR; dXSARGS;
1932 #else
1933     dXSARGS;
1934 #endif
1935     if (items < 1 || items > 2)
1936        croak_xs_usage(cv,  "CLASS, data = 0");
1937     {
1938         wxPrintDialogData*      data;
1939         char *  CLASS = (char *)SvPV_nolen(ST(0));
1940         wxPrinter *     RETVAL;
1941
1942         if (items < 2)
1943             data = 0;
1944         else {
1945     data = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintDialogData" );
1946         }
1947
1948         RETVAL = new wxPrinter(data);
1949         ST(0) = sv_newmortal();
1950     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1951     wxPli_thread_sv_register( aTHX_ "Wx::Printer", RETVAL, ST(0) );
1952
1953     }
1954     XSRETURN(1);
1955 }
1956
1957
1958 XS(XS_Wx__Printer_CLONE); /* prototype to pass -Wmissing-prototypes */
1959 XS(XS_Wx__Printer_CLONE)
1960 {
1961 #ifdef dVAR
1962     dVAR; dXSARGS;
1963 #else
1964     dXSARGS;
1965 #endif
1966     if (items != 1)
1967        croak_xs_usage(cv,  "CLASS");
1968     {
1969         char *  CLASS = (char *)SvPV_nolen(ST(0));
1970     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
1971     }
1972     XSRETURN_EMPTY;
1973 }
1974
1975
1976 XS(XS_Wx__Printer_DESTROY); /* prototype to pass -Wmissing-prototypes */
1977 XS(XS_Wx__Printer_DESTROY)
1978 {
1979 #ifdef dVAR
1980     dVAR; dXSARGS;
1981 #else
1982     dXSARGS;
1983 #endif
1984     if (items != 1)
1985        croak_xs_usage(cv,  "THIS");
1986     {
1987         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
1988     wxPli_thread_sv_unregister( aTHX_ "Wx::Printer", THIS, ST(0) );
1989     delete THIS;
1990     }
1991     XSRETURN_EMPTY;
1992 }
1993
1994
1995 XS(XS_Wx__Printer_GetAbort); /* prototype to pass -Wmissing-prototypes */
1996 XS(XS_Wx__Printer_GetAbort)
1997 {
1998 #ifdef dVAR
1999     dVAR; dXSARGS;
2000 #else
2001     dXSARGS;
2002 #endif
2003     if (items != 1)
2004        croak_xs_usage(cv,  "THIS");
2005     {
2006         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2007         bool    RETVAL;
2008
2009         RETVAL = THIS->GetAbort();
2010         ST(0) = boolSV(RETVAL);
2011         sv_2mortal(ST(0));
2012     }
2013     XSRETURN(1);
2014 }
2015
2016
2017 XS(XS_Wx__Printer_GetPrintDialogData); /* prototype to pass -Wmissing-prototypes */
2018 XS(XS_Wx__Printer_GetPrintDialogData)
2019 {
2020 #ifdef dVAR
2021     dVAR; dXSARGS;
2022 #else
2023     dXSARGS;
2024 #endif
2025     if (items != 1)
2026        croak_xs_usage(cv,  "THIS");
2027     {
2028         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2029         wxPrintDialogData *     RETVAL;
2030     RETVAL = &THIS->GetPrintDialogData();
2031         ST(0) = sv_newmortal();
2032     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2033
2034     }
2035     XSRETURN(1);
2036 }
2037
2038
2039 XS(XS_Wx__Printer_CreateAbortWindow); /* prototype to pass -Wmissing-prototypes */
2040 XS(XS_Wx__Printer_CreateAbortWindow)
2041 {
2042 #ifdef dVAR
2043     dVAR; dXSARGS;
2044 #else
2045     dXSARGS;
2046 #endif
2047     if (items != 3)
2048        croak_xs_usage(cv,  "THIS, parent, printout");
2049     {
2050         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2051         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
2052         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2053
2054         THIS->CreateAbortWindow(parent, printout);
2055     }
2056     XSRETURN_EMPTY;
2057 }
2058
2059
2060 XS(XS_Wx__Printer_GetLastError); /* prototype to pass -Wmissing-prototypes */
2061 XS(XS_Wx__Printer_GetLastError)
2062 {
2063 #ifdef dVAR
2064     dVAR; dXSARGS;
2065 #else
2066     dXSARGS;
2067 #endif
2068     if (items != 0)
2069        croak_xs_usage(cv,  "");
2070     {
2071         wxPrinterError  RETVAL;
2072         dXSTARG;
2073     RETVAL = wxPrinter::GetLastError();
2074         XSprePUSH; PUSHi((IV)RETVAL);
2075     }
2076     XSRETURN(1);
2077 }
2078
2079
2080 XS(XS_Wx__Printer_Print); /* prototype to pass -Wmissing-prototypes */
2081 XS(XS_Wx__Printer_Print)
2082 {
2083 #ifdef dVAR
2084     dVAR; dXSARGS;
2085 #else
2086     dXSARGS;
2087 #endif
2088     if (items < 3 || items > 4)
2089        croak_xs_usage(cv,  "THIS, parent, printout, prompt = true");
2090     {
2091         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2092         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
2093         bool    prompt;
2094         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2095         bool    RETVAL;
2096
2097         if (items < 4)
2098             prompt = true;
2099         else {
2100             prompt = (bool)SvTRUE(ST(3));
2101         }
2102
2103         RETVAL = THIS->Print(parent, printout, prompt);
2104         ST(0) = boolSV(RETVAL);
2105         sv_2mortal(ST(0));
2106     }
2107     XSRETURN(1);
2108 }
2109
2110
2111 XS(XS_Wx__Printer_PrintDialog); /* prototype to pass -Wmissing-prototypes */
2112 XS(XS_Wx__Printer_PrintDialog)
2113 {
2114 #ifdef dVAR
2115     dVAR; dXSARGS;
2116 #else
2117     dXSARGS;
2118 #endif
2119     if (items != 2)
2120        croak_xs_usage(cv,  "THIS, parent");
2121     {
2122         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2123         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2124         wxDC *  RETVAL;
2125
2126         RETVAL = THIS->PrintDialog(parent);
2127         ST(0) = sv_newmortal();
2128     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2129     wxPli_thread_sv_register( aTHX_ "Wx::DC", RETVAL, ST(0) );
2130
2131     }
2132     XSRETURN(1);
2133 }
2134
2135
2136 XS(XS_Wx__Printer_ReportError); /* prototype to pass -Wmissing-prototypes */
2137 XS(XS_Wx__Printer_ReportError)
2138 {
2139 #ifdef dVAR
2140     dVAR; dXSARGS;
2141 #else
2142     dXSARGS;
2143 #endif
2144     if (items != 4)
2145        croak_xs_usage(cv,  "THIS, parent, printout, message");
2146     {
2147         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2148         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
2149         wxString        message;
2150         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2151
2152     WXSTRING_INPUT( message, wxString, ST(3) );
2153     THIS->ReportError( parent, printout, message );
2154     }
2155     XSRETURN_EMPTY;
2156 }
2157
2158
2159 XS(XS_Wx__Printer_Setup); /* prototype to pass -Wmissing-prototypes */
2160 XS(XS_Wx__Printer_Setup)
2161 {
2162 #ifdef dVAR
2163     dVAR; dXSARGS;
2164 #else
2165     dXSARGS;
2166 #endif
2167     if (items != 2)
2168        croak_xs_usage(cv,  "THIS, parent");
2169     {
2170         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2171         wxPrinter *    THIS = (wxPrinter *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::Printer" );
2172         bool    RETVAL;
2173
2174         RETVAL = THIS->Setup(parent);
2175         ST(0) = boolSV(RETVAL);
2176         sv_2mortal(ST(0));
2177     }
2178     XSRETURN(1);
2179 }
2180
2181
2182 /* INCLUDE: Returning to 'XS/PageSetupDialogData.xs' from 'XS/Printer.xs' */
2183
2184 #include <wx/cmndata.h>
2185
2186 XS(XS_Wx__PageSetupDialogData_new); /* prototype to pass -Wmissing-prototypes */
2187 XS(XS_Wx__PageSetupDialogData_new)
2188 {
2189 #ifdef dVAR
2190     dVAR; dXSARGS;
2191 #else
2192     dXSARGS;
2193 #endif
2194     if (items != 1)
2195        croak_xs_usage(cv,  "CLASS");
2196     {
2197         char *  CLASS = (char *)SvPV_nolen(ST(0));
2198         wxPageSetupDialogData * RETVAL;
2199
2200         RETVAL = new wxPageSetupDialogData();
2201         ST(0) = sv_newmortal();
2202     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2203
2204     }
2205     XSRETURN(1);
2206 }
2207
2208
2209 XS(XS_Wx__PageSetupDialogData_Destroy); /* prototype to pass -Wmissing-prototypes */
2210 XS(XS_Wx__PageSetupDialogData_Destroy)
2211 {
2212 #ifdef dVAR
2213     dVAR; dXSARGS;
2214 #else
2215     dXSARGS;
2216 #endif
2217     if (items != 1)
2218        croak_xs_usage(cv,  "THIS");
2219     {
2220         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2221     delete THIS;
2222     }
2223     XSRETURN_EMPTY;
2224 }
2225
2226
2227 XS(XS_Wx__PageSetupDialogData_EnableHelp); /* prototype to pass -Wmissing-prototypes */
2228 XS(XS_Wx__PageSetupDialogData_EnableHelp)
2229 {
2230 #ifdef dVAR
2231     dVAR; dXSARGS;
2232 #else
2233     dXSARGS;
2234 #endif
2235     if (items != 2)
2236        croak_xs_usage(cv,  "THIS, flag");
2237     {
2238         bool    flag = (bool)SvTRUE(ST(1));
2239         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2240
2241         THIS->EnableHelp(flag);
2242     }
2243     XSRETURN_EMPTY;
2244 }
2245
2246
2247 XS(XS_Wx__PageSetupDialogData_EnableMargins); /* prototype to pass -Wmissing-prototypes */
2248 XS(XS_Wx__PageSetupDialogData_EnableMargins)
2249 {
2250 #ifdef dVAR
2251     dVAR; dXSARGS;
2252 #else
2253     dXSARGS;
2254 #endif
2255     if (items != 2)
2256        croak_xs_usage(cv,  "THIS, flag");
2257     {
2258         bool    flag = (bool)SvTRUE(ST(1));
2259         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2260
2261         THIS->EnableMargins(flag);
2262     }
2263     XSRETURN_EMPTY;
2264 }
2265
2266
2267 XS(XS_Wx__PageSetupDialogData_EnableOrientation); /* prototype to pass -Wmissing-prototypes */
2268 XS(XS_Wx__PageSetupDialogData_EnableOrientation)
2269 {
2270 #ifdef dVAR
2271     dVAR; dXSARGS;
2272 #else
2273     dXSARGS;
2274 #endif
2275     if (items != 2)
2276        croak_xs_usage(cv,  "THIS, flag");
2277     {
2278         bool    flag = (bool)SvTRUE(ST(1));
2279         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2280
2281         THIS->EnableOrientation(flag);
2282     }
2283     XSRETURN_EMPTY;
2284 }
2285
2286
2287 XS(XS_Wx__PageSetupDialogData_EnablePaper); /* prototype to pass -Wmissing-prototypes */
2288 XS(XS_Wx__PageSetupDialogData_EnablePaper)
2289 {
2290 #ifdef dVAR
2291     dVAR; dXSARGS;
2292 #else
2293     dXSARGS;
2294 #endif
2295     if (items != 2)
2296        croak_xs_usage(cv,  "THIS, flag");
2297     {
2298         bool    flag = (bool)SvTRUE(ST(1));
2299         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2300
2301         THIS->EnablePaper(flag);
2302     }
2303     XSRETURN_EMPTY;
2304 }
2305
2306
2307 XS(XS_Wx__PageSetupDialogData_EnablePrinter); /* prototype to pass -Wmissing-prototypes */
2308 XS(XS_Wx__PageSetupDialogData_EnablePrinter)
2309 {
2310 #ifdef dVAR
2311     dVAR; dXSARGS;
2312 #else
2313     dXSARGS;
2314 #endif
2315     if (items != 2)
2316        croak_xs_usage(cv,  "THIS, flag");
2317     {
2318         bool    flag = (bool)SvTRUE(ST(1));
2319         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2320
2321         THIS->EnablePrinter(flag);
2322     }
2323     XSRETURN_EMPTY;
2324 }
2325
2326
2327 XS(XS_Wx__PageSetupDialogData_GetDefaultMinMargins); /* prototype to pass -Wmissing-prototypes */
2328 XS(XS_Wx__PageSetupDialogData_GetDefaultMinMargins)
2329 {
2330 #ifdef dVAR
2331     dVAR; dXSARGS;
2332 #else
2333     dXSARGS;
2334 #endif
2335     if (items != 1)
2336        croak_xs_usage(cv,  "THIS");
2337     {
2338         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2339         bool    RETVAL;
2340
2341         RETVAL = THIS->GetDefaultMinMargins();
2342         ST(0) = boolSV(RETVAL);
2343         sv_2mortal(ST(0));
2344     }
2345     XSRETURN(1);
2346 }
2347
2348
2349 XS(XS_Wx__PageSetupDialogData_GetEnableMargins); /* prototype to pass -Wmissing-prototypes */
2350 XS(XS_Wx__PageSetupDialogData_GetEnableMargins)
2351 {
2352 #ifdef dVAR
2353     dVAR; dXSARGS;
2354 #else
2355     dXSARGS;
2356 #endif
2357     if (items != 1)
2358        croak_xs_usage(cv,  "THIS");
2359     {
2360         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2361         bool    RETVAL;
2362
2363         RETVAL = THIS->GetEnableMargins();
2364         ST(0) = boolSV(RETVAL);
2365         sv_2mortal(ST(0));
2366     }
2367     XSRETURN(1);
2368 }
2369
2370
2371 XS(XS_Wx__PageSetupDialogData_GetEnableOrientation); /* prototype to pass -Wmissing-prototypes */
2372 XS(XS_Wx__PageSetupDialogData_GetEnableOrientation)
2373 {
2374 #ifdef dVAR
2375     dVAR; dXSARGS;
2376 #else
2377     dXSARGS;
2378 #endif
2379     if (items != 1)
2380        croak_xs_usage(cv,  "THIS");
2381     {
2382         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2383         bool    RETVAL;
2384
2385         RETVAL = THIS->GetEnableOrientation();
2386         ST(0) = boolSV(RETVAL);
2387         sv_2mortal(ST(0));
2388     }
2389     XSRETURN(1);
2390 }
2391
2392
2393 XS(XS_Wx__PageSetupDialogData_GetEnablePaper); /* prototype to pass -Wmissing-prototypes */
2394 XS(XS_Wx__PageSetupDialogData_GetEnablePaper)
2395 {
2396 #ifdef dVAR
2397     dVAR; dXSARGS;
2398 #else
2399     dXSARGS;
2400 #endif
2401     if (items != 1)
2402        croak_xs_usage(cv,  "THIS");
2403     {
2404         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2405         bool    RETVAL;
2406
2407         RETVAL = THIS->GetEnablePaper();
2408         ST(0) = boolSV(RETVAL);
2409         sv_2mortal(ST(0));
2410     }
2411     XSRETURN(1);
2412 }
2413
2414
2415 XS(XS_Wx__PageSetupDialogData_GetEnablePrinter); /* prototype to pass -Wmissing-prototypes */
2416 XS(XS_Wx__PageSetupDialogData_GetEnablePrinter)
2417 {
2418 #ifdef dVAR
2419     dVAR; dXSARGS;
2420 #else
2421     dXSARGS;
2422 #endif
2423     if (items != 1)
2424        croak_xs_usage(cv,  "THIS");
2425     {
2426         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2427         bool    RETVAL;
2428
2429         RETVAL = THIS->GetEnablePrinter();
2430         ST(0) = boolSV(RETVAL);
2431         sv_2mortal(ST(0));
2432     }
2433     XSRETURN(1);
2434 }
2435
2436
2437 XS(XS_Wx__PageSetupDialogData_GetEnableHelp); /* prototype to pass -Wmissing-prototypes */
2438 XS(XS_Wx__PageSetupDialogData_GetEnableHelp)
2439 {
2440 #ifdef dVAR
2441     dVAR; dXSARGS;
2442 #else
2443     dXSARGS;
2444 #endif
2445     if (items != 1)
2446        croak_xs_usage(cv,  "THIS");
2447     {
2448         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2449         bool    RETVAL;
2450
2451         RETVAL = THIS->GetEnableHelp();
2452         ST(0) = boolSV(RETVAL);
2453         sv_2mortal(ST(0));
2454     }
2455     XSRETURN(1);
2456 }
2457
2458
2459 XS(XS_Wx__PageSetupDialogData_GetDefaultInfo); /* prototype to pass -Wmissing-prototypes */
2460 XS(XS_Wx__PageSetupDialogData_GetDefaultInfo)
2461 {
2462 #ifdef dVAR
2463     dVAR; dXSARGS;
2464 #else
2465     dXSARGS;
2466 #endif
2467     if (items != 1)
2468        croak_xs_usage(cv,  "THIS");
2469     {
2470         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2471         bool    RETVAL;
2472
2473         RETVAL = THIS->GetDefaultInfo();
2474         ST(0) = boolSV(RETVAL);
2475         sv_2mortal(ST(0));
2476     }
2477     XSRETURN(1);
2478 }
2479
2480
2481 XS(XS_Wx__PageSetupDialogData_GetMarginTopLeft); /* prototype to pass -Wmissing-prototypes */
2482 XS(XS_Wx__PageSetupDialogData_GetMarginTopLeft)
2483 {
2484 #ifdef dVAR
2485     dVAR; dXSARGS;
2486 #else
2487     dXSARGS;
2488 #endif
2489     if (items != 1)
2490        croak_xs_usage(cv,  "THIS");
2491     {
2492         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2493         wxPoint *       RETVAL;
2494     RETVAL = new wxPoint( THIS->GetMarginTopLeft() );
2495         ST(0) = sv_newmortal();
2496     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2497     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2498
2499     }
2500     XSRETURN(1);
2501 }
2502
2503
2504 XS(XS_Wx__PageSetupDialogData_GetMarginBottomRight); /* prototype to pass -Wmissing-prototypes */
2505 XS(XS_Wx__PageSetupDialogData_GetMarginBottomRight)
2506 {
2507 #ifdef dVAR
2508     dVAR; dXSARGS;
2509 #else
2510     dXSARGS;
2511 #endif
2512     if (items != 1)
2513        croak_xs_usage(cv,  "THIS");
2514     {
2515         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2516         wxPoint *       RETVAL;
2517     RETVAL = new wxPoint( THIS->GetMarginBottomRight() );
2518         ST(0) = sv_newmortal();
2519     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2520     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2521
2522     }
2523     XSRETURN(1);
2524 }
2525
2526
2527 XS(XS_Wx__PageSetupDialogData_GetMinMarginTopLeft); /* prototype to pass -Wmissing-prototypes */
2528 XS(XS_Wx__PageSetupDialogData_GetMinMarginTopLeft)
2529 {
2530 #ifdef dVAR
2531     dVAR; dXSARGS;
2532 #else
2533     dXSARGS;
2534 #endif
2535     if (items != 1)
2536        croak_xs_usage(cv,  "THIS");
2537     {
2538         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2539         wxPoint *       RETVAL;
2540     RETVAL = new wxPoint( THIS->GetMinMarginTopLeft() );
2541         ST(0) = sv_newmortal();
2542     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2543     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2544
2545     }
2546     XSRETURN(1);
2547 }
2548
2549
2550 XS(XS_Wx__PageSetupDialogData_GetMinMarginBottomRight); /* prototype to pass -Wmissing-prototypes */
2551 XS(XS_Wx__PageSetupDialogData_GetMinMarginBottomRight)
2552 {
2553 #ifdef dVAR
2554     dVAR; dXSARGS;
2555 #else
2556     dXSARGS;
2557 #endif
2558     if (items != 1)
2559        croak_xs_usage(cv,  "THIS");
2560     {
2561         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2562         wxPoint *       RETVAL;
2563     RETVAL = new wxPoint( THIS->GetMinMarginBottomRight() );
2564         ST(0) = sv_newmortal();
2565     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Point" );
2566     wxPli_thread_sv_register( aTHX_ "Wx::Point", RETVAL, ST(0) );
2567
2568     }
2569     XSRETURN(1);
2570 }
2571
2572
2573 XS(XS_Wx__PageSetupDialogData_GetPaperId); /* prototype to pass -Wmissing-prototypes */
2574 XS(XS_Wx__PageSetupDialogData_GetPaperId)
2575 {
2576 #ifdef dVAR
2577     dVAR; dXSARGS;
2578 #else
2579     dXSARGS;
2580 #endif
2581     if (items != 1)
2582        croak_xs_usage(cv,  "THIS");
2583     {
2584         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2585         wxPaperSize     RETVAL;
2586         dXSTARG;
2587
2588         RETVAL = THIS->GetPaperId();
2589         XSprePUSH; PUSHi((IV)RETVAL);
2590     }
2591     XSRETURN(1);
2592 }
2593
2594
2595 XS(XS_Wx__PageSetupDialogData_GetPaperSize); /* prototype to pass -Wmissing-prototypes */
2596 XS(XS_Wx__PageSetupDialogData_GetPaperSize)
2597 {
2598 #ifdef dVAR
2599     dVAR; dXSARGS;
2600 #else
2601     dXSARGS;
2602 #endif
2603     if (items != 1)
2604        croak_xs_usage(cv,  "THIS");
2605     {
2606         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2607         wxSize *        RETVAL;
2608     RETVAL = new wxSize( THIS->GetPaperSize() );
2609         ST(0) = sv_newmortal();
2610     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::Size" );
2611     wxPli_thread_sv_register( aTHX_ "Wx::Size", RETVAL, ST(0) );
2612
2613     }
2614     XSRETURN(1);
2615 }
2616
2617
2618 XS(XS_Wx__PageSetupDialogData_GetPrintData); /* prototype to pass -Wmissing-prototypes */
2619 XS(XS_Wx__PageSetupDialogData_GetPrintData)
2620 {
2621 #ifdef dVAR
2622     dVAR; dXSARGS;
2623 #else
2624     dXSARGS;
2625 #endif
2626     if (items != 1)
2627        croak_xs_usage(cv,  "THIS");
2628     {
2629         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2630         wxPrintData *   RETVAL;
2631     RETVAL = &THIS->GetPrintData();
2632         ST(0) = sv_newmortal();
2633     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2634
2635     }
2636     XSRETURN(1);
2637 }
2638
2639
2640 XS(XS_Wx__PageSetupDialogData_SetDefaultInfo); /* prototype to pass -Wmissing-prototypes */
2641 XS(XS_Wx__PageSetupDialogData_SetDefaultInfo)
2642 {
2643 #ifdef dVAR
2644     dVAR; dXSARGS;
2645 #else
2646     dXSARGS;
2647 #endif
2648     if (items != 2)
2649        croak_xs_usage(cv,  "THIS, flag");
2650     {
2651         bool    flag = (bool)SvTRUE(ST(1));
2652         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2653
2654         THIS->SetDefaultInfo(flag);
2655     }
2656     XSRETURN_EMPTY;
2657 }
2658
2659
2660 XS(XS_Wx__PageSetupDialogData_SetDefaultMinMargins); /* prototype to pass -Wmissing-prototypes */
2661 XS(XS_Wx__PageSetupDialogData_SetDefaultMinMargins)
2662 {
2663 #ifdef dVAR
2664     dVAR; dXSARGS;
2665 #else
2666     dXSARGS;
2667 #endif
2668     if (items != 2)
2669        croak_xs_usage(cv,  "THIS, flag");
2670     {
2671         bool    flag = (bool)SvTRUE(ST(1));
2672         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2673
2674         THIS->SetDefaultMinMargins(flag);
2675     }
2676     XSRETURN_EMPTY;
2677 }
2678
2679
2680 XS(XS_Wx__PageSetupDialogData_SetMarginTopLeft); /* prototype to pass -Wmissing-prototypes */
2681 XS(XS_Wx__PageSetupDialogData_SetMarginTopLeft)
2682 {
2683 #ifdef dVAR
2684     dVAR; dXSARGS;
2685 #else
2686     dXSARGS;
2687 #endif
2688     if (items != 2)
2689        croak_xs_usage(cv,  "THIS, point");
2690     {
2691         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
2692         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2693
2694         THIS->SetMarginTopLeft(point);
2695     }
2696     XSRETURN_EMPTY;
2697 }
2698
2699
2700 XS(XS_Wx__PageSetupDialogData_SetMarginBottomRight); /* prototype to pass -Wmissing-prototypes */
2701 XS(XS_Wx__PageSetupDialogData_SetMarginBottomRight)
2702 {
2703 #ifdef dVAR
2704     dVAR; dXSARGS;
2705 #else
2706     dXSARGS;
2707 #endif
2708     if (items != 2)
2709        croak_xs_usage(cv,  "THIS, point");
2710     {
2711         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
2712         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2713
2714         THIS->SetMarginBottomRight(point);
2715     }
2716     XSRETURN_EMPTY;
2717 }
2718
2719
2720 XS(XS_Wx__PageSetupDialogData_SetMinMarginTopLeft); /* prototype to pass -Wmissing-prototypes */
2721 XS(XS_Wx__PageSetupDialogData_SetMinMarginTopLeft)
2722 {
2723 #ifdef dVAR
2724     dVAR; dXSARGS;
2725 #else
2726     dXSARGS;
2727 #endif
2728     if (items != 2)
2729        croak_xs_usage(cv,  "THIS, point");
2730     {
2731         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
2732         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2733
2734         THIS->SetMinMarginTopLeft(point);
2735     }
2736     XSRETURN_EMPTY;
2737 }
2738
2739
2740 XS(XS_Wx__PageSetupDialogData_SetMinMarginBottomRight); /* prototype to pass -Wmissing-prototypes */
2741 XS(XS_Wx__PageSetupDialogData_SetMinMarginBottomRight)
2742 {
2743 #ifdef dVAR
2744     dVAR; dXSARGS;
2745 #else
2746     dXSARGS;
2747 #endif
2748     if (items != 2)
2749        croak_xs_usage(cv,  "THIS, point");
2750     {
2751         wxPoint    point = wxPli_sv_2_wxpoint( aTHX_ ST(1) );
2752         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2753
2754         THIS->SetMinMarginBottomRight(point);
2755     }
2756     XSRETURN_EMPTY;
2757 }
2758
2759
2760 XS(XS_Wx__PageSetupDialogData_SetPaperId); /* prototype to pass -Wmissing-prototypes */
2761 XS(XS_Wx__PageSetupDialogData_SetPaperId)
2762 {
2763 #ifdef dVAR
2764     dVAR; dXSARGS;
2765 #else
2766     dXSARGS;
2767 #endif
2768     if (items != 2)
2769        croak_xs_usage(cv,  "THIS, id");
2770     {
2771         wxPaperSize     id = (wxPaperSize)SvIV(ST(1));
2772         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2773
2774         THIS->SetPaperId(id);
2775     }
2776     XSRETURN_EMPTY;
2777 }
2778
2779
2780 XS(XS_Wx__PageSetupDialogData_SetPaperSize); /* prototype to pass -Wmissing-prototypes */
2781 XS(XS_Wx__PageSetupDialogData_SetPaperSize)
2782 {
2783 #ifdef dVAR
2784     dVAR; dXSARGS;
2785 #else
2786     dXSARGS;
2787 #endif
2788     if (items != 2)
2789        croak_xs_usage(cv,  "THIS, size");
2790     {
2791         wxSize    size = wxPli_sv_2_wxsize( aTHX_ ST(1) );
2792         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2793
2794         THIS->SetPaperSize(size);
2795     }
2796     XSRETURN_EMPTY;
2797 }
2798
2799
2800 XS(XS_Wx__PageSetupDialogData_SetPrintData); /* prototype to pass -Wmissing-prototypes */
2801 XS(XS_Wx__PageSetupDialogData_SetPrintData)
2802 {
2803 #ifdef dVAR
2804     dVAR; dXSARGS;
2805 #else
2806     dXSARGS;
2807 #endif
2808     if (items != 2)
2809        croak_xs_usage(cv,  "THIS, printData");
2810     {
2811         wxPrintData*    printData = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintData" );
2812         wxPageSetupDialogData *    THIS = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialogData" );
2813     THIS->SetPrintData( *printData );
2814     }
2815     XSRETURN_EMPTY;
2816 }
2817
2818
2819 /* INCLUDE: Returning to 'XS/PageSetupDialog.xs' from 'XS/PageSetupDialogData.xs' */
2820
2821 #include <wx/printdlg.h>
2822
2823 XS(XS_Wx__PageSetupDialog_new); /* prototype to pass -Wmissing-prototypes */
2824 XS(XS_Wx__PageSetupDialog_new)
2825 {
2826 #ifdef dVAR
2827     dVAR; dXSARGS;
2828 #else
2829     dXSARGS;
2830 #endif
2831     if (items < 2 || items > 3)
2832        croak_xs_usage(cv,  "CLASS, parent, data = 0");
2833     {
2834         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
2835         wxPageSetupDialogData*  data;
2836         char *  CLASS = (char *)SvPV_nolen(ST(0));
2837         wxPageSetupDialog *     RETVAL;
2838
2839         if (items < 3)
2840             data = 0;
2841         else {
2842     data = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PageSetupDialogData" );
2843         }
2844
2845         RETVAL = new wxPageSetupDialog(parent, data);
2846         ST(0) = sv_newmortal();
2847     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2848
2849     }
2850     XSRETURN(1);
2851 }
2852
2853
2854 XS(XS_Wx__PageSetupDialog_Destroy); /* prototype to pass -Wmissing-prototypes */
2855 XS(XS_Wx__PageSetupDialog_Destroy)
2856 {
2857 #ifdef dVAR
2858     dVAR; dXSARGS;
2859 #else
2860     dXSARGS;
2861 #endif
2862     if (items != 1)
2863        croak_xs_usage(cv,  "THIS");
2864     {
2865         wxPageSetupDialog *    THIS = (wxPageSetupDialog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialog" );
2866     delete THIS;
2867     }
2868     XSRETURN_EMPTY;
2869 }
2870
2871
2872 XS(XS_Wx__PageSetupDialog_GetPageSetupData); /* prototype to pass -Wmissing-prototypes */
2873 XS(XS_Wx__PageSetupDialog_GetPageSetupData)
2874 {
2875 #ifdef dVAR
2876     dVAR; dXSARGS;
2877 #else
2878     dXSARGS;
2879 #endif
2880     if (items != 1)
2881        croak_xs_usage(cv,  "THIS");
2882     {
2883         wxPageSetupDialog *    THIS = (wxPageSetupDialog *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PageSetupDialog" );
2884         wxPageSetupDialogData * RETVAL;
2885     RETVAL = &THIS->GetPageSetupData();
2886         ST(0) = sv_newmortal();
2887     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2888
2889     }
2890     XSRETURN(1);
2891 }
2892
2893
2894 /* INCLUDE: Returning to 'XS/PrintData.xs' from 'XS/PageSetupDialog.xs' */
2895
2896 #include <wx/cmndata.h>
2897
2898 XS(XS_Wx__PrintData_new); /* prototype to pass -Wmissing-prototypes */
2899 XS(XS_Wx__PrintData_new)
2900 {
2901 #ifdef dVAR
2902     dVAR; dXSARGS;
2903 #else
2904     dXSARGS;
2905 #endif
2906     if (items != 1)
2907        croak_xs_usage(cv,  "CLASS");
2908     {
2909         char *  CLASS = (char *)SvPV_nolen(ST(0));
2910         wxPrintData *   RETVAL;
2911     RETVAL = new wxPrintData();
2912         ST(0) = sv_newmortal();
2913     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
2914
2915     }
2916     XSRETURN(1);
2917 }
2918
2919
2920 XS(XS_Wx__PrintData_Destroy); /* prototype to pass -Wmissing-prototypes */
2921 XS(XS_Wx__PrintData_Destroy)
2922 {
2923 #ifdef dVAR
2924     dVAR; dXSARGS;
2925 #else
2926     dXSARGS;
2927 #endif
2928     if (items != 1)
2929        croak_xs_usage(cv,  "THIS");
2930     {
2931         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
2932     delete THIS;
2933     }
2934     XSRETURN_EMPTY;
2935 }
2936
2937 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
2938 #define XSubPPtmpAAAL 1
2939
2940
2941 XS(XS_Wx__PrintData_GetBin); /* prototype to pass -Wmissing-prototypes */
2942 XS(XS_Wx__PrintData_GetBin)
2943 {
2944 #ifdef dVAR
2945     dVAR; dXSARGS;
2946 #else
2947     dXSARGS;
2948 #endif
2949     if (items != 1)
2950        croak_xs_usage(cv,  "THIS");
2951     {
2952         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
2953         wxPrintBin      RETVAL;
2954         dXSTARG;
2955
2956         RETVAL = THIS->GetBin();
2957         XSprePUSH; PUSHi((IV)RETVAL);
2958     }
2959     XSRETURN(1);
2960 }
2961
2962 #endif
2963 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
2964 #define XSubPPtmpAAAM 1
2965
2966
2967 XS(XS_Wx__PrintData_IsOk); /* prototype to pass -Wmissing-prototypes */
2968 XS(XS_Wx__PrintData_IsOk)
2969 {
2970 #ifdef dVAR
2971     dVAR; dXSARGS;
2972 #else
2973     dXSARGS;
2974 #endif
2975     if (items != 1)
2976        croak_xs_usage(cv,  "THIS");
2977     {
2978         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
2979         bool    RETVAL;
2980
2981         RETVAL = THIS->IsOk();
2982         ST(0) = boolSV(RETVAL);
2983         sv_2mortal(ST(0));
2984     }
2985     XSRETURN(1);
2986 }
2987
2988 #endif
2989
2990 XS(XS_Wx__PrintData_GetCollate); /* prototype to pass -Wmissing-prototypes */
2991 XS(XS_Wx__PrintData_GetCollate)
2992 {
2993 #ifdef dVAR
2994     dVAR; dXSARGS;
2995 #else
2996     dXSARGS;
2997 #endif
2998     if (items != 1)
2999        croak_xs_usage(cv,  "THIS");
3000     {
3001         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3002         bool    RETVAL;
3003
3004         RETVAL = THIS->GetCollate();
3005         ST(0) = boolSV(RETVAL);
3006         sv_2mortal(ST(0));
3007     }
3008     XSRETURN(1);
3009 }
3010
3011
3012 XS(XS_Wx__PrintData_GetColour); /* prototype to pass -Wmissing-prototypes */
3013 XS(XS_Wx__PrintData_GetColour)
3014 {
3015 #ifdef dVAR
3016     dVAR; dXSARGS;
3017 #else
3018     dXSARGS;
3019 #endif
3020     if (items != 1)
3021        croak_xs_usage(cv,  "THIS");
3022     {
3023         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3024         bool    RETVAL;
3025
3026         RETVAL = THIS->GetColour();
3027         ST(0) = boolSV(RETVAL);
3028         sv_2mortal(ST(0));
3029     }
3030     XSRETURN(1);
3031 }
3032
3033
3034 XS(XS_Wx__PrintData_GetDuplex); /* prototype to pass -Wmissing-prototypes */
3035 XS(XS_Wx__PrintData_GetDuplex)
3036 {
3037 #ifdef dVAR
3038     dVAR; dXSARGS;
3039 #else
3040     dXSARGS;
3041 #endif
3042     if (items != 1)
3043        croak_xs_usage(cv,  "THIS");
3044     {
3045         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3046         wxDuplexMode    RETVAL;
3047         dXSTARG;
3048
3049         RETVAL = THIS->GetDuplex();
3050         XSprePUSH; PUSHi((IV)RETVAL);
3051     }
3052     XSRETURN(1);
3053 }
3054
3055
3056 XS(XS_Wx__PrintData_GetNoCopies); /* prototype to pass -Wmissing-prototypes */
3057 XS(XS_Wx__PrintData_GetNoCopies)
3058 {
3059 #ifdef dVAR
3060     dVAR; dXSARGS;
3061 #else
3062     dXSARGS;
3063 #endif
3064     if (items != 1)
3065        croak_xs_usage(cv,  "THIS");
3066     {
3067         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3068         int     RETVAL;
3069         dXSTARG;
3070
3071         RETVAL = THIS->GetNoCopies();
3072         XSprePUSH; PUSHi((IV)RETVAL);
3073     }
3074     XSRETURN(1);
3075 }
3076
3077
3078 XS(XS_Wx__PrintData_GetOrientation); /* prototype to pass -Wmissing-prototypes */
3079 XS(XS_Wx__PrintData_GetOrientation)
3080 {
3081 #ifdef dVAR
3082     dVAR; dXSARGS;
3083 #else
3084     dXSARGS;
3085 #endif
3086     if (items != 1)
3087        croak_xs_usage(cv,  "THIS");
3088     {
3089         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3090         int     RETVAL;
3091         dXSTARG;
3092
3093         RETVAL = THIS->GetOrientation();
3094         XSprePUSH; PUSHi((IV)RETVAL);
3095     }
3096     XSRETURN(1);
3097 }
3098
3099
3100 XS(XS_Wx__PrintData_GetPaperId); /* prototype to pass -Wmissing-prototypes */
3101 XS(XS_Wx__PrintData_GetPaperId)
3102 {
3103 #ifdef dVAR
3104     dVAR; dXSARGS;
3105 #else
3106     dXSARGS;
3107 #endif
3108     if (items != 1)
3109        croak_xs_usage(cv,  "THIS");
3110     {
3111         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3112         wxPaperSize     RETVAL;
3113         dXSTARG;
3114
3115         RETVAL = THIS->GetPaperId();
3116         XSprePUSH; PUSHi((IV)RETVAL);
3117     }
3118     XSRETURN(1);
3119 }
3120
3121
3122 XS(XS_Wx__PrintData_GetPrinterName); /* prototype to pass -Wmissing-prototypes */
3123 XS(XS_Wx__PrintData_GetPrinterName)
3124 {
3125 #ifdef dVAR
3126     dVAR; dXSARGS;
3127 #else
3128     dXSARGS;
3129 #endif
3130     if (items != 1)
3131        croak_xs_usage(cv,  "THIS");
3132     {
3133         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3134         wxString        RETVAL;
3135
3136         RETVAL = THIS->GetPrinterName();
3137         ST(0) = sv_newmortal();
3138     WXSTRING_OUTPUT( RETVAL, ST(0) );
3139
3140     }
3141     XSRETURN(1);
3142 }
3143
3144
3145 XS(XS_Wx__PrintData_GetQuality); /* prototype to pass -Wmissing-prototypes */
3146 XS(XS_Wx__PrintData_GetQuality)
3147 {
3148 #ifdef dVAR
3149     dVAR; dXSARGS;
3150 #else
3151     dXSARGS;
3152 #endif
3153     if (items != 1)
3154        croak_xs_usage(cv,  "THIS");
3155     {
3156         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3157         wxPrintQuality  RETVAL;
3158         dXSTARG;
3159
3160         RETVAL = THIS->GetQuality();
3161         XSprePUSH; PUSHi((IV)RETVAL);
3162     }
3163     XSRETURN(1);
3164 }
3165
3166 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
3167 #define XSubPPtmpAAAN 1
3168
3169
3170 XS(XS_Wx__PrintData_SetBin); /* prototype to pass -Wmissing-prototypes */
3171 XS(XS_Wx__PrintData_SetBin)
3172 {
3173 #ifdef dVAR
3174     dVAR; dXSARGS;
3175 #else
3176     dXSARGS;
3177 #endif
3178     if (items != 2)
3179        croak_xs_usage(cv,  "THIS, bin");
3180     {
3181         wxPrintBin      bin = (wxPrintBin)SvIV(ST(1));
3182         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3183
3184         THIS->SetBin(bin);
3185     }
3186     XSRETURN_EMPTY;
3187 }
3188
3189 #endif
3190
3191 XS(XS_Wx__PrintData_SetCollate); /* prototype to pass -Wmissing-prototypes */
3192 XS(XS_Wx__PrintData_SetCollate)
3193 {
3194 #ifdef dVAR
3195     dVAR; dXSARGS;
3196 #else
3197     dXSARGS;
3198 #endif
3199     if (items != 2)
3200        croak_xs_usage(cv,  "THIS, collate");
3201     {
3202         bool    collate = (bool)SvTRUE(ST(1));
3203         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3204
3205         THIS->SetCollate(collate);
3206     }
3207     XSRETURN_EMPTY;
3208 }
3209
3210
3211 XS(XS_Wx__PrintData_SetColour); /* prototype to pass -Wmissing-prototypes */
3212 XS(XS_Wx__PrintData_SetColour)
3213 {
3214 #ifdef dVAR
3215     dVAR; dXSARGS;
3216 #else
3217     dXSARGS;
3218 #endif
3219     if (items != 2)
3220        croak_xs_usage(cv,  "THIS, colour");
3221     {
3222         bool    colour = (bool)SvTRUE(ST(1));
3223         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3224
3225         THIS->SetColour(colour);
3226     }
3227     XSRETURN_EMPTY;
3228 }
3229
3230
3231 XS(XS_Wx__PrintData_SetDuplex); /* prototype to pass -Wmissing-prototypes */
3232 XS(XS_Wx__PrintData_SetDuplex)
3233 {
3234 #ifdef dVAR
3235     dVAR; dXSARGS;
3236 #else
3237     dXSARGS;
3238 #endif
3239     if (items != 2)
3240        croak_xs_usage(cv,  "THIS, mode");
3241     {
3242         wxDuplexMode    mode = (wxDuplexMode)SvIV(ST(1));
3243         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3244
3245         THIS->SetDuplex(mode);
3246     }
3247     XSRETURN_EMPTY;
3248 }
3249
3250
3251 XS(XS_Wx__PrintData_SetNoCopies); /* prototype to pass -Wmissing-prototypes */
3252 XS(XS_Wx__PrintData_SetNoCopies)
3253 {
3254 #ifdef dVAR
3255     dVAR; dXSARGS;
3256 #else
3257     dXSARGS;
3258 #endif
3259     if (items != 2)
3260        croak_xs_usage(cv,  "THIS, noCopies");
3261     {
3262         int     noCopies = (int)SvIV(ST(1));
3263         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3264
3265         THIS->SetNoCopies(noCopies);
3266     }
3267     XSRETURN_EMPTY;
3268 }
3269
3270
3271 XS(XS_Wx__PrintData_SetOrientation); /* prototype to pass -Wmissing-prototypes */
3272 XS(XS_Wx__PrintData_SetOrientation)
3273 {
3274 #ifdef dVAR
3275     dVAR; dXSARGS;
3276 #else
3277     dXSARGS;
3278 #endif
3279     if (items != 2)
3280        croak_xs_usage(cv,  "THIS, orientation");
3281     {
3282         int     orientation = (int)SvIV(ST(1));
3283         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3284
3285         THIS->SetOrientation(orientation);
3286     }
3287     XSRETURN_EMPTY;
3288 }
3289
3290
3291 XS(XS_Wx__PrintData_SetPaperId); /* prototype to pass -Wmissing-prototypes */
3292 XS(XS_Wx__PrintData_SetPaperId)
3293 {
3294 #ifdef dVAR
3295     dVAR; dXSARGS;
3296 #else
3297     dXSARGS;
3298 #endif
3299     if (items != 2)
3300        croak_xs_usage(cv,  "THIS, paperId");
3301     {
3302         wxPaperSize     paperId = (wxPaperSize)SvIV(ST(1));
3303         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3304
3305         THIS->SetPaperId(paperId);
3306     }
3307     XSRETURN_EMPTY;
3308 }
3309
3310
3311 XS(XS_Wx__PrintData_SetPrinterName); /* prototype to pass -Wmissing-prototypes */
3312 XS(XS_Wx__PrintData_SetPrinterName)
3313 {
3314 #ifdef dVAR
3315     dVAR; dXSARGS;
3316 #else
3317     dXSARGS;
3318 #endif
3319     if (items != 2)
3320        croak_xs_usage(cv,  "THIS, name");
3321     {
3322         wxString        name;
3323         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3324
3325     WXSTRING_INPUT( name, wxString, ST(1) );
3326
3327         THIS->SetPrinterName(name);
3328     }
3329     XSRETURN_EMPTY;
3330 }
3331
3332
3333 XS(XS_Wx__PrintData_SetQuality); /* prototype to pass -Wmissing-prototypes */
3334 XS(XS_Wx__PrintData_SetQuality)
3335 {
3336 #ifdef dVAR
3337     dVAR; dXSARGS;
3338 #else
3339     dXSARGS;
3340 #endif
3341     if (items != 2)
3342        croak_xs_usage(cv,  "THIS, quality");
3343     {
3344         wxPrintQuality  quality = (wxPrintQuality)SvIV(ST(1));
3345         wxPrintData *    THIS = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintData" );
3346
3347         THIS->SetQuality(quality);
3348     }
3349     XSRETURN_EMPTY;
3350 }
3351
3352
3353 /* INCLUDE: Returning to 'Print.xs' from 'XS/PrintData.xs' */
3354
3355
3356 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/Preview.xs |' from 'Print.xs' */
3357
3358 #include <wx/print.h>
3359 #include "cpp/previewframe.h"
3360 #include "cpp/previewcontrolbar.h"
3361
3362 XS(XS_Wx__PreviewControlBar_new); /* prototype to pass -Wmissing-prototypes */
3363 XS(XS_Wx__PreviewControlBar_new)
3364 {
3365 #ifdef dVAR
3366     dVAR; dXSARGS;
3367 #else
3368     dXSARGS;
3369 #endif
3370     if (items < 4 || items > 8)
3371        croak_xs_usage(cv,  "CLASS, preview, buttons, parent, pos = wxDefaultPosition, size = wxDefaultSize, style = wxTAB_TRAVERSAL, name = wxPanelNameStr");
3372     {
3373         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3374         long    buttons = (long)SvIV(ST(2));
3375         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Window" );
3376         wxPoint pos;
3377         wxSize  size;
3378         long    style;
3379         wxString        name;
3380         char *  CLASS = (char *)SvPV_nolen(ST(0));
3381         wxPreviewControlBar *   RETVAL;
3382
3383         if (items < 5)
3384             pos = wxDefaultPosition;
3385         else {
3386     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3387         }
3388
3389         if (items < 6)
3390             size = wxDefaultSize;
3391         else {
3392     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3393         }
3394
3395         if (items < 7)
3396             style = wxTAB_TRAVERSAL;
3397         else {
3398             style = (long)SvIV(ST(6));
3399         }
3400
3401         if (items < 8)
3402             name = wxPanelNameStr;
3403         else {
3404     WXSTRING_INPUT( name, wxString, ST(7) );
3405         }
3406
3407         RETVAL = new wxPreviewControlBar(preview, buttons, parent, pos, size, style, name);
3408         ST(0) = sv_newmortal();
3409     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3410
3411     }
3412     XSRETURN(1);
3413 }
3414
3415
3416 XS(XS_Wx__PreviewControlBar_CreateButtons); /* prototype to pass -Wmissing-prototypes */
3417 XS(XS_Wx__PreviewControlBar_CreateButtons)
3418 {
3419 #ifdef dVAR
3420     dVAR; dXSARGS;
3421 #else
3422     dXSARGS;
3423 #endif
3424     if (items != 1)
3425        croak_xs_usage(cv,  "THIS");
3426     {
3427         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3428
3429         THIS->CreateButtons();
3430     }
3431     XSRETURN_EMPTY;
3432 }
3433
3434
3435 XS(XS_Wx__PreviewControlBar_GetPrintPreview); /* prototype to pass -Wmissing-prototypes */
3436 XS(XS_Wx__PreviewControlBar_GetPrintPreview)
3437 {
3438 #ifdef dVAR
3439     dVAR; dXSARGS;
3440 #else
3441     dXSARGS;
3442 #endif
3443     if (items != 1)
3444        croak_xs_usage(cv,  "THIS");
3445     {
3446         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3447         wxPrintPreviewBase *    RETVAL;
3448
3449         RETVAL = THIS->GetPrintPreview();
3450         ST(0) = sv_newmortal();
3451     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3452
3453     }
3454     XSRETURN(1);
3455 }
3456
3457
3458 XS(XS_Wx__PreviewControlBar_GetZoomControl); /* prototype to pass -Wmissing-prototypes */
3459 XS(XS_Wx__PreviewControlBar_GetZoomControl)
3460 {
3461 #ifdef dVAR
3462     dVAR; dXSARGS;
3463 #else
3464     dXSARGS;
3465 #endif
3466     if (items != 1)
3467        croak_xs_usage(cv,  "THIS");
3468     {
3469         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3470         int     RETVAL;
3471         dXSTARG;
3472
3473         RETVAL = THIS->GetZoomControl();
3474         XSprePUSH; PUSHi((IV)RETVAL);
3475     }
3476     XSRETURN(1);
3477 }
3478
3479
3480 XS(XS_Wx__PreviewControlBar_SetZoomControl); /* prototype to pass -Wmissing-prototypes */
3481 XS(XS_Wx__PreviewControlBar_SetZoomControl)
3482 {
3483 #ifdef dVAR
3484     dVAR; dXSARGS;
3485 #else
3486     dXSARGS;
3487 #endif
3488     if (items != 2)
3489        croak_xs_usage(cv,  "THIS, zoom");
3490     {
3491         int     zoom = (int)SvIV(ST(1));
3492         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3493
3494         THIS->SetZoomControl(zoom);
3495     }
3496     XSRETURN_EMPTY;
3497 }
3498
3499
3500 XS(XS_Wx__PreviewControlBar_OnNext); /* prototype to pass -Wmissing-prototypes */
3501 XS(XS_Wx__PreviewControlBar_OnNext)
3502 {
3503 #ifdef dVAR
3504     dVAR; dXSARGS;
3505 #else
3506     dXSARGS;
3507 #endif
3508     if (items != 1)
3509        croak_xs_usage(cv,  "THIS");
3510     {
3511         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3512
3513         THIS->OnNext();
3514     }
3515     XSRETURN_EMPTY;
3516 }
3517
3518
3519 XS(XS_Wx__PreviewControlBar_OnPrevious); /* prototype to pass -Wmissing-prototypes */
3520 XS(XS_Wx__PreviewControlBar_OnPrevious)
3521 {
3522 #ifdef dVAR
3523     dVAR; dXSARGS;
3524 #else
3525     dXSARGS;
3526 #endif
3527     if (items != 1)
3528        croak_xs_usage(cv,  "THIS");
3529     {
3530         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3531
3532         THIS->OnPrevious();
3533     }
3534     XSRETURN_EMPTY;
3535 }
3536
3537
3538 XS(XS_Wx__PreviewControlBar_OnFirst); /* prototype to pass -Wmissing-prototypes */
3539 XS(XS_Wx__PreviewControlBar_OnFirst)
3540 {
3541 #ifdef dVAR
3542     dVAR; dXSARGS;
3543 #else
3544     dXSARGS;
3545 #endif
3546     if (items != 1)
3547        croak_xs_usage(cv,  "THIS");
3548     {
3549         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3550
3551         THIS->OnFirst();
3552     }
3553     XSRETURN_EMPTY;
3554 }
3555
3556
3557 XS(XS_Wx__PreviewControlBar_OnLast); /* prototype to pass -Wmissing-prototypes */
3558 XS(XS_Wx__PreviewControlBar_OnLast)
3559 {
3560 #ifdef dVAR
3561     dVAR; dXSARGS;
3562 #else
3563     dXSARGS;
3564 #endif
3565     if (items != 1)
3566        croak_xs_usage(cv,  "THIS");
3567     {
3568         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3569
3570         THIS->OnLast();
3571     }
3572     XSRETURN_EMPTY;
3573 }
3574
3575
3576 XS(XS_Wx__PreviewControlBar_OnGoto); /* prototype to pass -Wmissing-prototypes */
3577 XS(XS_Wx__PreviewControlBar_OnGoto)
3578 {
3579 #ifdef dVAR
3580     dVAR; dXSARGS;
3581 #else
3582     dXSARGS;
3583 #endif
3584     if (items != 1)
3585        croak_xs_usage(cv,  "THIS");
3586     {
3587         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3588
3589         THIS->OnGoto();
3590     }
3591     XSRETURN_EMPTY;
3592 }
3593
3594 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
3595 #define XSubPPtmpAAAO 1
3596
3597
3598 XS(XS_Wx__PreviewControlBar_OnPrint); /* prototype to pass -Wmissing-prototypes */
3599 XS(XS_Wx__PreviewControlBar_OnPrint)
3600 {
3601 #ifdef dVAR
3602     dVAR; dXSARGS;
3603 #else
3604     dXSARGS;
3605 #endif
3606     if (items != 1)
3607        croak_xs_usage(cv,  "THIS");
3608     {
3609         wxPreviewControlBar *    THIS = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewControlBar" );
3610
3611         THIS->OnPrint();
3612     }
3613     XSRETURN_EMPTY;
3614 }
3615
3616 #endif
3617 #define CreateButtons wxPreviewControlBar::CreateButtons
3618
3619 XS(XS_Wx__PlPreviewControlBar_new); /* prototype to pass -Wmissing-prototypes */
3620 XS(XS_Wx__PlPreviewControlBar_new)
3621 {
3622 #ifdef dVAR
3623     dVAR; dXSARGS;
3624 #else
3625     dXSARGS;
3626 #endif
3627     if (items < 4 || items > 8)
3628        croak_xs_usage(cv,  "CLASS, preview, buttons, parent, pos = wxDefaultPosition, size = wxDefaultSize, style = wxTAB_TRAVERSAL, name = wxPanelNameStr");
3629     {
3630         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3631         long    buttons = (long)SvIV(ST(2));
3632         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::Window" );
3633         wxPoint pos;
3634         wxSize  size;
3635         long    style;
3636         wxString        name;
3637         char *  CLASS = (char *)SvPV_nolen(ST(0));
3638         wxPlPreviewControlBar * RETVAL;
3639
3640         if (items < 5)
3641             pos = wxDefaultPosition;
3642         else {
3643     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3644         }
3645
3646         if (items < 6)
3647             size = wxDefaultSize;
3648         else {
3649     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3650         }
3651
3652         if (items < 7)
3653             style = wxTAB_TRAVERSAL;
3654         else {
3655             style = (long)SvIV(ST(6));
3656         }
3657
3658         if (items < 8)
3659             name = wxPanelNameStr;
3660         else {
3661     WXSTRING_INPUT( name, wxString, ST(7) );
3662         }
3663      RETVAL = new wxPlPreviewControlBar
3664                     ( CLASS, preview, buttons, parent, pos, size,
3665                       style, name );
3666
3667         ST(0) = sv_newmortal();
3668     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3669
3670     }
3671     XSRETURN(1);
3672 }
3673
3674
3675 XS(XS_Wx__PlPreviewControlBar_CreateButtons); /* prototype to pass -Wmissing-prototypes */
3676 XS(XS_Wx__PlPreviewControlBar_CreateButtons)
3677 {
3678 #ifdef dVAR
3679     dVAR; dXSARGS;
3680 #else
3681     dXSARGS;
3682 #endif
3683     if (items != 1)
3684        croak_xs_usage(cv,  "THIS");
3685     {
3686         wxPlPreviewControlBar *    THIS = (wxPlPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewControlBar" );
3687
3688         THIS->CreateButtons();
3689     }
3690     XSRETURN_EMPTY;
3691 }
3692
3693 #undef CreateButtons
3694 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
3695 #define XSubPPtmpAAAP 1
3696
3697
3698 XS(XS_Wx__PreviewFrame_new); /* prototype to pass -Wmissing-prototypes */
3699 XS(XS_Wx__PreviewFrame_new)
3700 {
3701 #ifdef dVAR
3702     dVAR; dXSARGS;
3703 #else
3704     dXSARGS;
3705 #endif
3706     if (items < 4 || items > 8)
3707        croak_xs_usage(cv,  "CLASS, preview, parent, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr");
3708     {
3709         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3710         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Window" );
3711         wxString        title;
3712         wxPoint pos;
3713         wxSize  size;
3714         long    style;
3715         wxString        name;
3716         char *  CLASS = (char *)SvPV_nolen(ST(0));
3717         wxPreviewFrame *        RETVAL;
3718
3719     WXSTRING_INPUT( title, wxString, ST(3) );
3720
3721         if (items < 5)
3722             pos = wxDefaultPosition;
3723         else {
3724     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3725         }
3726
3727         if (items < 6)
3728             size = wxDefaultSize;
3729         else {
3730     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3731         }
3732
3733         if (items < 7)
3734             style = wxDEFAULT_FRAME_STYLE;
3735         else {
3736             style = (long)SvIV(ST(6));
3737         }
3738
3739         if (items < 8)
3740             name = wxFrameNameStr;
3741         else {
3742     WXSTRING_INPUT( name, wxString, ST(7) );
3743         }
3744
3745         RETVAL = new wxPreviewFrame(preview, parent, title, pos, size, style, name);
3746         ST(0) = sv_newmortal();
3747     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3748
3749     }
3750     XSRETURN(1);
3751 }
3752
3753 #else
3754 #define XSubPPtmpAAAQ 1
3755
3756
3757 XS(XS_Wx__PreviewFrame_new); /* prototype to pass -Wmissing-prototypes */
3758 XS(XS_Wx__PreviewFrame_new)
3759 {
3760 #ifdef dVAR
3761     dVAR; dXSARGS;
3762 #else
3763     dXSARGS;
3764 #endif
3765     if (items < 4 || items > 8)
3766        croak_xs_usage(cv,  "CLASS, preview, parent, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr");
3767     {
3768         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3769         wxFrame*    parent = (wxFrame *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Frame" );
3770         wxString        title;
3771         wxPoint pos;
3772         wxSize  size;
3773         long    style;
3774         wxString        name;
3775         char *  CLASS = (char *)SvPV_nolen(ST(0));
3776         wxPreviewFrame *        RETVAL;
3777
3778     WXSTRING_INPUT( title, wxString, ST(3) );
3779
3780         if (items < 5)
3781             pos = wxDefaultPosition;
3782         else {
3783     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3784         }
3785
3786         if (items < 6)
3787             size = wxDefaultSize;
3788         else {
3789     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3790         }
3791
3792         if (items < 7)
3793             style = wxDEFAULT_FRAME_STYLE;
3794         else {
3795             style = (long)SvIV(ST(6));
3796         }
3797
3798         if (items < 8)
3799             name = wxFrameNameStr;
3800         else {
3801     WXSTRING_INPUT( name, wxString, ST(7) );
3802         }
3803
3804         RETVAL = new wxPreviewFrame(preview, parent, title, pos, size, style, name);
3805         ST(0) = sv_newmortal();
3806     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3807
3808     }
3809     XSRETURN(1);
3810 }
3811
3812 #endif
3813
3814 XS(XS_Wx__PreviewFrame_Initialize); /* prototype to pass -Wmissing-prototypes */
3815 XS(XS_Wx__PreviewFrame_Initialize)
3816 {
3817 #ifdef dVAR
3818     dVAR; dXSARGS;
3819 #else
3820     dXSARGS;
3821 #endif
3822     if (items != 1)
3823        croak_xs_usage(cv,  "THIS");
3824     {
3825         wxPreviewFrame *    THIS = (wxPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewFrame" );
3826
3827         THIS->Initialize();
3828     }
3829     XSRETURN_EMPTY;
3830 }
3831
3832
3833 XS(XS_Wx__PreviewFrame_CreateCanvas); /* prototype to pass -Wmissing-prototypes */
3834 XS(XS_Wx__PreviewFrame_CreateCanvas)
3835 {
3836 #ifdef dVAR
3837     dVAR; dXSARGS;
3838 #else
3839     dXSARGS;
3840 #endif
3841     if (items != 1)
3842        croak_xs_usage(cv,  "THIS");
3843     {
3844         wxPreviewFrame *    THIS = (wxPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewFrame" );
3845
3846         THIS->CreateCanvas();
3847     }
3848     XSRETURN_EMPTY;
3849 }
3850
3851
3852 XS(XS_Wx__PreviewFrame_CreateControlBar); /* prototype to pass -Wmissing-prototypes */
3853 XS(XS_Wx__PreviewFrame_CreateControlBar)
3854 {
3855 #ifdef dVAR
3856     dVAR; dXSARGS;
3857 #else
3858     dXSARGS;
3859 #endif
3860     if (items != 1)
3861        croak_xs_usage(cv,  "THIS");
3862     {
3863         wxPreviewFrame *    THIS = (wxPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewFrame" );
3864
3865         THIS->CreateControlBar();
3866     }
3867     XSRETURN_EMPTY;
3868 }
3869
3870 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
3871 #define XSubPPtmpAAAR 1
3872
3873
3874 XS(XS_Wx__PreviewFrame_GetControlBar); /* prototype to pass -Wmissing-prototypes */
3875 XS(XS_Wx__PreviewFrame_GetControlBar)
3876 {
3877 #ifdef dVAR
3878     dVAR; dXSARGS;
3879 #else
3880     dXSARGS;
3881 #endif
3882     if (items != 1)
3883        croak_xs_usage(cv,  "THIS");
3884     {
3885         wxPreviewFrame *    THIS = (wxPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PreviewFrame" );
3886         wxPreviewControlBar *   RETVAL;
3887
3888         RETVAL = THIS->GetControlBar();
3889         ST(0) = sv_newmortal();
3890     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3891
3892     }
3893     XSRETURN(1);
3894 }
3895
3896 #endif
3897 #define Initialize wxPreviewFrame::Initialize
3898 #define CreateCanvas wxPreviewFrame::CreateCanvas
3899 #define CreateControlBar wxPreviewFrame::CreateControlBar
3900 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
3901 #define XSubPPtmpAAAS 1
3902
3903
3904 XS(XS_Wx__PlPreviewFrame_new); /* prototype to pass -Wmissing-prototypes */
3905 XS(XS_Wx__PlPreviewFrame_new)
3906 {
3907 #ifdef dVAR
3908     dVAR; dXSARGS;
3909 #else
3910     dXSARGS;
3911 #endif
3912     if (items < 4 || items > 8)
3913        croak_xs_usage(cv,  "CLASS, preview, parent, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr");
3914     {
3915         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3916         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Window" );
3917         wxString        title;
3918         wxPoint pos;
3919         wxSize  size;
3920         long    style;
3921         wxString        name;
3922         char *  CLASS = (char *)SvPV_nolen(ST(0));
3923         wxPlPreviewFrame *      RETVAL;
3924
3925     WXSTRING_INPUT( title, wxString, ST(3) );
3926
3927         if (items < 5)
3928             pos = wxDefaultPosition;
3929         else {
3930     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3931         }
3932
3933         if (items < 6)
3934             size = wxDefaultSize;
3935         else {
3936     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3937         }
3938
3939         if (items < 7)
3940             style = wxDEFAULT_FRAME_STYLE;
3941         else {
3942             style = (long)SvIV(ST(6));
3943         }
3944
3945         if (items < 8)
3946             name = wxFrameNameStr;
3947         else {
3948     WXSTRING_INPUT( name, wxString, ST(7) );
3949         }
3950      RETVAL = new wxPlPreviewFrame
3951                     ( CLASS, preview, parent, title, pos, size, style, name );
3952
3953         ST(0) = sv_newmortal();
3954     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
3955
3956     }
3957     XSRETURN(1);
3958 }
3959
3960 #else
3961 #define XSubPPtmpAAAT 1
3962
3963
3964 XS(XS_Wx__PlPreviewFrame_new); /* prototype to pass -Wmissing-prototypes */
3965 XS(XS_Wx__PlPreviewFrame_new)
3966 {
3967 #ifdef dVAR
3968     dVAR; dXSARGS;
3969 #else
3970     dXSARGS;
3971 #endif
3972     if (items < 4 || items > 8)
3973        croak_xs_usage(cv,  "CLASS, preview, parent, title, pos = wxDefaultPosition, size = wxDefaultSize, style = wxDEFAULT_FRAME_STYLE, name = wxFrameNameStr");
3974     {
3975         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
3976         wxFrame*    parent = (wxFrame *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Frame" );
3977         wxString        title;
3978         wxPoint pos;
3979         wxSize  size;
3980         long    style;
3981         wxString        name;
3982         char *  CLASS = (char *)SvPV_nolen(ST(0));
3983         wxPlPreviewFrame *      RETVAL;
3984
3985     WXSTRING_INPUT( title, wxString, ST(3) );
3986
3987         if (items < 5)
3988             pos = wxDefaultPosition;
3989         else {
3990     pos = wxPli_sv_2_wxpoint( aTHX_ ST(4) );
3991         }
3992
3993         if (items < 6)
3994             size = wxDefaultSize;
3995         else {
3996     size = wxPli_sv_2_wxsize( aTHX_ ST(5) );
3997         }
3998
3999         if (items < 7)
4000             style = wxDEFAULT_FRAME_STYLE;
4001         else {
4002             style = (long)SvIV(ST(6));
4003         }
4004
4005         if (items < 8)
4006             name = wxFrameNameStr;
4007         else {
4008     WXSTRING_INPUT( name, wxString, ST(7) );
4009         }
4010      RETVAL = new wxPlPreviewFrame
4011                     ( CLASS, preview, parent, title, pos, size, style, name );
4012
4013         ST(0) = sv_newmortal();
4014     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4015
4016     }
4017     XSRETURN(1);
4018 }
4019
4020 #endif
4021 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
4022 #define XSubPPtmpAAAU 1
4023
4024
4025 XS(XS_Wx__PlPreviewFrame_GetPreviewCanvas); /* prototype to pass -Wmissing-prototypes */
4026 XS(XS_Wx__PlPreviewFrame_GetPreviewCanvas)
4027 {
4028 #ifdef dVAR
4029     dVAR; dXSARGS;
4030 #else
4031     dXSARGS;
4032 #endif
4033     if (items != 1)
4034        croak_xs_usage(cv,  "THIS");
4035     {
4036         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4037         wxPreviewCanvas *       RETVAL;
4038
4039         RETVAL = THIS->GetPreviewCanvas();
4040         ST(0) = sv_newmortal();
4041     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4042
4043     }
4044     XSRETURN(1);
4045 }
4046
4047 #else
4048 #define XSubPPtmpAAAV 1
4049
4050
4051 XS(XS_Wx__PlPreviewFrame_GetPreviewCanvas); /* prototype to pass -Wmissing-prototypes */
4052 XS(XS_Wx__PlPreviewFrame_GetPreviewCanvas)
4053 {
4054 #ifdef dVAR
4055     dVAR; dXSARGS;
4056 #else
4057     dXSARGS;
4058 #endif
4059     if (items != 1)
4060        croak_xs_usage(cv,  "THIS");
4061     {
4062         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4063         wxWindow *      RETVAL;
4064
4065         RETVAL = THIS->GetPreviewCanvas();
4066         ST(0) = sv_newmortal();
4067     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4068
4069     }
4070     XSRETURN(1);
4071 }
4072
4073 #endif
4074
4075 XS(XS_Wx__PlPreviewFrame_GetPreviewControlBar); /* prototype to pass -Wmissing-prototypes */
4076 XS(XS_Wx__PlPreviewFrame_GetPreviewControlBar)
4077 {
4078 #ifdef dVAR
4079     dVAR; dXSARGS;
4080 #else
4081     dXSARGS;
4082 #endif
4083     if (items != 1)
4084        croak_xs_usage(cv,  "THIS");
4085     {
4086         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4087         wxPreviewControlBar *   RETVAL;
4088
4089         RETVAL = THIS->GetPreviewControlBar();
4090         ST(0) = sv_newmortal();
4091     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4092
4093     }
4094     XSRETURN(1);
4095 }
4096
4097
4098 XS(XS_Wx__PlPreviewFrame_GetPrintPreview); /* prototype to pass -Wmissing-prototypes */
4099 XS(XS_Wx__PlPreviewFrame_GetPrintPreview)
4100 {
4101 #ifdef dVAR
4102     dVAR; dXSARGS;
4103 #else
4104     dXSARGS;
4105 #endif
4106     if (items != 1)
4107        croak_xs_usage(cv,  "THIS");
4108     {
4109         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4110         wxPrintPreviewBase *    RETVAL;
4111
4112         RETVAL = THIS->GetPrintPreview();
4113         ST(0) = sv_newmortal();
4114     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4115
4116     }
4117     XSRETURN(1);
4118 }
4119
4120 #if WXPERL_W_VERSION_GE( 2, 5, 3 )
4121 #define XSubPPtmpAAAW 1
4122
4123
4124 XS(XS_Wx__PlPreviewFrame_SetPreviewCanvas); /* prototype to pass -Wmissing-prototypes */
4125 XS(XS_Wx__PlPreviewFrame_SetPreviewCanvas)
4126 {
4127 #ifdef dVAR
4128     dVAR; dXSARGS;
4129 #else
4130     dXSARGS;
4131 #endif
4132     if (items != 2)
4133        croak_xs_usage(cv,  "THIS, p");
4134     {
4135         wxPreviewCanvas*    p = (wxPreviewCanvas *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PreviewCanvas" );
4136         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4137
4138         THIS->SetPreviewCanvas(p);
4139     }
4140     XSRETURN_EMPTY;
4141 }
4142
4143 #else
4144 #define XSubPPtmpAAAX 1
4145
4146
4147 XS(XS_Wx__PlPreviewFrame_SetPreviewCanvas); /* prototype to pass -Wmissing-prototypes */
4148 XS(XS_Wx__PlPreviewFrame_SetPreviewCanvas)
4149 {
4150 #ifdef dVAR
4151     dVAR; dXSARGS;
4152 #else
4153     dXSARGS;
4154 #endif
4155     if (items != 2)
4156        croak_xs_usage(cv,  "THIS, p");
4157     {
4158         wxWindow*    p = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4159         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4160
4161         THIS->SetPreviewCanvas(p);
4162     }
4163     XSRETURN_EMPTY;
4164 }
4165
4166 #endif
4167
4168 XS(XS_Wx__PlPreviewFrame_SetPreviewControlBar); /* prototype to pass -Wmissing-prototypes */
4169 XS(XS_Wx__PlPreviewFrame_SetPreviewControlBar)
4170 {
4171 #ifdef dVAR
4172     dVAR; dXSARGS;
4173 #else
4174     dXSARGS;
4175 #endif
4176     if (items != 2)
4177        croak_xs_usage(cv,  "THIS, p");
4178     {
4179         wxPreviewControlBar*    p = (wxPreviewControlBar *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PreviewControlBar" );
4180         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4181
4182         THIS->SetPreviewControlBar(p);
4183     }
4184     XSRETURN_EMPTY;
4185 }
4186
4187
4188 XS(XS_Wx__PlPreviewFrame_SetPrintPreview); /* prototype to pass -Wmissing-prototypes */
4189 XS(XS_Wx__PlPreviewFrame_SetPrintPreview)
4190 {
4191 #ifdef dVAR
4192     dVAR; dXSARGS;
4193 #else
4194     dXSARGS;
4195 #endif
4196     if (items != 2)
4197        croak_xs_usage(cv,  "THIS, p");
4198     {
4199         wxPrintPreviewBase*    p = (wxPrintPreviewBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreviewBase" );
4200         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4201
4202         THIS->SetPrintPreview(p);
4203     }
4204     XSRETURN_EMPTY;
4205 }
4206
4207
4208 XS(XS_Wx__PlPreviewFrame_Initialize); /* prototype to pass -Wmissing-prototypes */
4209 XS(XS_Wx__PlPreviewFrame_Initialize)
4210 {
4211 #ifdef dVAR
4212     dVAR; dXSARGS;
4213 #else
4214     dXSARGS;
4215 #endif
4216     if (items != 1)
4217        croak_xs_usage(cv,  "THIS");
4218     {
4219         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4220
4221         THIS->Initialize();
4222     }
4223     XSRETURN_EMPTY;
4224 }
4225
4226
4227 XS(XS_Wx__PlPreviewFrame_CreateCanvas); /* prototype to pass -Wmissing-prototypes */
4228 XS(XS_Wx__PlPreviewFrame_CreateCanvas)
4229 {
4230 #ifdef dVAR
4231     dVAR; dXSARGS;
4232 #else
4233     dXSARGS;
4234 #endif
4235     if (items != 1)
4236        croak_xs_usage(cv,  "THIS");
4237     {
4238         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4239
4240         THIS->CreateCanvas();
4241     }
4242     XSRETURN_EMPTY;
4243 }
4244
4245
4246 XS(XS_Wx__PlPreviewFrame_CreateControlBar); /* prototype to pass -Wmissing-prototypes */
4247 XS(XS_Wx__PlPreviewFrame_CreateControlBar)
4248 {
4249 #ifdef dVAR
4250     dVAR; dXSARGS;
4251 #else
4252     dXSARGS;
4253 #endif
4254     if (items != 1)
4255        croak_xs_usage(cv,  "THIS");
4256     {
4257         wxPlPreviewFrame *    THIS = (wxPlPreviewFrame *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PlPreviewFrame" );
4258
4259         THIS->CreateControlBar();
4260     }
4261     XSRETURN_EMPTY;
4262 }
4263
4264 #undef Initialize
4265 #undef CreateCanvas
4266 #undef CreateControlBar
4267
4268 XS(XS_Wx__PreviewCanvas_new); /* prototype to pass -Wmissing-prototypes */
4269 XS(XS_Wx__PreviewCanvas_new)
4270 {
4271 #ifdef dVAR
4272     dVAR; dXSARGS;
4273 #else
4274     dXSARGS;
4275 #endif
4276     if (items < 3 || items > 7)
4277        croak_xs_usage(cv,  "CLASS, preview, parent, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, name = wxT(\"canvas\")");
4278     {
4279         wxPrintPreview*    preview = (wxPrintPreview *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintPreview" );
4280         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Window" );
4281         wxPoint pos;
4282         wxSize  size;
4283         long    style;
4284         wxString        name;
4285         char *  CLASS = (char *)SvPV_nolen(ST(0));
4286         wxPreviewCanvas *       RETVAL;
4287
4288         if (items < 4)
4289             pos = wxDefaultPosition;
4290         else {
4291     pos = wxPli_sv_2_wxpoint( aTHX_ ST(3) );
4292         }
4293
4294         if (items < 5)
4295             size = wxDefaultSize;
4296         else {
4297     size = wxPli_sv_2_wxsize( aTHX_ ST(4) );
4298         }
4299
4300         if (items < 6)
4301             style = 0;
4302         else {
4303             style = (long)SvIV(ST(5));
4304         }
4305
4306         if (items < 7)
4307             name = wxT("canvas");
4308         else {
4309     WXSTRING_INPUT( name, wxString, ST(6) );
4310         }
4311
4312         RETVAL = new wxPreviewCanvas(preview, parent, pos, size, style, name);
4313         ST(0) = sv_newmortal();
4314     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4315
4316     }
4317     XSRETURN(1);
4318 }
4319
4320
4321 /* INCLUDE: Returning to 'Print.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/Preview.xs |' */
4322
4323
4324 /* INCLUDE:  Including 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/PrintFactory.xsp |' from 'Print.xs' */
4325
4326 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
4327 #define XSubPPtmpAAAY 1
4328
4329
4330 XS(XS_Wx__PrintFactory_CreatePrinter); /* prototype to pass -Wmissing-prototypes */
4331 XS(XS_Wx__PrintFactory_CreatePrinter)
4332 {
4333 #ifdef dVAR
4334     dVAR; dXSARGS;
4335 #else
4336     dXSARGS;
4337 #endif
4338     if (items != 2)
4339        croak_xs_usage(cv,  "THIS, data");
4340     {
4341         wxPrintDialogData*    data = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintDialogData" );
4342         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4343         wxPrinterBase * RETVAL;
4344
4345         RETVAL = THIS->CreatePrinter(data);
4346         ST(0) = sv_newmortal();
4347     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4348
4349     }
4350     XSRETURN(1);
4351 }
4352
4353
4354 XS(XS_Wx__PrintFactory_CreatePrintPreviewDD); /* prototype to pass -Wmissing-prototypes */
4355 XS(XS_Wx__PrintFactory_CreatePrintPreviewDD)
4356 {
4357 #ifdef dVAR
4358     dVAR; dXSARGS;
4359 #else
4360     dXSARGS;
4361 #endif
4362     if (items < 2 || items > 4)
4363        croak_xs_usage(cv,  "THIS, preview, printout = NULL, data = NULL");
4364     {
4365         wxPrintout*    preview = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Printout" );
4366         wxPrintout*     printout;
4367         wxPrintDialogData*      data;
4368         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4369         wxPrintPreviewBase *    RETVAL;
4370
4371         if (items < 3)
4372             printout = NULL;
4373         else {
4374     printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
4375         }
4376
4377         if (items < 4)
4378             data = NULL;
4379         else {
4380     data = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::PrintDialogData" );
4381         }
4382     RETVAL = THIS->CreatePrintPreview( preview, printout, data );
4383         ST(0) = sv_newmortal();
4384     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4385
4386     }
4387     XSRETURN(1);
4388 }
4389
4390
4391 XS(XS_Wx__PrintFactory_CreatePrintPreviewD); /* prototype to pass -Wmissing-prototypes */
4392 XS(XS_Wx__PrintFactory_CreatePrintPreviewD)
4393 {
4394 #ifdef dVAR
4395     dVAR; dXSARGS;
4396 #else
4397     dXSARGS;
4398 #endif
4399     if (items != 4)
4400        croak_xs_usage(cv,  "THIS, preview, printout, data");
4401     {
4402         wxPrintout*    preview = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Printout" );
4403         wxPrintout*    printout = (wxPrintout *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::Printout" );
4404         wxPrintData*    data = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(3), "Wx::PrintData" );
4405         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4406         wxPrintPreviewBase *    RETVAL;
4407     RETVAL = THIS->CreatePrintPreview( preview, printout, data );
4408         ST(0) = sv_newmortal();
4409     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4410
4411     }
4412     XSRETURN(1);
4413 }
4414
4415
4416 XS(XS_Wx__PrintFactory_CreatePrintDialogDD); /* prototype to pass -Wmissing-prototypes */
4417 XS(XS_Wx__PrintFactory_CreatePrintDialogDD)
4418 {
4419 #ifdef dVAR
4420     dVAR; dXSARGS;
4421 #else
4422     dXSARGS;
4423 #endif
4424     if (items < 2 || items > 3)
4425        croak_xs_usage(cv,  "THIS, parent, data = NULL");
4426     {
4427         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4428         wxPrintDialogData*      data;
4429         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4430         wxPrintDialogBase *     RETVAL;
4431
4432         if (items < 3)
4433             data = NULL;
4434         else {
4435     data = (wxPrintDialogData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PrintDialogData" );
4436         }
4437     RETVAL = THIS->CreatePrintDialog( parent, data );
4438         ST(0) = sv_newmortal();
4439     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4440
4441     }
4442     XSRETURN(1);
4443 }
4444
4445
4446 XS(XS_Wx__PrintFactory_CreatePrintDialogD); /* prototype to pass -Wmissing-prototypes */
4447 XS(XS_Wx__PrintFactory_CreatePrintDialogD)
4448 {
4449 #ifdef dVAR
4450     dVAR; dXSARGS;
4451 #else
4452     dXSARGS;
4453 #endif
4454     if (items != 3)
4455        croak_xs_usage(cv,  "THIS, parent, data");
4456     {
4457         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4458         wxPrintData*    data = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PrintData" );
4459         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4460         wxPrintDialogBase *     RETVAL;
4461     RETVAL = THIS->CreatePrintDialog( parent, data );
4462         ST(0) = sv_newmortal();
4463     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4464
4465     }
4466     XSRETURN(1);
4467 }
4468
4469
4470 XS(XS_Wx__PrintFactory_CreatePageSetupDialog); /* prototype to pass -Wmissing-prototypes */
4471 XS(XS_Wx__PrintFactory_CreatePageSetupDialog)
4472 {
4473 #ifdef dVAR
4474     dVAR; dXSARGS;
4475 #else
4476     dXSARGS;
4477 #endif
4478     if (items < 2 || items > 3)
4479        croak_xs_usage(cv,  "THIS, parent, data = NULL");
4480     {
4481         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4482         wxPageSetupDialogData*  data;
4483         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4484         wxPageSetupDialogBase * RETVAL;
4485
4486         if (items < 3)
4487             data = NULL;
4488         else {
4489     data = (wxPageSetupDialogData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PageSetupDialogData" );
4490         }
4491
4492         RETVAL = THIS->CreatePageSetupDialog(parent, data);
4493         ST(0) = sv_newmortal();
4494     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4495
4496     }
4497     XSRETURN(1);
4498 }
4499
4500
4501 XS(XS_Wx__PrintFactory_HasPrintSetupDialog); /* prototype to pass -Wmissing-prototypes */
4502 XS(XS_Wx__PrintFactory_HasPrintSetupDialog)
4503 {
4504 #ifdef dVAR
4505     dVAR; dXSARGS;
4506 #else
4507     dXSARGS;
4508 #endif
4509     if (items != 1)
4510        croak_xs_usage(cv,  "THIS");
4511     {
4512         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4513         bool    RETVAL;
4514
4515         RETVAL = THIS->HasPrintSetupDialog();
4516         ST(0) = boolSV(RETVAL);
4517         sv_2mortal(ST(0));
4518     }
4519     XSRETURN(1);
4520 }
4521
4522
4523 XS(XS_Wx__PrintFactory_CreatePrintSetupDialog); /* prototype to pass -Wmissing-prototypes */
4524 XS(XS_Wx__PrintFactory_CreatePrintSetupDialog)
4525 {
4526 #ifdef dVAR
4527     dVAR; dXSARGS;
4528 #else
4529     dXSARGS;
4530 #endif
4531     if (items != 3)
4532        croak_xs_usage(cv,  "THIS, parent, data");
4533     {
4534         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
4535         wxPrintData*    data = (wxPrintData *) wxPli_sv_2_object( aTHX_ ST(2), "Wx::PrintData" );
4536         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4537         wxDialog *      RETVAL;
4538
4539         RETVAL = THIS->CreatePrintSetupDialog(parent, data);
4540         ST(0) = sv_newmortal();
4541     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
4542
4543     }
4544     XSRETURN(1);
4545 }
4546
4547
4548 XS(XS_Wx__PrintFactory_HasOwnPrintToFile); /* prototype to pass -Wmissing-prototypes */
4549 XS(XS_Wx__PrintFactory_HasOwnPrintToFile)
4550 {
4551 #ifdef dVAR
4552     dVAR; dXSARGS;
4553 #else
4554     dXSARGS;
4555 #endif
4556     if (items != 1)
4557        croak_xs_usage(cv,  "THIS");
4558     {
4559         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4560         bool    RETVAL;
4561
4562         RETVAL = THIS->HasOwnPrintToFile();
4563         ST(0) = boolSV(RETVAL);
4564         sv_2mortal(ST(0));
4565     }
4566     XSRETURN(1);
4567 }
4568
4569
4570 XS(XS_Wx__PrintFactory_HasPrinterLine); /* prototype to pass -Wmissing-prototypes */
4571 XS(XS_Wx__PrintFactory_HasPrinterLine)
4572 {
4573 #ifdef dVAR
4574     dVAR; dXSARGS;
4575 #else
4576     dXSARGS;
4577 #endif
4578     if (items != 1)
4579        croak_xs_usage(cv,  "THIS");
4580     {
4581         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4582         bool    RETVAL;
4583
4584         RETVAL = THIS->HasPrinterLine();
4585         ST(0) = boolSV(RETVAL);
4586         sv_2mortal(ST(0));
4587     }
4588     XSRETURN(1);
4589 }
4590
4591
4592 XS(XS_Wx__PrintFactory_CreatePrinterLine); /* prototype to pass -Wmissing-prototypes */
4593 XS(XS_Wx__PrintFactory_CreatePrinterLine)
4594 {
4595 #ifdef dVAR
4596     dVAR; dXSARGS;
4597 #else
4598     dXSARGS;
4599 #endif
4600     if (items != 1)
4601        croak_xs_usage(cv,  "THIS");
4602     {
4603         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4604         wxString        RETVAL;
4605
4606         RETVAL = THIS->CreatePrinterLine();
4607         ST(0) = sv_newmortal();
4608     WXSTRING_OUTPUT( RETVAL, ST(0) );
4609
4610     }
4611     XSRETURN(1);
4612 }
4613
4614
4615 XS(XS_Wx__PrintFactory_HasStatusLine); /* prototype to pass -Wmissing-prototypes */
4616 XS(XS_Wx__PrintFactory_HasStatusLine)
4617 {
4618 #ifdef dVAR
4619     dVAR; dXSARGS;
4620 #else
4621     dXSARGS;
4622 #endif
4623     if (items != 1)
4624        croak_xs_usage(cv,  "THIS");
4625     {
4626         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4627         bool    RETVAL;
4628
4629         RETVAL = THIS->HasStatusLine();
4630         ST(0) = boolSV(RETVAL);
4631         sv_2mortal(ST(0));
4632     }
4633     XSRETURN(1);
4634 }
4635
4636
4637 XS(XS_Wx__PrintFactory_CreateStatusLine); /* prototype to pass -Wmissing-prototypes */
4638 XS(XS_Wx__PrintFactory_CreateStatusLine)
4639 {
4640 #ifdef dVAR
4641     dVAR; dXSARGS;
4642 #else
4643     dXSARGS;
4644 #endif
4645     if (items != 1)
4646        croak_xs_usage(cv,  "THIS");
4647     {
4648         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4649         wxString        RETVAL;
4650
4651         RETVAL = THIS->CreateStatusLine();
4652         ST(0) = sv_newmortal();
4653     WXSTRING_OUTPUT( RETVAL, ST(0) );
4654
4655     }
4656     XSRETURN(1);
4657 }
4658
4659
4660 XS(XS_Wx__PrintFactory_SetPrintFactory); /* prototype to pass -Wmissing-prototypes */
4661 XS(XS_Wx__PrintFactory_SetPrintFactory)
4662 {
4663 #ifdef dVAR
4664     dVAR; dXSARGS;
4665 #else
4666     dXSARGS;
4667 #endif
4668     if (items != 2)
4669        croak_xs_usage(cv,  "THIS, factory");
4670     {
4671         wxPrintFactory*    factory = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::PrintFactory" );
4672         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4673     wxPrintFactory::SetPrintFactory( factory );
4674     }
4675     XSRETURN_EMPTY;
4676 }
4677
4678
4679 XS(XS_Wx__PrintFactory_GetFactory); /* prototype to pass -Wmissing-prototypes */
4680 XS(XS_Wx__PrintFactory_GetFactory)
4681 {
4682 #ifdef dVAR
4683     dVAR; dXSARGS;
4684 #else
4685     dXSARGS;
4686 #endif
4687     if (items != 1)
4688        croak_xs_usage(cv,  "THIS");
4689     {
4690         wxPrintFactory *    THIS = (wxPrintFactory *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::PrintFactory" );
4691         wxPrintFactory *        RETVAL;
4692     RETVAL = wxPrintFactory::GetFactory();
4693         ST(0) = sv_newmortal();
4694     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::PrintFactory" );
4695
4696     }
4697     XSRETURN(1);
4698 }
4699
4700 #endif
4701
4702 /* INCLUDE: Returning to 'Print.xs' from 'perl -MExtUtils::XSpp::Cmd -e xspp -- -t ../../typemap.xsp XS/PrintFactory.xsp |' */
4703
4704 #include "cpp/pr_constants.cpp"
4705 #endif
4706 #if defined(__WXMSW__)
4707 #undef XS
4708 #define XS( name ) WXXS( name )
4709 #endif
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 XS(boot_Wx__Print); /* prototype to pass -Wmissing-prototypes */
4714 XS(boot_Wx__Print)
4715 {
4716 #ifdef dVAR
4717     dVAR; dXSARGS;
4718 #else
4719     dXSARGS;
4720 #endif
4721 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
4722     char* file = __FILE__;
4723 #else
4724     const char* file = __FILE__;
4725 #endif
4726
4727     PERL_UNUSED_VAR(cv); /* -W */
4728     PERL_UNUSED_VAR(items); /* -W */
4729     XS_VERSION_BOOTCHECK ;
4730
4731 #if XSubPPtmpAAAA
4732         newXS("Wx::PrintDialog::new", XS_Wx__PrintDialog_new, file);
4733         newXS("Wx::PrintDialog::GetPrintDialogData", XS_Wx__PrintDialog_GetPrintDialogData, file);
4734         newXS("Wx::PrintDialog::GetPrintDC", XS_Wx__PrintDialog_GetPrintDC, file);
4735 #if XSubPPtmpAAAB
4736         newXS("Wx::PrinterDC::new", XS_Wx__PrinterDC_new, file);
4737         newXS("Wx::PrinterDC::GetPaperRect", XS_Wx__PrinterDC_GetPaperRect, file);
4738 #endif
4739         newXS("Wx::Printout::new", XS_Wx__Printout_new, file);
4740         newXS("Wx::Printout::Destroy", XS_Wx__Printout_Destroy, file);
4741         newXS("Wx::Printout::GetDC", XS_Wx__Printout_GetDC, file);
4742         newXS("Wx::Printout::GetPageInfo", XS_Wx__Printout_GetPageInfo, file);
4743         newXS("Wx::Printout::GetPageSizeMM", XS_Wx__Printout_GetPageSizeMM, file);
4744         newXS("Wx::Printout::GetPageSizePixels", XS_Wx__Printout_GetPageSizePixels, file);
4745         newXS("Wx::Printout::GetPPIPrinter", XS_Wx__Printout_GetPPIPrinter, file);
4746         newXS("Wx::Printout::GetPPIScreen", XS_Wx__Printout_GetPPIScreen, file);
4747 #if XSubPPtmpAAAC
4748         newXS("Wx::Printout::GetPaperRectPixels", XS_Wx__Printout_GetPaperRectPixels, file);
4749 #endif
4750         newXS("Wx::Printout::GetTitle", XS_Wx__Printout_GetTitle, file);
4751         newXS("Wx::Printout::HasPage", XS_Wx__Printout_HasPage, file);
4752         newXS("Wx::Printout::IsPreview", XS_Wx__Printout_IsPreview, file);
4753         newXS("Wx::Printout::OnBeginDocument", XS_Wx__Printout_OnBeginDocument, file);
4754         newXS("Wx::Printout::OnEndDocument", XS_Wx__Printout_OnEndDocument, file);
4755         newXS("Wx::Printout::OnBeginPrinting", XS_Wx__Printout_OnBeginPrinting, file);
4756         newXS("Wx::Printout::OnEndPrinting", XS_Wx__Printout_OnEndPrinting, file);
4757         newXS("Wx::Printout::OnPreparePrinting", XS_Wx__Printout_OnPreparePrinting, file);
4758 #if XSubPPtmpAAAD
4759         newXS("Wx::Printout::FitThisSizeToPaper", XS_Wx__Printout_FitThisSizeToPaper, file);
4760         newXS("Wx::Printout::FitThisSizeToPage", XS_Wx__Printout_FitThisSizeToPage, file);
4761         newXS("Wx::Printout::FitThisSizeToPageMargins", XS_Wx__Printout_FitThisSizeToPageMargins, file);
4762         newXS("Wx::Printout::MapScreenSizeToPaper", XS_Wx__Printout_MapScreenSizeToPaper, file);
4763         newXS("Wx::Printout::MapScreenSizeToPage", XS_Wx__Printout_MapScreenSizeToPage, file);
4764         newXS("Wx::Printout::MapScreenSizeToPageMargins", XS_Wx__Printout_MapScreenSizeToPageMargins, file);
4765         newXS("Wx::Printout::MapScreenSizeToDevice", XS_Wx__Printout_MapScreenSizeToDevice, file);
4766         newXS("Wx::Printout::GetLogicalPaperRect", XS_Wx__Printout_GetLogicalPaperRect, file);
4767         newXS("Wx::Printout::GetLogicalPageRect", XS_Wx__Printout_GetLogicalPageRect, file);
4768         newXS("Wx::Printout::GetLogicalPageMarginsRect", XS_Wx__Printout_GetLogicalPageMarginsRect, file);
4769         newXS("Wx::Printout::SetLogicalOrigin", XS_Wx__Printout_SetLogicalOrigin, file);
4770         newXS("Wx::Printout::OffsetLogicalOrigin", XS_Wx__Printout_OffsetLogicalOrigin, file);
4771 #endif
4772         newXS("Wx::PrintPreview::new", XS_Wx__PrintPreview_new, file);
4773         newXS("Wx::PrintPreview::Destroy", XS_Wx__PrintPreview_Destroy, file);
4774 #if XSubPPtmpAAAE
4775         newXS("Wx::PrintPreview::IsOk", XS_Wx__PrintPreview_IsOk, file);
4776 #endif
4777         newXS("Wx::PrintPreview::GetCanvas", XS_Wx__PrintPreview_GetCanvas, file);
4778         newXS("Wx::PrintPreview::GetCurrentPage", XS_Wx__PrintPreview_GetCurrentPage, file);
4779         newXS("Wx::PrintPreview::GetFrame", XS_Wx__PrintPreview_GetFrame, file);
4780         newXS("Wx::PrintPreview::GetMaxPage", XS_Wx__PrintPreview_GetMaxPage, file);
4781         newXS("Wx::PrintPreview::GetMinPage", XS_Wx__PrintPreview_GetMinPage, file);
4782         newXS("Wx::PrintPreview::GetPrintout", XS_Wx__PrintPreview_GetPrintout, file);
4783         newXS("Wx::PrintPreview::GetPrintoutForPrinting", XS_Wx__PrintPreview_GetPrintoutForPrinting, file);
4784         newXS("Wx::PrintPreview::Ok", XS_Wx__PrintPreview_Ok, file);
4785 #if XSubPPtmpAAAF
4786         newXS("Wx::PrintPreview::PaintPage", XS_Wx__PrintPreview_PaintPage, file);
4787 #endif
4788 #if XSubPPtmpAAAG
4789         newXS("Wx::PrintPreview::PaintPage", XS_Wx__PrintPreview_PaintPage, file);
4790 #endif
4791         newXS("Wx::PrintPreview::Print", XS_Wx__PrintPreview_Print, file);
4792 #if XSubPPtmpAAAH
4793         newXS("Wx::PrintPreview::SetCanvas", XS_Wx__PrintPreview_SetCanvas, file);
4794 #endif
4795 #if XSubPPtmpAAAI
4796         newXS("Wx::PrintPreview::SetCanvas", XS_Wx__PrintPreview_SetCanvas, file);
4797 #endif
4798         newXS("Wx::PrintPreview::SetCurrentPage", XS_Wx__PrintPreview_SetCurrentPage, file);
4799         newXS("Wx::PrintPreview::SetFrame", XS_Wx__PrintPreview_SetFrame, file);
4800         newXS("Wx::PrintPreview::SetPrintout", XS_Wx__PrintPreview_SetPrintout, file);
4801         newXS("Wx::PrintPreview::SetZoom", XS_Wx__PrintPreview_SetZoom, file);
4802         newXS("Wx::PrintDialogData::new", XS_Wx__PrintDialogData_new, file);
4803         newXS("Wx::PrintDialogData::Destroy", XS_Wx__PrintDialogData_Destroy, file);
4804 #if XSubPPtmpAAAJ
4805         newXS("Wx::PrintDialogData::IsOk", XS_Wx__PrintDialogData_IsOk, file);
4806 #endif
4807         newXS("Wx::PrintDialogData::EnableHelp", XS_Wx__PrintDialogData_EnableHelp, file);
4808         newXS("Wx::PrintDialogData::EnablePageNumbers", XS_Wx__PrintDialogData_EnablePageNumbers, file);
4809         newXS("Wx::PrintDialogData::EnablePrintToFile", XS_Wx__PrintDialogData_EnablePrintToFile, file);
4810         newXS("Wx::PrintDialogData::EnableSelection", XS_Wx__PrintDialogData_EnableSelection, file);
4811         newXS("Wx::PrintDialogData::GetAllPages", XS_Wx__PrintDialogData_GetAllPages, file);
4812         newXS("Wx::PrintDialogData::GetCollate", XS_Wx__PrintDialogData_GetCollate, file);
4813         newXS("Wx::PrintDialogData::GetFromPage", XS_Wx__PrintDialogData_GetFromPage, file);
4814         newXS("Wx::PrintDialogData::GetMaxPage", XS_Wx__PrintDialogData_GetMaxPage, file);
4815         newXS("Wx::PrintDialogData::GetMinPage", XS_Wx__PrintDialogData_GetMinPage, file);
4816         newXS("Wx::PrintDialogData::GetNoCopies", XS_Wx__PrintDialogData_GetNoCopies, file);
4817         newXS("Wx::PrintDialogData::GetPrintData", XS_Wx__PrintDialogData_GetPrintData, file);
4818         newXS("Wx::PrintDialogData::GetPrintToFile", XS_Wx__PrintDialogData_GetPrintToFile, file);
4819         newXS("Wx::PrintDialogData::GetSelection", XS_Wx__PrintDialogData_GetSelection, file);
4820         newXS("Wx::PrintDialogData::GetToPage", XS_Wx__PrintDialogData_GetToPage, file);
4821         newXS("Wx::PrintDialogData::SetCollate", XS_Wx__PrintDialogData_SetCollate, file);
4822         newXS("Wx::PrintDialogData::SetFromPage", XS_Wx__PrintDialogData_SetFromPage, file);
4823         newXS("Wx::PrintDialogData::SetMaxPage", XS_Wx__PrintDialogData_SetMaxPage, file);
4824         newXS("Wx::PrintDialogData::SetMinPage", XS_Wx__PrintDialogData_SetMinPage, file);
4825         newXS("Wx::PrintDialogData::SetNoCopies", XS_Wx__PrintDialogData_SetNoCopies, file);
4826         newXS("Wx::PrintDialogData::SetPrintData", XS_Wx__PrintDialogData_SetPrintData, file);
4827         newXS("Wx::PrintDialogData::SetPrintToFile", XS_Wx__PrintDialogData_SetPrintToFile, file);
4828         newXS("Wx::PrintDialogData::SetSelection", XS_Wx__PrintDialogData_SetSelection, file);
4829 #if XSubPPtmpAAAK
4830         newXS("Wx::PrintDialogData::SetSetupDialog", XS_Wx__PrintDialogData_SetSetupDialog, file);
4831 #endif
4832         newXS("Wx::PrintDialogData::SetToPage", XS_Wx__PrintDialogData_SetToPage, file);
4833         newXS("Wx::Printer::new", XS_Wx__Printer_new, file);
4834         newXS("Wx::Printer::CLONE", XS_Wx__Printer_CLONE, file);
4835         newXS("Wx::Printer::DESTROY", XS_Wx__Printer_DESTROY, file);
4836         newXS("Wx::Printer::GetAbort", XS_Wx__Printer_GetAbort, file);
4837         newXS("Wx::Printer::GetPrintDialogData", XS_Wx__Printer_GetPrintDialogData, file);
4838         newXS("Wx::Printer::CreateAbortWindow", XS_Wx__Printer_CreateAbortWindow, file);
4839         newXS("Wx::Printer::GetLastError", XS_Wx__Printer_GetLastError, file);
4840         newXS("Wx::Printer::Print", XS_Wx__Printer_Print, file);
4841         newXS("Wx::Printer::PrintDialog", XS_Wx__Printer_PrintDialog, file);
4842         newXS("Wx::Printer::ReportError", XS_Wx__Printer_ReportError, file);
4843         newXS("Wx::Printer::Setup", XS_Wx__Printer_Setup, file);
4844         newXS("Wx::PageSetupDialogData::new", XS_Wx__PageSetupDialogData_new, file);
4845         newXS("Wx::PageSetupDialogData::Destroy", XS_Wx__PageSetupDialogData_Destroy, file);
4846         newXS("Wx::PageSetupDialogData::EnableHelp", XS_Wx__PageSetupDialogData_EnableHelp, file);
4847         newXS("Wx::PageSetupDialogData::EnableMargins", XS_Wx__PageSetupDialogData_EnableMargins, file);
4848         newXS("Wx::PageSetupDialogData::EnableOrientation", XS_Wx__PageSetupDialogData_EnableOrientation, file);
4849         newXS("Wx::PageSetupDialogData::EnablePaper", XS_Wx__PageSetupDialogData_EnablePaper, file);
4850         newXS("Wx::PageSetupDialogData::EnablePrinter", XS_Wx__PageSetupDialogData_EnablePrinter, file);
4851         newXS("Wx::PageSetupDialogData::GetDefaultMinMargins", XS_Wx__PageSetupDialogData_GetDefaultMinMargins, file);
4852         newXS("Wx::PageSetupDialogData::GetEnableMargins", XS_Wx__PageSetupDialogData_GetEnableMargins, file);
4853         newXS("Wx::PageSetupDialogData::GetEnableOrientation", XS_Wx__PageSetupDialogData_GetEnableOrientation, file);
4854         newXS("Wx::PageSetupDialogData::GetEnablePaper", XS_Wx__PageSetupDialogData_GetEnablePaper, file);
4855         newXS("Wx::PageSetupDialogData::GetEnablePrinter", XS_Wx__PageSetupDialogData_GetEnablePrinter, file);
4856         newXS("Wx::PageSetupDialogData::GetEnableHelp", XS_Wx__PageSetupDialogData_GetEnableHelp, file);
4857         newXS("Wx::PageSetupDialogData::GetDefaultInfo", XS_Wx__PageSetupDialogData_GetDefaultInfo, file);
4858         newXS("Wx::PageSetupDialogData::GetMarginTopLeft", XS_Wx__PageSetupDialogData_GetMarginTopLeft, file);
4859         newXS("Wx::PageSetupDialogData::GetMarginBottomRight", XS_Wx__PageSetupDialogData_GetMarginBottomRight, file);
4860         newXS("Wx::PageSetupDialogData::GetMinMarginTopLeft", XS_Wx__PageSetupDialogData_GetMinMarginTopLeft, file);
4861         newXS("Wx::PageSetupDialogData::GetMinMarginBottomRight", XS_Wx__PageSetupDialogData_GetMinMarginBottomRight, file);
4862         newXS("Wx::PageSetupDialogData::GetPaperId", XS_Wx__PageSetupDialogData_GetPaperId, file);
4863         newXS("Wx::PageSetupDialogData::GetPaperSize", XS_Wx__PageSetupDialogData_GetPaperSize, file);
4864         newXS("Wx::PageSetupDialogData::GetPrintData", XS_Wx__PageSetupDialogData_GetPrintData, file);
4865         newXS("Wx::PageSetupDialogData::SetDefaultInfo", XS_Wx__PageSetupDialogData_SetDefaultInfo, file);
4866         newXS("Wx::PageSetupDialogData::SetDefaultMinMargins", XS_Wx__PageSetupDialogData_SetDefaultMinMargins, file);
4867         newXS("Wx::PageSetupDialogData::SetMarginTopLeft", XS_Wx__PageSetupDialogData_SetMarginTopLeft, file);
4868         newXS("Wx::PageSetupDialogData::SetMarginBottomRight", XS_Wx__PageSetupDialogData_SetMarginBottomRight, file);
4869         newXS("Wx::PageSetupDialogData::SetMinMarginTopLeft", XS_Wx__PageSetupDialogData_SetMinMarginTopLeft, file);
4870         newXS("Wx::PageSetupDialogData::SetMinMarginBottomRight", XS_Wx__PageSetupDialogData_SetMinMarginBottomRight, file);
4871         newXS("Wx::PageSetupDialogData::SetPaperId", XS_Wx__PageSetupDialogData_SetPaperId, file);
4872         newXS("Wx::PageSetupDialogData::SetPaperSize", XS_Wx__PageSetupDialogData_SetPaperSize, file);
4873         newXS("Wx::PageSetupDialogData::SetPrintData", XS_Wx__PageSetupDialogData_SetPrintData, file);
4874         newXS("Wx::PageSetupDialog::new", XS_Wx__PageSetupDialog_new, file);
4875         newXS("Wx::PageSetupDialog::Destroy", XS_Wx__PageSetupDialog_Destroy, file);
4876         newXS("Wx::PageSetupDialog::GetPageSetupData", XS_Wx__PageSetupDialog_GetPageSetupData, file);
4877         newXS("Wx::PrintData::new", XS_Wx__PrintData_new, file);
4878         newXS("Wx::PrintData::Destroy", XS_Wx__PrintData_Destroy, file);
4879 #if XSubPPtmpAAAL
4880         newXS("Wx::PrintData::GetBin", XS_Wx__PrintData_GetBin, file);
4881 #endif
4882 #if XSubPPtmpAAAM
4883         newXS("Wx::PrintData::IsOk", XS_Wx__PrintData_IsOk, file);
4884 #endif
4885         newXS("Wx::PrintData::GetCollate", XS_Wx__PrintData_GetCollate, file);
4886         newXS("Wx::PrintData::GetColour", XS_Wx__PrintData_GetColour, file);
4887         newXS("Wx::PrintData::GetDuplex", XS_Wx__PrintData_GetDuplex, file);
4888         newXS("Wx::PrintData::GetNoCopies", XS_Wx__PrintData_GetNoCopies, file);
4889         newXS("Wx::PrintData::GetOrientation", XS_Wx__PrintData_GetOrientation, file);
4890         newXS("Wx::PrintData::GetPaperId", XS_Wx__PrintData_GetPaperId, file);
4891         newXS("Wx::PrintData::GetPrinterName", XS_Wx__PrintData_GetPrinterName, file);
4892         newXS("Wx::PrintData::GetQuality", XS_Wx__PrintData_GetQuality, file);
4893 #if XSubPPtmpAAAN
4894         newXS("Wx::PrintData::SetBin", XS_Wx__PrintData_SetBin, file);
4895 #endif
4896         newXS("Wx::PrintData::SetCollate", XS_Wx__PrintData_SetCollate, file);
4897         newXS("Wx::PrintData::SetColour", XS_Wx__PrintData_SetColour, file);
4898         newXS("Wx::PrintData::SetDuplex", XS_Wx__PrintData_SetDuplex, file);
4899         newXS("Wx::PrintData::SetNoCopies", XS_Wx__PrintData_SetNoCopies, file);
4900         newXS("Wx::PrintData::SetOrientation", XS_Wx__PrintData_SetOrientation, file);
4901         newXS("Wx::PrintData::SetPaperId", XS_Wx__PrintData_SetPaperId, file);
4902         newXS("Wx::PrintData::SetPrinterName", XS_Wx__PrintData_SetPrinterName, file);
4903         newXS("Wx::PrintData::SetQuality", XS_Wx__PrintData_SetQuality, file);
4904         newXS("Wx::PreviewControlBar::new", XS_Wx__PreviewControlBar_new, file);
4905         newXS("Wx::PreviewControlBar::CreateButtons", XS_Wx__PreviewControlBar_CreateButtons, file);
4906         newXS("Wx::PreviewControlBar::GetPrintPreview", XS_Wx__PreviewControlBar_GetPrintPreview, file);
4907         newXS("Wx::PreviewControlBar::GetZoomControl", XS_Wx__PreviewControlBar_GetZoomControl, file);
4908         newXS("Wx::PreviewControlBar::SetZoomControl", XS_Wx__PreviewControlBar_SetZoomControl, file);
4909         newXS("Wx::PreviewControlBar::OnNext", XS_Wx__PreviewControlBar_OnNext, file);
4910         newXS("Wx::PreviewControlBar::OnPrevious", XS_Wx__PreviewControlBar_OnPrevious, file);
4911         newXS("Wx::PreviewControlBar::OnFirst", XS_Wx__PreviewControlBar_OnFirst, file);
4912         newXS("Wx::PreviewControlBar::OnLast", XS_Wx__PreviewControlBar_OnLast, file);
4913         newXS("Wx::PreviewControlBar::OnGoto", XS_Wx__PreviewControlBar_OnGoto, file);
4914 #if XSubPPtmpAAAO
4915         newXS("Wx::PreviewControlBar::OnPrint", XS_Wx__PreviewControlBar_OnPrint, file);
4916 #endif
4917         newXS("Wx::PlPreviewControlBar::new", XS_Wx__PlPreviewControlBar_new, file);
4918         newXS("Wx::PlPreviewControlBar::CreateButtons", XS_Wx__PlPreviewControlBar_CreateButtons, file);
4919 #if XSubPPtmpAAAP
4920         newXS("Wx::PreviewFrame::new", XS_Wx__PreviewFrame_new, file);
4921 #endif
4922 #if XSubPPtmpAAAQ
4923         newXS("Wx::PreviewFrame::new", XS_Wx__PreviewFrame_new, file);
4924 #endif
4925         newXS("Wx::PreviewFrame::Initialize", XS_Wx__PreviewFrame_Initialize, file);
4926         newXS("Wx::PreviewFrame::CreateCanvas", XS_Wx__PreviewFrame_CreateCanvas, file);
4927         newXS("Wx::PreviewFrame::CreateControlBar", XS_Wx__PreviewFrame_CreateControlBar, file);
4928 #if XSubPPtmpAAAR
4929         newXS("Wx::PreviewFrame::GetControlBar", XS_Wx__PreviewFrame_GetControlBar, file);
4930 #endif
4931 #if XSubPPtmpAAAS
4932         newXS("Wx::PlPreviewFrame::new", XS_Wx__PlPreviewFrame_new, file);
4933 #endif
4934 #if XSubPPtmpAAAT
4935         newXS("Wx::PlPreviewFrame::new", XS_Wx__PlPreviewFrame_new, file);
4936 #endif
4937 #if XSubPPtmpAAAU
4938         newXS("Wx::PlPreviewFrame::GetPreviewCanvas", XS_Wx__PlPreviewFrame_GetPreviewCanvas, file);
4939 #endif
4940 #if XSubPPtmpAAAV
4941         newXS("Wx::PlPreviewFrame::GetPreviewCanvas", XS_Wx__PlPreviewFrame_GetPreviewCanvas, file);
4942 #endif
4943         newXS("Wx::PlPreviewFrame::GetPreviewControlBar", XS_Wx__PlPreviewFrame_GetPreviewControlBar, file);
4944         newXS("Wx::PlPreviewFrame::GetPrintPreview", XS_Wx__PlPreviewFrame_GetPrintPreview, file);
4945 #if XSubPPtmpAAAW
4946         newXS("Wx::PlPreviewFrame::SetPreviewCanvas", XS_Wx__PlPreviewFrame_SetPreviewCanvas, file);
4947 #endif
4948 #if XSubPPtmpAAAX
4949         newXS("Wx::PlPreviewFrame::SetPreviewCanvas", XS_Wx__PlPreviewFrame_SetPreviewCanvas, file);
4950 #endif
4951         newXS("Wx::PlPreviewFrame::SetPreviewControlBar", XS_Wx__PlPreviewFrame_SetPreviewControlBar, file);
4952         newXS("Wx::PlPreviewFrame::SetPrintPreview", XS_Wx__PlPreviewFrame_SetPrintPreview, file);
4953         newXS("Wx::PlPreviewFrame::Initialize", XS_Wx__PlPreviewFrame_Initialize, file);
4954         newXS("Wx::PlPreviewFrame::CreateCanvas", XS_Wx__PlPreviewFrame_CreateCanvas, file);
4955         newXS("Wx::PlPreviewFrame::CreateControlBar", XS_Wx__PlPreviewFrame_CreateControlBar, file);
4956         newXS("Wx::PreviewCanvas::new", XS_Wx__PreviewCanvas_new, file);
4957 #if XSubPPtmpAAAY
4958         newXS("Wx::PrintFactory::CreatePrinter", XS_Wx__PrintFactory_CreatePrinter, file);
4959         newXS("Wx::PrintFactory::CreatePrintPreviewDD", XS_Wx__PrintFactory_CreatePrintPreviewDD, file);
4960         newXS("Wx::PrintFactory::CreatePrintPreviewD", XS_Wx__PrintFactory_CreatePrintPreviewD, file);
4961         newXS("Wx::PrintFactory::CreatePrintDialogDD", XS_Wx__PrintFactory_CreatePrintDialogDD, file);
4962         newXS("Wx::PrintFactory::CreatePrintDialogD", XS_Wx__PrintFactory_CreatePrintDialogD, file);
4963         newXS("Wx::PrintFactory::CreatePageSetupDialog", XS_Wx__PrintFactory_CreatePageSetupDialog, file);
4964         newXS("Wx::PrintFactory::HasPrintSetupDialog", XS_Wx__PrintFactory_HasPrintSetupDialog, file);
4965         newXS("Wx::PrintFactory::CreatePrintSetupDialog", XS_Wx__PrintFactory_CreatePrintSetupDialog, file);
4966         newXS("Wx::PrintFactory::HasOwnPrintToFile", XS_Wx__PrintFactory_HasOwnPrintToFile, file);
4967         newXS("Wx::PrintFactory::HasPrinterLine", XS_Wx__PrintFactory_HasPrinterLine, file);
4968         newXS("Wx::PrintFactory::CreatePrinterLine", XS_Wx__PrintFactory_CreatePrinterLine, file);
4969         newXS("Wx::PrintFactory::HasStatusLine", XS_Wx__PrintFactory_HasStatusLine, file);
4970         newXS("Wx::PrintFactory::CreateStatusLine", XS_Wx__PrintFactory_CreateStatusLine, file);
4971         newXS("Wx::PrintFactory::SetPrintFactory", XS_Wx__PrintFactory_SetPrintFactory, file);
4972         newXS("Wx::PrintFactory::GetFactory", XS_Wx__PrintFactory_GetFactory, file);
4973 #endif
4974 #endif
4975
4976     /* Initialisation Section */
4977
4978   INIT_PLI_HELPERS( wx_pli_helpers );
4979
4980 #if XSubPPtmpAAAA
4981 #if XSubPPtmpAAAB
4982 #endif
4983 #if XSubPPtmpAAAC
4984 #endif
4985 #if XSubPPtmpAAAD
4986 #endif
4987 #if XSubPPtmpAAAE
4988 #endif
4989 #if XSubPPtmpAAAF
4990 #endif
4991 #if XSubPPtmpAAAG
4992 #endif
4993 #if XSubPPtmpAAAH
4994 #endif
4995 #if XSubPPtmpAAAI
4996 #endif
4997 #if XSubPPtmpAAAJ
4998 #endif
4999 #if XSubPPtmpAAAK
5000 #endif
5001 #if XSubPPtmpAAAL
5002 #endif
5003 #if XSubPPtmpAAAM
5004 #endif
5005 #if XSubPPtmpAAAN
5006 #endif
5007 #if XSubPPtmpAAAO
5008 #endif
5009 #if XSubPPtmpAAAP
5010 #endif
5011 #if XSubPPtmpAAAQ
5012 #endif
5013 #if XSubPPtmpAAAR
5014 #endif
5015 #if XSubPPtmpAAAS
5016 #endif
5017 #if XSubPPtmpAAAT
5018 #endif
5019 #if XSubPPtmpAAAU
5020 #endif
5021 #if XSubPPtmpAAAV
5022 #endif
5023 #if XSubPPtmpAAAW
5024 #endif
5025 #if XSubPPtmpAAAX
5026 #endif
5027 #if XSubPPtmpAAAY
5028 #endif
5029 #endif
5030
5031     /* End of Initialisation Section */
5032
5033 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
5034   if (PL_unitcheckav)
5035        call_list(PL_scopestack_ix, PL_unitcheckav);
5036 #endif
5037     XSRETURN_YES;
5038 }
5039