1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG definitions of html classes
7 // Created: 25-Nov-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
14 "Classes for a simple HTML rendering window, HTML Help Window, etc."
17 %module(package="wx", docstring=DOCSTRING) html
20 #include "wx/wxPython/wxPython.h"
21 #include "wx/wxPython/pyclasses.h"
22 #include "wx/wxPython/pyistream.h"
23 #include "wx/wxPython/printfw.h"
25 #include <wx/html/htmlwin.h>
26 #include <wx/html/htmprint.h>
27 #include <wx/html/helpctrl.h>
28 #include <wx/html/helpwnd.h>
29 #include <wx/html/helpfrm.h>
30 #include <wx/html/helpdlg.h>
35 //---------------------------------------------------------------------------
38 %pythoncode { wx = _core }
39 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
41 %include _html_rename.i
44 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
45 MAKE_CONST_WXSTRING2(HtmlWindowNameStr, wxT("htmlWindow"))
46 MAKE_CONST_WXSTRING2(HtmlPrintoutTitleStr, wxT("Printout"))
47 MAKE_CONST_WXSTRING2(HtmlPrintingTitleStr, wxT("Printing"))
50 // TODO: Split this file into multiple %included files that coresponds to the
51 // wx/html include files (more or less.)
53 //---------------------------------------------------------------------------
64 wxHTML_CLR_FOREGROUND,
65 wxHTML_CLR_BACKGROUND,
75 wxHTML_INDENT_HORIZONTAL,
76 wxHTML_INDENT_VERTICAL,
80 wxHTML_COND_ISIMAGEMAP,
102 // enums for wxHtmlWindow::OnOpeningURL
103 enum wxHtmlOpeningStatus
119 //---------------------------------------------------------------------------
121 class wxHtmlLinkInfo : public wxObject {
123 wxHtmlLinkInfo(const wxString& href, const wxString& target = wxPyEmptyString);
125 wxString GetTarget();
126 wxMouseEvent* GetEvent();
127 wxHtmlCell* GetHtmlCell();
129 void SetEvent(const wxMouseEvent *e);
130 void SetHtmlCell(const wxHtmlCell * e);
133 //---------------------------------------------------------------------------
135 class wxHtmlTag : public wxObject {
137 // Never need to create a new tag from Python...
138 //wxHtmlTag(const wxString& source, int pos, int end_pos, wxHtmlTagsCache* cache);
141 bool HasParam(const wxString& par);
142 wxString GetParam(const wxString& par, int with_commas = false);
144 // Can't do this one as-is, but GetParam should be enough...
145 //int ScanParam(const wxString& par, const char *format, void* param);
147 wxString GetAllParams();
154 //---------------------------------------------------------------------------
156 class wxHtmlParser : public wxObject {
158 // wxHtmlParser(); This is an abstract base class...
160 void SetFS(wxFileSystem *fs);
161 wxFileSystem* GetFS();
162 wxObject* Parse(const wxString& source);
163 void InitParser(const wxString& source);
165 void DoParsing(int begin_pos, int end_pos);
167 // wxObject* GetProduct();
169 void AddTagHandler(wxHtmlTagHandler *handler);
170 wxString* GetSource();
171 void PushTagHandler(wxHtmlTagHandler* handler, wxString tags);
172 void PopTagHandler();
174 // virtual wxFSFile *OpenURL(wxHtmlURLType type, const wxString& url) const;
176 // void AddText(const char* txt) = 0;
177 // void AddTag(const wxHtmlTag& tag);
181 //---------------------------------------------------------------------------
183 class wxHtmlWinParser : public wxHtmlParser {
185 wxHtmlWinParser(wxPyHtmlWindow *wnd = NULL);
187 void SetDC(wxDC *dc);
191 wxPyHtmlWindow* GetWindow();
193 // Sets fonts to be used when displaying HTML page. (if size null then default sizes used).
195 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
197 if (sizes) temp = int_LIST_helper(sizes);
198 self->SetFonts(normal_face, fixed_face, temp);
204 // Sets font sizes to be relative to the given size or the system
205 // default size; use either specified or default font
206 void SetStandardFonts(int size = -1,
207 const wxString& normal_face = wxPyEmptyString,
208 const wxString& fixed_face = wxPyEmptyString);
211 wxHtmlContainerCell* GetContainer();
212 wxHtmlContainerCell* OpenContainer();
213 wxHtmlContainerCell *SetContainer(wxHtmlContainerCell *c);
214 wxHtmlContainerCell* CloseContainer();
217 void SetFontSize(int s);
219 void SetFontBold(int x);
221 void SetFontItalic(int x);
222 int GetFontUnderlined();
223 void SetFontUnderlined(int x);
225 void SetFontFixed(int x);
227 void SetAlign(int a);
228 wxColour GetLinkColor();
229 void SetLinkColor(const wxColour& clr);
230 wxColour GetActualColor();
231 void SetActualColor(const wxColour& clr);
233 GetActualColour = GetActualColor
234 SetActualColour = SetActualColor
236 void SetLink(const wxString& link);
237 wxFont* CreateCurrentFont();
238 wxHtmlLinkInfo GetLink();
243 //---------------------------------------------------------------------------
246 class wxPyHtmlTagHandler : public wxHtmlTagHandler {
247 DECLARE_DYNAMIC_CLASS(wxPyHtmlTagHandler)
249 wxPyHtmlTagHandler() : wxHtmlTagHandler() {};
251 wxHtmlParser* GetParser() { return m_Parser; }
252 void ParseInner(const wxHtmlTag& tag) { wxHtmlTagHandler::ParseInner(tag); }
254 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
255 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
260 IMPLEMENT_DYNAMIC_CLASS(wxPyHtmlTagHandler, wxHtmlTagHandler);
262 IMP_PYCALLBACK_STRING__pure(wxPyHtmlTagHandler, wxHtmlTagHandler, GetSupportedTags);
263 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlTagHandler, wxHtmlTagHandler, HandleTag);
267 %rename(HtmlTagHandler) wxPyHtmlTagHandler;
268 class wxPyHtmlTagHandler : public wxObject {
270 %pythonAppend wxPyHtmlTagHandler "self._setCallbackInfo(self, HtmlTagHandler)"
271 wxPyHtmlTagHandler();
273 void _setCallbackInfo(PyObject* self, PyObject* _class);
275 void SetParser(wxHtmlParser *parser);
276 wxHtmlParser* GetParser();
277 void ParseInner(const wxHtmlTag& tag);
281 //---------------------------------------------------------------------------
284 class wxPyHtmlWinTagHandler : public wxHtmlWinTagHandler {
285 DECLARE_DYNAMIC_CLASS(wxPyHtmlWinTagHandler)
287 wxPyHtmlWinTagHandler() : wxHtmlWinTagHandler() {};
289 wxHtmlWinParser* GetParser() { return m_WParser; }
290 void ParseInner(const wxHtmlTag& tag)
291 { wxHtmlWinTagHandler::ParseInner(tag); }
293 DEC_PYCALLBACK_STRING__pure(GetSupportedTags);
294 DEC_PYCALLBACK_BOOL_TAG_pure(HandleTag);
299 IMPLEMENT_DYNAMIC_CLASS( wxPyHtmlWinTagHandler, wxHtmlWinTagHandler);
301 IMP_PYCALLBACK_STRING__pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, GetSupportedTags);
302 IMP_PYCALLBACK_BOOL_TAG_pure(wxPyHtmlWinTagHandler, wxHtmlWinTagHandler, HandleTag);
306 %rename(HtmlWinTagHandler) wxPyHtmlWinTagHandler;
307 class wxPyHtmlWinTagHandler : public wxPyHtmlTagHandler {
309 %pythonAppend wxPyHtmlWinTagHandler "self._setCallbackInfo(self, HtmlWinTagHandler)"
310 wxPyHtmlWinTagHandler();
312 void _setCallbackInfo(PyObject* self, PyObject* _class);
314 void SetParser(wxHtmlParser *parser);
315 wxHtmlWinParser* GetParser();
316 void ParseInner(const wxHtmlTag& tag);
320 //---------------------------------------------------------------------------
324 class wxPyHtmlTagsModule : public wxHtmlTagsModule {
326 wxPyHtmlTagsModule(PyObject* thc) : wxHtmlTagsModule() {
327 m_tagHandlerClass = thc;
328 Py_INCREF(m_tagHandlerClass);
329 RegisterModule(this);
330 wxHtmlWinParser::AddModule(this);
334 wxPyBlock_t blocked = wxPyBeginBlockThreads();
335 Py_DECREF(m_tagHandlerClass);
336 m_tagHandlerClass = NULL;
337 for (size_t x=0; x < m_objArray.GetCount(); x++) {
338 PyObject* obj = (PyObject*)m_objArray.Item(x);
341 wxPyEndBlockThreads(blocked);
344 void FillHandlersTable(wxHtmlWinParser *parser) {
345 // Wave our magic wand... (if it works it's a miracle! ;-)
347 // First, make a new instance of the tag handler
348 wxPyBlock_t blocked = wxPyBeginBlockThreads();
349 PyObject* arg = PyTuple_New(0);
350 PyObject* obj = PyObject_CallObject(m_tagHandlerClass, arg);
353 // now figure out where it's C++ object is...
354 wxPyHtmlWinTagHandler* thPtr;
355 if (! wxPyConvertSwigPtr(obj, (void **)&thPtr, wxT("wxPyHtmlWinTagHandler"))) {
356 wxPyEndBlockThreads(blocked);
359 wxPyEndBlockThreads(blocked);
362 parser->AddTagHandler(thPtr);
369 PyObject* m_tagHandlerClass;
370 wxArrayPtrVoid m_objArray;
378 void wxHtmlWinParser_AddTagHandler(PyObject* tagHandlerClass) {
379 // Dynamically create a new wxModule. Refcounts tagHandlerClass
380 // and adds itself to the wxModules list and to the wxHtmlWinParser.
381 new wxPyHtmlTagsModule(tagHandlerClass);
386 //---------------------------------------------------------------------------
387 //---------------------------------------------------------------------------
391 // wxHtmlSelection is data holder with information about text selection.
392 // Selection is defined by two positions (beginning and end of the selection)
393 // and two leaf(!) cells at these positions.
394 class wxHtmlSelection
400 void Set(const wxPoint& fromPos, const wxHtmlCell *fromCell,
401 const wxPoint& toPos, const wxHtmlCell *toCell);
402 %Rename(SetCells, void, Set(const wxHtmlCell *fromCell, const wxHtmlCell *toCell));
404 const wxHtmlCell *GetFromCell() const;
405 const wxHtmlCell *GetToCell() const;
407 // these values are in absolute coordinates:
408 const wxPoint& GetFromPos() const;
409 const wxPoint& GetToPos() const;
411 // these are From/ToCell's private data
412 const wxPoint& GetFromPrivPos() const;
413 const wxPoint& GetToPrivPos() const;
414 void SetFromPrivPos(const wxPoint& pos);
415 void SetToPrivPos(const wxPoint& pos);
418 const bool IsEmpty() const;
423 enum wxHtmlSelectionState
425 wxHTML_SEL_OUT, // currently rendered cell is outside the selection
426 wxHTML_SEL_IN, // ... is inside selection
427 wxHTML_SEL_CHANGING // ... is the cell on which selection state changes
432 // Selection state is passed to wxHtmlCell::Draw so that it can render itself
433 // differently e.g. when inside text selection or outside it.
434 class wxHtmlRenderingState
437 wxHtmlRenderingState();
438 ~wxHtmlRenderingState();
440 void SetSelectionState(wxHtmlSelectionState s);
441 wxHtmlSelectionState GetSelectionState() const;
443 void SetFgColour(const wxColour& c);
444 const wxColour& GetFgColour() const;
445 void SetBgColour(const wxColour& c);
446 const wxColour& GetBgColour() const;
451 // HTML rendering customization. This class is used when rendering wxHtmlCells
453 class wxHtmlRenderingStyle
456 virtual wxColour GetSelectedTextColour(const wxColour& clr) = 0;
457 virtual wxColour GetSelectedTextBgColour(const wxColour& clr) = 0;
461 class wxDefaultHtmlRenderingStyle : public wxHtmlRenderingStyle
464 virtual wxColour GetSelectedTextColour(const wxColour& clr);
465 virtual wxColour GetSelectedTextBgColour(const wxColour& clr);
470 // Information given to cells when drawing them. Contains rendering state,
471 // selection information and rendering style object that can be used to
472 // customize the output.
473 class wxHtmlRenderingInfo
476 wxHtmlRenderingInfo();
477 ~wxHtmlRenderingInfo();
479 void SetSelection(wxHtmlSelection *s);
480 wxHtmlSelection *GetSelection() const;
482 void SetStyle(wxHtmlRenderingStyle *style);
483 wxHtmlRenderingStyle& GetStyle();
485 wxHtmlRenderingState& GetState();
488 //---------------------------------------------------------------------------
494 wxHTML_FIND_EXACT = 1,
495 wxHTML_FIND_NEAREST_BEFORE = 2,
496 wxHTML_FIND_NEAREST_AFTER = 4
500 class wxHtmlCell : public wxObject {
510 // Returns the maximum possible length of the cell.
511 // Call Layout at least once before using GetMaxTotalWidth()
512 int GetMaxTotalWidth() const;
514 const wxString& GetId() const;
515 void SetId(const wxString& id);
516 wxHtmlLinkInfo* GetLink(int x = 0, int y = 0);
517 wxHtmlCell* GetNext();
518 wxHtmlContainerCell* GetParent();
519 wxHtmlCell* GetFirstChild() const;
521 // Returns cursor to be used when mouse is over the cell:
522 wxCursor GetCursor() const;
524 // Formatting cells are not visible on the screen, they only alter
526 bool IsFormattingCell() const;
529 void SetLink(const wxHtmlLinkInfo& link);
530 void SetNext(wxHtmlCell *cell);
531 void SetParent(wxHtmlContainerCell *p);
532 void SetPos(int x, int y);
534 void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2,
535 wxHtmlRenderingInfo& info);
536 void DrawInvisible(wxDC& dc, int x, int y,
537 wxHtmlRenderingInfo& info);
538 const wxHtmlCell* Find(int condition, const void* param);
540 bool AdjustPagebreak(int* INOUT);
541 void SetCanLiveOnPagebreak(bool can);
543 // Can the line be broken before this cell?
544 bool IsLinebreakAllowed() const;
546 // Returns True for simple == terminal cells, i.e. not composite ones.
547 // This if for internal usage only and may disappear in future versions!
548 bool IsTerminalCell() const;
550 // Find a cell inside this cell positioned at the given coordinates
551 // (relative to this's positions). Returns NULL if no such cell exists.
552 // The flag can be used to specify whether to look for terminal or
553 // nonterminal cells or both. In either case, returned cell is deepest
554 // cell in cells tree that contains [x,y].
555 wxHtmlCell *FindCellByPos(wxCoord x, wxCoord y,
556 unsigned flags = wxHTML_FIND_EXACT) const;
558 // Returns absolute position of the cell on HTML canvas
559 wxPoint GetAbsPos() const;
561 // Returns first (last) terminal cell inside this cell. It may return NULL,
562 // but it is rare -- only if there are no terminals in the tree.
563 wxHtmlCell *GetFirstTerminal() const ;
564 wxHtmlCell *GetLastTerminal() const ;
566 // Returns cell's depth, i.e. how far under the root cell it is
567 // (if it is the root, depth is 0)
568 unsigned GetDepth() const;
570 // Returns True if the cell appears before 'cell' in natural order of
571 // cells (= as they are read). If cell A is (grand)parent of cell B,
572 // then both A.IsBefore(B) and B.IsBefore(A) always return True.
573 bool IsBefore(wxHtmlCell *cell) const;
575 // Converts the cell into text representation. If sel != NULL then
576 // only part of the cell inside the selection is converted.
577 wxString ConvertToText(wxHtmlSelection *sel) const;
581 class wxHtmlWordCell : public wxHtmlCell
584 wxHtmlWordCell(const wxString& word, wxDC& dc);
588 class wxHtmlContainerCell : public wxHtmlCell {
590 wxHtmlContainerCell(wxHtmlContainerCell *parent);
592 void InsertCell(wxHtmlCell *cell);
593 void SetAlignHor(int al);
595 void SetAlignVer(int al);
597 void SetIndent(int i, int what, int units = wxHTML_UNITS_PIXELS);
598 int GetIndent(int ind);
599 int GetIndentUnits(int ind);
600 void SetAlign(const wxHtmlTag& tag);
601 void SetWidthFloat(int w, int units);
602 %Rename(SetWidthFloatFromTag, void, SetWidthFloat(const wxHtmlTag& tag));
603 void SetMinHeight(int h, int align = wxHTML_ALIGN_TOP);
604 void SetBackgroundColour(const wxColour& clr);
605 wxColour GetBackgroundColour();
606 void SetBorder(const wxColour& clr1, const wxColour& clr2);
607 wxHtmlCell* GetFirstChild();
608 %pragma(python) addtoclass = "GetFirstCell = GetFirstChild"
613 class wxHtmlColourCell : public wxHtmlCell {
615 wxHtmlColourCell(const wxColour& clr, int flags = wxHTML_CLR_FOREGROUND);
620 class wxHtmlFontCell : public wxHtmlCell
623 wxHtmlFontCell(wxFont *font);
627 class wxHtmlWidgetCell : public wxHtmlCell {
629 wxHtmlWidgetCell(wxWindow* wnd, int w = 0);
636 //---------------------------------------------------------------------------
638 //---------------------------------------------------------------------------
642 %{ // here's the C++ version
643 class wxPyHtmlFilter : public wxHtmlFilter {
644 DECLARE_ABSTRACT_CLASS(wxPyHtmlFilter)
646 wxPyHtmlFilter() : wxHtmlFilter() {}
648 // returns True if this filter is able to open&read given file
649 virtual bool CanRead(const wxFSFile& file) const {
652 wxPyBlock_t blocked = wxPyBeginBlockThreads();
653 if ((found = wxPyCBH_findCallback(m_myInst, "CanRead"))) {
654 PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file,false); // cast away const
655 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
658 wxPyEndBlockThreads(blocked);
663 // Reads given file and returns HTML document.
664 // Returns empty string if opening failed
665 virtual wxString ReadFile(const wxFSFile& file) const {
668 wxPyBlock_t blocked = wxPyBeginBlockThreads();
669 if ((found = wxPyCBH_findCallback(m_myInst, "ReadFile"))) {
670 PyObject* obj = wxPyMake_wxObject((wxFSFile*)&file,false); // cast away const
672 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(O)", obj));
675 rval = Py2wxString(ro);
679 wxPyEndBlockThreads(blocked);
686 IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlFilter, wxHtmlFilter);
690 // And now the version seen by SWIG
692 %rename(HtmlFilter) wxPyHtmlFilter;
693 class wxPyHtmlFilter : public wxObject {
695 %pythonAppend wxPyHtmlFilter "self._setCallbackInfo(self, HtmlFilter)"
698 void _setCallbackInfo(PyObject* self, PyObject* _class);
702 // TODO: wxHtmlFilterHTML
705 //---------------------------------------------------------------------------
707 //---------------------------------------------------------------------------
711 class wxPyHtmlWindow : public wxHtmlWindow {
712 DECLARE_ABSTRACT_CLASS(wxPyHtmlWindow)
714 wxPyHtmlWindow(wxWindow *parent, wxWindowID id = -1,
715 const wxPoint& pos = wxDefaultPosition,
716 const wxSize& size = wxDefaultSize,
717 long style = wxHW_DEFAULT_STYLE,
718 const wxString& name = wxPyHtmlWindowNameStr)
719 : wxHtmlWindow(parent, id, pos, size, style, name) {};
720 wxPyHtmlWindow() : wxHtmlWindow() {};
722 bool ScrollToAnchor(const wxString& anchor) {
723 return wxHtmlWindow::ScrollToAnchor(anchor);
726 bool HasAnchor(const wxString& anchor) {
727 const wxHtmlCell *c = m_Cell->Find(wxHTML_COND_ISANCHOR, &anchor);
731 void OnLinkClicked(const wxHtmlLinkInfo& link);
732 //- void base_OnLinkClicked(const wxHtmlLinkInfo& link);
734 wxHtmlOpeningStatus OnOpeningURL(wxHtmlURLType type,
736 wxString *redirect) const;
738 DEC_PYCALLBACK__STRING(OnSetTitle);
739 DEC_PYCALLBACK__CELLINTINT(OnCellMouseHover);
740 DEC_PYCALLBACK__CELLINTINTME(OnCellClicked);
744 IMPLEMENT_ABSTRACT_CLASS( wxPyHtmlWindow, wxHtmlWindow );
745 IMP_PYCALLBACK__STRING(wxPyHtmlWindow, wxHtmlWindow, OnSetTitle);
746 IMP_PYCALLBACK__CELLINTINT(wxPyHtmlWindow, wxHtmlWindow, OnCellMouseHover);
747 IMP_PYCALLBACK__CELLINTINTME(wxPyHtmlWindow, wxHtmlWindow, OnCellClicked);
750 void wxPyHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link) {
752 wxPyBlock_t blocked = wxPyBeginBlockThreads();
753 if ((found = wxPyCBH_findCallback(m_myInst, "OnLinkClicked"))) {
754 PyObject* obj = wxPyConstructObject((void*)&link, wxT("wxHtmlLinkInfo"), 0);
755 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", obj));
758 wxPyEndBlockThreads(blocked);
760 wxHtmlWindow::OnLinkClicked(link);
762 // void wxPyHtmlWindow::base_OnLinkClicked(const wxHtmlLinkInfo& link) {
763 // wxHtmlWindow::OnLinkClicked(link);
767 wxHtmlOpeningStatus wxPyHtmlWindow::OnOpeningURL(wxHtmlURLType type,
769 wxString *redirect) const {
771 wxHtmlOpeningStatus rval;
772 wxPyBlock_t blocked = wxPyBeginBlockThreads();
773 if ((found = wxPyCBH_findCallback(m_myInst, "OnOpeningURL"))) {
775 PyObject* s = wx2PyString(url);
776 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(iO)", type, s));
778 if (PyString_Check(ro)
779 #if PYTHON_API_VERSION >= 1009
780 || PyUnicode_Check(ro)
783 *redirect = Py2wxString(ro);
784 rval = wxHTML_REDIRECT;
787 PyObject* num = PyNumber_Int(ro);
788 rval = (wxHtmlOpeningStatus)PyInt_AsLong(num);
793 wxPyEndBlockThreads(blocked);
795 rval = wxHtmlWindow::OnOpeningURL(type, url, redirect);
804 MustHaveApp(wxPyHtmlWindow);
806 %rename(HtmlWindow) wxPyHtmlWindow;
807 class wxPyHtmlWindow : public wxScrolledWindow {
809 %pythonAppend wxPyHtmlWindow "self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self)"
810 %pythonAppend wxPyHtmlWindow() ""
811 %typemap(out) wxPyHtmlWindow*; // turn off this typemap
813 wxPyHtmlWindow(wxWindow *parent, int id = -1,
814 const wxPoint& pos = wxDefaultPosition,
815 const wxSize& size = wxDefaultSize,
816 int style=wxHW_DEFAULT_STYLE,
817 const wxString& name = wxPyHtmlWindowNameStr);
818 %RenameCtor(PreHtmlWindow, wxPyHtmlWindow());
820 // Turn it back on again
821 %typemap(out) wxPyHtmlWindow* { $result = wxPyMake_wxObject($1, $owner); }
823 bool Create(wxWindow *parent, int id = -1,
824 const wxPoint& pos = wxDefaultPosition,
825 const wxSize& size = wxDefaultSize,
826 int style=wxHW_SCROLLBAR_AUTO,
827 const wxString& name = wxPyHtmlWindowNameStr);
830 void _setCallbackInfo(PyObject* self, PyObject* _class);
833 // Set HTML page and display it. !! source is HTML document itself,
834 // it is NOT address/filename of HTML document. If you want to
835 // specify document location, use LoadPage() istead
836 // Return value : False if an error occurred, True otherwise
837 bool SetPage(const wxString& source);
839 // Load HTML page from given location. Location can be either
840 // a) /usr/wxGTK2/docs/html/wx.htm
841 // b) http://www.somewhere.uk/document.htm
842 // c) ftp://ftp.somesite.cz/pub/something.htm
843 // In case there is no prefix (http:,ftp:), the method
844 // will try to find it itself (1. local file, then http or ftp)
845 // After the page is loaded, the method calls SetPage() to display it.
846 // Note : you can also use path relative to previously loaded page
847 // Return value : same as SetPage
848 bool LoadPage(const wxString& location);
850 // Loads HTML page from file
851 bool LoadFile(const wxString& filename);
853 // Append to current page
854 bool AppendToPage(const wxString& source);
856 // Returns full location of opened page
857 wxString GetOpenedPage();
859 // Returns anchor within opened page
860 wxString GetOpenedAnchor();
862 // Returns <TITLE> of opened page or empty string otherwise
863 wxString GetOpenedPageTitle();
865 // Sets frame in which page title will be displayed. Format is format of
866 // frame title, e.g. "HtmlHelp : %s". It must contain exactly one %s
867 void SetRelatedFrame(wxFrame* frame, const wxString& format);
868 wxFrame* GetRelatedFrame();
870 // After(!) calling SetRelatedFrame, this sets statusbar slot where messages
871 // will be displayed. Default is -1 = no messages.
872 void SetRelatedStatusBar(int bar);
874 // Sets fonts to be used when displaying HTML page.
876 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
878 if (sizes) temp = int_LIST_helper(sizes);
879 self->SetFonts(normal_face, fixed_face, temp);
885 // Sets font sizes to be relative to the given size or the system
886 // default size; use either specified or default font
887 void SetStandardFonts(int size = -1,
888 const wxString& normal_face = wxPyEmptyString,
889 const wxString& fixed_face = wxPyEmptyString);
892 void, SetLabel(const wxString& title),
895 // Sets space between text and window borders.
896 void SetBorders(int b);
898 // Sets the bitmap to use for background (currnetly it will be tiled,
899 // when/if we have CSS support we could add other possibilities...)
900 void SetBackgroundImage(const wxBitmap& bmpBg);
902 // Saves custom settings into cfg config. it will use the path 'path'
903 // if given, otherwise it will save info into currently selected path.
904 // saved values : things set by SetFonts, SetBorders.
905 void ReadCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
906 void WriteCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
908 // Goes to previous/next page (in browsing history)
909 // Returns True if successful, False otherwise
911 bool HistoryForward();
912 bool HistoryCanBack();
913 bool HistoryCanForward();
918 // Returns pointer to conteiners/cells structure.
919 wxHtmlContainerCell* GetInternalRepresentation();
921 // Returns a pointer to the parser.
922 wxHtmlWinParser* GetParser();
924 bool ScrollToAnchor(const wxString& anchor);
925 bool HasAnchor(const wxString& anchor);
928 static void AddFilter(wxPyHtmlFilter *filter);
930 // Helper functions to select parts of page:
931 void SelectWord(const wxPoint& pos);
932 void SelectLine(const wxPoint& pos);
935 // Convert selection to text:
936 wxString SelectionToText();
938 // Converts current page to text:
941 void OnLinkClicked(const wxHtmlLinkInfo& link);
942 void OnSetTitle(const wxString& title);
943 void OnCellMouseHover(wxHtmlCell *cell, wxCoord x, wxCoord y);
944 void OnCellClicked(wxHtmlCell *cell,
945 wxCoord x, wxCoord y,
946 const wxMouseEvent& event);
947 %MAKE_BASE_FUNC(HtmlWindow, OnLinkClicked);
948 %MAKE_BASE_FUNC(HtmlWindow, OnSetTitle);
949 %MAKE_BASE_FUNC(HtmlWindow, OnCellMouseHover);
950 %MAKE_BASE_FUNC(HtmlWindow, OnCellClicked);
952 static wxVisualAttributes
953 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
959 //---------------------------------------------------------------------------
960 //---------------------------------------------------------------------------
964 MustHaveApp(wxHtmlDCRenderer);
966 class wxHtmlDCRenderer : public wxObject {
971 void SetDC(wxDC *dc, int maxwidth);
972 void SetSize(int width, int height);
973 void SetHtmlText(const wxString& html,
974 const wxString& basepath = wxPyEmptyString,
976 // Sets fonts to be used when displaying HTML page. (if size null then default sizes used).
978 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
980 if (sizes) temp = int_LIST_helper(sizes);
981 self->SetFonts(normal_face, fixed_face, temp);
987 // Sets font sizes to be relative to the given size or the system
988 // default size; use either specified or default font
989 void SetStandardFonts(int size = -1,
990 const wxString& normal_face = wxPyEmptyString,
991 const wxString& fixed_face = wxPyEmptyString);
993 int Render(int x, int y, int from = 0, int dont_render = false, int maxHeight = INT_MAX,
994 //int *known_pagebreaks = NULL, int number_of_pages = 0
995 int* choices=NULL, int LCOUNT = 0
997 int GetTotalHeight();
998 // returns total height of the html document
999 // (compare Render's return value with this)
1010 MustHaveApp(wxHtmlPrintout);
1012 class wxHtmlPrintout : public wxPyPrintout {
1014 wxHtmlPrintout(const wxString& title = wxPyHtmlPrintoutTitleStr);
1015 //~wxHtmlPrintout(); wxPrintPreview object takes ownership...
1017 void SetHtmlText(const wxString& html,
1018 const wxString &basepath = wxPyEmptyString,
1020 void SetHtmlFile(const wxString &htmlfile);
1021 void SetHeader(const wxString& header, int pg = wxPAGE_ALL);
1022 void SetFooter(const wxString& footer, int pg = wxPAGE_ALL);
1024 // Sets fonts to be used when displaying HTML page. (if size null then default sizes used).
1026 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
1028 if (sizes) temp = int_LIST_helper(sizes);
1029 self->SetFonts(normal_face, fixed_face, temp);
1035 // Sets font sizes to be relative to the given size or the system
1036 // default size; use either specified or default font
1037 void SetStandardFonts(int size = -1,
1038 const wxString& normal_face = wxPyEmptyString,
1039 const wxString& fixed_face = wxPyEmptyString);
1041 void SetMargins(float top = 25.2, float bottom = 25.2,
1042 float left = 25.2, float right = 25.2,
1045 // Adds input filter
1046 static void AddFilter(wxHtmlFilter *filter);
1049 static void CleanUpStatics();
1054 MustHaveApp(wxHtmlEasyPrinting);
1056 class wxHtmlEasyPrinting : public wxObject {
1058 wxHtmlEasyPrinting(const wxString& name = wxPyHtmlPrintingTitleStr,
1059 wxWindow *parentWindow = NULL);
1060 ~wxHtmlEasyPrinting();
1062 void PreviewFile(const wxString &htmlfile);
1063 void PreviewText(const wxString &htmltext, const wxString& basepath = wxPyEmptyString);
1064 void PrintFile(const wxString &htmlfile);
1065 void PrintText(const wxString &htmltext, const wxString& basepath = wxPyEmptyString);
1066 // void PrinterSetup();
1068 void SetHeader(const wxString& header, int pg = wxPAGE_ALL);
1069 void SetFooter(const wxString& footer, int pg = wxPAGE_ALL);
1072 void SetFonts(wxString normal_face, wxString fixed_face, PyObject* sizes=NULL) {
1074 if (sizes) temp = int_LIST_helper(sizes);
1075 self->SetFonts(normal_face, fixed_face, temp);
1081 // Sets font sizes to be relative to the given size or the system
1082 // default size; use either specified or default font
1083 void SetStandardFonts(int size = -1,
1084 const wxString& normal_face = wxPyEmptyString,
1085 const wxString& fixed_face = wxPyEmptyString);
1087 wxPrintData *GetPrintData() {return m_PrintData;}
1088 wxPageSetupDialogData *GetPageSetupData() {return m_PageSetupData;}
1093 //---------------------------------------------------------------------------
1094 //---------------------------------------------------------------------------
1098 class wxHtmlBookRecord {
1100 wxHtmlBookRecord(const wxString& bookfile, const wxString& basepath,
1101 const wxString& title, const wxString& start);
1103 wxString GetBookFile();
1104 wxString GetTitle();
1105 wxString GetStart();
1106 wxString GetBasePath();
1108 void SetContentsRange(int start, int end);
1109 int GetContentsStart();
1110 int GetContentsEnd();
1112 void SetTitle(const wxString& title);
1113 void SetBasePath(const wxString& path);
1114 void SetStart(const wxString& start);
1116 wxString GetFullPath(const wxString &page) const;
1119 //---------------------------------------------------------------------------
1120 // WXWIN_COMPATIBILITY_2_4
1122 struct wxHtmlContentsItem
1125 int GetLevel() { return self->m_Level; }
1126 int GetID() { return self->m_ID; }
1127 wxString GetName() { return self->m_Name; }
1128 wxString GetPage() { return self->m_Page; }
1129 wxHtmlBookRecord* GetBook() { return self->m_Book; }
1133 //---------------------------------------------------------------------------
1135 class wxHtmlSearchStatus
1138 //wxHtmlSearchStatus(wxHtmlHelpData* base, const wxString& keyword,
1139 // const wxString& book = wxPyEmptyString);
1144 const wxString& GetName();
1145 // WXWIN_COMPATIBILITY_2_4
1147 wxHtmlContentsItem* GetContentsItem();
1151 //---------------------------------------------------------------------------
1153 class wxHtmlHelpData {
1158 void SetTempDir(const wxString& path);
1159 bool AddBook(const wxString& book);
1160 // bool AddBookParam(const wxString& title, const wxString& contfile,
1161 // const wxString& indexfile=wxPyEmptyString,
1162 // const wxString& deftopic=wxPyEmptyString,
1163 // const wxString& path=wxPyEmptyString);
1165 wxString FindPageByName(const wxString& page);
1166 wxString FindPageById(int id);
1168 // TODO: this one needs fixed...
1169 const wxHtmlBookRecArray& GetBookRecArray();
1171 // WXWIN_COMPATIBILITY_2_4
1173 wxHtmlContentsItem* GetContents();
1174 int GetContentsCnt();
1175 wxHtmlContentsItem* GetIndex();
1180 //---------------------------------------------------------------------------
1193 wxHF_ICONS_BOOK_CHAPTER,
1213 wxID_HTML_BOOKMARKSLIST,
1214 wxID_HTML_BOOKMARKSADD,
1215 wxID_HTML_BOOKMARKSREMOVE,
1217 wxID_HTML_INDEXPAGE,
1218 wxID_HTML_INDEXLIST,
1219 wxID_HTML_INDEXTEXT,
1220 wxID_HTML_INDEXBUTTON,
1221 wxID_HTML_INDEXBUTTONALL,
1223 wxID_HTML_SEARCHPAGE,
1224 wxID_HTML_SEARCHTEXT,
1225 wxID_HTML_SEARCHLIST,
1226 wxID_HTML_SEARCHBUTTON,
1227 wxID_HTML_SEARCHCHOICE,
1233 MustHaveApp(wxHtmlHelpWindow);
1235 class wxHtmlHelpWindow : public wxWindow
1238 %pythonAppend wxHtmlHelpWindow "self._setOORInfo(self)"
1239 %pythonAppend wxHtmlHelpWindow() ""
1240 %typemap(out) wxHtmlHelpWindow*; // turn off this typemap
1242 wxHtmlHelpWindow(wxWindow* parent, wxWindowID wxWindowID,
1243 const wxPoint& pos = wxDefaultPosition,
1244 const wxSize& size = wxDefaultSize,
1245 int style = wxTAB_TRAVERSAL|wxNO_BORDER,
1246 int helpStyle = wxHF_DEFAULT_STYLE,
1247 wxHtmlHelpData* data = NULL);
1248 %RenameCtor(PreHtmlHelpWindow, wxHtmlHelpWindow(wxHtmlHelpData* data = NULL));
1250 // Turn it back on again
1251 %typemap(out) wxHtmlHelpWindow* { $result = wxPyMake_wxObject($1, $owner); }
1253 bool Create(wxWindow* parent, wxWindowID id,
1254 const wxPoint& pos = wxDefaultPosition,
1255 const wxSize& size = wxDefaultSize,
1256 int style = wxTAB_TRAVERSAL|wxNO_BORDER,
1257 int helpStyle = wxHF_DEFAULT_STYLE);
1259 wxHtmlHelpData* GetData();
1260 wxHtmlHelpController* GetController() const;
1262 %disownarg( wxHtmlHelpController* controller );
1263 void SetController(wxHtmlHelpController* controller);
1264 %cleardisown( wxHtmlHelpController* controller );
1266 // Displays page x. If not found it will offect the user a choice of
1268 // Looking for the page runs in these steps:
1269 // 1. try to locate file named x (if x is for example "doc/howto.htm")
1270 // 2. try to open starting page of book x
1271 // 3. try to find x in contents (if x is for example "How To ...")
1272 // 4. try to find x in index (if x is for example "How To ...")
1273 bool Display(const wxString& x);
1275 // Alternative version that works with numeric ID.
1276 // (uses extension to MS format, <param name="ID" value=id>, see docs)
1277 %Rename(DisplayID, bool, Display(int id));
1279 // Displays help window and focuses contents.
1280 bool DisplayContents();
1282 // Displays help window and focuses index.
1283 bool DisplayIndex();
1285 // Searches for keyword. Returns true and display page if found, return
1287 // Syntax of keyword is Altavista-like:
1288 // * words are separated by spaces
1289 // (but "\"hello world\"" is only one world "hello world")
1290 // * word may be pretended by + or -
1291 // (+ : page must contain the word ; - : page can't contain the word)
1292 // * if there is no + or - before the word, + is default
1293 bool KeywordSearch(const wxString& keyword,
1294 wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
1296 void UseConfig(wxConfigBase *config, const wxString& rootpath = wxEmptyString);
1298 // Saves custom settings into cfg config. it will use the path 'path'
1299 // if given, otherwise it will save info into currently selected path.
1300 // saved values : things set by SetFonts, SetBorders.
1301 void ReadCustomization(wxConfigBase *cfg, const wxString& path = wxEmptyString);
1302 void WriteCustomization(wxConfigBase *cfg, const wxString& path = wxEmptyString);
1304 // call this to let wxHtmlHelpWindow know page changed
1305 void NotifyPageChanged();
1307 // Refreshes Contents and Index tabs
1308 void RefreshLists();
1310 // Gets the HTML window
1311 wxHtmlWindow* GetHtmlWindow() const;
1313 // Gets the splitter window
1314 wxSplitterWindow* GetSplitterWindow();
1317 wxToolBar* GetToolBar() const;
1319 // Gets the configuration data
1320 wxHtmlHelpFrameCfg& GetCfgData();
1322 // Gets the tree control
1323 wxTreeCtrl *GetTreeCtrl() const;
1328 class wxHtmlWindowEvent: public wxNotifyEvent
1331 wxHtmlWindowEvent(wxEventType commandType = wxEVT_NULL, int id = 0):
1332 wxNotifyEvent(commandType, id);
1334 void SetURL(const wxString& url);
1335 const wxString& GetURL() const;
1340 MustHaveApp(wxHtmlHelpFrame);
1342 class wxHtmlHelpFrame : public wxFrame {
1344 %pythonAppend wxHtmlHelpFrame "self._setOORInfo(self)"
1345 %pythonAppend wxHtmlHelpFrame() ""
1346 %typemap(out) wxHtmlHelpFrame*; // turn off this typemap
1348 wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
1349 const wxString& title = wxPyEmptyString,
1350 int style = wxHF_DEFAULTSTYLE, wxHtmlHelpData* data = NULL);
1351 %RenameCtor(PreHtmlHelpFrame, wxHtmlHelpFrame(wxHtmlHelpData* data = NULL));
1353 // Turn it back on again
1354 %typemap(out) wxHtmlHelpFrame* { $result = wxPyMake_wxObject($1, $owner); }
1356 bool Create(wxWindow* parent, wxWindowID id,
1357 const wxString& title = wxPyEmptyString,
1358 int style = wxHF_DEFAULT_STYLE);
1360 wxHtmlHelpData* GetData();
1361 void SetTitleFormat(const wxString& format);
1363 void AddGrabIfNeeded();
1365 /// Returns the help controller associated with the window.
1366 wxHtmlHelpController* GetController() const;
1368 /// Sets the help controller associated with the window.
1369 %disownarg( wxHtmlHelpController* controller );
1370 void SetController(wxHtmlHelpController* controller);
1371 %cleardisown( wxHtmlHelpController* controller );
1373 /// Returns the help window.
1374 wxHtmlHelpWindow* GetHelpWindow() const;
1377 %# For compatibility from before the refactor
1378 def Display(self, x):
1379 return self.GetHelpWindow().Display(x)
1380 def DisplayID(self, x):
1381 return self.GetHelpWindow().DisplayID(id)
1382 def DisplayContents(self):
1383 return self.GetHelpWindow().DisplayContents()
1384 def DisplayIndex(self):
1385 return self.GetHelpWindow().DisplayIndex()
1387 def KeywordSearch(self, keyword):
1388 return self.GetHelpWindow().KeywordSearch(keyword)
1390 def UseConfig(self, config, rootpath=""):
1391 return self.GetHelpWindow().UseConfig(config, rootpath)
1392 def ReadCustomization(self, config, rootpath=""):
1393 return self.GetHelpWindow().ReadCustomization(config, rootpath)
1394 def WriteCustomization(self, config, rootpath=""):
1395 return self.GetHelpWindow().WriteCustomization(config, rootpath)
1401 MustHaveApp(wxHtmlHelpDialog);
1403 class wxHtmlHelpDialog : public wxDialog
1406 %pythonAppend wxHtmlHelpDialog "self._setOORInfo(self)"
1407 %pythonAppend wxHtmlHelpDialog() ""
1408 %typemap(out) wxHtmlHelpDialog*; // turn off this typemap
1410 wxHtmlHelpDialog(wxWindow* parent, wxWindowID wxWindowID,
1411 const wxString& title = wxPyEmptyString,
1412 int style = wxHF_DEFAULT_STYLE, wxHtmlHelpData* data = NULL);
1413 %RenameCtor(PreHtmlHelpDialog, wxHtmlHelpDialog(wxHtmlHelpData* data = NULL));
1415 // Turn it back on again
1416 %typemap(out) wxHtmlHelpDialog* { $result = wxPyMake_wxObject($1, $owner); }
1418 bool Create(wxWindow* parent, wxWindowID id, const wxString& title = wxPyEmptyString,
1419 int style = wxHF_DEFAULT_STYLE);
1421 /// Returns the data associated with this dialog.
1422 wxHtmlHelpData* GetData();
1424 /// Returns the controller that created this dialog.
1425 wxHtmlHelpController* GetController() const;
1427 /// Sets the controller associated with this dialog.
1428 %disownarg( wxHtmlHelpController* controller );
1429 void SetController(wxHtmlHelpController* controller);
1430 %cleardisown( wxHtmlHelpController* controller );
1432 /// Returns the help window.
1433 wxHtmlHelpWindow* GetHelpWindow() const;
1435 // Sets format of title of the frame. Must contain exactly one "%s"
1436 // (for title of displayed HTML page)
1437 void SetTitleFormat(const wxString& format);
1439 // Override to add custom buttons to the toolbar
1440 // virtual void AddToolbarButtons(wxToolBar* WXUNUSED(toolBar), int WXUNUSED(style)) {};
1445 //---------------------------------------------------------------------------
1448 // TODO: Make virtual methods of this class overridable in Python.
1450 MustHaveApp(wxHelpControllerBase);
1452 class wxHelpControllerBase: public wxObject
1455 // wxHelpControllerBase(wxWindow* parentWindow = NULL);
1456 // ~wxHelpControllerBase();
1458 %nokwargs Initialize;
1459 virtual bool Initialize(const wxString& file, int server );
1460 virtual bool Initialize(const wxString& file);
1462 virtual void SetViewer(const wxString& viewer, long flags = 0);
1464 // If file is "", reloads file given in Initialize
1465 virtual bool LoadFile(const wxString& file = wxEmptyString) /* = 0 */;
1467 // Displays the contents
1468 virtual bool DisplayContents(void) /* = 0 */;
1470 %nokwargs DisplaySection;
1472 // Display the given section
1473 virtual bool DisplaySection(int sectionNo) /* = 0 */;
1475 // Display the section using a context id
1476 virtual bool DisplayContextPopup(int contextId);
1478 // Display the text in a popup, if possible
1479 virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos);
1481 // By default, uses KeywordSection to display a topic. Implementations
1482 // may override this for more specific behaviour.
1483 virtual bool DisplaySection(const wxString& section);
1485 virtual bool DisplayBlock(long blockNo) /* = 0 */;
1486 virtual bool KeywordSearch(const wxString& k,
1487 wxHelpSearchMode mode = wxHELP_SEARCH_ALL) /* = 0 */;
1489 /// Allows one to override the default settings for the help frame.
1490 virtual void SetFrameParameters(const wxString& title,
1492 const wxPoint& pos = wxDefaultPosition,
1493 bool newFrameEachTime = false);
1495 /// Obtains the latest settings used by the help frame and the help
1497 virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
1498 wxPoint *pos = NULL,
1499 bool *newFrameEachTime = NULL);
1501 virtual bool Quit() /* = 0 */;
1503 virtual void OnQuit();
1505 /// Set the window that can optionally be used for the help window's parent.
1506 virtual void SetParentWindow(wxWindow* win);
1508 /// Get the window that can optionally be used for the help window's parent.
1509 virtual wxWindow* GetParentWindow() const;
1516 MustHaveApp(wxHtmlHelpController);
1518 class wxHtmlHelpController : public wxHelpControllerBase
1521 // %pythonAppend wxHtmlHelpController "self._setOORInfo(self)"
1523 wxHtmlHelpController(int style = wxHF_DEFAULT_STYLE, wxWindow* parentWindow = NULL);
1524 ~wxHtmlHelpController();
1526 wxHtmlHelpWindow* GetHelpWindow();
1527 void SetHelpWindow(wxHtmlHelpWindow* helpWindow);
1529 wxHtmlHelpFrame* GetFrame();
1530 wxHtmlHelpDialog* GetDialog();
1532 void SetTitleFormat(const wxString& format);
1533 void SetTempDir(const wxString& path);
1534 bool AddBook(const wxString& book, int show_wait_msg = false);
1535 void Display(const wxString& x);
1536 %Rename(DisplayID, void, Display(int id));
1537 void DisplayContents();
1538 void DisplayIndex();
1539 bool KeywordSearch(const wxString& keyword);
1540 void UseConfig(wxConfigBase *config, const wxString& rootpath = wxPyEmptyString);
1541 void ReadCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
1542 void WriteCustomization(wxConfigBase *cfg, wxString path = wxPyEmptyString);
1544 void MakeModalIfNeeded();
1545 wxWindow* FindTopLevelWindow();
1551 * A convenience class particularly for use on wxMac,
1552 * where you can only show modal dialogs from a modal
1557 * wxHtmlModalHelp help(parent, filename, topic);
1559 * If topic is empty, the help contents is displayed.
1562 class wxHtmlModalHelp
1565 wxHtmlModalHelp(wxWindow* parent, const wxString& helpFile,
1566 const wxString& topic = wxEmptyString,
1567 int style = wxHF_DEFAULT_STYLE | wxHF_DIALOG | wxHF_MODAL);
1571 //---------------------------------------------------------------------------
1573 wxPyPtrTypeMap_Add("wxHtmlTagHandler", "wxPyHtmlTagHandler");
1574 wxPyPtrTypeMap_Add("wxHtmlWinTagHandler", "wxPyHtmlWinTagHandler");
1575 wxPyPtrTypeMap_Add("wxHtmlWindow", "wxPyHtmlWindow");
1576 wxPyPtrTypeMap_Add("wxHtmlFilter", "wxPyHtmlFilter");
1578 //---------------------------------------------------------------------------
1579 //---------------------------------------------------------------------------