Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / XS / PropertySheetDialog.xsp
1 #############################################################################
2 ## Name:        XS/PropertySheetDialog.xsp
3 ## Purpose:     XS++ for Wx::PropertySheetDialog
4 ## Author:      Mattia Barbon
5 ## Modified by:
6 ## Created:     19/08/2007
7 ## RCS-ID:      $Id: PropertySheetDialog.xsp 2185 2007-08-19 18:56:51Z mbarbon $
8 ## Copyright:   (c) 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 %module{Wx};
14
15 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
16
17 %typemap{wxPropertySheetDialog*}{simple};
18 %typemap{wxBookCtrlBase*}{simple};
19
20 #include <wx/bookctrl.h>
21 #include <wx/propdlg.h>
22
23 %name{Wx::PropertySheetDialog} class wxPropertySheetDialog
24 {
25     %name{newDefault} wxPropertySheetDialog()
26         %code{% RETVAL = new wxPropertySheetDialog();
27                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
28                 %};
29     %name{newFull} wxPropertySheetDialog( wxWindow *parent,
30                                           wxWindowID id,
31                                           const wxString& title,
32                                           const wxPoint& pos = wxDefaultPosition,
33                                           const wxSize& size = wxDefaultSize,
34                                           long style = wxDEFAULT_DIALOG_STYLE,
35                                           const wxString& name = wxDialogNameStr )
36         %code{% RETVAL = new wxPropertySheetDialog( parent, id, title, pos,
37                                                     size, style, name );
38                 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
39              %};
40
41     bool Create( wxWindow *parent,
42                  wxWindowID id,
43                  const wxString& title,
44                  const wxPoint& pos = wxDefaultPosition,
45                  const wxSize& size = wxDefaultSize,
46                  long style = wxDEFAULT_DIALOG_STYLE,
47                  const wxString& name = wxDialogNameStr );
48
49     void SetBookCtrl( wxBookCtrlBase* book );
50     wxBookCtrlBase* GetBookCtrl() const;
51
52     void SetInnerSize( wxSizer* sizer );
53     wxSizer* GetInnerSizer() const;
54
55 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
56     void SetSheetStyle( long sheetStyle );
57     long GetSheetStyle() const;
58
59     void SetSheetOuterBorder( int border );
60     int GetSheetOuterBorder() const;
61
62     void SetSheetInnerBorder( int border );
63     int GetSheetInnerBorder() const;
64 #endif
65
66 #define wxPLI_OK_CANCEL wxOK|wxCANCEL
67
68     void CreateButtons( int flags = wxPLI_OK_CANCEL );
69 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
70     void LayoutDialog( int centreFlags = wxBOTH );
71 #else
72     void LayoutDialog();
73 #endif
74 };
75
76 #endif