PyObject *resultobj = 0;
wxString *arg1 = 0 ;
int arg2 = (int) wxXRC_USE_LOCALE ;
+ wxString const &arg3_defvalue = wxEmptyString ;
+ wxString *arg3 = (wxString *) &arg3_defvalue ;
wxXmlResource *result = 0 ;
bool temp1 = false ;
int val2 ;
int ecode2 = 0 ;
+ bool temp3 = false ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
char * kwnames[] = {
- (char *) "filemask",(char *) "flags", NULL
+ (char *) "filemask",(char *) "flags",(char *) "domain", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_XmlResource",kwnames,&obj0,&obj1)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_XmlResource",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
{
arg1 = wxString_in_helper(obj0);
if (arg1 == NULL) SWIG_fail;
}
arg2 = static_cast< int >(val2);
}
+ if (obj2) {
+ {
+ arg3 = wxString_in_helper(obj2);
+ if (arg3 == NULL) SWIG_fail;
+ temp3 = true;
+ }
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2);
+ result = (wxXmlResource *)new wxXmlResource((wxString const &)*arg1,arg2,(wxString const &)*arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
if (temp1)
delete arg1;
}
+ {
+ if (temp3)
+ delete arg3;
+ }
return resultobj;
fail:
{
if (temp1)
delete arg1;
}
+ {
+ if (temp3)
+ delete arg3;
+ }
return NULL;
}
SWIGINTERN PyObject *_wrap_new_EmptyXmlResource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
int arg1 = (int) wxXRC_USE_LOCALE ;
+ wxString const &arg2_defvalue = wxEmptyString ;
+ wxString *arg2 = (wxString *) &arg2_defvalue ;
wxXmlResource *result = 0 ;
int val1 ;
int ecode1 = 0 ;
+ bool temp2 = false ;
PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
char * kwnames[] = {
- (char *) "flags", NULL
+ (char *) "flags",(char *) "domain", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_EmptyXmlResource",kwnames,&obj0)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EmptyXmlResource",kwnames,&obj0,&obj1)) SWIG_fail;
if (obj0) {
ecode1 = SWIG_AsVal_int(obj0, &val1);
if (!SWIG_IsOK(ecode1)) {
}
arg1 = static_cast< int >(val1);
}
+ if (obj1) {
+ {
+ arg2 = wxString_in_helper(obj1);
+ if (arg2 == NULL) SWIG_fail;
+ temp2 = true;
+ }
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (wxXmlResource *)new wxXmlResource(arg1);
+ result = (wxXmlResource *)new wxXmlResource(arg1,(wxString const &)*arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlResource, SWIG_POINTER_OWN | 0 );
+ {
+ if (temp2)
+ delete arg2;
+ }
return resultobj;
fail:
+ {
+ if (temp2)
+ delete arg2;
+ }
return NULL;
}
wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_AddHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
}
arg1 = reinterpret_cast< wxXmlResource * >(argp1);
- res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_AddHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
}
- arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->AddHandler(arg2);
wxPyXmlResourceHandler *arg2 = (wxPyXmlResourceHandler *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
- void *argp2 = 0 ;
int res2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_InsertHandler" "', expected argument " "1"" of type '" "wxXmlResource *""'");
}
arg1 = reinterpret_cast< wxXmlResource * >(argp1);
- res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPyXmlResourceHandler, 0 | 0 );
+ res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res2)) {
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlResource_InsertHandler" "', expected argument " "2"" of type '" "wxPyXmlResourceHandler *""'");
}
- arg2 = reinterpret_cast< wxPyXmlResourceHandler * >(argp2);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->InsertHandler(arg2);
}
+SWIGINTERN PyObject *_wrap_XmlResource_GetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ wxXmlResource *arg1 = (wxXmlResource *) 0 ;
+ wxString result;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject *swig_obj[1] ;
+
+ if (!args) SWIG_fail;
+ swig_obj[0] = args;
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_GetDomain" "', expected argument " "1"" of type '" "wxXmlResource const *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlResource * >(argp1);
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = ((wxXmlResource const *)arg1)->GetDomain();
+ 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;
+}
+
+
+SWIGINTERN PyObject *_wrap_XmlResource_SetDomain(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj = 0;
+ wxXmlResource *arg1 = (wxXmlResource *) 0 ;
+ wxString *arg2 = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ bool temp2 = false ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char * kwnames[] = {
+ (char *) "self",(char *) "domain", NULL
+ };
+
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlResource_SetDomain",kwnames,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlResource, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlResource_SetDomain" "', expected argument " "1"" of type '" "wxXmlResource *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlResource * >(argp1);
+ {
+ arg2 = wxString_in_helper(obj1);
+ if (arg2 == NULL) SWIG_fail;
+ temp2 = true;
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ (arg1)->SetDomain((wxString const &)*arg2);
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_Py_Void();
+ {
+ if (temp2)
+ delete arg2;
+ }
+ return resultobj;
+fail:
+ {
+ if (temp2)
+ delete arg2;
+ }
+ return NULL;
+}
+
+
SWIGINTERN PyObject *XmlResource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
wxXmlNode *arg1 = (wxXmlNode *) 0 ;
wxXmlNode *arg2 = (wxXmlNode *) 0 ;
wxXmlNode *arg3 = (wxXmlNode *) 0 ;
+ bool result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
arg3 = reinterpret_cast< wxXmlNode * >(argp3);
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- (arg1)->InsertChild(arg2,arg3);
+ result = (bool)(arg1)->InsertChild(arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
- resultobj = SWIG_Py_Void();
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
return resultobj;
fail:
return NULL;
}
+SWIGINTERN PyObject *_wrap_XmlNode_IsWhitespaceOnly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ wxXmlNode *arg1 = (wxXmlNode *) 0 ;
+ bool result;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject *swig_obj[1] ;
+
+ if (!args) SWIG_fail;
+ swig_obj[0] = args;
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_IsWhitespaceOnly" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlNode * >(argp1);
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (bool)((wxXmlNode const *)arg1)->IsWhitespaceOnly();
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ {
+ resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
+ }
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_XmlNode_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
+ PyObject *resultobj = 0;
+ wxXmlNode *arg1 = (wxXmlNode *) 0 ;
+ wxXmlNode *arg2 = (wxXmlNode *) NULL ;
+ int result;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ PyObject * obj0 = 0 ;
+ PyObject * obj1 = 0 ;
+ char * kwnames[] = {
+ (char *) "self",(char *) "grandparent", NULL
+ };
+
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:XmlNode_GetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetDepth" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlNode * >(argp1);
+ if (obj1) {
+ res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxXmlNode, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "XmlNode_GetDepth" "', expected argument " "2"" of type '" "wxXmlNode *""'");
+ }
+ arg2 = reinterpret_cast< wxXmlNode * >(argp2);
+ }
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (int)((wxXmlNode const *)arg1)->GetDepth(arg2);
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_From_int(static_cast< int >(result));
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_XmlNode_GetNodeContent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ wxXmlNode *arg1 = (wxXmlNode *) 0 ;
+ wxString result;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject *swig_obj[1] ;
+
+ if (!args) SWIG_fail;
+ swig_obj[0] = args;
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlNode, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlNode_GetNodeContent" "', expected argument " "1"" of type '" "wxXmlNode const *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlNode * >(argp1);
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = ((wxXmlNode const *)arg1)->GetNodeContent();
+ 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;
+}
+
+
SWIGINTERN PyObject *_wrap_XmlNode_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
wxXmlNode *arg1 = (wxXmlNode *) 0 ;
wxString *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyUTF8String ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
+ int arg4 = (int) wxXMLDOC_NONE ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
bool temp2 = false ;
bool temp3 = false ;
+ int val4 ;
+ int ecode4 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
char * kwnames[] = {
- (char *) "self",(char *) "filename",(char *) "encoding", NULL
+ (char *) "self",(char *) "filename",(char *) "encoding",(char *) "flags", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_Load",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Load" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
temp3 = true;
}
}
+ if (obj3) {
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_Load" "', expected argument " "4"" of type '" "int""'");
+ }
+ arg4 = static_cast< int >(val4);
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3);
+ result = (bool)(arg1)->Load((wxString const &)*arg2,(wxString const &)*arg3,arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
wxInputStream *arg2 = 0 ;
wxString const &arg3_defvalue = wxPyUTF8String ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
+ int arg4 = (int) wxXMLDOC_NONE ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
wxPyInputStream *temp2 ;
bool created2 ;
bool temp3 = false ;
+ int val4 ;
+ int ecode4 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
PyObject * obj2 = 0 ;
+ PyObject * obj3 = 0 ;
char * kwnames[] = {
- (char *) "self",(char *) "stream",(char *) "encoding", NULL
+ (char *) "self",(char *) "stream",(char *) "encoding",(char *) "flags", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:XmlDocument_LoadFromStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
temp3 = true;
}
}
+ if (obj3) {
+ ecode4 = SWIG_AsVal_int(obj3, &val4);
+ if (!SWIG_IsOK(ecode4)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "XmlDocument_LoadFromStream" "', expected argument " "4"" of type '" "int""'");
+ }
+ arg4 = static_cast< int >(val4);
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3);
+ result = (bool)(arg1)->Load(*arg2,(wxString const &)*arg3,arg4);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
PyObject *resultobj = 0;
wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
wxString *arg2 = 0 ;
+ int arg3 = (int) 1 ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
bool temp2 = false ;
+ int val3 ;
+ int ecode3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
char * kwnames[] = {
- (char *) "self",(char *) "filename", NULL
+ (char *) "self",(char *) "filename",(char *) "indentstep", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_Save",kwnames,&obj0,&obj1)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_Save",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_Save" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
if (arg2 == NULL) SWIG_fail;
temp2 = true;
}
+ if (obj2) {
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_Save" "', expected argument " "3"" of type '" "int""'");
+ }
+ arg3 = static_cast< int >(val3);
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2);
+ result = (bool)((wxXmlDocument const *)arg1)->Save((wxString const &)*arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
PyObject *resultobj = 0;
wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
wxOutputStream *arg2 = 0 ;
+ int arg3 = (int) 1 ;
bool result;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
+ int val3 ;
+ int ecode3 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
+ PyObject * obj2 = 0 ;
char * kwnames[] = {
- (char *) "self",(char *) "stream", NULL
+ (char *) "self",(char *) "stream",(char *) "indentstep", NULL
};
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:XmlDocument_SaveToStream",kwnames,&obj0,&obj1)) SWIG_fail;
+ if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:XmlDocument_SaveToStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_SaveToStream" "', expected argument " "1"" of type '" "wxXmlDocument const *""'");
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "XmlDocument_SaveToStream" "', expected argument " "2"" of type '" "wxOutputStream &""'");
}
arg2 = reinterpret_cast< wxOutputStream * >(argp2);
+ if (obj2) {
+ ecode3 = SWIG_AsVal_int(obj2, &val3);
+ if (!SWIG_IsOK(ecode3)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "XmlDocument_SaveToStream" "', expected argument " "3"" of type '" "int""'");
+ }
+ arg3 = static_cast< int >(val3);
+ }
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
- result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2);
+ result = (bool)((wxXmlDocument const *)arg1)->Save(*arg2,arg3);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
}
+SWIGINTERN PyObject *_wrap_XmlDocument_DetachRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
+ wxXmlNode *result = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject *swig_obj[1] ;
+
+ if (!args) SWIG_fail;
+ swig_obj[0] = args;
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxXmlDocument, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "XmlDocument_DetachRoot" "', expected argument " "1"" of type '" "wxXmlDocument *""'");
+ }
+ arg1 = reinterpret_cast< wxXmlDocument * >(argp1);
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ result = (wxXmlNode *)(arg1)->DetachRoot();
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXmlNode, 0 | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
SWIGINTERN PyObject *_wrap_XmlDocument_SetRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxXmlDocument *arg1 = (wxXmlDocument *) 0 ;
}
+SWIGINTERN PyObject *_wrap_delete_XmlResourceHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject *swig_obj[1] ;
+
+ if (!args) SWIG_fail;
+ swig_obj[0] = args;
+ res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyXmlResourceHandler, SWIG_POINTER_DISOWN | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_XmlResourceHandler" "', expected argument " "1"" of type '" "wxPyXmlResourceHandler *""'");
+ }
+ arg1 = reinterpret_cast< wxPyXmlResourceHandler * >(argp1);
+ {
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ delete arg1;
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) SWIG_fail;
+ }
+ resultobj = SWIG_Py_Void();
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
SWIGINTERN PyObject *_wrap_XmlResourceHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ;
{ (char *)"XmlResource_Set", (PyCFunction) _wrap_XmlResource_Set, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlResource_GetFlags", (PyCFunction)_wrap_XmlResource_GetFlags, METH_O, NULL},
{ (char *)"XmlResource_SetFlags", (PyCFunction) _wrap_XmlResource_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
+ { (char *)"XmlResource_GetDomain", (PyCFunction)_wrap_XmlResource_GetDomain, METH_O, NULL},
+ { (char *)"XmlResource_SetDomain", (PyCFunction) _wrap_XmlResource_SetDomain, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlResource_swigregister", XmlResource_swigregister, METH_VARARGS, NULL},
{ (char *)"XmlResource_swiginit", XmlResource_swiginit, METH_VARARGS, NULL},
{ (char *)"new_XmlSubclassFactory", (PyCFunction)_wrap_new_XmlSubclassFactory, METH_NOARGS, NULL},
{ (char *)"XmlNode_GetType", (PyCFunction)_wrap_XmlNode_GetType, METH_O, NULL},
{ (char *)"XmlNode_GetName", (PyCFunction)_wrap_XmlNode_GetName, METH_O, NULL},
{ (char *)"XmlNode_GetContent", (PyCFunction)_wrap_XmlNode_GetContent, METH_O, NULL},
+ { (char *)"XmlNode_IsWhitespaceOnly", (PyCFunction)_wrap_XmlNode_IsWhitespaceOnly, METH_O, NULL},
+ { (char *)"XmlNode_GetDepth", (PyCFunction) _wrap_XmlNode_GetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
+ { (char *)"XmlNode_GetNodeContent", (PyCFunction)_wrap_XmlNode_GetNodeContent, METH_O, NULL},
{ (char *)"XmlNode_GetParent", (PyCFunction)_wrap_XmlNode_GetParent, METH_O, NULL},
{ (char *)"XmlNode_GetNext", (PyCFunction)_wrap_XmlNode_GetNext, METH_O, NULL},
{ (char *)"XmlNode_GetChildren", (PyCFunction)_wrap_XmlNode_GetChildren, METH_O, NULL},
{ (char *)"XmlDocument_GetRoot", (PyCFunction)_wrap_XmlDocument_GetRoot, METH_O, NULL},
{ (char *)"XmlDocument_GetVersion", (PyCFunction)_wrap_XmlDocument_GetVersion, METH_O, NULL},
{ (char *)"XmlDocument_GetFileEncoding", (PyCFunction)_wrap_XmlDocument_GetFileEncoding, METH_O, NULL},
+ { (char *)"XmlDocument_DetachRoot", (PyCFunction)_wrap_XmlDocument_DetachRoot, METH_O, NULL},
{ (char *)"XmlDocument_SetRoot", (PyCFunction) _wrap_XmlDocument_SetRoot, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlDocument_SetVersion", (PyCFunction) _wrap_XmlDocument_SetVersion, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlDocument_SetFileEncoding", (PyCFunction) _wrap_XmlDocument_SetFileEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlDocument_swigregister", XmlDocument_swigregister, METH_VARARGS, NULL},
{ (char *)"XmlDocument_swiginit", XmlDocument_swiginit, METH_VARARGS, NULL},
{ (char *)"new_XmlResourceHandler", (PyCFunction)_wrap_new_XmlResourceHandler, METH_NOARGS, NULL},
+ { (char *)"delete_XmlResourceHandler", (PyCFunction)_wrap_delete_XmlResourceHandler, METH_O, NULL},
{ (char *)"XmlResourceHandler__setCallbackInfo", (PyCFunction) _wrap_XmlResourceHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlResourceHandler_CreateResource", (PyCFunction) _wrap_XmlResourceHandler_CreateResource, METH_VARARGS | METH_KEYWORDS, NULL},
{ (char *)"XmlResourceHandler_SetParentResource", (PyCFunction) _wrap_XmlResourceHandler_SetParentResource, METH_VARARGS | METH_KEYWORDS, NULL},
SWIG_Python_SetConstant(d, "XML_DOCUMENT_FRAG_NODE",SWIG_From_int(static_cast< int >(wxXML_DOCUMENT_FRAG_NODE)));
SWIG_Python_SetConstant(d, "XML_NOTATION_NODE",SWIG_From_int(static_cast< int >(wxXML_NOTATION_NODE)));
SWIG_Python_SetConstant(d, "XML_HTML_DOCUMENT_NODE",SWIG_From_int(static_cast< int >(wxXML_HTML_DOCUMENT_NODE)));
+ SWIG_Python_SetConstant(d, "XML_NO_INDENTATION",SWIG_From_int(static_cast< int >(wxXML_NO_INDENTATION)));
+ SWIG_Python_SetConstant(d, "XMLDOC_NONE",SWIG_From_int(static_cast< int >(wxXMLDOC_NONE)));
+ SWIG_Python_SetConstant(d, "XMLDOC_KEEP_WHITESPACE_NODES",SWIG_From_int(static_cast< int >(wxXMLDOC_KEEP_WHITESPACE_NODES)));
wxXmlInitResourceModule();