Add libwx-perl
[pkg-perl] / deb-src / libwx-perl / libwx-perl-0.96 / ext / help / Help.c
1 /*
2  * This file was generated automatically by ExtUtils::ParseXS version 2.2202 from the
3  * contents of Help.xs. Do not edit this file, edit Help.xs instead.
4  *
5  *      ANY CHANGES MADE HERE WILL BE LOST! 
6  *
7  */
8
9 /////////////////////////////////////////////////////////////////////////////
10 // Name:        ext/help/Help.xs
11 // Purpose:     XS for Wx::HelpController*
12 // Author:      Mattia Barbon
13 // Modified by:
14 // Created:     18/03/2001
15 // RCS-ID:      $Id: Help.xs 2057 2007-06-18 23:03:00Z mbarbon $
16 // Copyright:   (c) 2001-2002, 2006 Mattia Barbon
17 // Licence:     This program is free software; you can redistribute it and/or
18 //              modify it under the same terms as Perl itself
19 /////////////////////////////////////////////////////////////////////////////
20
21 #define PERL_NO_GET_CONTEXT
22
23 #include "cpp/wxapi.h"
24
25 #undef THIS
26
27 #ifndef PERL_UNUSED_VAR
28 #  define PERL_UNUSED_VAR(var) if (0) var = var
29 #endif
30
31 #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
32 #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)
33
34 /* prototype to pass -Wmissing-prototypes */
35 STATIC void
36 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params);
37
38 STATIC void
39 S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params)
40 {
41     const GV *const gv = CvGV(cv);
42
43     PERL_ARGS_ASSERT_CROAK_XS_USAGE;
44
45     if (gv) {
46         const char *const gvname = GvNAME(gv);
47         const HV *const stash = GvSTASH(gv);
48         const char *const hvname = stash ? HvNAME(stash) : NULL;
49
50         if (hvname)
51             Perl_croak(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
52         else
53             Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
54     } else {
55         /* Pants. I don't think that it should be possible to get here. */
56         Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
57     }
58 }
59 #undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE
60
61 #ifdef PERL_IMPLICIT_CONTEXT
62 #define croak_xs_usage(a,b)     S_croak_xs_usage(aTHX_ a,b)
63 #else
64 #define croak_xs_usage          S_croak_xs_usage
65 #endif
66
67 #endif
68
69 /* NOTE: the prototype of newXSproto() is different in versions of perls,
70  * so we define a portable version of newXSproto()
71  */
72 #ifdef newXS_flags
73 #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
74 #else
75 #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
76 #endif /* !defined(newXS_flags) */
77
78
79 /* INCLUDE:  Including 'XS/HelpController.xs' from 'Help.xs' */
80
81
82 /* INCLUDE:  Including 'XS/HelpProvider.xs' from 'XS/HelpController.xs' */
83
84
85 /* INCLUDE:  Including 'XS/ContextHelp.xs' from 'XS/HelpProvider.xs' */
86
87 #include <wx/cshelp.h>
88 #undef THIS
89
90 XS(XS_Wx__ContextHelp_new); /* prototype to pass -Wmissing-prototypes */
91 XS(XS_Wx__ContextHelp_new)
92 {
93 #ifdef dVAR
94     dVAR; dXSARGS;
95 #else
96     dXSARGS;
97 #endif
98     if (items < 1 || items > 3)
99        croak_xs_usage(cv,  "CLASS, window = NULL, beginHelp = true");
100     {
101         wxWindow*       window;
102         bool    beginHelp;
103         char *  CLASS = (char *)SvPV_nolen(ST(0));
104         wxContextHelp * RETVAL;
105
106         if (items < 2)
107             window = NULL;
108         else {
109     window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
110         }
111
112         if (items < 3)
113             beginHelp = true;
114         else {
115             beginHelp = (bool)SvTRUE(ST(2));
116         }
117
118         RETVAL = new wxContextHelp(window, beginHelp);
119         ST(0) = sv_newmortal();
120     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
121     wxPli_thread_sv_register( aTHX_ "Wx::ContextHelp", RETVAL, ST(0) );
122
123     }
124     XSRETURN(1);
125 }
126
127
128 XS(XS_Wx__ContextHelp_CLONE); /* prototype to pass -Wmissing-prototypes */
129 XS(XS_Wx__ContextHelp_CLONE)
130 {
131 #ifdef dVAR
132     dVAR; dXSARGS;
133 #else
134     dXSARGS;
135 #endif
136     if (items != 1)
137        croak_xs_usage(cv,  "CLASS");
138     {
139         char *  CLASS = (char *)SvPV_nolen(ST(0));
140     wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
141     }
142     XSRETURN_EMPTY;
143 }
144
145
146 XS(XS_Wx__ContextHelp_DESTROY); /* prototype to pass -Wmissing-prototypes */
147 XS(XS_Wx__ContextHelp_DESTROY)
148 {
149 #ifdef dVAR
150     dVAR; dXSARGS;
151 #else
152     dXSARGS;
153 #endif
154     if (items != 1)
155        croak_xs_usage(cv,  "THIS");
156     {
157         wxContextHelp *    THIS = (wxContextHelp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextHelp" );
158     wxPli_thread_sv_unregister( aTHX_ "Wx::ContextHelp", THIS, ST(0) );
159     delete THIS;
160     }
161     XSRETURN_EMPTY;
162 }
163
164
165 XS(XS_Wx__ContextHelp_BeginContextHelp); /* prototype to pass -Wmissing-prototypes */
166 XS(XS_Wx__ContextHelp_BeginContextHelp)
167 {
168 #ifdef dVAR
169     dVAR; dXSARGS;
170 #else
171     dXSARGS;
172 #endif
173     if (items != 2)
174        croak_xs_usage(cv,  "THIS, window");
175     {
176         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
177         wxContextHelp *    THIS = (wxContextHelp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextHelp" );
178         bool    RETVAL;
179
180         RETVAL = THIS->BeginContextHelp(window);
181         ST(0) = boolSV(RETVAL);
182         sv_2mortal(ST(0));
183     }
184     XSRETURN(1);
185 }
186
187
188 XS(XS_Wx__ContextHelp_EndContextHelp); /* prototype to pass -Wmissing-prototypes */
189 XS(XS_Wx__ContextHelp_EndContextHelp)
190 {
191 #ifdef dVAR
192     dVAR; dXSARGS;
193 #else
194     dXSARGS;
195 #endif
196     if (items != 1)
197        croak_xs_usage(cv,  "THIS");
198     {
199         wxContextHelp *    THIS = (wxContextHelp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextHelp" );
200         bool    RETVAL;
201
202         RETVAL = THIS->EndContextHelp();
203         ST(0) = boolSV(RETVAL);
204         sv_2mortal(ST(0));
205     }
206     XSRETURN(1);
207 }
208
209
210 XS(XS_Wx__ContextHelp_SetStatus); /* prototype to pass -Wmissing-prototypes */
211 XS(XS_Wx__ContextHelp_SetStatus)
212 {
213 #ifdef dVAR
214     dVAR; dXSARGS;
215 #else
216     dXSARGS;
217 #endif
218     if (items != 2)
219        croak_xs_usage(cv,  "THIS, status");
220     {
221         bool    status = (bool)SvTRUE(ST(1));
222         wxContextHelp *    THIS = (wxContextHelp *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::ContextHelp" );
223
224         THIS->SetStatus(status);
225     }
226     XSRETURN_EMPTY;
227 }
228
229
230 XS(XS_Wx__ContextHelpButton_new); /* prototype to pass -Wmissing-prototypes */
231 XS(XS_Wx__ContextHelpButton_new)
232 {
233 #ifdef dVAR
234     dVAR; dXSARGS;
235 #else
236     dXSARGS;
237 #endif
238     if (items < 2 || items > 6)
239        croak_xs_usage(cv,  "CLASS, parent, id = wxID_CONTEXT_HELP, pos = wxDefaultPosition, size = wxDefaultSize, style = wxBU_AUTODRAW");
240     {
241         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
242         wxWindowID      id;
243         wxPoint pos;
244         wxSize  size;
245         long    style;
246         char *  CLASS = (char *)SvPV_nolen(ST(0));
247         wxContextHelpButton *   RETVAL;
248
249         if (items < 3)
250             id = wxID_CONTEXT_HELP;
251         else {
252     id = wxPli_get_wxwindowid( aTHX_ ST(2) );
253         }
254
255         if (items < 4)
256             pos = wxDefaultPosition;
257         else {
258     pos = wxPli_sv_2_wxpoint( aTHX_ ST(3) );
259         }
260
261         if (items < 5)
262             size = wxDefaultSize;
263         else {
264     size = wxPli_sv_2_wxsize( aTHX_ ST(4) );
265         }
266
267         if (items < 6)
268             style = wxBU_AUTODRAW;
269         else {
270             style = (long)SvIV(ST(5));
271         }
272     RETVAL = new wxContextHelpButton( parent, id, pos, size, style );
273         ST(0) = sv_newmortal();
274     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
275
276     }
277     XSRETURN(1);
278 }
279
280
281 /* INCLUDE: Returning to 'XS/HelpProvider.xs' from 'XS/ContextHelp.xs' */
282
283 #include <wx/cshelp.h>
284
285 XS(XS_Wx_ContextId); /* prototype to pass -Wmissing-prototypes */
286 XS(XS_Wx_ContextId)
287 {
288 #ifdef dVAR
289     dVAR; dXSARGS;
290 #else
291     dXSARGS;
292 #endif
293     if (items != 1)
294        croak_xs_usage(cv,  "id");
295     {
296         int     id = (int)SvIV(ST(0));
297         wxString        RETVAL;
298
299         RETVAL = wxContextId(id);
300         ST(0) = sv_newmortal();
301     WXSTRING_OUTPUT( RETVAL, ST(0) );
302
303     }
304     XSRETURN(1);
305 }
306
307
308 XS(XS_Wx__HelpProvider_Destroy); /* prototype to pass -Wmissing-prototypes */
309 XS(XS_Wx__HelpProvider_Destroy)
310 {
311 #ifdef dVAR
312     dVAR; dXSARGS;
313 #else
314     dXSARGS;
315 #endif
316     if (items != 1)
317        croak_xs_usage(cv,  "THIS");
318     {
319         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
320     delete THIS;
321     }
322     XSRETURN_EMPTY;
323 }
324
325
326 XS(XS_Wx__HelpProvider_Get); /* prototype to pass -Wmissing-prototypes */
327 XS(XS_Wx__HelpProvider_Get)
328 {
329 #ifdef dVAR
330     dVAR; dXSARGS;
331 #else
332     dXSARGS;
333 #endif
334     if (items != 1)
335        croak_xs_usage(cv,  "THIS");
336     {
337         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
338         wxHelpProvider *        RETVAL;
339     RETVAL = wxHelpProvider::Get();
340         ST(0) = sv_newmortal();
341     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::HelpProvider" );
342
343     }
344     XSRETURN(1);
345 }
346
347
348 XS(XS_Wx__HelpProvider_GetHelp); /* prototype to pass -Wmissing-prototypes */
349 XS(XS_Wx__HelpProvider_GetHelp)
350 {
351 #ifdef dVAR
352     dVAR; dXSARGS;
353 #else
354     dXSARGS;
355 #endif
356     if (items != 2)
357        croak_xs_usage(cv,  "THIS, window");
358     {
359         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
360         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
361         wxString        RETVAL;
362
363         RETVAL = THIS->GetHelp(window);
364         ST(0) = sv_newmortal();
365     WXSTRING_OUTPUT( RETVAL, ST(0) );
366
367     }
368     XSRETURN(1);
369 }
370
371
372 XS(XS_Wx__HelpProvider_ShowHelp); /* prototype to pass -Wmissing-prototypes */
373 XS(XS_Wx__HelpProvider_ShowHelp)
374 {
375 #ifdef dVAR
376     dVAR; dXSARGS;
377 #else
378     dXSARGS;
379 #endif
380     if (items != 2)
381        croak_xs_usage(cv,  "THIS, window");
382     {
383         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
384         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
385         bool    RETVAL;
386
387         RETVAL = THIS->ShowHelp(window);
388         ST(0) = boolSV(RETVAL);
389         sv_2mortal(ST(0));
390     }
391     XSRETURN(1);
392 }
393
394
395 XS(XS_Wx__HelpProvider_AddHelp); /* prototype to pass -Wmissing-prototypes */
396 XS(XS_Wx__HelpProvider_AddHelp)
397 {
398 #ifdef dVAR
399     dVAR; dXSARGS;
400 #else
401     dXSARGS;
402 #endif
403     if (items != 3)
404        croak_xs_usage(cv,  "THIS, window, text");
405     {
406         wxWindow*    window = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
407         wxString        text;
408         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
409
410     WXSTRING_INPUT( text, wxString, ST(2) );
411
412         THIS->AddHelp(window, text);
413     }
414     XSRETURN_EMPTY;
415 }
416
417
418 XS(XS_Wx__HelpProvider_AddHelpById); /* prototype to pass -Wmissing-prototypes */
419 XS(XS_Wx__HelpProvider_AddHelpById)
420 {
421 #ifdef dVAR
422     dVAR; dXSARGS;
423 #else
424     dXSARGS;
425 #endif
426     if (items != 3)
427        croak_xs_usage(cv,  "THIS, id, text");
428     {
429         wxWindowID    id = wxPli_get_wxwindowid( aTHX_ ST(1) );
430         wxString        text;
431         wxHelpProvider *    THIS = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
432
433     WXSTRING_INPUT( text, wxString, ST(2) );
434     THIS->AddHelp( id, text );
435     }
436     XSRETURN_EMPTY;
437 }
438
439
440 XS(XS_Wx__HelpProvider_Set); /* prototype to pass -Wmissing-prototypes */
441 XS(XS_Wx__HelpProvider_Set)
442 {
443 #ifdef dVAR
444     dVAR; dXSARGS;
445 #else
446     dXSARGS;
447 #endif
448     if (items != 1)
449        croak_xs_usage(cv,  "helpProvider");
450     {
451         wxHelpProvider*    helpProvider = (wxHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpProvider" );
452         wxHelpProvider *        RETVAL;
453     RETVAL = wxHelpProvider::Set( helpProvider );
454         ST(0) = sv_newmortal();
455     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::HelpProvider" );
456
457     }
458     XSRETURN(1);
459 }
460
461
462 XS(XS_Wx__SimpleHelpProvider_new); /* prototype to pass -Wmissing-prototypes */
463 XS(XS_Wx__SimpleHelpProvider_new)
464 {
465 #ifdef dVAR
466     dVAR; dXSARGS;
467 #else
468     dXSARGS;
469 #endif
470     if (items != 1)
471        croak_xs_usage(cv,  "CLASS");
472     {
473         char *  CLASS = (char *)SvPV_nolen(ST(0));
474         wxSimpleHelpProvider *  RETVAL;
475     RETVAL = new wxSimpleHelpProvider();
476         ST(0) = sv_newmortal();
477     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::SimpleHelpProvider" );
478
479     }
480     XSRETURN(1);
481 }
482
483
484 XS(XS_Wx__HelpControllerHelpProvider_new); /* prototype to pass -Wmissing-prototypes */
485 XS(XS_Wx__HelpControllerHelpProvider_new)
486 {
487 #ifdef dVAR
488     dVAR; dXSARGS;
489 #else
490     dXSARGS;
491 #endif
492     if (items < 1 || items > 2)
493        croak_xs_usage(cv,  "CLASS, hc = 0");
494     {
495         wxHelpControllerBase*   hc;
496         char *  CLASS = (char *)SvPV_nolen(ST(0));
497         wxHelpControllerHelpProvider *  RETVAL;
498
499         if (items < 2)
500             hc = 0;
501         else {
502     hc = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::HelpControllerBase" );
503         }
504     RETVAL = new wxHelpControllerHelpProvider( hc );
505         ST(0) = sv_newmortal();
506     wxPli_non_object_2_sv( aTHX_ ST(0), RETVAL, "Wx::HelpControllerHelpProvider" );
507
508     }
509     XSRETURN(1);
510 }
511
512
513 XS(XS_Wx__HelpControllerHelpProvider_SetHelpController); /* prototype to pass -Wmissing-prototypes */
514 XS(XS_Wx__HelpControllerHelpProvider_SetHelpController)
515 {
516 #ifdef dVAR
517     dVAR; dXSARGS;
518 #else
519     dXSARGS;
520 #endif
521     if (items != 2)
522        croak_xs_usage(cv,  "THIS, hc");
523     {
524         wxHelpControllerBase*    hc = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::HelpControllerBase" );
525         wxHelpControllerHelpProvider *    THIS = (wxHelpControllerHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerHelpProvider" );
526
527         THIS->SetHelpController(hc);
528     }
529     XSRETURN_EMPTY;
530 }
531
532
533 XS(XS_Wx__HelpControllerHelpProvider_GetHelpController); /* prototype to pass -Wmissing-prototypes */
534 XS(XS_Wx__HelpControllerHelpProvider_GetHelpController)
535 {
536 #ifdef dVAR
537     dVAR; dXSARGS;
538 #else
539     dXSARGS;
540 #endif
541     if (items != 1)
542        croak_xs_usage(cv,  "THIS");
543     {
544         wxHelpControllerHelpProvider *    THIS = (wxHelpControllerHelpProvider *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerHelpProvider" );
545         wxHelpControllerBase *  RETVAL;
546
547         RETVAL = THIS->GetHelpController();
548         ST(0) = sv_newmortal();
549     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
550
551     }
552     XSRETURN(1);
553 }
554
555
556 /* INCLUDE: Returning to 'XS/HelpController.xs' from 'XS/HelpProvider.xs' */
557
558 #include <wx/helpbase.h>
559
560 XS(XS_Wx__HelpControllerBase_Destroy); /* prototype to pass -Wmissing-prototypes */
561 XS(XS_Wx__HelpControllerBase_Destroy)
562 {
563 #ifdef dVAR
564     dVAR; dXSARGS;
565 #else
566     dXSARGS;
567 #endif
568     if (items != 1)
569        croak_xs_usage(cv,  "THIS");
570     {
571         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
572     delete THIS;
573     }
574     XSRETURN_EMPTY;
575 }
576
577
578 XS(XS_Wx__HelpControllerBase_Initialize); /* prototype to pass -Wmissing-prototypes */
579 XS(XS_Wx__HelpControllerBase_Initialize)
580 {
581 #ifdef dVAR
582     dVAR; dXSARGS;
583 #else
584     dXSARGS;
585 #endif
586     if (items != 2)
587        croak_xs_usage(cv,  "THIS, file");
588     {
589         wxString        file;
590         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
591
592     WXSTRING_INPUT( file, wxString, ST(1) );
593
594         THIS->Initialize(file);
595     }
596     XSRETURN_EMPTY;
597 }
598
599
600 XS(XS_Wx__HelpControllerBase_DisplayBlock); /* prototype to pass -Wmissing-prototypes */
601 XS(XS_Wx__HelpControllerBase_DisplayBlock)
602 {
603 #ifdef dVAR
604     dVAR; dXSARGS;
605 #else
606     dXSARGS;
607 #endif
608     if (items != 2)
609        croak_xs_usage(cv,  "THIS, block");
610     {
611         long    block = (long)SvIV(ST(1));
612         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
613         bool    RETVAL;
614
615         RETVAL = THIS->DisplayBlock(block);
616         ST(0) = boolSV(RETVAL);
617         sv_2mortal(ST(0));
618     }
619     XSRETURN(1);
620 }
621
622
623 XS(XS_Wx__HelpControllerBase_DisplayContents); /* prototype to pass -Wmissing-prototypes */
624 XS(XS_Wx__HelpControllerBase_DisplayContents)
625 {
626 #ifdef dVAR
627     dVAR; dXSARGS;
628 #else
629     dXSARGS;
630 #endif
631     if (items != 1)
632        croak_xs_usage(cv,  "THIS");
633     {
634         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
635         bool    RETVAL;
636
637         RETVAL = THIS->DisplayContents();
638         ST(0) = boolSV(RETVAL);
639         sv_2mortal(ST(0));
640     }
641     XSRETURN(1);
642 }
643
644
645 XS(XS_Wx__HelpControllerBase_DisplayContextPopup); /* prototype to pass -Wmissing-prototypes */
646 XS(XS_Wx__HelpControllerBase_DisplayContextPopup)
647 {
648 #ifdef dVAR
649     dVAR; dXSARGS;
650 #else
651     dXSARGS;
652 #endif
653     if (items != 2)
654        croak_xs_usage(cv,  "THIS, id");
655     {
656         int     id = (int)SvIV(ST(1));
657         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
658         bool    RETVAL;
659
660         RETVAL = THIS->DisplayContextPopup(id);
661         ST(0) = boolSV(RETVAL);
662         sv_2mortal(ST(0));
663     }
664     XSRETURN(1);
665 }
666
667
668 XS(XS_Wx__HelpControllerBase_DisplayTextPopup); /* prototype to pass -Wmissing-prototypes */
669 XS(XS_Wx__HelpControllerBase_DisplayTextPopup)
670 {
671 #ifdef dVAR
672     dVAR; dXSARGS;
673 #else
674     dXSARGS;
675 #endif
676     if (items != 3)
677        croak_xs_usage(cv,  "THIS, text, pos");
678     {
679         wxString        text;
680         wxPoint    pos = wxPli_sv_2_wxpoint( aTHX_ ST(2) );
681         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
682         bool    RETVAL;
683
684     WXSTRING_INPUT( text, wxString, ST(1) );
685
686         RETVAL = THIS->DisplayTextPopup(text, pos);
687         ST(0) = boolSV(RETVAL);
688         sv_2mortal(ST(0));
689     }
690     XSRETURN(1);
691 }
692
693
694 XS(XS_Wx__HelpControllerBase_DisplaySection); /* prototype to pass -Wmissing-prototypes */
695 XS(XS_Wx__HelpControllerBase_DisplaySection)
696 {
697 #ifdef dVAR
698     dVAR; dXSARGS;
699 #else
700     dXSARGS;
701 #endif
702     if (items != 2)
703        croak_xs_usage(cv,  "THIS, section");
704     {
705         wxString        section;
706         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
707         bool    RETVAL;
708
709     WXSTRING_INPUT( section, wxString, ST(1) );
710
711         RETVAL = THIS->DisplaySection(section);
712         ST(0) = boolSV(RETVAL);
713         sv_2mortal(ST(0));
714     }
715     XSRETURN(1);
716 }
717
718
719 XS(XS_Wx__HelpControllerBase_DisplaySectionId); /* prototype to pass -Wmissing-prototypes */
720 XS(XS_Wx__HelpControllerBase_DisplaySectionId)
721 {
722 #ifdef dVAR
723     dVAR; dXSARGS;
724 #else
725     dXSARGS;
726 #endif
727     if (items != 2)
728        croak_xs_usage(cv,  "THIS, section");
729     {
730         long    section = (long)SvIV(ST(1));
731         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
732         bool    RETVAL;
733     RETVAL = THIS->DisplaySection( section );
734         ST(0) = boolSV(RETVAL);
735         sv_2mortal(ST(0));
736     }
737     XSRETURN(1);
738 }
739
740
741 XS(XS_Wx__HelpControllerBase_KeywordSearch); /* prototype to pass -Wmissing-prototypes */
742 XS(XS_Wx__HelpControllerBase_KeywordSearch)
743 {
744 #ifdef dVAR
745     dVAR; dXSARGS;
746 #else
747     dXSARGS;
748 #endif
749     if (items != 2)
750        croak_xs_usage(cv,  "THIS, keyword");
751     {
752         wxString        keyword;
753         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
754         bool    RETVAL;
755
756     WXSTRING_INPUT( keyword, wxString, ST(1) );
757
758         RETVAL = THIS->KeywordSearch(keyword);
759         ST(0) = boolSV(RETVAL);
760         sv_2mortal(ST(0));
761     }
762     XSRETURN(1);
763 }
764
765
766 XS(XS_Wx__HelpControllerBase_LoadFile); /* prototype to pass -Wmissing-prototypes */
767 XS(XS_Wx__HelpControllerBase_LoadFile)
768 {
769 #ifdef dVAR
770     dVAR; dXSARGS;
771 #else
772     dXSARGS;
773 #endif
774     if (items < 1 || items > 2)
775        croak_xs_usage(cv,  "THIS, file = wxEmptyString");
776     {
777         wxString        file;
778         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
779         bool    RETVAL;
780
781         if (items < 2)
782             file = wxEmptyString;
783         else {
784     WXSTRING_INPUT( file, wxString, ST(1) );
785         }
786
787         RETVAL = THIS->LoadFile(file);
788         ST(0) = boolSV(RETVAL);
789         sv_2mortal(ST(0));
790     }
791     XSRETURN(1);
792 }
793
794
795 XS(XS_Wx__HelpControllerBase_SetViewer); /* prototype to pass -Wmissing-prototypes */
796 XS(XS_Wx__HelpControllerBase_SetViewer)
797 {
798 #ifdef dVAR
799     dVAR; dXSARGS;
800 #else
801     dXSARGS;
802 #endif
803     if (items != 3)
804        croak_xs_usage(cv,  "THIS, viewer, flags");
805     {
806         wxString        viewer;
807         long    flags = (long)SvIV(ST(2));
808         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
809
810     WXSTRING_INPUT( viewer, wxString, ST(1) );
811
812         THIS->SetViewer(viewer, flags);
813     }
814     XSRETURN_EMPTY;
815 }
816
817
818 XS(XS_Wx__HelpControllerBase_Quit); /* prototype to pass -Wmissing-prototypes */
819 XS(XS_Wx__HelpControllerBase_Quit)
820 {
821 #ifdef dVAR
822     dVAR; dXSARGS;
823 #else
824     dXSARGS;
825 #endif
826     if (items != 1)
827        croak_xs_usage(cv,  "THIS");
828     {
829         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
830         bool    RETVAL;
831
832         RETVAL = THIS->Quit();
833         ST(0) = boolSV(RETVAL);
834         sv_2mortal(ST(0));
835     }
836     XSRETURN(1);
837 }
838
839 #if WXPERL_W_VERSION_GE( 2, 6, 3 )
840 #define XSubPPtmpAAAA 1
841
842
843 XS(XS_Wx__HelpControllerBase_GetParentWindow); /* prototype to pass -Wmissing-prototypes */
844 XS(XS_Wx__HelpControllerBase_GetParentWindow)
845 {
846 #ifdef dVAR
847     dVAR; dXSARGS;
848 #else
849     dXSARGS;
850 #endif
851     if (items != 1)
852        croak_xs_usage(cv,  "THIS");
853     {
854         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
855         wxWindow *      RETVAL;
856
857         RETVAL = THIS->GetParentWindow();
858         ST(0) = sv_newmortal();
859     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
860
861     }
862     XSRETURN(1);
863 }
864
865
866 XS(XS_Wx__HelpControllerBase_SetParentWindow); /* prototype to pass -Wmissing-prototypes */
867 XS(XS_Wx__HelpControllerBase_SetParentWindow)
868 {
869 #ifdef dVAR
870     dVAR; dXSARGS;
871 #else
872     dXSARGS;
873 #endif
874     if (items != 2)
875        croak_xs_usage(cv,  "THIS, parent");
876     {
877         wxWindow*    parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
878         wxHelpControllerBase *    THIS = (wxHelpControllerBase *) wxPli_sv_2_object( aTHX_ ST(0), "Wx::HelpControllerBase" );
879
880         THIS->SetParentWindow(parent);
881     }
882     XSRETURN_EMPTY;
883 }
884
885 #endif
886 #if defined( __WXMSW__ )
887 #include <wx/msw/helpwin.h>
888 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
889 #define XSubPPtmpAAAB 1
890
891
892 XS(XS_Wx__WinHelpController_new); /* prototype to pass -Wmissing-prototypes */
893 XS(XS_Wx__WinHelpController_new)
894 {
895 #ifdef dVAR
896     dVAR; dXSARGS;
897 #else
898     dXSARGS;
899 #endif
900     if (items < 1 || items > 2)
901        croak_xs_usage(cv,  "CLASS, parent = NULL");
902     {
903         wxWindow*       parent;
904         char *  CLASS = (char *)SvPV_nolen(ST(0));
905         wxWinHelpController *   RETVAL;
906
907         if (items < 2)
908             parent = NULL;
909         else {
910     parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
911         }
912
913         RETVAL = new wxWinHelpController(parent);
914         ST(0) = sv_newmortal();
915     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
916
917     }
918     XSRETURN(1);
919 }
920
921 #else
922 #define XSubPPtmpAAAC 1
923
924
925 XS(XS_Wx__WinHelpController_new); /* prototype to pass -Wmissing-prototypes */
926 XS(XS_Wx__WinHelpController_new)
927 {
928 #ifdef dVAR
929     dVAR; dXSARGS;
930 #else
931     dXSARGS;
932 #endif
933     if (items != 1)
934        croak_xs_usage(cv,  "CLASS");
935     {
936         char *  CLASS = (char *)SvPV_nolen(ST(0));
937         wxWinHelpController *   RETVAL;
938
939         RETVAL = new wxWinHelpController();
940         ST(0) = sv_newmortal();
941     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
942
943     }
944     XSRETURN(1);
945 }
946
947 #endif
948 #endif
949 #if wxUSE_MS_HTML_HELP
950 #include <wx/msw/helpchm.h>
951 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
952 #define XSubPPtmpAAAD 1
953
954
955 XS(XS_Wx__CHMHelpController_new); /* prototype to pass -Wmissing-prototypes */
956 XS(XS_Wx__CHMHelpController_new)
957 {
958 #ifdef dVAR
959     dVAR; dXSARGS;
960 #else
961     dXSARGS;
962 #endif
963     if (items < 1 || items > 2)
964        croak_xs_usage(cv,  "CLASS, parent = NULL");
965     {
966         wxWindow*       parent;
967         char *  CLASS = (char *)SvPV_nolen(ST(0));
968         wxCHMHelpController *   RETVAL;
969
970         if (items < 2)
971             parent = NULL;
972         else {
973     parent = (wxWindow *) wxPli_sv_2_object( aTHX_ ST(1), "Wx::Window" );
974         }
975
976         RETVAL = new wxCHMHelpController(parent);
977         ST(0) = sv_newmortal();
978     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
979
980     }
981     XSRETURN(1);
982 }
983
984 #else
985 #define XSubPPtmpAAAE 1
986
987
988 XS(XS_Wx__CHMHelpController_new); /* prototype to pass -Wmissing-prototypes */
989 XS(XS_Wx__CHMHelpController_new)
990 {
991 #ifdef dVAR
992     dVAR; dXSARGS;
993 #else
994     dXSARGS;
995 #endif
996     if (items != 1)
997        croak_xs_usage(cv,  "CLASS");
998     {
999         char *  CLASS = (char *)SvPV_nolen(ST(0));
1000         wxCHMHelpController *   RETVAL;
1001
1002         RETVAL = new wxCHMHelpController();
1003         ST(0) = sv_newmortal();
1004     wxPli_object_2_sv( aTHX_ ST(0), RETVAL );
1005
1006     }
1007     XSRETURN(1);
1008 }
1009
1010 #endif
1011 #endif
1012
1013 /* INCLUDE: Returning to 'Help.xs' from 'XS/HelpController.xs' */
1014
1015 #if defined(__WXMSW__)
1016 #undef XS
1017 #define XS( name ) WXXS( name )
1018 #endif
1019 #ifdef __cplusplus
1020 extern "C"
1021 #endif
1022 XS(boot_Wx__Help); /* prototype to pass -Wmissing-prototypes */
1023 XS(boot_Wx__Help)
1024 {
1025 #ifdef dVAR
1026     dVAR; dXSARGS;
1027 #else
1028     dXSARGS;
1029 #endif
1030 #if (PERL_REVISION == 5 && PERL_VERSION < 9)
1031     char* file = __FILE__;
1032 #else
1033     const char* file = __FILE__;
1034 #endif
1035
1036     PERL_UNUSED_VAR(cv); /* -W */
1037     PERL_UNUSED_VAR(items); /* -W */
1038     XS_VERSION_BOOTCHECK ;
1039
1040         newXS("Wx::ContextHelp::new", XS_Wx__ContextHelp_new, file);
1041         newXS("Wx::ContextHelp::CLONE", XS_Wx__ContextHelp_CLONE, file);
1042         newXS("Wx::ContextHelp::DESTROY", XS_Wx__ContextHelp_DESTROY, file);
1043         newXS("Wx::ContextHelp::BeginContextHelp", XS_Wx__ContextHelp_BeginContextHelp, file);
1044         newXS("Wx::ContextHelp::EndContextHelp", XS_Wx__ContextHelp_EndContextHelp, file);
1045         newXS("Wx::ContextHelp::SetStatus", XS_Wx__ContextHelp_SetStatus, file);
1046         newXS("Wx::ContextHelpButton::new", XS_Wx__ContextHelpButton_new, file);
1047         newXS("Wx::ContextId", XS_Wx_ContextId, file);
1048         newXS("Wx::HelpProvider::Destroy", XS_Wx__HelpProvider_Destroy, file);
1049         newXS("Wx::HelpProvider::Get", XS_Wx__HelpProvider_Get, file);
1050         newXS("Wx::HelpProvider::GetHelp", XS_Wx__HelpProvider_GetHelp, file);
1051         newXS("Wx::HelpProvider::ShowHelp", XS_Wx__HelpProvider_ShowHelp, file);
1052         newXS("Wx::HelpProvider::AddHelp", XS_Wx__HelpProvider_AddHelp, file);
1053         newXS("Wx::HelpProvider::AddHelpById", XS_Wx__HelpProvider_AddHelpById, file);
1054         newXS("Wx::HelpProvider::Set", XS_Wx__HelpProvider_Set, file);
1055         newXS("Wx::SimpleHelpProvider::new", XS_Wx__SimpleHelpProvider_new, file);
1056         newXS("Wx::HelpControllerHelpProvider::new", XS_Wx__HelpControllerHelpProvider_new, file);
1057         newXS("Wx::HelpControllerHelpProvider::SetHelpController", XS_Wx__HelpControllerHelpProvider_SetHelpController, file);
1058         newXS("Wx::HelpControllerHelpProvider::GetHelpController", XS_Wx__HelpControllerHelpProvider_GetHelpController, file);
1059         newXS("Wx::HelpControllerBase::Destroy", XS_Wx__HelpControllerBase_Destroy, file);
1060         newXS("Wx::HelpControllerBase::Initialize", XS_Wx__HelpControllerBase_Initialize, file);
1061         newXS("Wx::HelpControllerBase::DisplayBlock", XS_Wx__HelpControllerBase_DisplayBlock, file);
1062         newXS("Wx::HelpControllerBase::DisplayContents", XS_Wx__HelpControllerBase_DisplayContents, file);
1063         newXS("Wx::HelpControllerBase::DisplayContextPopup", XS_Wx__HelpControllerBase_DisplayContextPopup, file);
1064         newXS("Wx::HelpControllerBase::DisplayTextPopup", XS_Wx__HelpControllerBase_DisplayTextPopup, file);
1065         newXS("Wx::HelpControllerBase::DisplaySection", XS_Wx__HelpControllerBase_DisplaySection, file);
1066         newXS("Wx::HelpControllerBase::DisplaySectionId", XS_Wx__HelpControllerBase_DisplaySectionId, file);
1067         newXS("Wx::HelpControllerBase::KeywordSearch", XS_Wx__HelpControllerBase_KeywordSearch, file);
1068         newXS("Wx::HelpControllerBase::LoadFile", XS_Wx__HelpControllerBase_LoadFile, file);
1069         newXS("Wx::HelpControllerBase::SetViewer", XS_Wx__HelpControllerBase_SetViewer, file);
1070         newXS("Wx::HelpControllerBase::Quit", XS_Wx__HelpControllerBase_Quit, file);
1071 #if XSubPPtmpAAAA
1072         newXS("Wx::HelpControllerBase::GetParentWindow", XS_Wx__HelpControllerBase_GetParentWindow, file);
1073         newXS("Wx::HelpControllerBase::SetParentWindow", XS_Wx__HelpControllerBase_SetParentWindow, file);
1074 #endif
1075 #if XSubPPtmpAAAB
1076         newXS("Wx::WinHelpController::new", XS_Wx__WinHelpController_new, file);
1077 #endif
1078 #if XSubPPtmpAAAC
1079         newXS("Wx::WinHelpController::new", XS_Wx__WinHelpController_new, file);
1080 #endif
1081 #if XSubPPtmpAAAD
1082         newXS("Wx::CHMHelpController::new", XS_Wx__CHMHelpController_new, file);
1083 #endif
1084 #if XSubPPtmpAAAE
1085         newXS("Wx::CHMHelpController::new", XS_Wx__CHMHelpController_new, file);
1086 #endif
1087
1088     /* Initialisation Section */
1089
1090   INIT_PLI_HELPERS( wx_pli_helpers );
1091
1092 #if XSubPPtmpAAAA
1093 #endif
1094 #if XSubPPtmpAAAB
1095 #endif
1096 #if XSubPPtmpAAAC
1097 #endif
1098 #if XSubPPtmpAAAD
1099 #endif
1100 #if XSubPPtmpAAAE
1101 #endif
1102
1103     /* End of Initialisation Section */
1104
1105 #if (PERL_REVISION == 5 && PERL_VERSION >= 9)
1106   if (PL_unitcheckav)
1107        call_list(PL_scopestack_ix, PL_unitcheckav);
1108 #endif
1109     XSRETURN_YES;
1110 }
1111