File: XmlResource.xs

package info (click to toggle)
libwx-perl 1%3A0.9909-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,912 kB
  • sloc: cpp: 9,728; perl: 8,182; ansic: 626; makefile: 41
file content (240 lines) | stat: -rw-r--r-- 4,762 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
#############################################################################
## Name:        ext/xrc/XS/XmlResource.xs
## Purpose:     XS for Wx::XmlResource
## Author:      Mattia Barbon
## Modified by:
## Created:     27/07/2001
## RCS-ID:      $Id: XmlResource.xs 2057 2007-06-18 23:03:00Z mbarbon $
## Copyright:   (c) 2001-2004, 2006 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

#include <wx/xrc/xmlres.h>
#include <wx/menu.h>
#include <wx/dialog.h>
#include <wx/panel.h>
#include <wx/toolbar.h>
#include <wx/frame.h>
#include "cpp/overload.h"

MODULE=Wx PACKAGE=Wx::XmlResource

#if WXPERL_W_VERSION_GE( 2, 7, 1 )

wxXmlResource*
wxXmlResource::new( flags = wxXRC_USE_LOCALE, domain = wxEmptyString )
    int flags
    wxString domain

#else

wxXmlResource*
wxXmlResource::new( flags = wxXRC_USE_LOCALE )
    int flags

#endif

static void
wxXmlResource::CLONE()
  CODE:
    wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );

## // thread OK
void
wxXmlResource::DESTROY()
  CODE:
    wxPli_thread_sv_unregister( aTHX_ "Wx::XmlResource", THIS, ST(0) );
    delete THIS;

bool
wxXmlResource::Load( filemask )
    wxString filemask

#if WXPERL_W_VERSION_GE( 2, 6, 3 )

bool
wxXmlResource::Unload( filemask )
    wxString filemask

#endif

void
wxXmlResource::InitAllHandlers()

void
wxXmlResource::AddHandler( handler )
    wxXmlResourceHandler* handler

void
wxXmlResource::ClearHandlers()

wxMenu*
wxXmlResource::LoadMenu( name )
    wxString name

wxMenuBar*
wxXmlResource::LoadMenuBar( name )
    wxString name

wxMenuBar*
wxXmlResource::LoadMenuBarOnParent( parent, name )
    wxWindow* parent
    wxString name
  CODE:
    RETVAL = THIS->LoadMenuBar( parent, name );
  OUTPUT: RETVAL

wxToolBar*
wxXmlResource::LoadToolBar( parent, name )
    wxWindow* parent
    wxString name

wxDialog*
wxXmlResource::LoadDialog( parent, name )
    wxWindow* parent
    wxString name

bool
wxXmlResource::LoadOnDialog( dialog, parent, name )
    wxDialog* dialog
    wxWindow* parent
    wxString name
  CODE:
    RETVAL = THIS->LoadDialog( dialog, parent, name );
  OUTPUT:
    RETVAL

wxPanel*
wxXmlResource::LoadPanel( parent, name )
    wxWindow* parent
    wxString name

bool
wxXmlResource::LoadOnPanel( panel, parent, name )
    wxPanel* panel
    wxWindow* parent
    wxString name
  CODE:
    RETVAL = THIS->LoadPanel( panel, parent, name );
  OUTPUT:
    RETVAL

void
wxXmlResource::LoadFrame( ... )
  PPCODE:
    BEGIN_OVERLOAD()
        MATCH_REDISP( wxPliOvl_wfrm_wwin_s, LoadOnFrame )
        MATCH_REDISP( wxPliOvl_wwin_s, LoadFrame2 )
    END_OVERLOAD( "Wx::XmlResource::LoadFrame" )

wxFrame*
wxXmlResource::LoadFrame2( parent, name )
    wxWindow* parent
    wxString name
  CODE:
    RETVAL = THIS->LoadFrame( parent, name );
  OUTPUT: RETVAL

bool
wxXmlResource::LoadOnFrame( frame, parent, name )
    wxFrame* frame
    wxWindow* parent
    wxString name
  CODE:
    RETVAL = THIS->LoadFrame( frame, parent, name );
  OUTPUT: RETVAL

wxBitmap*
wxXmlResource::LoadBitmap( name )
    wxString name
  CODE:
    RETVAL = new wxBitmap( THIS->LoadBitmap( name ) );
  OUTPUT:
    RETVAL

wxIcon*
wxXmlResource::LoadIcon( name )
    wxString name
  CODE:
    RETVAL = new wxIcon( THIS->LoadIcon( name ) );
  OUTPUT:
    RETVAL

bool
wxXmlResource::AttachUnknownControl( name, control, parent = 0 )
    wxString name
    wxWindow* control
    wxWindow* parent

int
wxXmlResource::GetFlags()

void
wxXmlResource::SetFlags( flags )
    int flags

#if WXPERL_W_VERSION_GE( 2, 7, 2 )

int
GetXRCID( str_id, value_if_not_found = wxID_NONE )
    wxChar* str_id
    int value_if_not_found
  CODE:
    RETVAL = wxXmlResource::GetXRCID( str_id, value_if_not_found );
  OUTPUT:
    RETVAL

#else

int
GetXRCID( str_id )
    wxChar* str_id
  CODE:
    RETVAL = wxXmlResource::GetXRCID( str_id );
  OUTPUT:
    RETVAL

#endif

long
wxXmlResource::GetVersion()

int
wxXmlResource::CompareVersion( major, minor, release, revision )
    int major
    int minor
    int release
    int revision

##wxXmlResource*
##Get()
##  CODE:
##    RETVAL = wxXmlResource::Get();
##  OUTPUT:
##    RETVAL

##void
##wxXmlResource::Set( res )
##    wxXmlResource* res
##  CODE:
##    wxXmlResource::Set( res );

## void
## wxXmlResource::UpdateResources()

void
AddSubclassFactory( wxXmlSubclassFactory *factory )
  CODE:
    wxPli_detach_object( aTHX_ ST(0) ); // avoid destructor
    wxXmlResource::AddSubclassFactory( factory );

#if WXPERL_W_VERSION_GE( 2, 7, 1 )

const wxChar*
wxXmlResource::GetDomain()

void
wxXmlResource::SetDomain( const wxChar* domain )

#endif