1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_xml.h"
11 
12         #include <wx/xml/xml.h>
13 
14         #include <wx/stream.h>
15         #include <wx/versioninfo.h>
16         #include <wx/xml/xml.h>
17         #include <wx/stream.h>
18         #include <wx/object.h>
19         #include <wx/object.h>
20         #include <wx/object.h>
21 
22 
23 class sipwxXmlDocument : public  ::wxXmlDocument
24 {
25 public:
26     sipwxXmlDocument();
27     sipwxXmlDocument(const  ::wxXmlDocument&);
28     sipwxXmlDocument(const  ::wxString&,const  ::wxString&);
29     sipwxXmlDocument( ::wxInputStream&,const  ::wxString&);
30     virtual ~sipwxXmlDocument();
31 
32     /*
33      * There is a protected method for every virtual method visible from
34      * this class.
35      */
36 protected:
37     bool Save( ::wxOutputStream&,int) const SIP_OVERRIDE;
38     bool Save(const  ::wxString&,int) const SIP_OVERRIDE;
39     bool Load( ::wxInputStream&,const  ::wxString&,int) SIP_OVERRIDE;
40     bool Load(const  ::wxString&,const  ::wxString&,int) SIP_OVERRIDE;
41 
42 public:
43     sipSimpleWrapper *sipPySelf;
44 
45 private:
46     sipwxXmlDocument(const sipwxXmlDocument &);
47     sipwxXmlDocument &operator = (const sipwxXmlDocument &);
48 
49     char sipPyMethods[4];
50 };
51 
sipwxXmlDocument()52 sipwxXmlDocument::sipwxXmlDocument():  ::wxXmlDocument(), sipPySelf(SIP_NULLPTR)
53 {
54     memset(sipPyMethods, 0, sizeof (sipPyMethods));
55 }
56 
sipwxXmlDocument(const::wxXmlDocument & doc)57 sipwxXmlDocument::sipwxXmlDocument(const  ::wxXmlDocument& doc):  ::wxXmlDocument(doc), sipPySelf(SIP_NULLPTR)
58 {
59     memset(sipPyMethods, 0, sizeof (sipPyMethods));
60 }
61 
sipwxXmlDocument(const::wxString & filename,const::wxString & encoding)62 sipwxXmlDocument::sipwxXmlDocument(const  ::wxString& filename,const  ::wxString& encoding):  ::wxXmlDocument(filename,encoding), sipPySelf(SIP_NULLPTR)
63 {
64     memset(sipPyMethods, 0, sizeof (sipPyMethods));
65 }
66 
sipwxXmlDocument(::wxInputStream & stream,const::wxString & encoding)67 sipwxXmlDocument::sipwxXmlDocument( ::wxInputStream& stream,const  ::wxString& encoding):  ::wxXmlDocument(stream,encoding), sipPySelf(SIP_NULLPTR)
68 {
69     memset(sipPyMethods, 0, sizeof (sipPyMethods));
70 }
71 
~sipwxXmlDocument()72 sipwxXmlDocument::~sipwxXmlDocument()
73 {
74     sipInstanceDestroyedEx(&sipPySelf);
75 }
76 
Save(::wxOutputStream & stream,int indentstep) const77 bool sipwxXmlDocument::Save( ::wxOutputStream& stream,int indentstep) const
78 {
79     sip_gilstate_t sipGILState;
80     PyObject *sipMeth;
81 
82     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_Save);
83 
84     if (!sipMeth)
85         return  ::wxXmlDocument::Save(stream,indentstep);
86 
87     extern bool sipVH__xml_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxOutputStream&,int);
88 
89     return sipVH__xml_9(sipGILState, 0, sipPySelf, sipMeth, stream, indentstep);
90 }
91 
Save(const::wxString & filename,int indentstep) const92 bool sipwxXmlDocument::Save(const  ::wxString& filename,int indentstep) const
93 {
94     sip_gilstate_t sipGILState;
95     PyObject *sipMeth;
96 
97     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_Save);
98 
99     if (!sipMeth)
100         return  ::wxXmlDocument::Save(filename,indentstep);
101 
102     extern bool sipVH__xml_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxString&,int);
103 
104     return sipVH__xml_8(sipGILState, 0, sipPySelf, sipMeth, filename, indentstep);
105 }
106 
Load(::wxInputStream & stream,const::wxString & encoding,int flags)107 bool sipwxXmlDocument::Load( ::wxInputStream& stream,const  ::wxString& encoding,int flags)
108 {
109     sip_gilstate_t sipGILState;
110     PyObject *sipMeth;
111 
112     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_Load);
113 
114     if (!sipMeth)
115         return  ::wxXmlDocument::Load(stream,encoding,flags);
116 
117     extern bool sipVH__xml_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxInputStream&,const  ::wxString&,int);
118 
119     return sipVH__xml_7(sipGILState, 0, sipPySelf, sipMeth, stream, encoding, flags);
120 }
121 
Load(const::wxString & filename,const::wxString & encoding,int flags)122 bool sipwxXmlDocument::Load(const  ::wxString& filename,const  ::wxString& encoding,int flags)
123 {
124     sip_gilstate_t sipGILState;
125     PyObject *sipMeth;
126 
127     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_Load);
128 
129     if (!sipMeth)
130         return  ::wxXmlDocument::Load(filename,encoding,flags);
131 
132     extern bool sipVH__xml_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxString&,const  ::wxString&,int);
133 
134     return sipVH__xml_6(sipGILState, 0, sipPySelf, sipMeth, filename, encoding, flags);
135 }
136 
137 
138 PyDoc_STRVAR(doc_wxXmlDocument_AppendToProlog, "AppendToProlog(node)\n"
139 "\n"
140 "Appends a Process Instruction or Comment node to the document\n"
141 "prologue.");
142 
143 extern "C" {static PyObject *meth_wxXmlDocument_AppendToProlog(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_AppendToProlog(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)144 static PyObject *meth_wxXmlDocument_AppendToProlog(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
145 {
146     PyObject *sipParseErr = SIP_NULLPTR;
147 
148     {
149          ::wxXmlNode* node;
150          ::wxXmlDocument *sipCpp;
151 
152         static const char *sipKwdList[] = {
153             sipName_node,
154         };
155 
156         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxXmlNode, &node))
157         {
158             PyErr_Clear();
159 
160             Py_BEGIN_ALLOW_THREADS
161             sipCpp->AppendToProlog(node);
162             Py_END_ALLOW_THREADS
163 
164             if (PyErr_Occurred())
165                 return 0;
166 
167             Py_INCREF(Py_None);
168             return Py_None;
169         }
170     }
171 
172     /* Raise an exception if the arguments couldn't be parsed. */
173     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_AppendToProlog, SIP_NULLPTR);
174 
175     return SIP_NULLPTR;
176 }
177 
178 
179 PyDoc_STRVAR(doc_wxXmlDocument_DetachDocumentNode, "DetachDocumentNode() -> XmlNode\n"
180 "\n"
181 "Detaches the document node and returns it.");
182 
183 extern "C" {static PyObject *meth_wxXmlDocument_DetachDocumentNode(PyObject *, PyObject *);}
meth_wxXmlDocument_DetachDocumentNode(PyObject * sipSelf,PyObject * sipArgs)184 static PyObject *meth_wxXmlDocument_DetachDocumentNode(PyObject *sipSelf, PyObject *sipArgs)
185 {
186     PyObject *sipParseErr = SIP_NULLPTR;
187 
188     {
189          ::wxXmlDocument *sipCpp;
190 
191         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
192         {
193              ::wxXmlNode*sipRes;
194 
195             PyErr_Clear();
196 
197             Py_BEGIN_ALLOW_THREADS
198             sipRes = sipCpp->DetachDocumentNode();
199             Py_END_ALLOW_THREADS
200 
201             if (PyErr_Occurred())
202                 return 0;
203 
204             return sipConvertFromType(sipRes,sipType_wxXmlNode,Py_None);
205         }
206     }
207 
208     /* Raise an exception if the arguments couldn't be parsed. */
209     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_DetachDocumentNode, SIP_NULLPTR);
210 
211     return SIP_NULLPTR;
212 }
213 
214 
215 PyDoc_STRVAR(doc_wxXmlDocument_DetachRoot, "DetachRoot() -> XmlNode\n"
216 "\n"
217 "Detaches the root entity node and returns it.");
218 
219 extern "C" {static PyObject *meth_wxXmlDocument_DetachRoot(PyObject *, PyObject *);}
meth_wxXmlDocument_DetachRoot(PyObject * sipSelf,PyObject * sipArgs)220 static PyObject *meth_wxXmlDocument_DetachRoot(PyObject *sipSelf, PyObject *sipArgs)
221 {
222     PyObject *sipParseErr = SIP_NULLPTR;
223 
224     {
225          ::wxXmlDocument *sipCpp;
226 
227         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
228         {
229              ::wxXmlNode*sipRes;
230 
231             PyErr_Clear();
232 
233             Py_BEGIN_ALLOW_THREADS
234             sipRes = sipCpp->DetachRoot();
235             Py_END_ALLOW_THREADS
236 
237             if (PyErr_Occurred())
238                 return 0;
239 
240             return sipConvertFromType(sipRes,sipType_wxXmlNode,Py_None);
241         }
242     }
243 
244     /* Raise an exception if the arguments couldn't be parsed. */
245     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_DetachRoot, SIP_NULLPTR);
246 
247     return SIP_NULLPTR;
248 }
249 
250 
251 PyDoc_STRVAR(doc_wxXmlDocument_GetFileEncoding, "GetFileEncoding() -> String\n"
252 "\n"
253 "Returns encoding of document (may be empty).");
254 
255 extern "C" {static PyObject *meth_wxXmlDocument_GetFileEncoding(PyObject *, PyObject *);}
meth_wxXmlDocument_GetFileEncoding(PyObject * sipSelf,PyObject * sipArgs)256 static PyObject *meth_wxXmlDocument_GetFileEncoding(PyObject *sipSelf, PyObject *sipArgs)
257 {
258     PyObject *sipParseErr = SIP_NULLPTR;
259 
260     {
261         const  ::wxXmlDocument *sipCpp;
262 
263         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
264         {
265              ::wxString*sipRes;
266 
267             PyErr_Clear();
268 
269             Py_BEGIN_ALLOW_THREADS
270             sipRes = new  ::wxString(sipCpp->GetFileEncoding());
271             Py_END_ALLOW_THREADS
272 
273             if (PyErr_Occurred())
274                 return 0;
275 
276             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
277         }
278     }
279 
280     /* Raise an exception if the arguments couldn't be parsed. */
281     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_GetFileEncoding, SIP_NULLPTR);
282 
283     return SIP_NULLPTR;
284 }
285 
286 
287 PyDoc_STRVAR(doc_wxXmlDocument_GetDocumentNode, "GetDocumentNode() -> XmlNode\n"
288 "\n"
289 "Returns the document node of the document.");
290 
291 extern "C" {static PyObject *meth_wxXmlDocument_GetDocumentNode(PyObject *, PyObject *);}
meth_wxXmlDocument_GetDocumentNode(PyObject * sipSelf,PyObject * sipArgs)292 static PyObject *meth_wxXmlDocument_GetDocumentNode(PyObject *sipSelf, PyObject *sipArgs)
293 {
294     PyObject *sipParseErr = SIP_NULLPTR;
295 
296     {
297         const  ::wxXmlDocument *sipCpp;
298 
299         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
300         {
301              ::wxXmlNode*sipRes;
302 
303             PyErr_Clear();
304 
305             Py_BEGIN_ALLOW_THREADS
306             sipRes = sipCpp->GetDocumentNode();
307             Py_END_ALLOW_THREADS
308 
309             if (PyErr_Occurred())
310                 return 0;
311 
312             return sipConvertFromType(sipRes,sipType_wxXmlNode,SIP_NULLPTR);
313         }
314     }
315 
316     /* Raise an exception if the arguments couldn't be parsed. */
317     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_GetDocumentNode, SIP_NULLPTR);
318 
319     return SIP_NULLPTR;
320 }
321 
322 
323 PyDoc_STRVAR(doc_wxXmlDocument_GetRoot, "GetRoot() -> XmlNode\n"
324 "\n"
325 "Returns the root element node of the document.");
326 
327 extern "C" {static PyObject *meth_wxXmlDocument_GetRoot(PyObject *, PyObject *);}
meth_wxXmlDocument_GetRoot(PyObject * sipSelf,PyObject * sipArgs)328 static PyObject *meth_wxXmlDocument_GetRoot(PyObject *sipSelf, PyObject *sipArgs)
329 {
330     PyObject *sipParseErr = SIP_NULLPTR;
331 
332     {
333         const  ::wxXmlDocument *sipCpp;
334 
335         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
336         {
337              ::wxXmlNode*sipRes;
338 
339             PyErr_Clear();
340 
341             Py_BEGIN_ALLOW_THREADS
342             sipRes = sipCpp->GetRoot();
343             Py_END_ALLOW_THREADS
344 
345             if (PyErr_Occurred())
346                 return 0;
347 
348             return sipConvertFromType(sipRes,sipType_wxXmlNode,SIP_NULLPTR);
349         }
350     }
351 
352     /* Raise an exception if the arguments couldn't be parsed. */
353     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_GetRoot, SIP_NULLPTR);
354 
355     return SIP_NULLPTR;
356 }
357 
358 
359 PyDoc_STRVAR(doc_wxXmlDocument_GetVersion, "GetVersion() -> String\n"
360 "\n"
361 "Returns the version of document.");
362 
363 extern "C" {static PyObject *meth_wxXmlDocument_GetVersion(PyObject *, PyObject *);}
meth_wxXmlDocument_GetVersion(PyObject * sipSelf,PyObject * sipArgs)364 static PyObject *meth_wxXmlDocument_GetVersion(PyObject *sipSelf, PyObject *sipArgs)
365 {
366     PyObject *sipParseErr = SIP_NULLPTR;
367 
368     {
369         const  ::wxXmlDocument *sipCpp;
370 
371         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
372         {
373              ::wxString*sipRes;
374 
375             PyErr_Clear();
376 
377             Py_BEGIN_ALLOW_THREADS
378             sipRes = new  ::wxString(sipCpp->GetVersion());
379             Py_END_ALLOW_THREADS
380 
381             if (PyErr_Occurred())
382                 return 0;
383 
384             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
385         }
386     }
387 
388     /* Raise an exception if the arguments couldn't be parsed. */
389     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_GetVersion, SIP_NULLPTR);
390 
391     return SIP_NULLPTR;
392 }
393 
394 
395 PyDoc_STRVAR(doc_wxXmlDocument_IsOk, "IsOk() -> bool\n"
396 "\n"
397 "Returns true if the document has been loaded successfully.");
398 
399 extern "C" {static PyObject *meth_wxXmlDocument_IsOk(PyObject *, PyObject *);}
meth_wxXmlDocument_IsOk(PyObject * sipSelf,PyObject * sipArgs)400 static PyObject *meth_wxXmlDocument_IsOk(PyObject *sipSelf, PyObject *sipArgs)
401 {
402     PyObject *sipParseErr = SIP_NULLPTR;
403 
404     {
405         const  ::wxXmlDocument *sipCpp;
406 
407         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxXmlDocument, &sipCpp))
408         {
409             bool sipRes;
410 
411             PyErr_Clear();
412 
413             Py_BEGIN_ALLOW_THREADS
414             sipRes = sipCpp->IsOk();
415             Py_END_ALLOW_THREADS
416 
417             if (PyErr_Occurred())
418                 return 0;
419 
420             return PyBool_FromLong(sipRes);
421         }
422     }
423 
424     /* Raise an exception if the arguments couldn't be parsed. */
425     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_IsOk, SIP_NULLPTR);
426 
427     return SIP_NULLPTR;
428 }
429 
430 
431 PyDoc_STRVAR(doc_wxXmlDocument_Load, "Load(filename, encoding=\"UTF-8\", flags=XMLDOC_NONE) -> bool\n"
432 "Load(stream, encoding=\"UTF-8\", flags=XMLDOC_NONE) -> bool\n"
433 "\n"
434 "Parses filename as an xml document and loads its data.\n"
435 "");
436 
437 extern "C" {static PyObject *meth_wxXmlDocument_Load(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_Load(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)438 static PyObject *meth_wxXmlDocument_Load(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
439 {
440     PyObject *sipParseErr = SIP_NULLPTR;
441     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
442 
443     {
444         const  ::wxString* filename;
445         int filenameState = 0;
446         const  ::wxString& encodingdef = "UTF-8";
447         const  ::wxString* encoding = &encodingdef;
448         int encodingState = 0;
449         int flags = wxXMLDOC_NONE;
450          ::wxXmlDocument *sipCpp;
451 
452         static const char *sipKwdList[] = {
453             sipName_filename,
454             sipName_encoding,
455             sipName_flags,
456         };
457 
458         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J1i", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxString,&filename, &filenameState, sipType_wxString,&encoding, &encodingState, &flags))
459         {
460             bool sipRes;
461 
462             PyErr_Clear();
463 
464             Py_BEGIN_ALLOW_THREADS
465             sipRes = (sipSelfWasArg ? sipCpp-> ::wxXmlDocument::Load(*filename,*encoding,flags) : sipCpp->Load(*filename,*encoding,flags));
466             Py_END_ALLOW_THREADS
467             sipReleaseType(const_cast< ::wxString *>(filename),sipType_wxString,filenameState);
468             sipReleaseType(const_cast< ::wxString *>(encoding),sipType_wxString,encodingState);
469 
470             if (PyErr_Occurred())
471                 return 0;
472 
473             return PyBool_FromLong(sipRes);
474         }
475     }
476 
477     {
478          ::wxInputStream* stream;
479         int streamState = 0;
480         const  ::wxString& encodingdef = "UTF-8";
481         const  ::wxString* encoding = &encodingdef;
482         int encodingState = 0;
483         int flags = wxXMLDOC_NONE;
484          ::wxXmlDocument *sipCpp;
485 
486         static const char *sipKwdList[] = {
487             sipName_stream,
488             sipName_encoding,
489             sipName_flags,
490         };
491 
492         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|J1i", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxInputStream, &stream, &streamState, sipType_wxString,&encoding, &encodingState, &flags))
493         {
494             bool sipRes;
495 
496             PyErr_Clear();
497 
498             Py_BEGIN_ALLOW_THREADS
499             sipRes = (sipSelfWasArg ? sipCpp-> ::wxXmlDocument::Load(*stream,*encoding,flags) : sipCpp->Load(*stream,*encoding,flags));
500             Py_END_ALLOW_THREADS
501             sipReleaseType(stream,sipType_wxInputStream,streamState);
502             sipReleaseType(const_cast< ::wxString *>(encoding),sipType_wxString,encodingState);
503 
504             if (PyErr_Occurred())
505                 return 0;
506 
507             return PyBool_FromLong(sipRes);
508         }
509     }
510 
511     /* Raise an exception if the arguments couldn't be parsed. */
512     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_Load, SIP_NULLPTR);
513 
514     return SIP_NULLPTR;
515 }
516 
517 
518 PyDoc_STRVAR(doc_wxXmlDocument_Save, "Save(filename, indentstep=2) -> bool\n"
519 "Save(stream, indentstep=2) -> bool\n"
520 "\n"
521 "Saves XML tree creating a file named with given string.\n"
522 "");
523 
524 extern "C" {static PyObject *meth_wxXmlDocument_Save(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_Save(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)525 static PyObject *meth_wxXmlDocument_Save(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
526 {
527     PyObject *sipParseErr = SIP_NULLPTR;
528     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
529 
530     {
531         const  ::wxString* filename;
532         int filenameState = 0;
533         int indentstep = 2;
534         const  ::wxXmlDocument *sipCpp;
535 
536         static const char *sipKwdList[] = {
537             sipName_filename,
538             sipName_indentstep,
539         };
540 
541         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|i", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxString,&filename, &filenameState, &indentstep))
542         {
543             bool sipRes;
544 
545             PyErr_Clear();
546 
547             Py_BEGIN_ALLOW_THREADS
548             sipRes = (sipSelfWasArg ? sipCpp-> ::wxXmlDocument::Save(*filename,indentstep) : sipCpp->Save(*filename,indentstep));
549             Py_END_ALLOW_THREADS
550             sipReleaseType(const_cast< ::wxString *>(filename),sipType_wxString,filenameState);
551 
552             if (PyErr_Occurred())
553                 return 0;
554 
555             return PyBool_FromLong(sipRes);
556         }
557     }
558 
559     {
560          ::wxOutputStream* stream;
561         int streamState = 0;
562         int indentstep = 2;
563         const  ::wxXmlDocument *sipCpp;
564 
565         static const char *sipKwdList[] = {
566             sipName_stream,
567             sipName_indentstep,
568         };
569 
570         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|i", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxOutputStream, &stream, &streamState, &indentstep))
571         {
572             bool sipRes;
573 
574             PyErr_Clear();
575 
576             Py_BEGIN_ALLOW_THREADS
577             sipRes = (sipSelfWasArg ? sipCpp-> ::wxXmlDocument::Save(*stream,indentstep) : sipCpp->Save(*stream,indentstep));
578             Py_END_ALLOW_THREADS
579             sipReleaseType(stream,sipType_wxOutputStream,streamState);
580 
581             if (PyErr_Occurred())
582                 return 0;
583 
584             return PyBool_FromLong(sipRes);
585         }
586     }
587 
588     /* Raise an exception if the arguments couldn't be parsed. */
589     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_Save, SIP_NULLPTR);
590 
591     return SIP_NULLPTR;
592 }
593 
594 
595 PyDoc_STRVAR(doc_wxXmlDocument_SetDocumentNode, "SetDocumentNode(node)\n"
596 "\n"
597 "Sets the document node of this document.");
598 
599 extern "C" {static PyObject *meth_wxXmlDocument_SetDocumentNode(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_SetDocumentNode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)600 static PyObject *meth_wxXmlDocument_SetDocumentNode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
601 {
602     PyObject *sipParseErr = SIP_NULLPTR;
603 
604     {
605          ::wxXmlNode* node;
606          ::wxXmlDocument *sipCpp;
607 
608         static const char *sipKwdList[] = {
609             sipName_node,
610         };
611 
612         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxXmlNode, &node))
613         {
614             PyErr_Clear();
615 
616             Py_BEGIN_ALLOW_THREADS
617             sipCpp->SetDocumentNode(node);
618             Py_END_ALLOW_THREADS
619 
620             if (PyErr_Occurred())
621                 return 0;
622 
623             Py_INCREF(Py_None);
624             return Py_None;
625         }
626     }
627 
628     /* Raise an exception if the arguments couldn't be parsed. */
629     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_SetDocumentNode, SIP_NULLPTR);
630 
631     return SIP_NULLPTR;
632 }
633 
634 
635 PyDoc_STRVAR(doc_wxXmlDocument_SetFileEncoding, "SetFileEncoding(encoding)\n"
636 "\n"
637 "Sets the encoding of the file which will be used to save the document.");
638 
639 extern "C" {static PyObject *meth_wxXmlDocument_SetFileEncoding(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_SetFileEncoding(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)640 static PyObject *meth_wxXmlDocument_SetFileEncoding(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
641 {
642     PyObject *sipParseErr = SIP_NULLPTR;
643 
644     {
645         const  ::wxString* encoding;
646         int encodingState = 0;
647          ::wxXmlDocument *sipCpp;
648 
649         static const char *sipKwdList[] = {
650             sipName_encoding,
651         };
652 
653         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxString,&encoding, &encodingState))
654         {
655             PyErr_Clear();
656 
657             Py_BEGIN_ALLOW_THREADS
658             sipCpp->SetFileEncoding(*encoding);
659             Py_END_ALLOW_THREADS
660             sipReleaseType(const_cast< ::wxString *>(encoding),sipType_wxString,encodingState);
661 
662             if (PyErr_Occurred())
663                 return 0;
664 
665             Py_INCREF(Py_None);
666             return Py_None;
667         }
668     }
669 
670     /* Raise an exception if the arguments couldn't be parsed. */
671     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_SetFileEncoding, SIP_NULLPTR);
672 
673     return SIP_NULLPTR;
674 }
675 
676 
677 PyDoc_STRVAR(doc_wxXmlDocument_SetRoot, "SetRoot(node)\n"
678 "\n"
679 "Sets the root element node of this document.");
680 
681 extern "C" {static PyObject *meth_wxXmlDocument_SetRoot(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_SetRoot(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)682 static PyObject *meth_wxXmlDocument_SetRoot(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
683 {
684     PyObject *sipParseErr = SIP_NULLPTR;
685 
686     {
687          ::wxXmlNode* node;
688          ::wxXmlDocument *sipCpp;
689 
690         static const char *sipKwdList[] = {
691             sipName_node,
692         };
693 
694         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxXmlNode, &node))
695         {
696             PyErr_Clear();
697 
698             Py_BEGIN_ALLOW_THREADS
699             sipCpp->SetRoot(node);
700             Py_END_ALLOW_THREADS
701 
702             if (PyErr_Occurred())
703                 return 0;
704 
705             Py_INCREF(Py_None);
706             return Py_None;
707         }
708     }
709 
710     /* Raise an exception if the arguments couldn't be parsed. */
711     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_SetRoot, SIP_NULLPTR);
712 
713     return SIP_NULLPTR;
714 }
715 
716 
717 PyDoc_STRVAR(doc_wxXmlDocument_SetVersion, "SetVersion(version)\n"
718 "\n"
719 "Sets the version of the XML file which will be used to save the\n"
720 "document.");
721 
722 extern "C" {static PyObject *meth_wxXmlDocument_SetVersion(PyObject *, PyObject *, PyObject *);}
meth_wxXmlDocument_SetVersion(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)723 static PyObject *meth_wxXmlDocument_SetVersion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
724 {
725     PyObject *sipParseErr = SIP_NULLPTR;
726 
727     {
728         const  ::wxString* version;
729         int versionState = 0;
730          ::wxXmlDocument *sipCpp;
731 
732         static const char *sipKwdList[] = {
733             sipName_version,
734         };
735 
736         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxXmlDocument, &sipCpp, sipType_wxString,&version, &versionState))
737         {
738             PyErr_Clear();
739 
740             Py_BEGIN_ALLOW_THREADS
741             sipCpp->SetVersion(*version);
742             Py_END_ALLOW_THREADS
743             sipReleaseType(const_cast< ::wxString *>(version),sipType_wxString,versionState);
744 
745             if (PyErr_Occurred())
746                 return 0;
747 
748             Py_INCREF(Py_None);
749             return Py_None;
750         }
751     }
752 
753     /* Raise an exception if the arguments couldn't be parsed. */
754     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_SetVersion, SIP_NULLPTR);
755 
756     return SIP_NULLPTR;
757 }
758 
759 
760 PyDoc_STRVAR(doc_wxXmlDocument_GetLibraryVersionInfo, "GetLibraryVersionInfo() -> VersionInfo\n"
761 "\n"
762 "Get expat library version information.");
763 
764 extern "C" {static PyObject *meth_wxXmlDocument_GetLibraryVersionInfo(PyObject *, PyObject *);}
meth_wxXmlDocument_GetLibraryVersionInfo(PyObject *,PyObject * sipArgs)765 static PyObject *meth_wxXmlDocument_GetLibraryVersionInfo(PyObject *, PyObject *sipArgs)
766 {
767     PyObject *sipParseErr = SIP_NULLPTR;
768 
769     {
770         if (sipParseArgs(&sipParseErr, sipArgs, ""))
771         {
772              ::wxVersionInfo*sipRes;
773 
774             PyErr_Clear();
775 
776             Py_BEGIN_ALLOW_THREADS
777             sipRes = new  ::wxVersionInfo( ::wxXmlDocument::GetLibraryVersionInfo());
778             Py_END_ALLOW_THREADS
779 
780             if (PyErr_Occurred())
781                 return 0;
782 
783             return sipConvertFromNewType(sipRes,sipType_wxVersionInfo,SIP_NULLPTR);
784         }
785     }
786 
787     /* Raise an exception if the arguments couldn't be parsed. */
788     sipNoMethod(sipParseErr, sipName_XmlDocument, sipName_GetLibraryVersionInfo, SIP_NULLPTR);
789 
790     return SIP_NULLPTR;
791 }
792 
793 
794 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
795 extern "C" {static void *cast_wxXmlDocument(void *, const sipTypeDef *);}
cast_wxXmlDocument(void * sipCppV,const sipTypeDef * targetType)796 static void *cast_wxXmlDocument(void *sipCppV, const sipTypeDef *targetType)
797 {
798      ::wxXmlDocument *sipCpp = reinterpret_cast< ::wxXmlDocument *>(sipCppV);
799 
800     if (targetType == sipType_wxObject)
801         return static_cast< ::wxObject *>(sipCpp);
802 
803     return sipCppV;
804 }
805 
806 
807 /* Call the instance's destructor. */
808 extern "C" {static void release_wxXmlDocument(void *, int);}
release_wxXmlDocument(void * sipCppV,int sipState)809 static void release_wxXmlDocument(void *sipCppV, int sipState)
810 {
811     Py_BEGIN_ALLOW_THREADS
812 
813     if (sipState & SIP_DERIVED_CLASS)
814         delete reinterpret_cast<sipwxXmlDocument *>(sipCppV);
815     else
816         delete reinterpret_cast< ::wxXmlDocument *>(sipCppV);
817 
818     Py_END_ALLOW_THREADS
819 }
820 
821 
822 extern "C" {static void assign_wxXmlDocument(void *, SIP_SSIZE_T, void *);}
assign_wxXmlDocument(void * sipDst,SIP_SSIZE_T sipDstIdx,void * sipSrc)823 static void assign_wxXmlDocument(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
824 {
825     reinterpret_cast< ::wxXmlDocument *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxXmlDocument *>(sipSrc);
826 }
827 
828 
829 extern "C" {static void *array_wxXmlDocument(SIP_SSIZE_T);}
array_wxXmlDocument(SIP_SSIZE_T sipNrElem)830 static void *array_wxXmlDocument(SIP_SSIZE_T sipNrElem)
831 {
832     return new  ::wxXmlDocument[sipNrElem];
833 }
834 
835 
836 extern "C" {static void *copy_wxXmlDocument(const void *, SIP_SSIZE_T);}
copy_wxXmlDocument(const void * sipSrc,SIP_SSIZE_T sipSrcIdx)837 static void *copy_wxXmlDocument(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
838 {
839     return new  ::wxXmlDocument(reinterpret_cast<const  ::wxXmlDocument *>(sipSrc)[sipSrcIdx]);
840 }
841 
842 
843 extern "C" {static void dealloc_wxXmlDocument(sipSimpleWrapper *);}
dealloc_wxXmlDocument(sipSimpleWrapper * sipSelf)844 static void dealloc_wxXmlDocument(sipSimpleWrapper *sipSelf)
845 {
846     if (sipIsDerivedClass(sipSelf))
847         reinterpret_cast<sipwxXmlDocument *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
848 
849     if (sipIsOwnedByPython(sipSelf))
850     {
851         release_wxXmlDocument(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
852     }
853 }
854 
855 
856 extern "C" {static void *init_type_wxXmlDocument(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxXmlDocument(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)857 static void *init_type_wxXmlDocument(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
858 {
859     sipwxXmlDocument *sipCpp = SIP_NULLPTR;
860 
861     {
862         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
863         {
864             PyErr_Clear();
865 
866             Py_BEGIN_ALLOW_THREADS
867             sipCpp = new sipwxXmlDocument();
868             Py_END_ALLOW_THREADS
869 
870             if (PyErr_Occurred())
871             {
872                 delete sipCpp;
873                 return SIP_NULLPTR;
874             }
875 
876             sipCpp->sipPySelf = sipSelf;
877 
878             return sipCpp;
879         }
880     }
881 
882     {
883         const  ::wxXmlDocument* doc;
884 
885         static const char *sipKwdList[] = {
886             sipName_doc,
887         };
888 
889         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9", sipType_wxXmlDocument, &doc))
890         {
891             PyErr_Clear();
892 
893             Py_BEGIN_ALLOW_THREADS
894             sipCpp = new sipwxXmlDocument(*doc);
895             Py_END_ALLOW_THREADS
896 
897             if (PyErr_Occurred())
898             {
899                 delete sipCpp;
900                 return SIP_NULLPTR;
901             }
902 
903             sipCpp->sipPySelf = sipSelf;
904 
905             return sipCpp;
906         }
907     }
908 
909     {
910         const  ::wxString* filename;
911         int filenameState = 0;
912         const  ::wxString& encodingdef = "UTF-8";
913         const  ::wxString* encoding = &encodingdef;
914         int encodingState = 0;
915 
916         static const char *sipKwdList[] = {
917             sipName_filename,
918             sipName_encoding,
919         };
920 
921         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1", sipType_wxString,&filename, &filenameState, sipType_wxString,&encoding, &encodingState))
922         {
923             PyErr_Clear();
924 
925             Py_BEGIN_ALLOW_THREADS
926             sipCpp = new sipwxXmlDocument(*filename,*encoding);
927             Py_END_ALLOW_THREADS
928             sipReleaseType(const_cast< ::wxString *>(filename),sipType_wxString,filenameState);
929             sipReleaseType(const_cast< ::wxString *>(encoding),sipType_wxString,encodingState);
930 
931             if (PyErr_Occurred())
932             {
933                 delete sipCpp;
934                 return SIP_NULLPTR;
935             }
936 
937             sipCpp->sipPySelf = sipSelf;
938 
939             return sipCpp;
940         }
941     }
942 
943     {
944          ::wxInputStream* stream;
945         int streamState = 0;
946         const  ::wxString& encodingdef = "UTF-8";
947         const  ::wxString* encoding = &encodingdef;
948         int encodingState = 0;
949 
950         static const char *sipKwdList[] = {
951             sipName_stream,
952             sipName_encoding,
953         };
954 
955         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1", sipType_wxInputStream, &stream, &streamState, sipType_wxString,&encoding, &encodingState))
956         {
957             PyErr_Clear();
958 
959             Py_BEGIN_ALLOW_THREADS
960             sipCpp = new sipwxXmlDocument(*stream,*encoding);
961             Py_END_ALLOW_THREADS
962             sipReleaseType(stream,sipType_wxInputStream,streamState);
963             sipReleaseType(const_cast< ::wxString *>(encoding),sipType_wxString,encodingState);
964 
965             if (PyErr_Occurred())
966             {
967                 delete sipCpp;
968                 return SIP_NULLPTR;
969             }
970 
971             sipCpp->sipPySelf = sipSelf;
972 
973             return sipCpp;
974         }
975     }
976 
977     return SIP_NULLPTR;
978 }
979 
980 
981 /* Define this type's super-types. */
982 static sipEncodedTypeDef supers_wxXmlDocument[] = {{1, 0, 1}};
983 
984 
985 static PyMethodDef methods_wxXmlDocument[] = {
986     {SIP_MLNAME_CAST(sipName_AppendToProlog), SIP_MLMETH_CAST(meth_wxXmlDocument_AppendToProlog), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_AppendToProlog)},
987     {SIP_MLNAME_CAST(sipName_DetachDocumentNode), meth_wxXmlDocument_DetachDocumentNode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_DetachDocumentNode)},
988     {SIP_MLNAME_CAST(sipName_DetachRoot), meth_wxXmlDocument_DetachRoot, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_DetachRoot)},
989     {SIP_MLNAME_CAST(sipName_GetDocumentNode), meth_wxXmlDocument_GetDocumentNode, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_GetDocumentNode)},
990     {SIP_MLNAME_CAST(sipName_GetFileEncoding), meth_wxXmlDocument_GetFileEncoding, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_GetFileEncoding)},
991     {SIP_MLNAME_CAST(sipName_GetLibraryVersionInfo), meth_wxXmlDocument_GetLibraryVersionInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_GetLibraryVersionInfo)},
992     {SIP_MLNAME_CAST(sipName_GetRoot), meth_wxXmlDocument_GetRoot, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_GetRoot)},
993     {SIP_MLNAME_CAST(sipName_GetVersion), meth_wxXmlDocument_GetVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_GetVersion)},
994     {SIP_MLNAME_CAST(sipName_IsOk), meth_wxXmlDocument_IsOk, METH_VARARGS, SIP_MLDOC_CAST(doc_wxXmlDocument_IsOk)},
995     {SIP_MLNAME_CAST(sipName_Load), SIP_MLMETH_CAST(meth_wxXmlDocument_Load), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_Load)},
996     {SIP_MLNAME_CAST(sipName_Save), SIP_MLMETH_CAST(meth_wxXmlDocument_Save), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_Save)},
997     {SIP_MLNAME_CAST(sipName_SetDocumentNode), SIP_MLMETH_CAST(meth_wxXmlDocument_SetDocumentNode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_SetDocumentNode)},
998     {SIP_MLNAME_CAST(sipName_SetFileEncoding), SIP_MLMETH_CAST(meth_wxXmlDocument_SetFileEncoding), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_SetFileEncoding)},
999     {SIP_MLNAME_CAST(sipName_SetRoot), SIP_MLMETH_CAST(meth_wxXmlDocument_SetRoot), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_SetRoot)},
1000     {SIP_MLNAME_CAST(sipName_SetVersion), SIP_MLMETH_CAST(meth_wxXmlDocument_SetVersion), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxXmlDocument_SetVersion)}
1001 };
1002 
1003 sipVariableDef variables_wxXmlDocument[] = {
1004     {PropertyVariable, sipName_Version, &methods_wxXmlDocument[7], &methods_wxXmlDocument[14], SIP_NULLPTR, SIP_NULLPTR},
1005     {PropertyVariable, sipName_Root, &methods_wxXmlDocument[6], &methods_wxXmlDocument[13], SIP_NULLPTR, SIP_NULLPTR},
1006     {PropertyVariable, sipName_FileEncoding, &methods_wxXmlDocument[4], &methods_wxXmlDocument[12], SIP_NULLPTR, SIP_NULLPTR},
1007     {PropertyVariable, sipName_DocumentNode, &methods_wxXmlDocument[3], &methods_wxXmlDocument[11], SIP_NULLPTR, SIP_NULLPTR},
1008 };
1009 
1010 PyDoc_STRVAR(doc_wxXmlDocument, "XmlDocument()\n"
1011 "XmlDocument(doc)\n"
1012 "XmlDocument(filename, encoding=\"UTF-8\")\n"
1013 "XmlDocument(stream, encoding=\"UTF-8\")\n"
1014 "\n"
1015 "This class holds XML data/document as parsed by XML parser in the root\n"
1016 "node.");
1017 
1018 
1019 sipClassTypeDef sipTypeDef__xml_wxXmlDocument = {
1020     {
1021         -1,
1022         SIP_NULLPTR,
1023         SIP_NULLPTR,
1024         SIP_TYPE_SCC|SIP_TYPE_CLASS,
1025         sipNameNr_wxXmlDocument,
1026         {SIP_NULLPTR},
1027         SIP_NULLPTR
1028     },
1029     {
1030         sipNameNr_XmlDocument,
1031         {0, 0, 1},
1032         15, methods_wxXmlDocument,
1033         0, SIP_NULLPTR,
1034         4, variables_wxXmlDocument,
1035         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1036     },
1037     doc_wxXmlDocument,
1038     -1,
1039     -1,
1040     supers_wxXmlDocument,
1041     SIP_NULLPTR,
1042     init_type_wxXmlDocument,
1043     SIP_NULLPTR,
1044     SIP_NULLPTR,
1045 #if PY_MAJOR_VERSION >= 3
1046     SIP_NULLPTR,
1047     SIP_NULLPTR,
1048 #else
1049     SIP_NULLPTR,
1050     SIP_NULLPTR,
1051     SIP_NULLPTR,
1052     SIP_NULLPTR,
1053 #endif
1054     dealloc_wxXmlDocument,
1055     assign_wxXmlDocument,
1056     array_wxXmlDocument,
1057     copy_wxXmlDocument,
1058     release_wxXmlDocument,
1059     cast_wxXmlDocument,
1060     SIP_NULLPTR,
1061     SIP_NULLPTR,
1062     SIP_NULLPTR,
1063     SIP_NULLPTR,
1064     SIP_NULLPTR,
1065     SIP_NULLPTR
1066 };
1067