1 #############################################################################
2 ## Name: XS/PropertySheetDialog.xsp
3 ## Purpose: XS++ for Wx::PropertySheetDialog
4 ## Author: Mattia Barbon
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 #############################################################################
15 #if WXPERL_W_VERSION_GE( 2, 6, 0 )
17 %typemap{wxPropertySheetDialog*}{simple};
18 %typemap{wxBookCtrlBase*}{simple};
20 #include <wx/bookctrl.h>
21 #include <wx/propdlg.h>
23 %name{Wx::PropertySheetDialog} class wxPropertySheetDialog
25 %name{newDefault} wxPropertySheetDialog()
26 %code{% RETVAL = new wxPropertySheetDialog();
27 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
29 %name{newFull} wxPropertySheetDialog( wxWindow *parent,
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,
38 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
41 bool Create( wxWindow *parent,
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 );
49 void SetBookCtrl( wxBookCtrlBase* book );
50 wxBookCtrlBase* GetBookCtrl() const;
52 void SetInnerSize( wxSizer* sizer );
53 wxSizer* GetInnerSizer() const;
55 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
56 void SetSheetStyle( long sheetStyle );
57 long GetSheetStyle() const;
59 void SetSheetOuterBorder( int border );
60 int GetSheetOuterBorder() const;
62 void SetSheetInnerBorder( int border );
63 int GetSheetInnerBorder() const;
66 #define wxPLI_OK_CANCEL wxOK|wxCANCEL
68 void CreateButtons( int flags = wxPLI_OK_CANCEL );
69 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
70 void LayoutDialog( int centreFlags = wxBOTH );