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_html.h"
11
12 #include <wx/html/htmlpars.h>
13
14 #include <wx/html/htmltag.h>
15 #include <wx/filesys.h>
16 #include <wx/html/htmlpars.h>
17 #include <wx/object.h>
18 #include <wx/filesys.h>
19
20
21 PyDoc_STRVAR(doc_wxHtmlParser_AddTagHandler, "AddTagHandler(handler)\n"
22 "\n"
23 "Adds handler to the internal list ( hash table) of handlers.");
24
25 extern "C" {static PyObject *meth_wxHtmlParser_AddTagHandler(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_AddTagHandler(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)26 static PyObject *meth_wxHtmlParser_AddTagHandler(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
27 {
28 PyObject *sipParseErr = SIP_NULLPTR;
29 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
30
31 {
32 ::wxHtmlTagHandler* handler;
33 ::wxHtmlParser *sipCpp;
34
35 static const char *sipKwdList[] = {
36 sipName_handler,
37 };
38
39 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxHtmlTagHandler, &handler))
40 {
41 PyErr_Clear();
42
43 Py_BEGIN_ALLOW_THREADS
44 (sipSelfWasArg ? sipCpp-> ::wxHtmlParser::AddTagHandler(handler) : sipCpp->AddTagHandler(handler));
45 Py_END_ALLOW_THREADS
46
47 if (PyErr_Occurred())
48 return 0;
49
50 Py_INCREF(Py_None);
51 return Py_None;
52 }
53 }
54
55 /* Raise an exception if the arguments couldn't be parsed. */
56 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_AddTagHandler, SIP_NULLPTR);
57
58 return SIP_NULLPTR;
59 }
60
61
62 PyDoc_STRVAR(doc_wxHtmlParser_DoParsing, "DoParsing()\n"
63 "\n"
64 "Parses the whole m_Source.");
65
66 extern "C" {static PyObject *meth_wxHtmlParser_DoParsing(PyObject *, PyObject *);}
meth_wxHtmlParser_DoParsing(PyObject * sipSelf,PyObject * sipArgs)67 static PyObject *meth_wxHtmlParser_DoParsing(PyObject *sipSelf, PyObject *sipArgs)
68 {
69 PyObject *sipParseErr = SIP_NULLPTR;
70
71 {
72 ::wxHtmlParser *sipCpp;
73
74 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
75 {
76 PyErr_Clear();
77
78 Py_BEGIN_ALLOW_THREADS
79 sipCpp->DoParsing();
80 Py_END_ALLOW_THREADS
81
82 if (PyErr_Occurred())
83 return 0;
84
85 Py_INCREF(Py_None);
86 return Py_None;
87 }
88 }
89
90 /* Raise an exception if the arguments couldn't be parsed. */
91 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_DoParsing, SIP_NULLPTR);
92
93 return SIP_NULLPTR;
94 }
95
96
97 PyDoc_STRVAR(doc_wxHtmlParser_DoneParser, "DoneParser()\n"
98 "\n"
99 "This must be called after DoParsing().");
100
101 extern "C" {static PyObject *meth_wxHtmlParser_DoneParser(PyObject *, PyObject *);}
meth_wxHtmlParser_DoneParser(PyObject * sipSelf,PyObject * sipArgs)102 static PyObject *meth_wxHtmlParser_DoneParser(PyObject *sipSelf, PyObject *sipArgs)
103 {
104 PyObject *sipParseErr = SIP_NULLPTR;
105 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
106
107 {
108 ::wxHtmlParser *sipCpp;
109
110 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
111 {
112 PyErr_Clear();
113
114 Py_BEGIN_ALLOW_THREADS
115 (sipSelfWasArg ? sipCpp-> ::wxHtmlParser::DoneParser() : sipCpp->DoneParser());
116 Py_END_ALLOW_THREADS
117
118 if (PyErr_Occurred())
119 return 0;
120
121 Py_INCREF(Py_None);
122 return Py_None;
123 }
124 }
125
126 /* Raise an exception if the arguments couldn't be parsed. */
127 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_DoneParser, SIP_NULLPTR);
128
129 return SIP_NULLPTR;
130 }
131
132
133 PyDoc_STRVAR(doc_wxHtmlParser_GetFS, "GetFS() -> wx.FileSystem\n"
134 "\n"
135 "Returns pointer to the file system.");
136
137 extern "C" {static PyObject *meth_wxHtmlParser_GetFS(PyObject *, PyObject *);}
meth_wxHtmlParser_GetFS(PyObject * sipSelf,PyObject * sipArgs)138 static PyObject *meth_wxHtmlParser_GetFS(PyObject *sipSelf, PyObject *sipArgs)
139 {
140 PyObject *sipParseErr = SIP_NULLPTR;
141
142 {
143 const ::wxHtmlParser *sipCpp;
144
145 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
146 {
147 ::wxFileSystem*sipRes;
148
149 PyErr_Clear();
150
151 Py_BEGIN_ALLOW_THREADS
152 sipRes = sipCpp->GetFS();
153 Py_END_ALLOW_THREADS
154
155 if (PyErr_Occurred())
156 return 0;
157
158 return sipConvertFromType(sipRes,sipType_wxFileSystem,SIP_NULLPTR);
159 }
160 }
161
162 /* Raise an exception if the arguments couldn't be parsed. */
163 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_GetFS, SIP_NULLPTR);
164
165 return SIP_NULLPTR;
166 }
167
168
169 PyDoc_STRVAR(doc_wxHtmlParser_GetProduct, "GetProduct() -> wx.Object\n"
170 "\n"
171 "Returns product of parsing.");
172
173 extern "C" {static PyObject *meth_wxHtmlParser_GetProduct(PyObject *, PyObject *);}
meth_wxHtmlParser_GetProduct(PyObject * sipSelf,PyObject * sipArgs)174 static PyObject *meth_wxHtmlParser_GetProduct(PyObject *sipSelf, PyObject *sipArgs)
175 {
176 PyObject *sipParseErr = SIP_NULLPTR;
177 PyObject *sipOrigSelf = sipSelf;
178
179 {
180 ::wxHtmlParser *sipCpp;
181
182 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
183 {
184 ::wxObject*sipRes;
185
186 if (!sipOrigSelf)
187 {
188 sipAbstractMethod(sipName_HtmlParser, sipName_GetProduct);
189 return SIP_NULLPTR;
190 }
191
192 PyErr_Clear();
193
194 Py_BEGIN_ALLOW_THREADS
195 sipRes = sipCpp->GetProduct();
196 Py_END_ALLOW_THREADS
197
198 if (PyErr_Occurred())
199 return 0;
200
201 return sipConvertFromType(sipRes,sipType_wxObject,SIP_NULLPTR);
202 }
203 }
204
205 /* Raise an exception if the arguments couldn't be parsed. */
206 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_GetProduct, SIP_NULLPTR);
207
208 return SIP_NULLPTR;
209 }
210
211
212 PyDoc_STRVAR(doc_wxHtmlParser_GetSource, "GetSource() -> String\n"
213 "\n"
214 "Returns pointer to the source being parsed.");
215
216 extern "C" {static PyObject *meth_wxHtmlParser_GetSource(PyObject *, PyObject *);}
meth_wxHtmlParser_GetSource(PyObject * sipSelf,PyObject * sipArgs)217 static PyObject *meth_wxHtmlParser_GetSource(PyObject *sipSelf, PyObject *sipArgs)
218 {
219 PyObject *sipParseErr = SIP_NULLPTR;
220
221 {
222 ::wxHtmlParser *sipCpp;
223
224 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
225 {
226 const ::wxString*sipRes;
227
228 PyErr_Clear();
229
230 Py_BEGIN_ALLOW_THREADS
231 sipRes = sipCpp->GetSource();
232 Py_END_ALLOW_THREADS
233
234 if (PyErr_Occurred())
235 return 0;
236
237 return sipConvertFromType(const_cast< ::wxString *>(sipRes),sipType_wxString,SIP_NULLPTR);
238 }
239 }
240
241 /* Raise an exception if the arguments couldn't be parsed. */
242 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_GetSource, SIP_NULLPTR);
243
244 return SIP_NULLPTR;
245 }
246
247
248 PyDoc_STRVAR(doc_wxHtmlParser_InitParser, "InitParser(source)\n"
249 "\n"
250 "Setups the parser for parsing the source string.");
251
252 extern "C" {static PyObject *meth_wxHtmlParser_InitParser(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_InitParser(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)253 static PyObject *meth_wxHtmlParser_InitParser(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
254 {
255 PyObject *sipParseErr = SIP_NULLPTR;
256 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
257
258 {
259 const ::wxString* source;
260 int sourceState = 0;
261 ::wxHtmlParser *sipCpp;
262
263 static const char *sipKwdList[] = {
264 sipName_source,
265 };
266
267 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxString,&source, &sourceState))
268 {
269 PyErr_Clear();
270
271 Py_BEGIN_ALLOW_THREADS
272 (sipSelfWasArg ? sipCpp-> ::wxHtmlParser::InitParser(*source) : sipCpp->InitParser(*source));
273 Py_END_ALLOW_THREADS
274 sipReleaseType(const_cast< ::wxString *>(source),sipType_wxString,sourceState);
275
276 if (PyErr_Occurred())
277 return 0;
278
279 Py_INCREF(Py_None);
280 return Py_None;
281 }
282 }
283
284 /* Raise an exception if the arguments couldn't be parsed. */
285 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_InitParser, SIP_NULLPTR);
286
287 return SIP_NULLPTR;
288 }
289
290
291 PyDoc_STRVAR(doc_wxHtmlParser_OpenURL, "OpenURL(type, url) -> wx.FSFile\n"
292 "\n"
293 "Opens given URL and returns wxFSFile object that can be used to read\n"
294 "data from it.");
295
296 extern "C" {static PyObject *meth_wxHtmlParser_OpenURL(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_OpenURL(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)297 static PyObject *meth_wxHtmlParser_OpenURL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
298 {
299 PyObject *sipParseErr = SIP_NULLPTR;
300 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
301
302 {
303 ::wxHtmlURLType type;
304 const ::wxString* url;
305 int urlState = 0;
306 const ::wxHtmlParser *sipCpp;
307
308 static const char *sipKwdList[] = {
309 sipName_type,
310 sipName_url,
311 };
312
313 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxHtmlURLType, &type, sipType_wxString,&url, &urlState))
314 {
315 ::wxFSFile*sipRes;
316
317 PyErr_Clear();
318
319 Py_BEGIN_ALLOW_THREADS
320 sipRes = (sipSelfWasArg ? sipCpp-> ::wxHtmlParser::OpenURL(type,*url) : sipCpp->OpenURL(type,*url));
321 Py_END_ALLOW_THREADS
322 sipReleaseType(const_cast< ::wxString *>(url),sipType_wxString,urlState);
323
324 if (PyErr_Occurred())
325 return 0;
326
327 return sipConvertFromType(sipRes,sipType_wxFSFile,SIP_NULLPTR);
328 }
329 }
330
331 /* Raise an exception if the arguments couldn't be parsed. */
332 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_OpenURL, SIP_NULLPTR);
333
334 return SIP_NULLPTR;
335 }
336
337
338 PyDoc_STRVAR(doc_wxHtmlParser_Parse, "Parse(source) -> wx.Object\n"
339 "\n"
340 "Proceeds parsing of the document.");
341
342 extern "C" {static PyObject *meth_wxHtmlParser_Parse(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_Parse(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)343 static PyObject *meth_wxHtmlParser_Parse(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
344 {
345 PyObject *sipParseErr = SIP_NULLPTR;
346
347 {
348 const ::wxString* source;
349 int sourceState = 0;
350 ::wxHtmlParser *sipCpp;
351
352 static const char *sipKwdList[] = {
353 sipName_source,
354 };
355
356 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxString,&source, &sourceState))
357 {
358 ::wxObject*sipRes;
359
360 PyErr_Clear();
361
362 Py_BEGIN_ALLOW_THREADS
363 sipRes = sipCpp->Parse(*source);
364 Py_END_ALLOW_THREADS
365 sipReleaseType(const_cast< ::wxString *>(source),sipType_wxString,sourceState);
366
367 if (PyErr_Occurred())
368 return 0;
369
370 return sipConvertFromType(sipRes,sipType_wxObject,SIP_NULLPTR);
371 }
372 }
373
374 /* Raise an exception if the arguments couldn't be parsed. */
375 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_Parse, SIP_NULLPTR);
376
377 return SIP_NULLPTR;
378 }
379
380
381 PyDoc_STRVAR(doc_wxHtmlParser_PopTagHandler, "PopTagHandler()\n"
382 "\n"
383 "Restores parser's state before last call to PushTagHandler().");
384
385 extern "C" {static PyObject *meth_wxHtmlParser_PopTagHandler(PyObject *, PyObject *);}
meth_wxHtmlParser_PopTagHandler(PyObject * sipSelf,PyObject * sipArgs)386 static PyObject *meth_wxHtmlParser_PopTagHandler(PyObject *sipSelf, PyObject *sipArgs)
387 {
388 PyObject *sipParseErr = SIP_NULLPTR;
389
390 {
391 ::wxHtmlParser *sipCpp;
392
393 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
394 {
395 PyErr_Clear();
396
397 Py_BEGIN_ALLOW_THREADS
398 sipCpp->PopTagHandler();
399 Py_END_ALLOW_THREADS
400
401 if (PyErr_Occurred())
402 return 0;
403
404 Py_INCREF(Py_None);
405 return Py_None;
406 }
407 }
408
409 /* Raise an exception if the arguments couldn't be parsed. */
410 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_PopTagHandler, SIP_NULLPTR);
411
412 return SIP_NULLPTR;
413 }
414
415
416 PyDoc_STRVAR(doc_wxHtmlParser_PushTagHandler, "PushTagHandler(handler, tags)\n"
417 "\n"
418 "Forces the handler to handle additional tags (not returned by\n"
419 "wxHtmlTagHandler::GetSupportedTags).");
420
421 extern "C" {static PyObject *meth_wxHtmlParser_PushTagHandler(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_PushTagHandler(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)422 static PyObject *meth_wxHtmlParser_PushTagHandler(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
423 {
424 PyObject *sipParseErr = SIP_NULLPTR;
425
426 {
427 ::wxHtmlTagHandler* handler;
428 const ::wxString* tags;
429 int tagsState = 0;
430 ::wxHtmlParser *sipCpp;
431
432 static const char *sipKwdList[] = {
433 sipName_handler,
434 sipName_tags,
435 };
436
437 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J1", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxHtmlTagHandler, &handler, sipType_wxString,&tags, &tagsState))
438 {
439 PyErr_Clear();
440
441 Py_BEGIN_ALLOW_THREADS
442 sipCpp->PushTagHandler(handler,*tags);
443 Py_END_ALLOW_THREADS
444 sipReleaseType(const_cast< ::wxString *>(tags),sipType_wxString,tagsState);
445
446 if (PyErr_Occurred())
447 return 0;
448
449 Py_INCREF(Py_None);
450 return Py_None;
451 }
452 }
453
454 /* Raise an exception if the arguments couldn't be parsed. */
455 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_PushTagHandler, SIP_NULLPTR);
456
457 return SIP_NULLPTR;
458 }
459
460
461 PyDoc_STRVAR(doc_wxHtmlParser_SetFS, "SetFS(fs)\n"
462 "\n"
463 "Sets the virtual file system that will be used to request additional\n"
464 "files.");
465
466 extern "C" {static PyObject *meth_wxHtmlParser_SetFS(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlParser_SetFS(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)467 static PyObject *meth_wxHtmlParser_SetFS(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
468 {
469 PyObject *sipParseErr = SIP_NULLPTR;
470
471 {
472 ::wxFileSystem* fs;
473 ::wxHtmlParser *sipCpp;
474
475 static const char *sipKwdList[] = {
476 sipName_fs,
477 };
478
479 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxHtmlParser, &sipCpp, sipType_wxFileSystem, &fs))
480 {
481 PyErr_Clear();
482
483 Py_BEGIN_ALLOW_THREADS
484 sipCpp->SetFS(fs);
485 Py_END_ALLOW_THREADS
486
487 if (PyErr_Occurred())
488 return 0;
489
490 Py_INCREF(Py_None);
491 return Py_None;
492 }
493 }
494
495 /* Raise an exception if the arguments couldn't be parsed. */
496 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_SetFS, SIP_NULLPTR);
497
498 return SIP_NULLPTR;
499 }
500
501
502 PyDoc_STRVAR(doc_wxHtmlParser_StopParsing, "StopParsing()\n"
503 "\n"
504 "Call this function to interrupt parsing from a tag handler.");
505
506 extern "C" {static PyObject *meth_wxHtmlParser_StopParsing(PyObject *, PyObject *);}
meth_wxHtmlParser_StopParsing(PyObject * sipSelf,PyObject * sipArgs)507 static PyObject *meth_wxHtmlParser_StopParsing(PyObject *sipSelf, PyObject *sipArgs)
508 {
509 PyObject *sipParseErr = SIP_NULLPTR;
510 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
511
512 {
513 ::wxHtmlParser *sipCpp;
514
515 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlParser, &sipCpp))
516 {
517 PyErr_Clear();
518
519 Py_BEGIN_ALLOW_THREADS
520 (sipSelfWasArg ? sipCpp-> ::wxHtmlParser::StopParsing() : sipCpp->StopParsing());
521 Py_END_ALLOW_THREADS
522
523 if (PyErr_Occurred())
524 return 0;
525
526 Py_INCREF(Py_None);
527 return Py_None;
528 }
529 }
530
531 /* Raise an exception if the arguments couldn't be parsed. */
532 sipNoMethod(sipParseErr, sipName_HtmlParser, sipName_StopParsing, SIP_NULLPTR);
533
534 return SIP_NULLPTR;
535 }
536
537
538 /* Call the instance's destructor. */
539 extern "C" {static void release_wxHtmlParser(void *, int);}
release_wxHtmlParser(void * sipCppV,int)540 static void release_wxHtmlParser(void *sipCppV, int)
541 {
542 Py_BEGIN_ALLOW_THREADS
543
544 delete reinterpret_cast< ::wxHtmlParser *>(sipCppV);
545
546 Py_END_ALLOW_THREADS
547 }
548
549
550 extern "C" {static void dealloc_wxHtmlParser(sipSimpleWrapper *);}
dealloc_wxHtmlParser(sipSimpleWrapper * sipSelf)551 static void dealloc_wxHtmlParser(sipSimpleWrapper *sipSelf)
552 {
553 if (sipIsOwnedByPython(sipSelf))
554 {
555 release_wxHtmlParser(sipGetAddress(sipSelf), 0);
556 }
557 }
558
559
560 static PyMethodDef methods_wxHtmlParser[] = {
561 {SIP_MLNAME_CAST(sipName_AddTagHandler), SIP_MLMETH_CAST(meth_wxHtmlParser_AddTagHandler), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_AddTagHandler)},
562 {SIP_MLNAME_CAST(sipName_DoParsing), meth_wxHtmlParser_DoParsing, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_DoParsing)},
563 {SIP_MLNAME_CAST(sipName_DoneParser), meth_wxHtmlParser_DoneParser, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_DoneParser)},
564 {SIP_MLNAME_CAST(sipName_GetFS), meth_wxHtmlParser_GetFS, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_GetFS)},
565 {SIP_MLNAME_CAST(sipName_GetProduct), meth_wxHtmlParser_GetProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_GetProduct)},
566 {SIP_MLNAME_CAST(sipName_GetSource), meth_wxHtmlParser_GetSource, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_GetSource)},
567 {SIP_MLNAME_CAST(sipName_InitParser), SIP_MLMETH_CAST(meth_wxHtmlParser_InitParser), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_InitParser)},
568 {SIP_MLNAME_CAST(sipName_OpenURL), SIP_MLMETH_CAST(meth_wxHtmlParser_OpenURL), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_OpenURL)},
569 {SIP_MLNAME_CAST(sipName_Parse), SIP_MLMETH_CAST(meth_wxHtmlParser_Parse), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_Parse)},
570 {SIP_MLNAME_CAST(sipName_PopTagHandler), meth_wxHtmlParser_PopTagHandler, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_PopTagHandler)},
571 {SIP_MLNAME_CAST(sipName_PushTagHandler), SIP_MLMETH_CAST(meth_wxHtmlParser_PushTagHandler), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_PushTagHandler)},
572 {SIP_MLNAME_CAST(sipName_SetFS), SIP_MLMETH_CAST(meth_wxHtmlParser_SetFS), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlParser_SetFS)},
573 {SIP_MLNAME_CAST(sipName_StopParsing), meth_wxHtmlParser_StopParsing, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlParser_StopParsing)}
574 };
575
576 sipVariableDef variables_wxHtmlParser[] = {
577 {PropertyVariable, sipName_Source, &methods_wxHtmlParser[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
578 {PropertyVariable, sipName_Product, &methods_wxHtmlParser[4], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
579 {PropertyVariable, sipName_FS, &methods_wxHtmlParser[3], &methods_wxHtmlParser[11], SIP_NULLPTR, SIP_NULLPTR},
580 };
581
582 PyDoc_STRVAR(doc_wxHtmlParser, "HtmlParser()\n"
583 "\n"
584 "Classes derived from this handle the generic parsing of HTML\n"
585 "documents: it scans the document and divide it into blocks of tags\n"
586 "(where one block consists of beginning and ending tag and of text\n"
587 "between these two tags).");
588
589
590 sipClassTypeDef sipTypeDef__html_wxHtmlParser = {
591 {
592 -1,
593 SIP_NULLPTR,
594 SIP_NULLPTR,
595 SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
596 sipNameNr_wxHtmlParser,
597 {SIP_NULLPTR},
598 SIP_NULLPTR
599 },
600 {
601 sipNameNr_HtmlParser,
602 {0, 0, 1},
603 13, methods_wxHtmlParser,
604 0, SIP_NULLPTR,
605 3, variables_wxHtmlParser,
606 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
607 },
608 doc_wxHtmlParser,
609 -1,
610 -1,
611 SIP_NULLPTR,
612 SIP_NULLPTR,
613 SIP_NULLPTR,
614 SIP_NULLPTR,
615 SIP_NULLPTR,
616 #if PY_MAJOR_VERSION >= 3
617 SIP_NULLPTR,
618 SIP_NULLPTR,
619 #else
620 SIP_NULLPTR,
621 SIP_NULLPTR,
622 SIP_NULLPTR,
623 SIP_NULLPTR,
624 #endif
625 dealloc_wxHtmlParser,
626 SIP_NULLPTR,
627 SIP_NULLPTR,
628 SIP_NULLPTR,
629 release_wxHtmlParser,
630 SIP_NULLPTR,
631 SIP_NULLPTR,
632 SIP_NULLPTR,
633 SIP_NULLPTR,
634 SIP_NULLPTR,
635 SIP_NULLPTR,
636 SIP_NULLPTR
637 };
638