1 #############################################################################
2 ## Name: ext/print/XS/PrintFactory.xsp
3 ## Purpose: XS++ for Wx::PrintFactory
4 ## Author: Mattia Barbon
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 #############################################################################
16 #if WXPERL_W_VERSION_GE( 2, 5, 4 )
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};
30 %name{Wx::PrintFactory} class wxPrintFactory
32 wxPrinterBase *CreatePrinter( wxPrintDialogData* data );
34 %name{CreatePrintPreviewDD}
35 wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
36 wxPrintout *printout = NULL,
37 wxPrintDialogData *data = NULL );
38 %name{CreatePrintPreviewD}
39 wxPrintPreviewBase *CreatePrintPreview( wxPrintout *preview,
43 %name{CreatePrintDialogDD}
44 wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
45 wxPrintDialogData *data = NULL );
46 %name{CreatePrintDialogD}
47 wxPrintDialogBase *CreatePrintDialog( wxWindow *parent,
50 wxPageSetupDialogBase *CreatePageSetupDialog( wxWindow *parent,
51 wxPageSetupDialogData * data = NULL );
53 bool HasPrintSetupDialog();
54 wxDialog *CreatePrintSetupDialog( wxWindow *parent, wxPrintData *data );
55 bool HasOwnPrintToFile();
56 bool HasPrinterLine();
57 wxString CreatePrinterLine();
59 wxString CreateStatusLine();
63 MODULE=Wx PACKAGE=Wx::PrintFactory
66 wxPrintFactory::SetPrintFactory( factory )
67 wxPrintFactory* factory
69 wxPrintFactory::SetPrintFactory( factory );
72 wxPrintFactory::GetFactory()
74 RETVAL = wxPrintFactory::GetFactory();