#define SWIG_TypeName SWIG_Python_TypeName
#define SWIG_TypeQuery SWIG_Python_TypeQuery
#define SWIG_TypeClientData SWIG_Python_TypeClientData
+#define SWIG_PackData SWIG_Python_PackData
+#define SWIG_UnpackData SWIG_Python_UnpackData
/***********************************************************************
#include <string.h>
-#if defined(_WIN32) || defined(__WIN32__)
-# if defined(_MSC_VER)
-# if defined(STATIC_LINKED)
-# define SWIGEXPORT(a) a
-# define SWIGIMPORT(a) extern a
-# else
-# define SWIGEXPORT(a) __declspec(dllexport) a
-# define SWIGIMPORT(a) extern a
-# endif
-# else
-# if defined(__BORLANDC__)
-# define SWIGEXPORT(a) a _export
-# define SWIGIMPORT(a) a _export
-# else
-# define SWIGEXPORT(a) a
-# define SWIGIMPORT(a) a
-# endif
-# endif
+#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+# if defined(_MSC_VER) || defined(__GNUC__)
+# if defined(STATIC_LINKED)
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) extern a
+# else
+# define SWIGEXPORT(a) __declspec(dllexport) a
+# define SWIGIMPORT(a) extern a
+# endif
+# else
+# if defined(__BORLANDC__)
+# define SWIGEXPORT(a) a _export
+# define SWIGIMPORT(a) a _export
+# else
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
+# endif
+# endif
#else
-# define SWIGEXPORT(a) a
-# define SWIGIMPORT(a) a
+# define SWIGEXPORT(a) a
+# define SWIGIMPORT(a) a
#endif
#ifdef SWIG_GLOBAL
-#define SWIGRUNTIME(a) SWIGEXPORT(a)
+# define SWIGRUNTIME(a) SWIGEXPORT(a)
#else
-#define SWIGRUNTIME(a) static a
+# define SWIGRUNTIME(a) static a
#endif
-
#ifdef __cplusplus
extern "C" {
#endif
SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
+SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
+SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
#ifdef __cplusplus
}
+
#endif
+
/***********************************************************************
* pyrun.swg for wxPython
*
*
************************************************************************/
-
#include "Python.h"
#ifdef __cplusplus
swig_type_info **ptype;
} swig_const_info;
-
-
/* Common SWIG API */
#define SWIG_ConvertPtr(obj, pp, type, flags) \
SWIG_Python_ConvertPtr(obj, pp, type, flags)
SWIG_Python_addvarlink(p, name, get_attr, set_attr)
#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
-#define SWIG_PackData(c, ptr, sz) \
- SWIG_Python_PackData(c, ptr, sz)
-#define SWIG_UnpackData(c, ptr, sz) \
- SWIG_Python_UnpackData(c, ptr, sz)
#define SWIG_NewPackedObj(ptr, sz, type) \
SWIG_Python_NewPackedObj(ptr, sz, type)
#define SWIG_InstallConstants(d, constants) \
SWIG_Python_InstallConstants(d, constants)
-SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
-SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
-SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
+SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
+SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
+SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
+SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
+SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
+SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
+SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
+SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
-SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
-SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
-SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
-SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
-SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
-SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
-SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
/* Contract support */
-#define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-#define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-
-#define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-#define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-
-#define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-#define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
-#define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
+#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
#ifdef __cplusplus
}
#include <wx/html/helpctrl.h>
- DECLARE_DEF_STRING(EmptyString);
- static const wxChar* wxHtmlWindowNameStr = wxT("htmlWindow");
- DECLARE_DEF_STRING(HtmlWindowNameStr);
- static const wxChar* wxHtmlPrintoutTitleStr = wxT("Printout");
- DECLARE_DEF_STRING(HtmlPrintoutTitleStr);
- static const wxChar* wxHtmlPrintingTitleStr = wxT("Printing");
- DECLARE_DEF_STRING(HtmlPrintingTitleStr);
-
-
+ static const wxString wxPyEmptyString(wxEmptyString);
+ static const wxString wxPyHtmlWindowNameStr(wxT("htmlWindow"));
+ static const wxString wxPyHtmlPrintoutTitleStr(wxT("Printout"));
+ static const wxString wxPyHtmlPrintingTitleStr(wxT("Printing"));
void wxHtmlWinParser_SetFonts(wxHtmlWinParser *self,wxString normal_face,wxString fixed_face,PyObject *sizes){
int* temp = NULL;
if (sizes) temp = int_LIST_helper(sizes);
// First, make a new instance of the tag handler
wxPyBeginBlockThreads();
- PyObject* arg = Py_BuildValue("()");
- PyObject* obj = PyInstance_New(m_tagHandlerClass, arg, NULL);
+ PyObject* arg = PyTuple_New(0);
+ PyObject* obj = PyObject_CallObject(m_tagHandlerClass, arg);
Py_DECREF(arg);
- wxPyEndBlockThreads();
-
+
// now figure out where it's C++ object is...
wxPyHtmlWinTagHandler* thPtr;
- if (! wxPyConvertSwigPtr(obj, (void **)&thPtr, wxT("wxPyHtmlWinTagHandler")))
+ if (! wxPyConvertSwigPtr(obj, (void **)&thPtr, wxT("wxPyHtmlWinTagHandler"))) {
+ wxPyEndBlockThreads();
return;
+ }
+ wxPyEndBlockThreads();
// add it,
parser->AddTagHandler(thPtr);
public:
wxPyHtmlFilter() : wxHtmlFilter() {}
- // returns TRUE if this filter is able to open&read given file
+ // returns True if this filter is able to open&read given file
virtual bool CanRead(const wxFSFile& file) const {
- bool rval = FALSE;
+ bool rval = False;
bool found;
wxPyBeginBlockThreads();
if ((found = wxPyCBH_findCallback(m_myInst, "CanRead"))) {
#ifdef __cplusplus
extern "C" {
#endif
+static int _wrap_HtmlWindowNameStr_set(PyObject *_val) {
+ PyErr_SetString(PyExc_TypeError,"Variable HtmlWindowNameStr is read-only.");
+ return 1;
+}
+
+
+static PyObject *_wrap_HtmlWindowNameStr_get() {
+ PyObject *pyobj;
+
+ {
+#if wxUSE_UNICODE
+ pyobj = PyUnicode_FromWideChar((&wxPyHtmlWindowNameStr)->c_str(), (&wxPyHtmlWindowNameStr)->Len());
+#else
+ pyobj = PyString_FromStringAndSize((&wxPyHtmlWindowNameStr)->c_str(), (&wxPyHtmlWindowNameStr)->Len());
+#endif
+ }
+ return pyobj;
+}
+
+
+static int _wrap_HtmlPrintoutTitleStr_set(PyObject *_val) {
+ PyErr_SetString(PyExc_TypeError,"Variable HtmlPrintoutTitleStr is read-only.");
+ return 1;
+}
+
+
+static PyObject *_wrap_HtmlPrintoutTitleStr_get() {
+ PyObject *pyobj;
+
+ {
+#if wxUSE_UNICODE
+ pyobj = PyUnicode_FromWideChar((&wxPyHtmlPrintoutTitleStr)->c_str(), (&wxPyHtmlPrintoutTitleStr)->Len());
+#else
+ pyobj = PyString_FromStringAndSize((&wxPyHtmlPrintoutTitleStr)->c_str(), (&wxPyHtmlPrintoutTitleStr)->Len());
+#endif
+ }
+ return pyobj;
+}
+
+
+static int _wrap_HtmlPrintingTitleStr_set(PyObject *_val) {
+ PyErr_SetString(PyExc_TypeError,"Variable HtmlPrintingTitleStr is read-only.");
+ return 1;
+}
+
+
+static PyObject *_wrap_HtmlPrintingTitleStr_get() {
+ PyObject *pyobj;
+
+ {
+#if wxUSE_UNICODE
+ pyobj = PyUnicode_FromWideChar((&wxPyHtmlPrintingTitleStr)->c_str(), (&wxPyHtmlPrintingTitleStr)->Len());
+#else
+ pyobj = PyString_FromStringAndSize((&wxPyHtmlPrintingTitleStr)->c_str(), (&wxPyHtmlPrintingTitleStr)->Len());
+#endif
+ }
+ return pyobj;
+}
+
+
static PyObject *_wrap_new_HtmlLinkInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxString *arg1 = 0 ;
wxString const &arg2_defvalue = wxPyEmptyString ;
wxString *arg2 = (wxString *) &arg2_defvalue ;
wxHtmlLinkInfo *result;
- bool temp1 = false ;
- bool temp2 = false ;
+ bool temp1 = False ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = true;
+ temp1 = True;
}
if (obj1) {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
}
{
wxHtmlTag *arg1 = (wxHtmlTag *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlTag *arg1 = (wxHtmlTag *) 0 ;
wxString *arg2 = 0 ;
- int arg3 = (int) FALSE ;
+ int arg3 = (int) False ;
wxString result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlParser *arg1 = (wxHtmlParser *) 0 ;
wxString *arg2 = 0 ;
wxObject *result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlParser *arg1 = (wxHtmlParser *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlParser *arg1 = (wxHtmlParser *) 0 ;
wxHtmlTagHandler *arg2 = (wxHtmlTagHandler *) 0 ;
wxString arg3 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlParser_PushTagHandler",kwnames,&obj0,&obj1,&obj2)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlParser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxHtmlTagHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->PushTagHandler(arg2,arg3);
wxString arg2 ;
wxString arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
- wxString *argp2 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:HtmlWinParser_SetFonts",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlWinParser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg2 = *argp2;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj1);
+ if (sptr == NULL) SWIG_fail;
+ arg2 = *sptr;
+ delete sptr;
+ }
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
if (obj3) {
arg4 = obj3;
}
PyObject *resultobj;
wxHtmlWinParser *arg1 = (wxHtmlWinParser *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
}
+static PyObject *_wrap_HtmlCell_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
+ wxString *result;
+ PyObject * obj0 = 0 ;
+ char *kwnames[] = {
+ (char *) "self", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlCell_GetId",kwnames,&obj0)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlCell,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ {
+ wxString const &_result_ref = ((wxHtmlCell const *)arg1)->GetId();
+ result = (wxString *) &_result_ref;
+ }
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+#if wxUSE_UNICODE
+ resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
+#else
+ resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
+#endif
+ }
+ return resultobj;
+ fail:
+ return NULL;
+}
+
+
+static PyObject *_wrap_HtmlCell_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj;
+ wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
+ wxString *arg2 = 0 ;
+ bool temp2 = False ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char *kwnames[] = {
+ (char *) "self",(char *) "id", NULL
+ };
+
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlCell_SetId",kwnames,&obj0,&obj1)) goto fail;
+ if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlCell,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
+ {
+ arg2 = wxString_in_helper(obj1);
+ if (arg2 == NULL) SWIG_fail;
+ temp2 = True;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ (arg1)->SetId((wxString const &)*arg2);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ Py_INCREF(Py_None); resultobj = Py_None;
+ {
+ if (temp2)
+ delete arg2;
+ }
+ return resultobj;
+ fail:
+ {
+ if (temp2)
+ delete arg2;
+ }
+ return NULL;
+}
+
+
static PyObject *_wrap_HtmlCell_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
static PyObject *_wrap_HtmlCell_FindCellByPos(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxHtmlCell *arg1 = (wxHtmlCell *) 0 ;
- wxCoord arg2 ;
- wxCoord arg3 ;
+ int arg2 ;
+ int arg3 ;
unsigned int arg4 = (unsigned int) wxHTML_FIND_EXACT ;
wxHtmlCell *result;
PyObject * obj0 = 0 ;
wxString *arg1 = 0 ;
wxDC *arg2 = 0 ;
wxHtmlWordCell *result;
- bool temp1 = false ;
+ bool temp1 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = true;
+ temp1 = True;
}
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (arg2 == NULL) {
wxPyHtmlWindow *result;
wxPoint temp3 ;
wxSize temp4 ;
- bool temp6 = false ;
+ bool temp6 = False ;
PyObject * obj0 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj3 = 0 ;
{
arg6 = wxString_in_helper(obj5);
if (arg6 == NULL) SWIG_fail;
- temp6 = true;
+ temp6 = True;
}
}
{
bool result;
wxPoint temp4 ;
wxSize temp5 ;
- bool temp7 = false ;
+ bool temp7 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj3 = 0 ;
{
arg7 = wxString_in_helper(obj6);
if (arg7 == NULL) SWIG_fail;
- temp7 = true;
+ temp7 = True;
}
}
{
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxFrame *arg2 = (wxFrame *) 0 ;
wxString *arg3 = 0 ;
- bool temp3 = false ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString arg2 ;
wxString arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
- wxString *argp2 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:HtmlWindow_SetFonts",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg2 = *argp2;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj1);
+ if (sptr == NULL) SWIG_fail;
+ arg2 = *sptr;
+ delete sptr;
+ }
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
if (obj3) {
arg4 = obj3;
}
PyObject *resultobj;
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxHtmlCell *arg2 = (wxHtmlCell *) 0 ;
- wxCoord arg3 ;
- wxCoord arg4 ;
+ int arg3 ;
+ int arg4 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
PyObject *resultobj;
wxPyHtmlWindow *arg1 = (wxPyHtmlWindow *) 0 ;
wxHtmlCell *arg2 = (wxHtmlCell *) 0 ;
- wxCoord arg3 ;
- wxCoord arg4 ;
+ int arg3 ;
+ int arg4 ;
wxMouseEvent *arg5 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
wxString *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool arg4 = (bool) TRUE ;
- bool temp2 = false ;
- bool temp3 = false ;
+ bool arg4 = (bool) True ;
+ bool temp2 = False ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
if (obj2) {
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
if (obj3) {
wxString arg2 ;
wxString arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
- wxString *argp2 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:HtmlDCRenderer_SetFonts",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlDCRenderer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg2 = *argp2;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj1);
+ if (sptr == NULL) SWIG_fail;
+ arg2 = *sptr;
+ delete sptr;
+ }
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
if (obj3) {
arg4 = obj3;
}
int arg2 ;
int arg3 ;
int arg4 = (int) 0 ;
- int arg5 = (int) FALSE ;
+ int arg5 = (int) False ;
int arg6 = (int) INT_MAX ;
int *arg7 = (int *) NULL ;
int arg8 = (int) 0 ;
wxString const &arg1_defvalue = wxPyHtmlPrintoutTitleStr ;
wxString *arg1 = (wxString *) &arg1_defvalue ;
wxHtmlPrintout *result;
- bool temp1 = false ;
+ bool temp1 = False ;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "title", NULL
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = true;
+ temp1 = True;
}
}
{
wxString *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool arg4 = (bool) TRUE ;
- bool temp2 = false ;
- bool temp3 = false ;
+ bool arg4 = (bool) True ;
+ bool temp2 = False ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
if (obj2) {
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
if (obj3) {
PyObject *resultobj;
wxHtmlPrintout *arg1 = (wxHtmlPrintout *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlPrintout *arg1 = (wxHtmlPrintout *) 0 ;
wxString *arg2 = 0 ;
int arg3 = (int) wxPAGE_ALL ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlPrintout *arg1 = (wxHtmlPrintout *) 0 ;
wxString *arg2 = 0 ;
int arg3 = (int) wxPAGE_ALL ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString arg2 ;
wxString arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
- wxString *argp2 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:HtmlPrintout_SetFonts",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg2 = *argp2;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj1);
+ if (sptr == NULL) SWIG_fail;
+ arg2 = *sptr;
+ delete sptr;
+ }
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
if (obj3) {
arg4 = obj3;
}
wxString *arg1 = (wxString *) &arg1_defvalue ;
wxWindow *arg2 = (wxWindow *) NULL ;
wxHtmlEasyPrinting *result;
- bool temp1 = false ;
+ bool temp1 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = true;
+ temp1 = True;
}
}
if (obj1) {
PyObject *resultobj;
wxHtmlEasyPrinting *arg1 = (wxHtmlEasyPrinting *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool temp2 = false ;
- bool temp3 = false ;
+ bool temp2 = False ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
if (obj2) {
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
{
PyObject *resultobj;
wxHtmlEasyPrinting *arg1 = (wxHtmlEasyPrinting *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool temp2 = false ;
- bool temp3 = false ;
+ bool temp2 = False ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
if (obj2) {
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
{
wxHtmlEasyPrinting *arg1 = (wxHtmlEasyPrinting *) 0 ;
wxString *arg2 = 0 ;
int arg3 = (int) wxPAGE_ALL ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlEasyPrinting *arg1 = (wxHtmlEasyPrinting *) 0 ;
wxString *arg2 = 0 ;
int arg3 = (int) wxPAGE_ALL ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxString arg2 ;
wxString arg3 ;
PyObject *arg4 = (PyObject *) NULL ;
- wxString *argp2 ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:HtmlEasyPrinting_SetFonts",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlEasyPrinting,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
- if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg2 = *argp2;
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj1);
+ if (sptr == NULL) SWIG_fail;
+ arg2 = *sptr;
+ delete sptr;
+ }
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
if (obj3) {
arg4 = obj3;
}
wxString *arg3 = 0 ;
wxString *arg4 = 0 ;
wxHtmlBookRecord *result;
- bool temp1 = false ;
- bool temp2 = false ;
- bool temp3 = false ;
- bool temp4 = false ;
+ bool temp1 = False ;
+ bool temp2 = False ;
+ bool temp3 = False ;
+ bool temp4 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
- temp1 = true;
+ temp1 = True;
}
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
{
arg4 = wxString_in_helper(obj3);
if (arg4 == NULL) SWIG_fail;
- temp4 = true;
+ temp4 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlBookRecord *arg1 = (wxHtmlBookRecord *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlBookRecord *arg1 = (wxHtmlBookRecord *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlBookRecord *arg1 = (wxHtmlBookRecord *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlBookRecord *arg1 = (wxHtmlBookRecord *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxString, 0);
+ {
+#if wxUSE_UNICODE
+ resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
+#else
+ resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
+#endif
+ }
return resultobj;
fail:
return NULL;
PyObject *resultobj;
wxHtmlHelpData *arg1 = (wxHtmlHelpData *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpData *arg1 = (wxHtmlHelpData *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpData *arg1 = (wxHtmlHelpData *) 0 ;
wxString *arg2 = 0 ;
wxString result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
int arg4 = (int) wxHF_DEFAULTSTYLE ;
wxHtmlHelpData *arg5 = (wxHtmlHelpData *) NULL ;
wxHtmlHelpFrame *result;
- bool temp3 = false ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj2 = 0 ;
PyObject * obj4 = 0 ;
char *kwnames[] = {
- (char *) "parent",(char *) "wxWindowID",(char *) "title",(char *) "style",(char *) "data", NULL
+ (char *) "parent","arg2",(char *) "title",(char *) "style",(char *) "data", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OiO:new_HtmlHelpFrame",kwnames,&obj0,&arg2,&obj2,&arg4,&obj4)) goto fail;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
if (obj4) {
PyObject *resultobj;
wxHtmlHelpFrame *arg1 = (wxHtmlHelpFrame *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlHelpFrame *arg1 = (wxHtmlHelpFrame *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpFrame *arg1 = (wxHtmlHelpFrame *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool temp3 = false ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
{
wxHtmlHelpFrame *arg1 = (wxHtmlHelpFrame *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlHelpFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpFrame *arg1 = (wxHtmlHelpFrame *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlHelpFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxString *arg2 = 0 ;
- int arg3 = (int) FALSE ;
+ int arg3 = (int) False ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
PyObject *resultobj;
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxString *arg2 = 0 ;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxString *arg2 = 0 ;
bool result;
- bool temp2 = false ;
+ bool temp2 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
{
arg2 = wxString_in_helper(obj1);
if (arg2 == NULL) SWIG_fail;
- temp2 = true;
+ temp2 = True;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
- bool temp3 = false ;
+ bool temp3 = False ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
{
arg3 = wxString_in_helper(obj2);
if (arg3 == NULL) SWIG_fail;
- temp3 = true;
+ temp3 = True;
}
}
{
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlHelpController,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
wxHtmlHelpController *arg1 = (wxHtmlHelpController *) 0 ;
wxConfigBase *arg2 = (wxConfigBase *) 0 ;
wxString arg3 = (wxString) wxPyEmptyString ;
- wxString *argp3 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHtmlHelpController,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
if (obj2) {
- if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxString,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
- arg3 = *argp3;
+ {
+ wxString* sptr = wxString_in_helper(obj2);
+ if (sptr == NULL) SWIG_fail;
+ arg3 = *sptr;
+ delete sptr;
+ }
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
{ (char *)"HtmlCell_GetWidth", (PyCFunction) _wrap_HtmlCell_GetWidth, METH_VARARGS | METH_KEYWORDS },
{ (char *)"HtmlCell_GetHeight", (PyCFunction) _wrap_HtmlCell_GetHeight, METH_VARARGS | METH_KEYWORDS },
{ (char *)"HtmlCell_GetDescent", (PyCFunction) _wrap_HtmlCell_GetDescent, METH_VARARGS | METH_KEYWORDS },
+ { (char *)"HtmlCell_GetId", (PyCFunction) _wrap_HtmlCell_GetId, METH_VARARGS | METH_KEYWORDS },
+ { (char *)"HtmlCell_SetId", (PyCFunction) _wrap_HtmlCell_SetId, METH_VARARGS | METH_KEYWORDS },
{ (char *)"HtmlCell_GetLink", (PyCFunction) _wrap_HtmlCell_GetLink, METH_VARARGS | METH_KEYWORDS },
{ (char *)"HtmlCell_GetNext", (PyCFunction) _wrap_HtmlCell_GetNext, METH_VARARGS | METH_KEYWORDS },
{ (char *)"HtmlCell_GetParent", (PyCFunction) _wrap_HtmlCell_GetParent, METH_VARARGS | METH_KEYWORDS },
static void *_p_wxKeyEventTo_p_wxObject(void *x) {
return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
}
-static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
- return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
-}
static void *_p_wxWindowTo_p_wxObject(void *x) {
return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
}
static void *_p_wxMenuBarTo_p_wxObject(void *x) {
return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
}
+static void *_p_wxScrolledWindowTo_p_wxObject(void *x) {
+ return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x));
+}
static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) {
return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x));
}
{ SWIG_PY_INT, (char *)"HTML_COND_ISANCHOR", (long) wxHTML_COND_ISANCHOR, 0, 0, 0},
{ SWIG_PY_INT, (char *)"HTML_COND_ISIMAGEMAP", (long) wxHTML_COND_ISIMAGEMAP, 0, 0, 0},
{ SWIG_PY_INT, (char *)"HTML_COND_USER", (long) wxHTML_COND_USER, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_1", (long) wxHTML_FONT_SIZE_1, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_2", (long) wxHTML_FONT_SIZE_2, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_3", (long) wxHTML_FONT_SIZE_3, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_4", (long) wxHTML_FONT_SIZE_4, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_5", (long) wxHTML_FONT_SIZE_5, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_6", (long) wxHTML_FONT_SIZE_6, 0, 0, 0},
+{ SWIG_PY_INT, (char *)"HTML_FONT_SIZE_7", (long) wxHTML_FONT_SIZE_7, 0, 0, 0},
{ SWIG_PY_INT, (char *)"HW_SCROLLBAR_NEVER", (long) wxHW_SCROLLBAR_NEVER, 0, 0, 0},
{ SWIG_PY_INT, (char *)"HW_SCROLLBAR_AUTO", (long) wxHW_SCROLLBAR_AUTO, 0, 0, 0},
{ SWIG_PY_INT, (char *)"HW_NO_SELECTION", (long) wxHW_NO_SELECTION, 0, 0, 0},
}
SWIG_InstallConstants(d,swig_const_table);
+ PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
+ SWIG_addvarlink(SWIG_globals,(char*)"HtmlWindowNameStr",_wrap_HtmlWindowNameStr_get, _wrap_HtmlWindowNameStr_set);
+ SWIG_addvarlink(SWIG_globals,(char*)"HtmlPrintoutTitleStr",_wrap_HtmlPrintoutTitleStr_get, _wrap_HtmlPrintoutTitleStr_set);
+ SWIG_addvarlink(SWIG_globals,(char*)"HtmlPrintingTitleStr",_wrap_HtmlPrintingTitleStr_get, _wrap_HtmlPrintingTitleStr_set);
wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");