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/winpars.h>
13 
14         #include <wx/html/htmlwin.h>
15         #include <wx/object.h>
16         #include <wx/colour.h>
17         #include <wx/html/htmlcell.h>
18         #include <wx/dc.h>
19         #include <wx/html/htmlcell.h>
20         #include <wx/font.h>
21         #include <wx/html/htmltag.h>
22         #include <wx/filesys.h>
23         #include <wx/html/htmlpars.h>
24         #include <wx/filesys.h>
_wxHtmlWinParser_SetFonts(wxHtmlWinParser * self,const wxString * normal_face,const wxString * fixed_face,const wxArrayInt * sizes)25     void _wxHtmlWinParser_SetFonts(wxHtmlWinParser* self, const wxString * normal_face, const wxString * fixed_face, const wxArrayInt* sizes)
26     {
27         if (sizes->GetCount() != 7) {
28             wxPyErr_SetString(PyExc_ValueError, "Sequence of 7 integers expected.");
29             return;
30         }
31         self->SetFonts(*normal_face, *fixed_face, &sizes->Item(0));
32     }
33 
34 
35 class sipwxHtmlWinParser : public  ::wxHtmlWinParser
36 {
37 public:
38     sipwxHtmlWinParser( ::wxHtmlWindowInterface*);
39     virtual ~sipwxHtmlWinParser();
40 
41     /*
42      * There is a public method for every protected method visible from
43      * this class.
44      */
45     void sipProtectVirt_AddTag(bool,const  ::wxHtmlTag&);
46 
47     /*
48      * There is a protected method for every virtual method visible from
49      * this class.
50      */
51 protected:
52     void SetDC( ::wxDC*,double) SIP_OVERRIDE;
53      ::wxFont* CreateCurrentFont() SIP_OVERRIDE;
54     void AddTagHandler( ::wxHtmlTagHandler*) SIP_OVERRIDE;
55     void DoneParser() SIP_OVERRIDE;
56      ::wxObject* GetProduct() SIP_OVERRIDE;
57     void InitParser(const  ::wxString&) SIP_OVERRIDE;
58      ::wxFSFile* OpenURL( ::wxHtmlURLType,const  ::wxString&) const SIP_OVERRIDE;
59     void StopParsing() SIP_OVERRIDE;
60     void AddTag(const  ::wxHtmlTag&) SIP_OVERRIDE;
61 
62 public:
63     sipSimpleWrapper *sipPySelf;
64 
65 private:
66     sipwxHtmlWinParser(const sipwxHtmlWinParser &);
67     sipwxHtmlWinParser &operator = (const sipwxHtmlWinParser &);
68 
69     char sipPyMethods[9];
70 };
71 
sipwxHtmlWinParser(::wxHtmlWindowInterface * wndIface)72 sipwxHtmlWinParser::sipwxHtmlWinParser( ::wxHtmlWindowInterface*wndIface):  ::wxHtmlWinParser(wndIface), sipPySelf(SIP_NULLPTR)
73 {
74     memset(sipPyMethods, 0, sizeof (sipPyMethods));
75 }
76 
~sipwxHtmlWinParser()77 sipwxHtmlWinParser::~sipwxHtmlWinParser()
78 {
79     sipInstanceDestroyedEx(&sipPySelf);
80 }
81 
SetDC(::wxDC * dc,double pixel_scale)82 void sipwxHtmlWinParser::SetDC( ::wxDC*dc,double pixel_scale)
83 {
84     sip_gilstate_t sipGILState;
85     PyObject *sipMeth;
86 
87     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_SetDC);
88 
89     if (!sipMeth)
90     {
91          ::wxHtmlWinParser::SetDC(dc,pixel_scale);
92         return;
93     }
94 
95     extern void sipVH__html_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxDC*,double);
96 
97     sipVH__html_59(sipGILState, 0, sipPySelf, sipMeth, dc, pixel_scale);
98 }
99 
CreateCurrentFont()100  ::wxFont* sipwxHtmlWinParser::CreateCurrentFont()
101 {
102     sip_gilstate_t sipGILState;
103     PyObject *sipMeth;
104 
105     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_CreateCurrentFont);
106 
107     if (!sipMeth)
108         return  ::wxHtmlWinParser::CreateCurrentFont();
109 
110     extern  ::wxFont* sipVH__html_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
111 
112     return sipVH__html_58(sipGILState, 0, sipPySelf, sipMeth);
113 }
114 
AddTagHandler(::wxHtmlTagHandler * handler)115 void sipwxHtmlWinParser::AddTagHandler( ::wxHtmlTagHandler*handler)
116 {
117     sip_gilstate_t sipGILState;
118     PyObject *sipMeth;
119 
120     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_AddTagHandler);
121 
122     if (!sipMeth)
123     {
124          ::wxHtmlWinParser::AddTagHandler(handler);
125         return;
126     }
127 
128     extern void sipVH__html_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlTagHandler*);
129 
130     sipVH__html_19(sipGILState, 0, sipPySelf, sipMeth, handler);
131 }
132 
DoneParser()133 void sipwxHtmlWinParser::DoneParser()
134 {
135     sip_gilstate_t sipGILState;
136     PyObject *sipMeth;
137 
138     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_DoneParser);
139 
140     if (!sipMeth)
141     {
142          ::wxHtmlWinParser::DoneParser();
143         return;
144     }
145 
146     extern void sipVH__html_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
147 
148     sipVH__html_20(sipGILState, 0, sipPySelf, sipMeth);
149 }
150 
GetProduct()151  ::wxObject* sipwxHtmlWinParser::GetProduct()
152 {
153     sip_gilstate_t sipGILState;
154     PyObject *sipMeth;
155 
156     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_GetProduct);
157 
158     if (!sipMeth)
159         return  ::wxHtmlWinParser::GetProduct();
160 
161     extern  ::wxObject* sipVH__html_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
162 
163     return sipVH__html_21(sipGILState, 0, sipPySelf, sipMeth);
164 }
165 
InitParser(const::wxString & source)166 void sipwxHtmlWinParser::InitParser(const  ::wxString& source)
167 {
168     sip_gilstate_t sipGILState;
169     PyObject *sipMeth;
170 
171     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,SIP_NULLPTR,sipName_InitParser);
172 
173     if (!sipMeth)
174     {
175          ::wxHtmlWinParser::InitParser(source);
176         return;
177     }
178 
179     extern void sipVH__html_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxString&);
180 
181     sipVH__html_22(sipGILState, 0, sipPySelf, sipMeth, source);
182 }
183 
OpenURL(::wxHtmlURLType type,const::wxString & url) const184  ::wxFSFile* sipwxHtmlWinParser::OpenURL( ::wxHtmlURLType type,const  ::wxString& url) const
185 {
186     sip_gilstate_t sipGILState;
187     PyObject *sipMeth;
188 
189     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_OpenURL);
190 
191     if (!sipMeth)
192         return  ::wxHtmlWinParser::OpenURL(type,url);
193 
194     extern  ::wxFSFile* sipVH__html_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxHtmlURLType,const  ::wxString&);
195 
196     return sipVH__html_23(sipGILState, 0, sipPySelf, sipMeth, type, url);
197 }
198 
StopParsing()199 void sipwxHtmlWinParser::StopParsing()
200 {
201     sip_gilstate_t sipGILState;
202     PyObject *sipMeth;
203 
204     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_StopParsing);
205 
206     if (!sipMeth)
207     {
208          ::wxHtmlWinParser::StopParsing();
209         return;
210     }
211 
212     extern void sipVH__html_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
213 
214     sipVH__html_20(sipGILState, 0, sipPySelf, sipMeth);
215 }
216 
AddTag(const::wxHtmlTag & tag)217 void sipwxHtmlWinParser::AddTag(const  ::wxHtmlTag& tag)
218 {
219     sip_gilstate_t sipGILState;
220     PyObject *sipMeth;
221 
222     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_AddTag);
223 
224     if (!sipMeth)
225     {
226          ::wxHtmlWinParser::AddTag(tag);
227         return;
228     }
229 
230     extern void sipVH__html_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxHtmlTag&);
231 
232     sipVH__html_24(sipGILState, 0, sipPySelf, sipMeth, tag);
233 }
234 
sipProtectVirt_AddTag(bool sipSelfWasArg,const::wxHtmlTag & tag)235 void sipwxHtmlWinParser::sipProtectVirt_AddTag(bool sipSelfWasArg,const  ::wxHtmlTag& tag)
236 {
237     (sipSelfWasArg ?  ::wxHtmlParser::AddTag(tag) : AddTag(tag));
238 }
239 
240 
241 PyDoc_STRVAR(doc_wxHtmlWinParser_AddTag, "AddTag(tag)\n"
242 "\n"
243 "This may (and may not) be overwritten in derived class.");
244 
245 extern "C" {static PyObject *meth_wxHtmlWinParser_AddTag(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_AddTag(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)246 static PyObject *meth_wxHtmlWinParser_AddTag(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
247 {
248     PyObject *sipParseErr = SIP_NULLPTR;
249     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
250 
251     {
252         const  ::wxHtmlTag* tag;
253         sipwxHtmlWinParser *sipCpp;
254 
255         static const char *sipKwdList[] = {
256             sipName_tag,
257         };
258 
259         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxHtmlTag, &tag))
260         {
261             PyErr_Clear();
262 
263             Py_BEGIN_ALLOW_THREADS
264             sipCpp->sipProtectVirt_AddTag(sipSelfWasArg,*tag);
265             Py_END_ALLOW_THREADS
266 
267             if (PyErr_Occurred())
268                 return 0;
269 
270             Py_INCREF(Py_None);
271             return Py_None;
272         }
273     }
274 
275     /* Raise an exception if the arguments couldn't be parsed. */
276     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_AddTag, SIP_NULLPTR);
277 
278     return SIP_NULLPTR;
279 }
280 
281 
282 PyDoc_STRVAR(doc_wxHtmlWinParser_CloseContainer, "CloseContainer() -> HtmlContainerCell\n"
283 "\n"
284 "Closes the container, sets actual container to the parent one and\n"
285 "returns pointer to it (see Cells and Containers).");
286 
287 extern "C" {static PyObject *meth_wxHtmlWinParser_CloseContainer(PyObject *, PyObject *);}
meth_wxHtmlWinParser_CloseContainer(PyObject * sipSelf,PyObject * sipArgs)288 static PyObject *meth_wxHtmlWinParser_CloseContainer(PyObject *sipSelf, PyObject *sipArgs)
289 {
290     PyObject *sipParseErr = SIP_NULLPTR;
291 
292     {
293          ::wxHtmlWinParser *sipCpp;
294 
295         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
296         {
297              ::wxHtmlContainerCell*sipRes;
298 
299             PyErr_Clear();
300 
301             Py_BEGIN_ALLOW_THREADS
302             sipRes = sipCpp->CloseContainer();
303             Py_END_ALLOW_THREADS
304 
305             if (PyErr_Occurred())
306                 return 0;
307 
308             return sipConvertFromType(sipRes,sipType_wxHtmlContainerCell,SIP_NULLPTR);
309         }
310     }
311 
312     /* Raise an exception if the arguments couldn't be parsed. */
313     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_CloseContainer, SIP_NULLPTR);
314 
315     return SIP_NULLPTR;
316 }
317 
318 
319 PyDoc_STRVAR(doc_wxHtmlWinParser_CreateCurrentFont, "CreateCurrentFont() -> wx.Font\n"
320 "\n"
321 "Creates font based on current setting (see SetFontSize(),\n"
322 "SetFontBold(), SetFontItalic(), SetFontFixed(),\n"
323 "wxHtmlWinParser::SetFontUnderlined) and returns pointer to it.");
324 
325 extern "C" {static PyObject *meth_wxHtmlWinParser_CreateCurrentFont(PyObject *, PyObject *);}
meth_wxHtmlWinParser_CreateCurrentFont(PyObject * sipSelf,PyObject * sipArgs)326 static PyObject *meth_wxHtmlWinParser_CreateCurrentFont(PyObject *sipSelf, PyObject *sipArgs)
327 {
328     PyObject *sipParseErr = SIP_NULLPTR;
329     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
330 
331     {
332          ::wxHtmlWinParser *sipCpp;
333 
334         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
335         {
336              ::wxFont*sipRes;
337 
338             PyErr_Clear();
339 
340             Py_BEGIN_ALLOW_THREADS
341             sipRes = (sipSelfWasArg ? sipCpp-> ::wxHtmlWinParser::CreateCurrentFont() : sipCpp->CreateCurrentFont());
342             Py_END_ALLOW_THREADS
343 
344             if (PyErr_Occurred())
345                 return 0;
346 
347             return sipConvertFromType(sipRes,sipType_wxFont,SIP_NULLPTR);
348         }
349     }
350 
351     /* Raise an exception if the arguments couldn't be parsed. */
352     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_CreateCurrentFont, SIP_NULLPTR);
353 
354     return SIP_NULLPTR;
355 }
356 
357 
358 PyDoc_STRVAR(doc_wxHtmlWinParser_GetActualColor, "GetActualColor() -> wx.Colour\n"
359 "\n"
360 "Returns actual text colour.");
361 
362 extern "C" {static PyObject *meth_wxHtmlWinParser_GetActualColor(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetActualColor(PyObject * sipSelf,PyObject * sipArgs)363 static PyObject *meth_wxHtmlWinParser_GetActualColor(PyObject *sipSelf, PyObject *sipArgs)
364 {
365     PyObject *sipParseErr = SIP_NULLPTR;
366 
367     {
368         const  ::wxHtmlWinParser *sipCpp;
369 
370         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
371         {
372              ::wxColour*sipRes;
373 
374             PyErr_Clear();
375 
376             Py_BEGIN_ALLOW_THREADS
377             sipRes = new  ::wxColour(sipCpp->GetActualColor());
378             Py_END_ALLOW_THREADS
379 
380             if (PyErr_Occurred())
381                 return 0;
382 
383             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
384         }
385     }
386 
387     /* Raise an exception if the arguments couldn't be parsed. */
388     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetActualColor, SIP_NULLPTR);
389 
390     return SIP_NULLPTR;
391 }
392 
393 
394 PyDoc_STRVAR(doc_wxHtmlWinParser_GetAlign, "GetAlign() -> int\n"
395 "\n"
396 "Returns default horizontal alignment.");
397 
398 extern "C" {static PyObject *meth_wxHtmlWinParser_GetAlign(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetAlign(PyObject * sipSelf,PyObject * sipArgs)399 static PyObject *meth_wxHtmlWinParser_GetAlign(PyObject *sipSelf, PyObject *sipArgs)
400 {
401     PyObject *sipParseErr = SIP_NULLPTR;
402 
403     {
404         const  ::wxHtmlWinParser *sipCpp;
405 
406         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
407         {
408             int sipRes;
409 
410             PyErr_Clear();
411 
412             Py_BEGIN_ALLOW_THREADS
413             sipRes = sipCpp->GetAlign();
414             Py_END_ALLOW_THREADS
415 
416             if (PyErr_Occurred())
417                 return 0;
418 
419             return SIPLong_FromLong(sipRes);
420         }
421     }
422 
423     /* Raise an exception if the arguments couldn't be parsed. */
424     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetAlign, SIP_NULLPTR);
425 
426     return SIP_NULLPTR;
427 }
428 
429 
430 PyDoc_STRVAR(doc_wxHtmlWinParser_GetCharHeight, "GetCharHeight() -> int\n"
431 "\n"
432 "Returns (average) char height in standard font.");
433 
434 extern "C" {static PyObject *meth_wxHtmlWinParser_GetCharHeight(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetCharHeight(PyObject * sipSelf,PyObject * sipArgs)435 static PyObject *meth_wxHtmlWinParser_GetCharHeight(PyObject *sipSelf, PyObject *sipArgs)
436 {
437     PyObject *sipParseErr = SIP_NULLPTR;
438 
439     {
440         const  ::wxHtmlWinParser *sipCpp;
441 
442         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
443         {
444             int sipRes;
445 
446             PyErr_Clear();
447 
448             Py_BEGIN_ALLOW_THREADS
449             sipRes = sipCpp->GetCharHeight();
450             Py_END_ALLOW_THREADS
451 
452             if (PyErr_Occurred())
453                 return 0;
454 
455             return SIPLong_FromLong(sipRes);
456         }
457     }
458 
459     /* Raise an exception if the arguments couldn't be parsed. */
460     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetCharHeight, SIP_NULLPTR);
461 
462     return SIP_NULLPTR;
463 }
464 
465 
466 PyDoc_STRVAR(doc_wxHtmlWinParser_GetCharWidth, "GetCharWidth() -> int\n"
467 "\n"
468 "Returns average char width in standard font.");
469 
470 extern "C" {static PyObject *meth_wxHtmlWinParser_GetCharWidth(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetCharWidth(PyObject * sipSelf,PyObject * sipArgs)471 static PyObject *meth_wxHtmlWinParser_GetCharWidth(PyObject *sipSelf, PyObject *sipArgs)
472 {
473     PyObject *sipParseErr = SIP_NULLPTR;
474 
475     {
476         const  ::wxHtmlWinParser *sipCpp;
477 
478         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
479         {
480             int sipRes;
481 
482             PyErr_Clear();
483 
484             Py_BEGIN_ALLOW_THREADS
485             sipRes = sipCpp->GetCharWidth();
486             Py_END_ALLOW_THREADS
487 
488             if (PyErr_Occurred())
489                 return 0;
490 
491             return SIPLong_FromLong(sipRes);
492         }
493     }
494 
495     /* Raise an exception if the arguments couldn't be parsed. */
496     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetCharWidth, SIP_NULLPTR);
497 
498     return SIP_NULLPTR;
499 }
500 
501 
502 PyDoc_STRVAR(doc_wxHtmlWinParser_GetContainer, "GetContainer() -> HtmlContainerCell\n"
503 "\n"
504 "Returns pointer to the currently opened container (see Cells and\n"
505 "Containers).");
506 
507 extern "C" {static PyObject *meth_wxHtmlWinParser_GetContainer(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetContainer(PyObject * sipSelf,PyObject * sipArgs)508 static PyObject *meth_wxHtmlWinParser_GetContainer(PyObject *sipSelf, PyObject *sipArgs)
509 {
510     PyObject *sipParseErr = SIP_NULLPTR;
511 
512     {
513         const  ::wxHtmlWinParser *sipCpp;
514 
515         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
516         {
517              ::wxHtmlContainerCell*sipRes;
518 
519             PyErr_Clear();
520 
521             Py_BEGIN_ALLOW_THREADS
522             sipRes = sipCpp->GetContainer();
523             Py_END_ALLOW_THREADS
524 
525             if (PyErr_Occurred())
526                 return 0;
527 
528             return sipConvertFromType(sipRes,sipType_wxHtmlContainerCell,SIP_NULLPTR);
529         }
530     }
531 
532     /* Raise an exception if the arguments couldn't be parsed. */
533     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetContainer, SIP_NULLPTR);
534 
535     return SIP_NULLPTR;
536 }
537 
538 
539 PyDoc_STRVAR(doc_wxHtmlWinParser_GetDC, "GetDC() -> wx.DC\n"
540 "\n"
541 "Returns pointer to the DC used during parsing.");
542 
543 extern "C" {static PyObject *meth_wxHtmlWinParser_GetDC(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetDC(PyObject * sipSelf,PyObject * sipArgs)544 static PyObject *meth_wxHtmlWinParser_GetDC(PyObject *sipSelf, PyObject *sipArgs)
545 {
546     PyObject *sipParseErr = SIP_NULLPTR;
547 
548     {
549          ::wxHtmlWinParser *sipCpp;
550 
551         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
552         {
553              ::wxDC*sipRes;
554 
555             PyErr_Clear();
556 
557             Py_BEGIN_ALLOW_THREADS
558             sipRes = sipCpp->GetDC();
559             Py_END_ALLOW_THREADS
560 
561             if (PyErr_Occurred())
562                 return 0;
563 
564             return sipConvertFromType(sipRes,sipType_wxDC,SIP_NULLPTR);
565         }
566     }
567 
568     /* Raise an exception if the arguments couldn't be parsed. */
569     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetDC, SIP_NULLPTR);
570 
571     return SIP_NULLPTR;
572 }
573 
574 
575 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontBold, "GetFontBold() -> int\n"
576 "\n"
577 "Returns true if actual font is bold, false otherwise.");
578 
579 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontBold(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontBold(PyObject * sipSelf,PyObject * sipArgs)580 static PyObject *meth_wxHtmlWinParser_GetFontBold(PyObject *sipSelf, PyObject *sipArgs)
581 {
582     PyObject *sipParseErr = SIP_NULLPTR;
583 
584     {
585         const  ::wxHtmlWinParser *sipCpp;
586 
587         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
588         {
589             int sipRes;
590 
591             PyErr_Clear();
592 
593             Py_BEGIN_ALLOW_THREADS
594             sipRes = sipCpp->GetFontBold();
595             Py_END_ALLOW_THREADS
596 
597             if (PyErr_Occurred())
598                 return 0;
599 
600             return SIPLong_FromLong(sipRes);
601         }
602     }
603 
604     /* Raise an exception if the arguments couldn't be parsed. */
605     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontBold, SIP_NULLPTR);
606 
607     return SIP_NULLPTR;
608 }
609 
610 
611 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontFace, "GetFontFace() -> String\n"
612 "\n"
613 "Returns actual font face name.");
614 
615 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontFace(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontFace(PyObject * sipSelf,PyObject * sipArgs)616 static PyObject *meth_wxHtmlWinParser_GetFontFace(PyObject *sipSelf, PyObject *sipArgs)
617 {
618     PyObject *sipParseErr = SIP_NULLPTR;
619 
620     {
621         const  ::wxHtmlWinParser *sipCpp;
622 
623         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
624         {
625              ::wxString*sipRes;
626 
627             PyErr_Clear();
628 
629             Py_BEGIN_ALLOW_THREADS
630             sipRes = new  ::wxString(sipCpp->GetFontFace());
631             Py_END_ALLOW_THREADS
632 
633             if (PyErr_Occurred())
634                 return 0;
635 
636             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
637         }
638     }
639 
640     /* Raise an exception if the arguments couldn't be parsed. */
641     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontFace, SIP_NULLPTR);
642 
643     return SIP_NULLPTR;
644 }
645 
646 
647 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontFixed, "GetFontFixed() -> int\n"
648 "\n"
649 "Returns true if actual font is fixed face, false otherwise.");
650 
651 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontFixed(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontFixed(PyObject * sipSelf,PyObject * sipArgs)652 static PyObject *meth_wxHtmlWinParser_GetFontFixed(PyObject *sipSelf, PyObject *sipArgs)
653 {
654     PyObject *sipParseErr = SIP_NULLPTR;
655 
656     {
657         const  ::wxHtmlWinParser *sipCpp;
658 
659         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
660         {
661             int sipRes;
662 
663             PyErr_Clear();
664 
665             Py_BEGIN_ALLOW_THREADS
666             sipRes = sipCpp->GetFontFixed();
667             Py_END_ALLOW_THREADS
668 
669             if (PyErr_Occurred())
670                 return 0;
671 
672             return SIPLong_FromLong(sipRes);
673         }
674     }
675 
676     /* Raise an exception if the arguments couldn't be parsed. */
677     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontFixed, SIP_NULLPTR);
678 
679     return SIP_NULLPTR;
680 }
681 
682 
683 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontItalic, "GetFontItalic() -> int\n"
684 "\n"
685 "Returns true if actual font is italic, false otherwise.");
686 
687 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontItalic(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontItalic(PyObject * sipSelf,PyObject * sipArgs)688 static PyObject *meth_wxHtmlWinParser_GetFontItalic(PyObject *sipSelf, PyObject *sipArgs)
689 {
690     PyObject *sipParseErr = SIP_NULLPTR;
691 
692     {
693         const  ::wxHtmlWinParser *sipCpp;
694 
695         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
696         {
697             int sipRes;
698 
699             PyErr_Clear();
700 
701             Py_BEGIN_ALLOW_THREADS
702             sipRes = sipCpp->GetFontItalic();
703             Py_END_ALLOW_THREADS
704 
705             if (PyErr_Occurred())
706                 return 0;
707 
708             return SIPLong_FromLong(sipRes);
709         }
710     }
711 
712     /* Raise an exception if the arguments couldn't be parsed. */
713     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontItalic, SIP_NULLPTR);
714 
715     return SIP_NULLPTR;
716 }
717 
718 
719 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontSize, "GetFontSize() -> int\n"
720 "\n"
721 "Returns actual font size (HTML size varies from -2 to +4)");
722 
723 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontSize(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontSize(PyObject * sipSelf,PyObject * sipArgs)724 static PyObject *meth_wxHtmlWinParser_GetFontSize(PyObject *sipSelf, PyObject *sipArgs)
725 {
726     PyObject *sipParseErr = SIP_NULLPTR;
727 
728     {
729         const  ::wxHtmlWinParser *sipCpp;
730 
731         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
732         {
733             int sipRes;
734 
735             PyErr_Clear();
736 
737             Py_BEGIN_ALLOW_THREADS
738             sipRes = sipCpp->GetFontSize();
739             Py_END_ALLOW_THREADS
740 
741             if (PyErr_Occurred())
742                 return 0;
743 
744             return SIPLong_FromLong(sipRes);
745         }
746     }
747 
748     /* Raise an exception if the arguments couldn't be parsed. */
749     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontSize, SIP_NULLPTR);
750 
751     return SIP_NULLPTR;
752 }
753 
754 
755 PyDoc_STRVAR(doc_wxHtmlWinParser_GetFontUnderlined, "GetFontUnderlined() -> int\n"
756 "\n"
757 "Returns true if actual font is underlined, false otherwise.");
758 
759 extern "C" {static PyObject *meth_wxHtmlWinParser_GetFontUnderlined(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetFontUnderlined(PyObject * sipSelf,PyObject * sipArgs)760 static PyObject *meth_wxHtmlWinParser_GetFontUnderlined(PyObject *sipSelf, PyObject *sipArgs)
761 {
762     PyObject *sipParseErr = SIP_NULLPTR;
763 
764     {
765         const  ::wxHtmlWinParser *sipCpp;
766 
767         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
768         {
769             int sipRes;
770 
771             PyErr_Clear();
772 
773             Py_BEGIN_ALLOW_THREADS
774             sipRes = sipCpp->GetFontUnderlined();
775             Py_END_ALLOW_THREADS
776 
777             if (PyErr_Occurred())
778                 return 0;
779 
780             return SIPLong_FromLong(sipRes);
781         }
782     }
783 
784     /* Raise an exception if the arguments couldn't be parsed. */
785     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetFontUnderlined, SIP_NULLPTR);
786 
787     return SIP_NULLPTR;
788 }
789 
790 
791 PyDoc_STRVAR(doc_wxHtmlWinParser_GetLink, "GetLink() -> HtmlLinkInfo\n"
792 "\n"
793 "Returns actual hypertext link.");
794 
795 extern "C" {static PyObject *meth_wxHtmlWinParser_GetLink(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetLink(PyObject * sipSelf,PyObject * sipArgs)796 static PyObject *meth_wxHtmlWinParser_GetLink(PyObject *sipSelf, PyObject *sipArgs)
797 {
798     PyObject *sipParseErr = SIP_NULLPTR;
799 
800     {
801         const  ::wxHtmlWinParser *sipCpp;
802 
803         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
804         {
805              ::wxHtmlLinkInfo*sipRes;
806 
807             PyErr_Clear();
808 
809             Py_BEGIN_ALLOW_THREADS
810             sipRes = new  ::wxHtmlLinkInfo(sipCpp->GetLink());
811             Py_END_ALLOW_THREADS
812 
813             if (PyErr_Occurred())
814                 return 0;
815 
816             return sipConvertFromNewType(sipRes,sipType_wxHtmlLinkInfo,SIP_NULLPTR);
817         }
818     }
819 
820     /* Raise an exception if the arguments couldn't be parsed. */
821     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetLink, SIP_NULLPTR);
822 
823     return SIP_NULLPTR;
824 }
825 
826 
827 PyDoc_STRVAR(doc_wxHtmlWinParser_GetLinkColor, "GetLinkColor() -> wx.Colour\n"
828 "\n"
829 "Returns the colour of hypertext link text.");
830 
831 extern "C" {static PyObject *meth_wxHtmlWinParser_GetLinkColor(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetLinkColor(PyObject * sipSelf,PyObject * sipArgs)832 static PyObject *meth_wxHtmlWinParser_GetLinkColor(PyObject *sipSelf, PyObject *sipArgs)
833 {
834     PyObject *sipParseErr = SIP_NULLPTR;
835 
836     {
837         const  ::wxHtmlWinParser *sipCpp;
838 
839         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
840         {
841              ::wxColour*sipRes;
842 
843             PyErr_Clear();
844 
845             Py_BEGIN_ALLOW_THREADS
846             sipRes = new  ::wxColour(sipCpp->GetLinkColor());
847             Py_END_ALLOW_THREADS
848 
849             if (PyErr_Occurred())
850                 return 0;
851 
852             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
853         }
854     }
855 
856     /* Raise an exception if the arguments couldn't be parsed. */
857     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetLinkColor, SIP_NULLPTR);
858 
859     return SIP_NULLPTR;
860 }
861 
862 
863 PyDoc_STRVAR(doc_wxHtmlWinParser_GetWindowInterface, "GetWindowInterface() -> HtmlWindowInterface\n"
864 "\n"
865 "Returns associated window (wxHtmlWindow).");
866 
867 extern "C" {static PyObject *meth_wxHtmlWinParser_GetWindowInterface(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetWindowInterface(PyObject * sipSelf,PyObject * sipArgs)868 static PyObject *meth_wxHtmlWinParser_GetWindowInterface(PyObject *sipSelf, PyObject *sipArgs)
869 {
870     PyObject *sipParseErr = SIP_NULLPTR;
871 
872     {
873          ::wxHtmlWinParser *sipCpp;
874 
875         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
876         {
877              ::wxHtmlWindowInterface*sipRes;
878 
879             PyErr_Clear();
880 
881             Py_BEGIN_ALLOW_THREADS
882             sipRes = sipCpp->GetWindowInterface();
883             Py_END_ALLOW_THREADS
884 
885             if (PyErr_Occurred())
886                 return 0;
887 
888             return sipConvertFromType(sipRes,sipType_wxHtmlWindowInterface,SIP_NULLPTR);
889         }
890     }
891 
892     /* Raise an exception if the arguments couldn't be parsed. */
893     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetWindowInterface, SIP_NULLPTR);
894 
895     return SIP_NULLPTR;
896 }
897 
898 
899 PyDoc_STRVAR(doc_wxHtmlWinParser_OpenContainer, "OpenContainer() -> HtmlContainerCell\n"
900 "\n"
901 "Opens new container and returns pointer to it (see Cells and\n"
902 "Containers).");
903 
904 extern "C" {static PyObject *meth_wxHtmlWinParser_OpenContainer(PyObject *, PyObject *);}
meth_wxHtmlWinParser_OpenContainer(PyObject * sipSelf,PyObject * sipArgs)905 static PyObject *meth_wxHtmlWinParser_OpenContainer(PyObject *sipSelf, PyObject *sipArgs)
906 {
907     PyObject *sipParseErr = SIP_NULLPTR;
908 
909     {
910          ::wxHtmlWinParser *sipCpp;
911 
912         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
913         {
914              ::wxHtmlContainerCell*sipRes;
915 
916             PyErr_Clear();
917 
918             Py_BEGIN_ALLOW_THREADS
919             sipRes = sipCpp->OpenContainer();
920             Py_END_ALLOW_THREADS
921 
922             if (PyErr_Occurred())
923                 return 0;
924 
925             return sipConvertFromType(sipRes,sipType_wxHtmlContainerCell,SIP_NULLPTR);
926         }
927     }
928 
929     /* Raise an exception if the arguments couldn't be parsed. */
930     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_OpenContainer, SIP_NULLPTR);
931 
932     return SIP_NULLPTR;
933 }
934 
935 
936 PyDoc_STRVAR(doc_wxHtmlWinParser_SetActualColor, "SetActualColor(clr)\n"
937 "\n"
938 "Sets actual text colour.");
939 
940 extern "C" {static PyObject *meth_wxHtmlWinParser_SetActualColor(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetActualColor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)941 static PyObject *meth_wxHtmlWinParser_SetActualColor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
942 {
943     PyObject *sipParseErr = SIP_NULLPTR;
944 
945     {
946         const  ::wxColour* clr;
947         int clrState = 0;
948          ::wxHtmlWinParser *sipCpp;
949 
950         static const char *sipKwdList[] = {
951             sipName_clr,
952         };
953 
954         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxColour, &clr, &clrState))
955         {
956             PyErr_Clear();
957 
958             Py_BEGIN_ALLOW_THREADS
959             sipCpp->SetActualColor(*clr);
960             Py_END_ALLOW_THREADS
961             sipReleaseType(const_cast< ::wxColour *>(clr),sipType_wxColour,clrState);
962 
963             if (PyErr_Occurred())
964                 return 0;
965 
966             Py_INCREF(Py_None);
967             return Py_None;
968         }
969     }
970 
971     /* Raise an exception if the arguments couldn't be parsed. */
972     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetActualColor, SIP_NULLPTR);
973 
974     return SIP_NULLPTR;
975 }
976 
977 
978 PyDoc_STRVAR(doc_wxHtmlWinParser_SetAlign, "SetAlign(a)\n"
979 "\n"
980 "Sets default horizontal alignment (see\n"
981 "wxHtmlContainerCell::SetAlignHor).");
982 
983 extern "C" {static PyObject *meth_wxHtmlWinParser_SetAlign(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetAlign(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)984 static PyObject *meth_wxHtmlWinParser_SetAlign(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
985 {
986     PyObject *sipParseErr = SIP_NULLPTR;
987 
988     {
989         int a;
990          ::wxHtmlWinParser *sipCpp;
991 
992         static const char *sipKwdList[] = {
993             sipName_a,
994         };
995 
996         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &a))
997         {
998             PyErr_Clear();
999 
1000             Py_BEGIN_ALLOW_THREADS
1001             sipCpp->SetAlign(a);
1002             Py_END_ALLOW_THREADS
1003 
1004             if (PyErr_Occurred())
1005                 return 0;
1006 
1007             Py_INCREF(Py_None);
1008             return Py_None;
1009         }
1010     }
1011 
1012     /* Raise an exception if the arguments couldn't be parsed. */
1013     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetAlign, SIP_NULLPTR);
1014 
1015     return SIP_NULLPTR;
1016 }
1017 
1018 
1019 PyDoc_STRVAR(doc_wxHtmlWinParser_SetContainer, "SetContainer(c) -> HtmlContainerCell\n"
1020 "\n"
1021 "Allows you to directly set opened container.");
1022 
1023 extern "C" {static PyObject *meth_wxHtmlWinParser_SetContainer(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetContainer(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1024 static PyObject *meth_wxHtmlWinParser_SetContainer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1025 {
1026     PyObject *sipParseErr = SIP_NULLPTR;
1027 
1028     {
1029          ::wxHtmlContainerCell* c;
1030          ::wxHtmlWinParser *sipCpp;
1031 
1032         static const char *sipKwdList[] = {
1033             sipName_c,
1034         };
1035 
1036         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxHtmlContainerCell, &c))
1037         {
1038              ::wxHtmlContainerCell*sipRes;
1039 
1040             PyErr_Clear();
1041 
1042             Py_BEGIN_ALLOW_THREADS
1043             sipRes = sipCpp->SetContainer(c);
1044             Py_END_ALLOW_THREADS
1045 
1046             if (PyErr_Occurred())
1047                 return 0;
1048 
1049             return sipConvertFromType(sipRes,sipType_wxHtmlContainerCell,SIP_NULLPTR);
1050         }
1051     }
1052 
1053     /* Raise an exception if the arguments couldn't be parsed. */
1054     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetContainer, SIP_NULLPTR);
1055 
1056     return SIP_NULLPTR;
1057 }
1058 
1059 
1060 PyDoc_STRVAR(doc_wxHtmlWinParser_SetDC, "SetDC(dc, pixel_scale=1.0e+0)\n"
1061 "\n"
1062 "Sets the DC.");
1063 
1064 extern "C" {static PyObject *meth_wxHtmlWinParser_SetDC(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetDC(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1065 static PyObject *meth_wxHtmlWinParser_SetDC(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1066 {
1067     PyObject *sipParseErr = SIP_NULLPTR;
1068     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1069 
1070     {
1071          ::wxDC* dc;
1072         double pixel_scale = 1;
1073          ::wxHtmlWinParser *sipCpp;
1074 
1075         static const char *sipKwdList[] = {
1076             sipName_dc,
1077             sipName_pixel_scale,
1078         };
1079 
1080         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8|d", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxDC, &dc, &pixel_scale))
1081         {
1082             PyErr_Clear();
1083 
1084             Py_BEGIN_ALLOW_THREADS
1085             (sipSelfWasArg ? sipCpp-> ::wxHtmlWinParser::SetDC(dc,pixel_scale) : sipCpp->SetDC(dc,pixel_scale));
1086             Py_END_ALLOW_THREADS
1087 
1088             if (PyErr_Occurred())
1089                 return 0;
1090 
1091             Py_INCREF(Py_None);
1092             return Py_None;
1093         }
1094     }
1095 
1096     /* Raise an exception if the arguments couldn't be parsed. */
1097     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetDC, SIP_NULLPTR);
1098 
1099     return SIP_NULLPTR;
1100 }
1101 
1102 
1103 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontBold, "SetFontBold(x)\n"
1104 "\n"
1105 "Sets bold flag of actualfont.");
1106 
1107 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontBold(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontBold(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1108 static PyObject *meth_wxHtmlWinParser_SetFontBold(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1109 {
1110     PyObject *sipParseErr = SIP_NULLPTR;
1111 
1112     {
1113         int x;
1114          ::wxHtmlWinParser *sipCpp;
1115 
1116         static const char *sipKwdList[] = {
1117             sipName_x,
1118         };
1119 
1120         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &x))
1121         {
1122             PyErr_Clear();
1123 
1124             Py_BEGIN_ALLOW_THREADS
1125             sipCpp->SetFontBold(x);
1126             Py_END_ALLOW_THREADS
1127 
1128             if (PyErr_Occurred())
1129                 return 0;
1130 
1131             Py_INCREF(Py_None);
1132             return Py_None;
1133         }
1134     }
1135 
1136     /* Raise an exception if the arguments couldn't be parsed. */
1137     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontBold, SIP_NULLPTR);
1138 
1139     return SIP_NULLPTR;
1140 }
1141 
1142 
1143 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontFace, "SetFontFace(face)\n"
1144 "\n"
1145 "Sets current font face to face.");
1146 
1147 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontFace(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontFace(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1148 static PyObject *meth_wxHtmlWinParser_SetFontFace(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1149 {
1150     PyObject *sipParseErr = SIP_NULLPTR;
1151 
1152     {
1153         const  ::wxString* face;
1154         int faceState = 0;
1155          ::wxHtmlWinParser *sipCpp;
1156 
1157         static const char *sipKwdList[] = {
1158             sipName_face,
1159         };
1160 
1161         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxString,&face, &faceState))
1162         {
1163             PyErr_Clear();
1164 
1165             Py_BEGIN_ALLOW_THREADS
1166             sipCpp->SetFontFace(*face);
1167             Py_END_ALLOW_THREADS
1168             sipReleaseType(const_cast< ::wxString *>(face),sipType_wxString,faceState);
1169 
1170             if (PyErr_Occurred())
1171                 return 0;
1172 
1173             Py_INCREF(Py_None);
1174             return Py_None;
1175         }
1176     }
1177 
1178     /* Raise an exception if the arguments couldn't be parsed. */
1179     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontFace, SIP_NULLPTR);
1180 
1181     return SIP_NULLPTR;
1182 }
1183 
1184 
1185 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontFixed, "SetFontFixed(x)\n"
1186 "\n"
1187 "Sets fixed face flag of actualfont.");
1188 
1189 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontFixed(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontFixed(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1190 static PyObject *meth_wxHtmlWinParser_SetFontFixed(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1191 {
1192     PyObject *sipParseErr = SIP_NULLPTR;
1193 
1194     {
1195         int x;
1196          ::wxHtmlWinParser *sipCpp;
1197 
1198         static const char *sipKwdList[] = {
1199             sipName_x,
1200         };
1201 
1202         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &x))
1203         {
1204             PyErr_Clear();
1205 
1206             Py_BEGIN_ALLOW_THREADS
1207             sipCpp->SetFontFixed(x);
1208             Py_END_ALLOW_THREADS
1209 
1210             if (PyErr_Occurred())
1211                 return 0;
1212 
1213             Py_INCREF(Py_None);
1214             return Py_None;
1215         }
1216     }
1217 
1218     /* Raise an exception if the arguments couldn't be parsed. */
1219     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontFixed, SIP_NULLPTR);
1220 
1221     return SIP_NULLPTR;
1222 }
1223 
1224 
1225 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontItalic, "SetFontItalic(x)\n"
1226 "\n"
1227 "Sets italic flag of actualfont.");
1228 
1229 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontItalic(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontItalic(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1230 static PyObject *meth_wxHtmlWinParser_SetFontItalic(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1231 {
1232     PyObject *sipParseErr = SIP_NULLPTR;
1233 
1234     {
1235         int x;
1236          ::wxHtmlWinParser *sipCpp;
1237 
1238         static const char *sipKwdList[] = {
1239             sipName_x,
1240         };
1241 
1242         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &x))
1243         {
1244             PyErr_Clear();
1245 
1246             Py_BEGIN_ALLOW_THREADS
1247             sipCpp->SetFontItalic(x);
1248             Py_END_ALLOW_THREADS
1249 
1250             if (PyErr_Occurred())
1251                 return 0;
1252 
1253             Py_INCREF(Py_None);
1254             return Py_None;
1255         }
1256     }
1257 
1258     /* Raise an exception if the arguments couldn't be parsed. */
1259     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontItalic, SIP_NULLPTR);
1260 
1261     return SIP_NULLPTR;
1262 }
1263 
1264 
1265 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontSize, "SetFontSize(s)\n"
1266 "\n"
1267 "Sets actual font size (HTML size varies from 1 to 7).");
1268 
1269 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontSize(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1270 static PyObject *meth_wxHtmlWinParser_SetFontSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1271 {
1272     PyObject *sipParseErr = SIP_NULLPTR;
1273 
1274     {
1275         int s;
1276          ::wxHtmlWinParser *sipCpp;
1277 
1278         static const char *sipKwdList[] = {
1279             sipName_s,
1280         };
1281 
1282         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &s))
1283         {
1284             PyErr_Clear();
1285 
1286             Py_BEGIN_ALLOW_THREADS
1287             sipCpp->SetFontSize(s);
1288             Py_END_ALLOW_THREADS
1289 
1290             if (PyErr_Occurred())
1291                 return 0;
1292 
1293             Py_INCREF(Py_None);
1294             return Py_None;
1295         }
1296     }
1297 
1298     /* Raise an exception if the arguments couldn't be parsed. */
1299     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontSize, SIP_NULLPTR);
1300 
1301     return SIP_NULLPTR;
1302 }
1303 
1304 
1305 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFontUnderlined, "SetFontUnderlined(x)\n"
1306 "\n"
1307 "Sets underlined flag of actualfont.");
1308 
1309 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFontUnderlined(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFontUnderlined(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1310 static PyObject *meth_wxHtmlWinParser_SetFontUnderlined(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1311 {
1312     PyObject *sipParseErr = SIP_NULLPTR;
1313 
1314     {
1315         int x;
1316          ::wxHtmlWinParser *sipCpp;
1317 
1318         static const char *sipKwdList[] = {
1319             sipName_x,
1320         };
1321 
1322         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, &x))
1323         {
1324             PyErr_Clear();
1325 
1326             Py_BEGIN_ALLOW_THREADS
1327             sipCpp->SetFontUnderlined(x);
1328             Py_END_ALLOW_THREADS
1329 
1330             if (PyErr_Occurred())
1331                 return 0;
1332 
1333             Py_INCREF(Py_None);
1334             return Py_None;
1335         }
1336     }
1337 
1338     /* Raise an exception if the arguments couldn't be parsed. */
1339     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFontUnderlined, SIP_NULLPTR);
1340 
1341     return SIP_NULLPTR;
1342 }
1343 
1344 
1345 PyDoc_STRVAR(doc_wxHtmlWinParser_SetFonts, "SetFonts(normal_face, fixed_face, sizes)\n"
1346 "\n"
1347 "Sets fonts.");
1348 
1349 extern "C" {static PyObject *meth_wxHtmlWinParser_SetFonts(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetFonts(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1350 static PyObject *meth_wxHtmlWinParser_SetFonts(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1351 {
1352     PyObject *sipParseErr = SIP_NULLPTR;
1353 
1354     {
1355         const  ::wxString* normal_face;
1356         int normal_faceState = 0;
1357         const  ::wxString* fixed_face;
1358         int fixed_faceState = 0;
1359         const  ::wxArrayInt* sizes;
1360         int sizesState = 0;
1361          ::wxHtmlWinParser *sipCpp;
1362 
1363         static const char *sipKwdList[] = {
1364             sipName_normal_face,
1365             sipName_fixed_face,
1366             sipName_sizes,
1367         };
1368 
1369         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1J1J1", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxString,&normal_face, &normal_faceState, sipType_wxString,&fixed_face, &fixed_faceState, sipType_wxArrayInt,&sizes, &sizesState))
1370         {
1371             int sipIsErr = 0;
1372 
1373         PyErr_Clear();
1374         Py_BEGIN_ALLOW_THREADS
1375         _wxHtmlWinParser_SetFonts(sipCpp, normal_face, fixed_face, sizes);
1376         Py_END_ALLOW_THREADS
1377         if (PyErr_Occurred()) sipIsErr = 1;
1378             sipReleaseType(const_cast< ::wxString *>(normal_face),sipType_wxString,normal_faceState);
1379             sipReleaseType(const_cast< ::wxString *>(fixed_face),sipType_wxString,fixed_faceState);
1380             sipReleaseType(const_cast< ::wxArrayInt *>(sizes),sipType_wxArrayInt,sizesState);
1381 
1382             if (sipIsErr)
1383                 return 0;
1384 
1385             Py_INCREF(Py_None);
1386             return Py_None;
1387         }
1388     }
1389 
1390     /* Raise an exception if the arguments couldn't be parsed. */
1391     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetFonts, SIP_NULLPTR);
1392 
1393     return SIP_NULLPTR;
1394 }
1395 
1396 
1397 PyDoc_STRVAR(doc_wxHtmlWinParser_SetLink, "SetLink(link)\n"
1398 "\n"
1399 "Sets actual hypertext link.");
1400 
1401 extern "C" {static PyObject *meth_wxHtmlWinParser_SetLink(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetLink(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1402 static PyObject *meth_wxHtmlWinParser_SetLink(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1403 {
1404     PyObject *sipParseErr = SIP_NULLPTR;
1405 
1406     {
1407         const  ::wxHtmlLinkInfo* link;
1408          ::wxHtmlWinParser *sipCpp;
1409 
1410         static const char *sipKwdList[] = {
1411             sipName_link,
1412         };
1413 
1414         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxHtmlLinkInfo, &link))
1415         {
1416             PyErr_Clear();
1417 
1418             Py_BEGIN_ALLOW_THREADS
1419             sipCpp->SetLink(*link);
1420             Py_END_ALLOW_THREADS
1421 
1422             if (PyErr_Occurred())
1423                 return 0;
1424 
1425             Py_INCREF(Py_None);
1426             return Py_None;
1427         }
1428     }
1429 
1430     /* Raise an exception if the arguments couldn't be parsed. */
1431     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetLink, SIP_NULLPTR);
1432 
1433     return SIP_NULLPTR;
1434 }
1435 
1436 
1437 PyDoc_STRVAR(doc_wxHtmlWinParser_SetLinkColor, "SetLinkColor(clr)\n"
1438 "\n"
1439 "Sets colour of hypertext link.");
1440 
1441 extern "C" {static PyObject *meth_wxHtmlWinParser_SetLinkColor(PyObject *, PyObject *, PyObject *);}
meth_wxHtmlWinParser_SetLinkColor(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1442 static PyObject *meth_wxHtmlWinParser_SetLinkColor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1443 {
1444     PyObject *sipParseErr = SIP_NULLPTR;
1445 
1446     {
1447         const  ::wxColour* clr;
1448         int clrState = 0;
1449          ::wxHtmlWinParser *sipCpp;
1450 
1451         static const char *sipKwdList[] = {
1452             sipName_clr,
1453         };
1454 
1455         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxHtmlWinParser, &sipCpp, sipType_wxColour, &clr, &clrState))
1456         {
1457             PyErr_Clear();
1458 
1459             Py_BEGIN_ALLOW_THREADS
1460             sipCpp->SetLinkColor(*clr);
1461             Py_END_ALLOW_THREADS
1462             sipReleaseType(const_cast< ::wxColour *>(clr),sipType_wxColour,clrState);
1463 
1464             if (PyErr_Occurred())
1465                 return 0;
1466 
1467             Py_INCREF(Py_None);
1468             return Py_None;
1469         }
1470     }
1471 
1472     /* Raise an exception if the arguments couldn't be parsed. */
1473     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_SetLinkColor, SIP_NULLPTR);
1474 
1475     return SIP_NULLPTR;
1476 }
1477 
1478 
1479 PyDoc_STRVAR(doc_wxHtmlWinParser_GetProduct, "GetProduct(self) -> Object");
1480 
1481 extern "C" {static PyObject *meth_wxHtmlWinParser_GetProduct(PyObject *, PyObject *);}
meth_wxHtmlWinParser_GetProduct(PyObject * sipSelf,PyObject * sipArgs)1482 static PyObject *meth_wxHtmlWinParser_GetProduct(PyObject *sipSelf, PyObject *sipArgs)
1483 {
1484     PyObject *sipParseErr = SIP_NULLPTR;
1485     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1486 
1487     {
1488          ::wxHtmlWinParser *sipCpp;
1489 
1490         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxHtmlWinParser, &sipCpp))
1491         {
1492              ::wxObject*sipRes;
1493 
1494             PyErr_Clear();
1495 
1496             Py_BEGIN_ALLOW_THREADS
1497             sipRes = (sipSelfWasArg ? sipCpp-> ::wxHtmlWinParser::GetProduct() : sipCpp->GetProduct());
1498             Py_END_ALLOW_THREADS
1499 
1500             if (PyErr_Occurred())
1501                 return 0;
1502 
1503             return sipConvertFromType(sipRes,sipType_wxObject,SIP_NULLPTR);
1504         }
1505     }
1506 
1507     /* Raise an exception if the arguments couldn't be parsed. */
1508     sipNoMethod(sipParseErr, sipName_HtmlWinParser, sipName_GetProduct, doc_wxHtmlWinParser_GetProduct);
1509 
1510     return SIP_NULLPTR;
1511 }
1512 
1513 
1514 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1515 extern "C" {static void *cast_wxHtmlWinParser(void *, const sipTypeDef *);}
cast_wxHtmlWinParser(void * sipCppV,const sipTypeDef * targetType)1516 static void *cast_wxHtmlWinParser(void *sipCppV, const sipTypeDef *targetType)
1517 {
1518      ::wxHtmlWinParser *sipCpp = reinterpret_cast< ::wxHtmlWinParser *>(sipCppV);
1519 
1520     if (targetType == sipType_wxHtmlParser)
1521         return static_cast< ::wxHtmlParser *>(sipCpp);
1522 
1523     return sipCppV;
1524 }
1525 
1526 
1527 /* Call the instance's destructor. */
1528 extern "C" {static void release_wxHtmlWinParser(void *, int);}
release_wxHtmlWinParser(void * sipCppV,int sipState)1529 static void release_wxHtmlWinParser(void *sipCppV, int sipState)
1530 {
1531     Py_BEGIN_ALLOW_THREADS
1532 
1533     if (sipState & SIP_DERIVED_CLASS)
1534         delete reinterpret_cast<sipwxHtmlWinParser *>(sipCppV);
1535     else
1536         delete reinterpret_cast< ::wxHtmlWinParser *>(sipCppV);
1537 
1538     Py_END_ALLOW_THREADS
1539 }
1540 
1541 
1542 extern "C" {static void dealloc_wxHtmlWinParser(sipSimpleWrapper *);}
dealloc_wxHtmlWinParser(sipSimpleWrapper * sipSelf)1543 static void dealloc_wxHtmlWinParser(sipSimpleWrapper *sipSelf)
1544 {
1545     if (sipIsDerivedClass(sipSelf))
1546         reinterpret_cast<sipwxHtmlWinParser *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1547 
1548     if (sipIsOwnedByPython(sipSelf))
1549     {
1550         release_wxHtmlWinParser(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1551     }
1552 }
1553 
1554 
1555 extern "C" {static void *init_type_wxHtmlWinParser(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxHtmlWinParser(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1556 static void *init_type_wxHtmlWinParser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1557 {
1558     sipwxHtmlWinParser *sipCpp = SIP_NULLPTR;
1559 
1560     {
1561          ::wxHtmlWindowInterface* wndIface = 0;
1562 
1563         static const char *sipKwdList[] = {
1564             sipName_wndIface,
1565         };
1566 
1567         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J8", sipType_wxHtmlWindowInterface, &wndIface))
1568         {
1569             PyErr_Clear();
1570 
1571             Py_BEGIN_ALLOW_THREADS
1572             sipCpp = new sipwxHtmlWinParser(wndIface);
1573             Py_END_ALLOW_THREADS
1574 
1575             if (PyErr_Occurred())
1576             {
1577                 delete sipCpp;
1578                 return SIP_NULLPTR;
1579             }
1580 
1581             sipCpp->sipPySelf = sipSelf;
1582 
1583             return sipCpp;
1584         }
1585     }
1586 
1587     return SIP_NULLPTR;
1588 }
1589 
1590 
1591 /* Define this type's super-types. */
1592 static sipEncodedTypeDef supers_wxHtmlWinParser[] = {{22, 255, 1}};
1593 
1594 
1595 static PyMethodDef methods_wxHtmlWinParser[] = {
1596     {SIP_MLNAME_CAST(sipName_AddTag), SIP_MLMETH_CAST(meth_wxHtmlWinParser_AddTag), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1597     {SIP_MLNAME_CAST(sipName_CloseContainer), meth_wxHtmlWinParser_CloseContainer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_CloseContainer)},
1598     {SIP_MLNAME_CAST(sipName_CreateCurrentFont), meth_wxHtmlWinParser_CreateCurrentFont, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_CreateCurrentFont)},
1599     {SIP_MLNAME_CAST(sipName_GetActualColor), meth_wxHtmlWinParser_GetActualColor, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetActualColor)},
1600     {SIP_MLNAME_CAST(sipName_GetAlign), meth_wxHtmlWinParser_GetAlign, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetAlign)},
1601     {SIP_MLNAME_CAST(sipName_GetCharHeight), meth_wxHtmlWinParser_GetCharHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetCharHeight)},
1602     {SIP_MLNAME_CAST(sipName_GetCharWidth), meth_wxHtmlWinParser_GetCharWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetCharWidth)},
1603     {SIP_MLNAME_CAST(sipName_GetContainer), meth_wxHtmlWinParser_GetContainer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetContainer)},
1604     {SIP_MLNAME_CAST(sipName_GetDC), meth_wxHtmlWinParser_GetDC, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetDC)},
1605     {SIP_MLNAME_CAST(sipName_GetFontBold), meth_wxHtmlWinParser_GetFontBold, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontBold)},
1606     {SIP_MLNAME_CAST(sipName_GetFontFace), meth_wxHtmlWinParser_GetFontFace, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontFace)},
1607     {SIP_MLNAME_CAST(sipName_GetFontFixed), meth_wxHtmlWinParser_GetFontFixed, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontFixed)},
1608     {SIP_MLNAME_CAST(sipName_GetFontItalic), meth_wxHtmlWinParser_GetFontItalic, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontItalic)},
1609     {SIP_MLNAME_CAST(sipName_GetFontSize), meth_wxHtmlWinParser_GetFontSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontSize)},
1610     {SIP_MLNAME_CAST(sipName_GetFontUnderlined), meth_wxHtmlWinParser_GetFontUnderlined, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetFontUnderlined)},
1611     {SIP_MLNAME_CAST(sipName_GetLink), meth_wxHtmlWinParser_GetLink, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetLink)},
1612     {SIP_MLNAME_CAST(sipName_GetLinkColor), meth_wxHtmlWinParser_GetLinkColor, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetLinkColor)},
1613     {SIP_MLNAME_CAST(sipName_GetProduct), meth_wxHtmlWinParser_GetProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetProduct)},
1614     {SIP_MLNAME_CAST(sipName_GetWindowInterface), meth_wxHtmlWinParser_GetWindowInterface, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_GetWindowInterface)},
1615     {SIP_MLNAME_CAST(sipName_OpenContainer), meth_wxHtmlWinParser_OpenContainer, METH_VARARGS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_OpenContainer)},
1616     {SIP_MLNAME_CAST(sipName_SetActualColor), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetActualColor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetActualColor)},
1617     {SIP_MLNAME_CAST(sipName_SetAlign), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetAlign), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetAlign)},
1618     {SIP_MLNAME_CAST(sipName_SetContainer), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetContainer), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetContainer)},
1619     {SIP_MLNAME_CAST(sipName_SetDC), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetDC), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetDC)},
1620     {SIP_MLNAME_CAST(sipName_SetFontBold), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontBold), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontBold)},
1621     {SIP_MLNAME_CAST(sipName_SetFontFace), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontFace), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontFace)},
1622     {SIP_MLNAME_CAST(sipName_SetFontFixed), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontFixed), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontFixed)},
1623     {SIP_MLNAME_CAST(sipName_SetFontItalic), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontItalic), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontItalic)},
1624     {SIP_MLNAME_CAST(sipName_SetFontSize), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontSize)},
1625     {SIP_MLNAME_CAST(sipName_SetFontUnderlined), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFontUnderlined), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFontUnderlined)},
1626     {SIP_MLNAME_CAST(sipName_SetFonts), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetFonts), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetFonts)},
1627     {SIP_MLNAME_CAST(sipName_SetLink), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetLink), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetLink)},
1628     {SIP_MLNAME_CAST(sipName_SetLinkColor), SIP_MLMETH_CAST(meth_wxHtmlWinParser_SetLinkColor), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxHtmlWinParser_SetLinkColor)}
1629 };
1630 
1631 sipVariableDef variables_wxHtmlWinParser[] = {
1632     {PropertyVariable, sipName_WindowInterface, &methods_wxHtmlWinParser[18], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1633     {PropertyVariable, sipName_LinkColor, &methods_wxHtmlWinParser[16], &methods_wxHtmlWinParser[32], SIP_NULLPTR, SIP_NULLPTR},
1634     {PropertyVariable, sipName_Link, &methods_wxHtmlWinParser[15], &methods_wxHtmlWinParser[31], SIP_NULLPTR, SIP_NULLPTR},
1635     {PropertyVariable, sipName_FontUnderlined, &methods_wxHtmlWinParser[14], &methods_wxHtmlWinParser[29], SIP_NULLPTR, SIP_NULLPTR},
1636     {PropertyVariable, sipName_FontSize, &methods_wxHtmlWinParser[13], &methods_wxHtmlWinParser[28], SIP_NULLPTR, SIP_NULLPTR},
1637     {PropertyVariable, sipName_FontItalic, &methods_wxHtmlWinParser[12], &methods_wxHtmlWinParser[27], SIP_NULLPTR, SIP_NULLPTR},
1638     {PropertyVariable, sipName_FontFixed, &methods_wxHtmlWinParser[11], &methods_wxHtmlWinParser[26], SIP_NULLPTR, SIP_NULLPTR},
1639     {PropertyVariable, sipName_FontFace, &methods_wxHtmlWinParser[10], &methods_wxHtmlWinParser[25], SIP_NULLPTR, SIP_NULLPTR},
1640     {PropertyVariable, sipName_FontBold, &methods_wxHtmlWinParser[9], &methods_wxHtmlWinParser[24], SIP_NULLPTR, SIP_NULLPTR},
1641     {PropertyVariable, sipName_DC, &methods_wxHtmlWinParser[8], &methods_wxHtmlWinParser[23], SIP_NULLPTR, SIP_NULLPTR},
1642     {PropertyVariable, sipName_Container, &methods_wxHtmlWinParser[7], &methods_wxHtmlWinParser[22], SIP_NULLPTR, SIP_NULLPTR},
1643     {PropertyVariable, sipName_CharWidth, &methods_wxHtmlWinParser[6], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1644     {PropertyVariable, sipName_CharHeight, &methods_wxHtmlWinParser[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1645     {PropertyVariable, sipName_Align, &methods_wxHtmlWinParser[4], &methods_wxHtmlWinParser[21], SIP_NULLPTR, SIP_NULLPTR},
1646     {PropertyVariable, sipName_ActualColor, &methods_wxHtmlWinParser[3], &methods_wxHtmlWinParser[20], SIP_NULLPTR, SIP_NULLPTR},
1647 };
1648 
1649 PyDoc_STRVAR(doc_wxHtmlWinParser, "HtmlWinParser(wndIface=None)\n"
1650 "\n"
1651 "This class is derived from wxHtmlParser and its main goal is to parse\n"
1652 "HTML input so that it can be displayed in wxHtmlWindow.");
1653 
1654 
1655 sipClassTypeDef sipTypeDef__html_wxHtmlWinParser = {
1656     {
1657         -1,
1658         SIP_NULLPTR,
1659         SIP_NULLPTR,
1660         SIP_TYPE_CLASS,
1661         sipNameNr_wxHtmlWinParser,
1662         {SIP_NULLPTR},
1663         SIP_NULLPTR
1664     },
1665     {
1666         sipNameNr_HtmlWinParser,
1667         {0, 0, 1},
1668         33, methods_wxHtmlWinParser,
1669         0, SIP_NULLPTR,
1670         15, variables_wxHtmlWinParser,
1671         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1672     },
1673     doc_wxHtmlWinParser,
1674     -1,
1675     -1,
1676     supers_wxHtmlWinParser,
1677     SIP_NULLPTR,
1678     init_type_wxHtmlWinParser,
1679     SIP_NULLPTR,
1680     SIP_NULLPTR,
1681 #if PY_MAJOR_VERSION >= 3
1682     SIP_NULLPTR,
1683     SIP_NULLPTR,
1684 #else
1685     SIP_NULLPTR,
1686     SIP_NULLPTR,
1687     SIP_NULLPTR,
1688     SIP_NULLPTR,
1689 #endif
1690     dealloc_wxHtmlWinParser,
1691     SIP_NULLPTR,
1692     SIP_NULLPTR,
1693     SIP_NULLPTR,
1694     release_wxHtmlWinParser,
1695     cast_wxHtmlWinParser,
1696     SIP_NULLPTR,
1697     SIP_NULLPTR,
1698     SIP_NULLPTR,
1699     SIP_NULLPTR,
1700     SIP_NULLPTR,
1701     SIP_NULLPTR
1702 };
1703