1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of html classes
7 // Created: 25-nov-1998
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
18 #include <wx/html/htmlwin.h>
19 #include <wx/html/htmprint.h>
21 #include <wx/fs_zip.h>
22 #include <wx/fs_inet.h>
23 #include <wx/wfstream.h>
24 #include <wx/filesys.h>
29 //---------------------------------------------------------------------------
32 %include my_typemaps.i
46 %pragma(python) code = "import wx"
49 //----------------------------------------------------------------------
52 // Put some wx default wxChar* values into wxStrings.
53 static const wxChar* wxHtmlWindowNameStr = wxT("htmlWindow");
54 DECLARE_DEF_STRING(HtmlWindowNameStr);
56 static const wxChar* wxHtmlPrintoutTitleStr = wxT("Printout");
57 DECLARE_DEF_STRING(HtmlPrintoutTitleStr);
59 static const wxChar* wxHtmlPrintingTitleStr = wxT("Printing");
60 DECLARE_DEF_STRING(HtmlPrintingTitleStr);
62 static const wxString wxPyEmptyString(wxT(""));
65 //---------------------------------------------------------------------------
74 wxHTML_CLR_FOREGROUND,
75 wxHTML_CLR_BACKGROUND,
85 wxHTML_INDENT_HORIZONTAL,
86 wxHTML_INDENT_VERTICAL,
90 wxHTML_COND_ISIMAGEMAP,
101 // enums for wxHtmlWindow::OnOpeningURL
102 enum wxHtmlOpeningStatus
116 //---------------------------------------------------------------------------
118 class wxHtmlLinkInfo : public wxObject {
120 wxHtmlLinkInfo(const wxString& href, const wxString& target = wxPyEmptyString);
122 wxString GetTarget();
123 wxMouseEvent* GetEvent();
124 wxHtmlCell* GetHtmlCell();
126 void SetEvent(const wxMouseEvent *e);
127 void SetHtmlCell(const wxHtmlCell * e);
130 //---------------------------------------------------------------------------
132 class wxHtmlTag : public wxObject {
134 // Never need to create a new tag from Python...
135 //wxHtmlTag(const wxString& source, int pos, int end_pos, wxHtmlTagsCache* cache);
138 bool HasParam(const wxString& par);
139 wxString GetParam(const wxString& par, int with_commas = FALSE);
141 // Can't do this one as-is, but GetParam should be enough...
142 //int ScanParam(const wxString& par, const char *format, void* param);
144 wxString GetAllParams();
152 //---------------------------------------------------------------------------
154 class wxHtmlParser : public wxObject {
156 // wxHtmlParser(); This is an abstract base class...
158 void SetFS(wxFileSystem *fs);
159 wxFileSystem* GetFS();
160 wxObject* Parse(const wxString& source);
161 void InitParser(const wxString& source);
163 void DoParsing(int begin_pos, int end_pos);
165 // wxObject* GetProduct();
167 void AddTagHandler(wxHtmlTagHandler *handler);
168 wxString* GetSource();
169 void PushTagHandler(wxHtmlTagHandler* handler, wxString tags);
170 void PopTagHandler();
172 // virtual wxFSFile *OpenURL(wxHtmlURLType type, const wxString& url) const;
174 // void AddText(const char* txt) = 0;
175 // void AddTag(const wxHtmlTag& tag);
179 //---------------------------------------------------------------------------
181 class wxHtmlWinParser : public wxHtmlParser {
183 wxHtmlWinParser(wxHtmlWindow *wnd = NULL);
185 void SetDC(wxDC *dc);
189 wxHtmlWindow* GetWindow();
191 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
193 if (sizes) temp = int_LIST_helper(sizes);
194 self->SetFonts(normal_face, fixed_face, temp);
200 wxHtmlContainerCell* GetContainer();
201 wxHtmlContainerCell* OpenContainer();
202 wxHtmlContainerCell *SetContainer(wxHtmlContainerCell *c);
203 wxHtmlContainerCell* CloseContainer();
206 void SetFontSize(int s);
208 void SetFontBold(int x);
210 void SetFontItalic(int x);
211 int GetFontUnderlined();
212 void SetFontUnderlined(int x);
214 void SetFontFixed(int x);
216 void SetAlign(int a);
217 wxColour GetLinkColor();
218 void SetLinkColor(const wxColour& clr);
219 wxColour GetActualColor();
220 void SetActualColor(const wxColour& clr);
221 void SetLink(const wxString& link);
222 wxFont* CreateCurrentFont();
223 wxHtmlLinkInfo GetLink();
229 //---------------------------------------------------------------------------
232 class wxPyHtmlTagHandler : public wxHtmlTagHandler {
233 DECLARE_DYNAMIC_CLASS(wxPyHtmlTagHandler);
235 wxPyHtmlTagHandler() : wxHtmlTagHandler() {};
237 wxHtmlParser* GetParser() { return m_Parser; }
238 void ParseInner(const wxHtmlTag& tag) { wxHtmlTagHandler::ParseInner(tag); }
240 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
241 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
246 IMPLEMENT_DYNAMIC_CLASS(wxPyHtmlTagHandler, wxHtmlTagHandler);
248 IMP_PYCALLBACK_STRING__pure(wxPyHtmlTagHandler, wxHtmlTagHandler, GetSupportedTags);
249 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlTagHandler, wxHtmlTagHandler, HandleTag);
253 %name(wxHtmlTagHandler) class wxPyHtmlTagHandler : public wxObject {
255 wxPyHtmlTagHandler();
257 void _setCallbackInfo(PyObject* self, PyObject* _class);
258 %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxHtmlTagHandler)"
260 void SetParser(wxHtmlParser *parser);
261 wxHtmlParser* GetParser();
262 void ParseInner(const wxHtmlTag& tag);
266 //---------------------------------------------------------------------------
269 class wxPyHtmlWinTagHandler : public wxHtmlWinTagHandler {
270 DECLARE_DYNAMIC_CLASS(wxPyHtmlWinTagHandler);
272 wxPyHtmlWinTagHandler() : wxHtmlWinTagHandler() {};
274 wxHtmlWinParser* GetParser() { return m_WParser; }
275 void ParseInner(const wxHtmlTag& tag)
276 { wxHtmlWinTagHandler::ParseInner(tag); }
278 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
279 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
284 IMPLEMENT_DYNAMIC_CLASS( wxPyHtmlWinTagHandler, wxHtmlWinTagHandler);
286 IMP_PYCALLBACK_STRING__pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, GetSupportedTags);
287 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, HandleTag);
291 %name(wxHtmlWinTagHandler) class wxPyHtmlWinTagHandler : public wxPyHtmlTagHandler {
293 wxPyHtmlWinTagHandler();
295 void _setCallbackInfo(PyObject* self, PyObject* _class);
296 %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxHtmlWinTagHandler)"
298 void SetParser(wxHtmlParser *parser);
299 wxHtmlWinParser* GetParser();
300 void ParseInner(const wxHtmlTag& tag);
304 //---------------------------------------------------------------------------
308 class wxPyHtmlTagsModule : public wxHtmlTagsModule {
310 wxPyHtmlTagsModule(PyObject* thc) : wxHtmlTagsModule() {
311 m_tagHandlerClass = thc;
312 Py_INCREF(m_tagHandlerClass);
313 RegisterModule(this);
314 wxHtmlWinParser::AddModule(this);
318 wxPyBeginBlockThreads();
319 Py_DECREF(m_tagHandlerClass);
320 m_tagHandlerClass = NULL;
321 for (size_t x=0; x < m_objArray.GetCount(); x++) {
322 PyObject* obj = (PyObject*)m_objArray.Item(x);
325 wxPyEndBlockThreads();
328 void FillHandlersTable(wxHtmlWinParser *parser) {
329 // Wave our magic wand... (if it works it's a miracle! ;-)
331 // First, make a new instance of the tag handler
332 wxPyBeginBlockThreads();
333 PyObject* arg = Py_BuildValue("()");
334 PyObject* obj = PyInstance_New(m_tagHandlerClass, arg, NULL);
336 wxPyEndBlockThreads();
338 // now figure out where it's C++ object is...
339 wxPyHtmlWinTagHandler* thPtr;
340 if (SWIG_GetPtrObj(obj, (void **)&thPtr, "_wxPyHtmlWinTagHandler_p"))
344 parser->AddTagHandler(thPtr);
351 PyObject* m_tagHandlerClass;
352 wxArrayPtrVoid m_objArray;
360 void wxHtmlWinParser_AddTagHandler(PyObject* tagHandlerClass) {
361 // Dynamically create a new wxModule. Refcounts tagHandlerClass
362 // and adds itself to the wxModules list and to the wxHtmlWinParser.
363 new wxPyHtmlTagsModule(tagHandlerClass);
368 //---------------------------------------------------------------------------
369 //---------------------------------------------------------------------------
371 class wxHtmlCell : public wxObject {
380 wxHtmlLinkInfo* GetLink(int x = 0, int y = 0);
381 wxHtmlCell* GetNext();
382 wxHtmlContainerCell* GetParent();
383 void SetLink(const wxHtmlLinkInfo& link);
384 void SetNext(wxHtmlCell *cell);
385 void SetParent(wxHtmlContainerCell *p);
386 void SetPos(int x, int y);
388 void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2);
389 void DrawInvisible(wxDC& dc, int x, int y);
390 const wxHtmlCell* Find(int condition, const void* param);
392 bool AdjustPagebreak(int * pagebreak);
393 void SetCanLiveOnPagebreak(bool can);
398 class wxHtmlWordCell : public wxHtmlCell
401 wxHtmlWordCell(const wxString& word, wxDC& dc);
405 class wxHtmlContainerCell : public wxHtmlCell {
407 wxHtmlContainerCell(wxHtmlContainerCell *parent);
409 void InsertCell(wxHtmlCell *cell);
410 void SetAlignHor(int al);
412 void SetAlignVer(int al);
414 void SetIndent(int i, int what, int units = wxHTML_UNITS_PIXELS);
415 int GetIndent(int ind);
416 int GetIndentUnits(int ind);
417 void SetAlign(const wxHtmlTag& tag);
418 void SetWidthFloat(int w, int units);
419 %name(SetWidthFloatFromTag)void SetWidthFloat(const wxHtmlTag& tag);
420 void SetMinHeight(int h, int align = wxHTML_ALIGN_TOP);
421 void SetBackgroundColour(const wxColour& clr);
422 wxColour GetBackgroundColour();
423 void SetBorder(const wxColour& clr1, const wxColour& clr2);
424 wxHtmlCell* GetFirstCell();
429 class wxHtmlColourCell : public wxHtmlCell {
431 wxHtmlColourCell(wxColour clr, int flags = wxHTML_CLR_FOREGROUND);
436 class wxHtmlFontCell : public wxHtmlCell
439 wxHtmlFontCell(wxFont *font);
443 class wxHtmlWidgetCell : public wxHtmlCell {
445 wxHtmlWidgetCell(wxWindow* wnd, int w = 0);
450 //---------------------------------------------------------------------------
452 //---------------------------------------------------------------------------
455 %{ // here's the C++ version
456 class wxPyHtmlFilter : public wxHtmlFilter {
457 DECLARE_ABSTRACT_CLASS(wxPyHtmlFilter);
459 wxPyHtmlFilter() : wxHtmlFilter() {}
461 // returns TRUE if this filter is able to open&read given file
462 virtual bool CanRead(const wxFSFile& file) const {
465 wxPyBeginBlockThreads();
466 if ((found = wxPyCBH_findCallback(m_myInst, "CanRead"))) {
467 PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file); // cast away const
468 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
471 wxPyEndBlockThreads();
476 // Reads given file and returns HTML document.
477 // Returns empty string if opening failed
478 virtual wxString ReadFile(const wxFSFile& file) const {
481 wxPyBeginBlockThreads();
482 if ((found = wxPyCBH_findCallback(m_myInst, "ReadFile"))) {
483 PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file); // cast away const
485 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(O)", obj));
488 rval = Py2wxString(ro);
492 wxPyEndBlockThreads();
499 IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlFilter, wxHtmlFilter);
503 // And now the version seen by SWIG
505 %name(wxHtmlFilter) class wxPyHtmlFilter : public wxObject {
509 void _setCallbackInfo(PyObject* self, PyObject* _class);
510 %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxHtmlFilter)"
514 // TODO: wxHtmlFilterHTML
517 //---------------------------------------------------------------------------
519 //---------------------------------------------------------------------------
522 class wxPyHtmlWindow : public wxHtmlWindow {
523 DECLARE_ABSTRACT_CLASS(wxPyHtmlWindow);
525 wxPyHtmlWindow(wxWindow *parent, wxWindowID id = -1,
526 const wxPoint& pos = wxDefaultPosition,
527 const wxSize& size = wxDefaultSize,
528 long style = wxHW_SCROLLBAR_AUTO,
529 const wxString& name = wxPyHtmlWindowNameStr)
530 : wxHtmlWindow(parent, id, pos, size, style, name) {};
531 wxPyHtmlWindow() : wxHtmlWindow() {};
533 bool ScrollToAnchor(const wxString& anchor) {
534 return wxHtmlWindow::ScrollToAnchor(anchor);
537 bool HasAnchor(const wxString& anchor) {
538 const wxHtmlCell *c = m_Cell->Find(wxHTML_COND_ISANCHOR, &anchor);
542 void OnLinkClicked(const wxHtmlLinkInfo& link);
543 void base_OnLinkClicked(const wxHtmlLinkInfo& link);
545 wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,
547 wxString *redirect) const;
549 DEC_PYCALLBACK__STRING(OnSetTitle);
550 DEC_PYCALLBACK__CELLINTINT(OnCellMouseHover);
551 DEC_PYCALLBACK__CELLINTINTME(OnCellClicked);
555 IMPLEMENT_ABSTRACT_CLASS( wxPyHtmlWindow, wxHtmlWindow );
556 IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle);
557 IMP_PYCALLBACK__CELLINTINT(wxPyHtmlWindow, wxHtmlWindow, OnCellMouseHover);
558 IMP_PYCALLBACK__CELLINTINTME(wxPyHtmlWindow, wxHtmlWindow, OnCellClicked);
561 void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
563 wxPyBeginBlockThreads();
564 if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) {
565 PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0);
566 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
569 wxPyEndBlockThreads();
571 wxHtmlWindow::OnLinkClicked(link);
573 void wxPyHtmlWindow::base_OnLinkClicked(const wxHtmlLinkInfo& link) {
574 wxHtmlWindow::OnLinkClicked(link);
578 wxHtmlOpeningStatus wxPyHtmlWindow::OnOpeningURL(wxHtmlURLType type,
580 wxString *redirect) const {
582 wxHtmlOpeningStatus rval;
583 wxPyBeginBlockThreads();
584 if ((found = wxPyCBH_findCallback(m_myInst, "OnOpeningURL"))) {
586 PyObject* s = wx2PyString(url);
587 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iO)", type, s));
589 if (PyString_Check(ro)
590 #if PYTHON_API_VERSION >= 1009
591 || PyUnicode_Check(ro)
594 *redirect = Py2wxString(ro);
595 rval = wxHTML_REDIRECT;
598 PyObject* num = PyNumber_Int(ro);
599 rval = (wxHtmlOpeningStatus)PyInt_AsLong(num);
604 wxPyEndBlockThreads();
606 rval = wxHtmlWindow::OnOpeningURL(type, url, redirect);
615 %name(wxHtmlWindow) class wxPyHtmlWindow : public wxScrolledWindow {
617 wxPyHtmlWindow(wxWindow *parent, int id = -1,
618 wxPoint& pos = wxDefaultPosition,
619 wxSize& size = wxDefaultSize,
620 int style=wxHW_SCROLLBAR_AUTO,
621 const wxString& name = wxPyHtmlWindowNameStr);
622 %name(wxPreHtmlWindow)wxPyHtmlWindow();
624 bool Create(wxWindow *parent, int id = -1,
625 wxPoint& pos = wxDefaultPosition,
626 wxSize& size = wxDefaultSize,
627 int style=wxHW_SCROLLBAR_AUTO,
628 const wxString& name = wxPyHtmlWindowNameStr);
631 void _setCallbackInfo(PyObject* self, PyObject* _class);
632 %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxHtmlWindow)"
633 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
634 %pragma(python) addtomethod = "wxPreHtmlWindow:val._setOORInfo(val)"
636 // Set HTML page and display it. !! source is HTML document itself,
637 // it is NOT address/filename of HTML document. If you want to
638 // specify document location, use LoadPage() istead
639 // Return value : FALSE if an error occured, TRUE otherwise
640 bool SetPage(const wxString& source);
642 // Load HTML page from given location. Location can be either
643 // a) /usr/wxGTK2/docs/html/wx.htm
644 // b) http://www.somewhere.uk/document.htm
645 // c) ftp://ftp.somesite.cz/pub/something.htm
646 // In case there is no prefix (http:,ftp:), the method
647 // will try to find it itself (1. local file, then http or ftp)
648 // After the page is loaded, the method calls SetPage() to display it.
649 // Note : you can also use path relative to previously loaded page
650 // Return value : same as SetPage
651 bool LoadPage(const wxString& location);
653 // TODO: (accept a string, convert to filename)
654 // Loads HTML page from file
655 // bool LoadFile(const wxFileName& filename);
657 // Append to current page
658 bool AppendToPage(const wxString& source);
660 // Returns full location of opened page
661 wxString GetOpenedPage();
663 // Returns anchor within opened page
664 wxString GetOpenedAnchor();
666 // Returns <TITLE> of opened page or empty string otherwise
667 wxString GetOpenedPageTitle();
669 // Sets frame in which page title will be displayed. Format is format of
670 // frame title, e.g. "HtmlHelp : %s". It must contain exactly one %s
671 void SetRelatedFrame(wxFrame* frame, const wxString& format);
672 wxFrame* GetRelatedFrame();
674 // After(!) calling SetRelatedFrame, this sets statusbar slot where messages
675 // will be displayed. Default is -1 = no messages.
676 void SetRelatedStatusBar(int bar);
678 // Sets fonts to be used when displaying HTML page.
680 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
682 if (sizes) temp = int_LIST_helper(sizes);
683 self->SetFonts(normal_face, fixed_face, temp);
689 void SetTitle(const wxString& title);
691 // Sets space between text and window borders.
692 void SetBorders(int b);
694 // Saves custom settings into cfg config. it will use the path 'path'
695 // if given, otherwise it will save info into currently selected path.
696 // saved values : things set by SetFonts, SetBorders.
697 void ReadCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
698 void WriteCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
700 // Goes to previous/next page (in browsing history)
701 // Returns TRUE if successful, FALSE otherwise
703 bool HistoryForward();
704 bool HistoryCanBack();
705 bool HistoryCanForward();
710 // Returns pointer to conteiners/cells structure.
711 wxHtmlContainerCell* GetInternalRepresentation();
713 // Returns a pointer to the parser.
714 wxHtmlWinParser* GetParser();
716 bool ScrollToAnchor(const wxString& anchor);
717 bool HasAnchor(const wxString& anchor);
720 static void AddFilter(wxPyHtmlFilter *filter);
723 void base_OnLinkClicked(const wxHtmlLinkInfo& link);
724 void base_OnSetTitle(const wxString& title);
725 void base_OnCellMouseHover(wxHtmlCell *cell, wxCoord x, wxCoord y);
726 void base_OnCellClicked(wxHtmlCell *cell,
727 wxCoord x, wxCoord y,
728 const wxMouseEvent& event);
733 //---------------------------------------------------------------------------
734 //---------------------------------------------------------------------------
737 class wxHtmlDCRenderer : public wxObject {
742 void SetDC(wxDC *dc, int maxwidth);
743 void SetSize(int width, int height);
744 void SetHtmlText(const wxString& html,
745 const wxString& basepath = wxPyEmptyString,
748 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
750 if (sizes) temp = int_LIST_helper(sizes);
751 self->SetFonts(normal_face, fixed_face, temp);
756 int Render(int x, int y, int from = 0, int dont_render = FALSE);
757 int GetTotalHeight();
758 // returns total height of the html document
759 // (compare Render's return value with this)
769 class wxHtmlPrintout : public wxPyPrintout {
771 wxHtmlPrintout(const wxString& title = wxPyHtmlPrintoutTitleStr);
772 //~wxHtmlPrintout(); wxPrintPreview object takes ownership...
774 void SetHtmlText(const wxString& html,
775 const wxString &basepath = wxPyEmptyString,
777 void SetHtmlFile(const wxString &htmlfile);
778 void SetHeader(const wxString& header, int pg = wxPAGE_ALL);
779 void SetFooter(const wxString& footer, int pg = wxPAGE_ALL);
781 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
783 if (sizes) temp = int_LIST_helper(sizes);
784 self->SetFonts(normal_face, fixed_face, temp);
789 void SetMargins(float top = 25.2, float bottom = 25.2,
790 float left = 25.2, float right = 25.2,
796 class wxHtmlEasyPrinting : public wxObject {
798 wxHtmlEasyPrinting(const wxString& name = wxPyHtmlPrintingTitleStr,
799 wxFrame *parent_frame = NULL);
800 ~wxHtmlEasyPrinting();
802 void PreviewFile(const wxString &htmlfile);
803 void PreviewText(const wxString &htmltext, const wxString& basepath = wxPyEmptyString);
804 void PrintFile(const wxString &htmlfile);
805 void PrintText(const wxString &htmltext, const wxString& basepath = wxPyEmptyString);
808 void SetHeader(const wxString& header, int pg = wxPAGE_ALL);
809 void SetFooter(const wxString& footer, int pg = wxPAGE_ALL);
812 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
814 if (sizes) temp = int_LIST_helper(sizes);
815 self->SetFonts(normal_face, fixed_face, temp);
821 wxPrintData *GetPrintData() {return m_PrintData;}
822 wxPageSetupDialogData *GetPageSetupData() {return m_PageSetupData;}
828 //---------------------------------------------------------------------------
829 //---------------------------------------------------------------------------
832 extern "C" SWIGEXPORT(void) inithtmlhelpc();
840 wxClassInfo::CleanUpClasses();
841 wxClassInfo::InitializeClasses();
843 wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
844 wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");
845 wxPyPtrTypeMap_Add("wxHtmlWindow", "wxPyHtmlWindow");
846 wxPyPtrTypeMap_Add("wxHtmlFilter", "wxPyHtmlFilter");
849 //----------------------------------------------------------------------
850 // And this gets appended to the shadow class file.
851 //----------------------------------------------------------------------
853 %pragma(python) include="_htmlextras.py";
855 //---------------------------------------------------------------------------