Remove tests
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / html / XS / HtmlEasyPrinting.xs
1 #############################################################################
2 ## Name:        ext/html/XS/HtmlEasyPrinting.xs
3 ## Purpose:     XS for Wx::HtmlEasyPrinting
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     04/05/2001
7 ## RCS-ID:      $Id: HtmlEasyPrinting.xs 2134 2007-08-11 21:32:25Z mbarbon $
8 ## Copyright:   (c) 2001-2004, 2006-2007 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 #include <wx/html/htmprint.h>
14
15 MODULE=Wx PACKAGE=Wx::HtmlEasyPrinting
16
17 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
18
19 wxHtmlEasyPrinting*
20 wxHtmlEasyPrinting::new( wxString name = wxT("Printing"), \
21                          wxWindow* parent = 0 )
22
23 #else
24
25 wxHtmlEasyPrinting*
26 wxHtmlEasyPrinting::new( name = wxT("Printing"), parent_frame = 0 )
27     wxString name
28     wxFrame* parent_frame
29
30 #endif
31
32 static void
33 wxHtmlEasyPrinting::CLONE()
34   CODE:
35     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
36
37 ## // thread OK
38 void
39 wxHtmlEasyPrinting::DESTROY()
40   CODE:
41     wxPli_thread_sv_unregister( aTHX_ "Wx::HtmlEasyPrinting", THIS, ST(0) );
42     delete THIS;
43
44 bool
45 wxHtmlEasyPrinting::PreviewFile( htmlFile )
46     wxString htmlFile
47
48 bool
49 wxHtmlEasyPrinting::PreviewText( htmlText, basepath = wxEmptyString )
50     wxString htmlText
51     wxString basepath
52
53 bool
54 wxHtmlEasyPrinting::PrintFile( htmlFile )
55     wxString htmlFile
56
57 bool
58 wxHtmlEasyPrinting::PrintText( htmlText, basepath = wxEmptyString )
59     wxString htmlText
60     wxString basepath
61
62 #if WXPERL_W_VERSION_LE( 2, 5, 2 )
63
64 void
65 wxHtmlEasyPrinting::PrinterSetup()
66
67 #endif
68
69 void
70 wxHtmlEasyPrinting::PageSetup()
71
72 void
73 wxHtmlEasyPrinting::SetHeader( header, pg = wxPAGE_ALL )
74     wxString header
75     int pg
76
77 void
78 wxHtmlEasyPrinting::SetFonts( normal_face, fixed_face, sizes )
79     wxString normal_face
80     wxString fixed_face
81     SV* sizes
82   PREINIT:
83     int* array;
84     int n = wxPli_av_2_intarray( aTHX_ sizes, &array );
85   CODE:
86     if( n != 7 )
87     {
88        delete[] array;
89        croak( "Specified %d sizes, 7 wanted", n );
90     }
91     THIS->SetFonts( normal_face, fixed_face, array );
92     delete[] array;    
93     
94 void
95 wxHtmlEasyPrinting::SetFooter( header, pg = wxPAGE_ALL )
96     wxString header
97     int pg
98
99 wxPrintData*
100 wxHtmlEasyPrinting::GetPrintData()
101
102 wxPageSetupDialogData*
103 wxHtmlEasyPrinting::GetPageSetupData()
104
105 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
106
107 wxWindow*
108 wxHtmlEasyPrinting::GetParentWindow()
109
110 void
111 wxHtmlEasyPrinting::SetParentWindow( window )
112     wxWindow* window
113
114 #endif