Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / print / XS / PrintFactory.xsp
1 #############################################################################
2 ## Name:        ext/print/XS/PrintFactory.xsp
3 ## Purpose:     XS++ for Wx::PrintFactory
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     23/05/2004
7 ## RCS-ID:      $Id: PrintFactory.xsp 2079 2007-07-08 21:18:04Z mbarbon $
8 ## Copyright:   (c) 2005 Mattia Barbon
9 ## Licence:     This program is free software; you can redistribute it and/or
10 ##              modify it under the same terms as Perl itself
11 #############################################################################
12
13 %module{Wx};
14
15 %{
16 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
17 %}
18
19 %typemap{wxPrintFactory*}{simple};
20 %typemap{wxPlPrintFactory*}{simple};
21 %typemap{wxPrinterBase*}{simple};
22 %typemap{wxPrintPreviewBase*}{simple};
23 %typemap{wxPrintDialogBase*}{simple};
24 %typemap{wxPageSetupDialogBase*}{simple};
25 %typemap{wxPrintData*}{simple};
26 %typemap{wxPrintDialogData*}{simple};
27 %typemap{wxPageSetupDialogData*}{simple};
28 %typemap{wxPrintout*}{simple};
29
30 %name{Wx::PrintFactory} class wxPrintFactory
31 {
32     wxPrinterBase *CreatePrinter( wxPrintDialogData* data );
33
34     %name{CreatePrintPreviewDD}
35     wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview, 
36                                             wxPrintout *printout = NULL, 
37                                             wxPrintDialogData *data = NULL );
38     %name{CreatePrintPreviewD}
39     wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview, 
40                                             wxPrintout *printout, 
41                                             wxPrintData *data );
42
43     %name{CreatePrintDialogDD}
44     wxPrintDialogBase *CreatePrintDialog( wxWindow *parent, 
45                                           wxPrintDialogData *data = NULL );
46     %name{CreatePrintDialogD}
47     wxPrintDialogBase *CreatePrintDialog( wxWindow *parent, 
48                                           wxPrintData *data );
49                                                   
50     wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent,
51                                                   wxPageSetupDialogData * data = NULL );
52                                                   
53     bool HasPrintSetupDialog();
54     wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data );
55     bool HasOwnPrintToFile();
56     bool HasPrinterLine();
57     wxString CreatePrinterLine();
58     bool HasStatusLine();
59     wxString CreateStatusLine();
60 };
61
62 %{
63 MODULE=Wx PACKAGE=Wx::PrintFactory
64
65 void
66 wxPrintFactory::SetPrintFactory( factory )
67     wxPrintFactory* factory
68   CODE:
69     wxPrintFactory::SetPrintFactory( factory );
70
71 wxPrintFactory*
72 wxPrintFactory::GetFactory()
73   CODE:
74     RETVAL = wxPrintFactory::GetFactory();
75   OUTPUT: RETVAL
76 %}
77
78 %{
79 #endif
80 %}