+# Don't modify this file, modify the SWIG interface instead.
+
+"""
+Classes for a simple HTML rendering window, HTML Help Window, etc.
+"""
+
+import _html
+
+def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
+ if (name == "this"):
+ if isinstance(value, class_type):
+ self.__dict__[name] = value.this
+ if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown
+ del value.thisown
+ return
+ method = class_type.__swig_setmethods__.get(name,None)
+ if method: return method(self,value)
+ if (not static) or hasattr(self,name) or (name == "thisown"):
+ self.__dict__[name] = value
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+
+def _swig_setattr(self,class_type,name,value):
+ return _swig_setattr_nondynamic(self,class_type,name,value,0)
+
+def _swig_getattr(self,class_type,name):
+ method = class_type.__swig_getmethods__.get(name,None)
+ if method: return method(self)
+ raise AttributeError,name
+
+import types
+try:
+ _object = types.ObjectType
+ _newclass = 1
+except AttributeError:
+ class _object : pass
+ _newclass = 0
+del types
+
+
+def _swig_setattr_nondynamic_method(set):
+ def set_attr(self,name,value):
+ if hasattr(self,name) or (name in ("this", "thisown")):
+ set(self,name,value)
+ else:
+ raise AttributeError("You cannot add attributes to %s" % self)
+ return set_attr
+
+
+import _windows
+import _core
+wx = _core
+__docfilter__ = wx.__DocFilter(globals())
+#---------------------------------------------------------------------------
+
+HTML_ALIGN_LEFT = _html.HTML_ALIGN_LEFT
+HTML_ALIGN_CENTER = _html.HTML_ALIGN_CENTER
+HTML_ALIGN_RIGHT = _html.HTML_ALIGN_RIGHT
+HTML_ALIGN_BOTTOM = _html.HTML_ALIGN_BOTTOM
+HTML_ALIGN_TOP = _html.HTML_ALIGN_TOP
+HTML_CLR_FOREGROUND = _html.HTML_CLR_FOREGROUND
+HTML_CLR_BACKGROUND = _html.HTML_CLR_BACKGROUND
+HTML_UNITS_PIXELS = _html.HTML_UNITS_PIXELS
+HTML_UNITS_PERCENT = _html.HTML_UNITS_PERCENT
+HTML_INDENT_LEFT = _html.HTML_INDENT_LEFT
+HTML_INDENT_RIGHT = _html.HTML_INDENT_RIGHT
+HTML_INDENT_TOP = _html.HTML_INDENT_TOP
+HTML_INDENT_BOTTOM = _html.HTML_INDENT_BOTTOM
+HTML_INDENT_HORIZONTAL = _html.HTML_INDENT_HORIZONTAL
+HTML_INDENT_VERTICAL = _html.HTML_INDENT_VERTICAL
+HTML_INDENT_ALL = _html.HTML_INDENT_ALL
+HTML_COND_ISANCHOR = _html.HTML_COND_ISANCHOR
+HTML_COND_ISIMAGEMAP = _html.HTML_COND_ISIMAGEMAP
+HTML_COND_USER = _html.HTML_COND_USER
+HTML_FONT_SIZE_1 = _html.HTML_FONT_SIZE_1
+HTML_FONT_SIZE_2 = _html.HTML_FONT_SIZE_2
+HTML_FONT_SIZE_3 = _html.HTML_FONT_SIZE_3
+HTML_FONT_SIZE_4 = _html.HTML_FONT_SIZE_4
+HTML_FONT_SIZE_5 = _html.HTML_FONT_SIZE_5
+HTML_FONT_SIZE_6 = _html.HTML_FONT_SIZE_6
+HTML_FONT_SIZE_7 = _html.HTML_FONT_SIZE_7
+HW_SCROLLBAR_NEVER = _html.HW_SCROLLBAR_NEVER
+HW_SCROLLBAR_AUTO = _html.HW_SCROLLBAR_AUTO
+HW_NO_SELECTION = _html.HW_NO_SELECTION
+HW_DEFAULT_STYLE = _html.HW_DEFAULT_STYLE
+HTML_OPEN = _html.HTML_OPEN
+HTML_BLOCK = _html.HTML_BLOCK
+HTML_REDIRECT = _html.HTML_REDIRECT
+HTML_URL_PAGE = _html.HTML_URL_PAGE
+HTML_URL_IMAGE = _html.HTML_URL_IMAGE
+HTML_URL_OTHER = _html.HTML_URL_OTHER
+class HtmlLinkInfo(_core.Object):
+ """Proxy of C++ HtmlLinkInfo class"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self, String href, String target=EmptyString) -> HtmlLinkInfo"""
+ newobj = _html.new_HtmlLinkInfo(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def GetHref(*args, **kwargs):
+ """GetHref(self) -> String"""
+ return _html.HtmlLinkInfo_GetHref(*args, **kwargs)
+
+ def GetTarget(*args, **kwargs):
+ """GetTarget(self) -> String"""
+ return _html.HtmlLinkInfo_GetTarget(*args, **kwargs)
+
+ def GetEvent(*args, **kwargs):
+ """GetEvent(self) -> MouseEvent"""
+ return _html.HtmlLinkInfo_GetEvent(*args, **kwargs)
+
+ def GetHtmlCell(*args, **kwargs):
+ """GetHtmlCell(self) -> HtmlCell"""
+ return _html.HtmlLinkInfo_GetHtmlCell(*args, **kwargs)
+
+ def SetEvent(*args, **kwargs):
+ """SetEvent(self, MouseEvent e)"""
+ return _html.HtmlLinkInfo_SetEvent(*args, **kwargs)
+
+ def SetHtmlCell(*args, **kwargs):
+ """SetHtmlCell(self, HtmlCell e)"""
+ return _html.HtmlLinkInfo_SetHtmlCell(*args, **kwargs)
+
+
+class HtmlLinkInfoPtr(HtmlLinkInfo):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = HtmlLinkInfo
+_html.HtmlLinkInfo_swigregister(HtmlLinkInfoPtr)
+cvar = _html.cvar
+HtmlWindowNameStr = cvar.HtmlWindowNameStr
+HtmlPrintoutTitleStr = cvar.HtmlPrintoutTitleStr
+HtmlPrintingTitleStr = cvar.HtmlPrintingTitleStr
+
+class HtmlTag(_core.Object):
+ """Proxy of C++ HtmlTag class"""
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def GetName(*args, **kwargs):
+ """GetName(self) -> String"""
+ return _html.HtmlTag_GetName(*args, **kwargs)
+
+ def HasParam(*args, **kwargs):
+ """HasParam(self, String par) -> bool"""
+ return _html.HtmlTag_HasParam(*args, **kwargs)
+
+ def GetParam(*args, **kwargs):
+ """GetParam(self, String par, int with_commas=False) -> String"""
+ return _html.HtmlTag_GetParam(*args, **kwargs)
+
+ def GetAllParams(*args, **kwargs):
+ """GetAllParams(self) -> String"""
+ return _html.HtmlTag_GetAllParams(*args, **kwargs)
+
+ def HasEnding(*args, **kwargs):
+ """HasEnding(self) -> bool"""
+ return _html.HtmlTag_HasEnding(*args, **kwargs)
+
+ def GetBeginPos(*args, **kwargs):
+ """GetBeginPos(self) -> int"""
+ return _html.HtmlTag_GetBeginPos(*args, **kwargs)
+
+ def GetEndPos1(*args, **kwargs):
+ """GetEndPos1(self) -> int"""
+ return _html.HtmlTag_GetEndPos1(*args, **kwargs)
+
+ def GetEndPos2(*args, **kwargs):
+ """GetEndPos2(self) -> int"""
+ return _html.HtmlTag_GetEndPos2(*args, **kwargs)
+
+
+class HtmlTagPtr(HtmlTag):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = HtmlTag
+_html.HtmlTag_swigregister(HtmlTagPtr)
+
+class HtmlParser(_core.Object):
+ """Proxy of C++ HtmlParser class"""
+ def __init__(self): raise RuntimeError, "No constructor defined"
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def SetFS(*args, **kwargs):
+ """SetFS(self, FileSystem fs)"""
+ return _html.HtmlParser_SetFS(*args, **kwargs)
+
+ def GetFS(*args, **kwargs):
+ """GetFS(self) -> FileSystem"""
+ return _html.HtmlParser_GetFS(*args, **kwargs)
+
+ def Parse(*args, **kwargs):
+ """Parse(self, String source) -> Object"""
+ return _html.HtmlParser_Parse(*args, **kwargs)
+
+ def InitParser(*args, **kwargs):
+ """InitParser(self, String source)"""
+ return _html.HtmlParser_InitParser(*args, **kwargs)
+
+ def DoneParser(*args, **kwargs):
+ """DoneParser(self)"""
+ return _html.HtmlParser_DoneParser(*args, **kwargs)
+
+ def DoParsing(*args, **kwargs):
+ """DoParsing(self, int begin_pos, int end_pos)"""
+ return _html.HtmlParser_DoParsing(*args, **kwargs)
+
+ def StopParsing(*args, **kwargs):
+ """StopParsing(self)"""
+ return _html.HtmlParser_StopParsing(*args, **kwargs)
+
+ def AddTagHandler(*args, **kwargs):
+ """AddTagHandler(self, HtmlTagHandler handler)"""
+ return _html.HtmlParser_AddTagHandler(*args, **kwargs)
+
+ def GetSource(*args, **kwargs):
+ """GetSource(self) -> String"""
+ return _html.HtmlParser_GetSource(*args, **kwargs)
+
+ def PushTagHandler(*args, **kwargs):
+ """PushTagHandler(self, HtmlTagHandler handler, String tags)"""
+ return _html.HtmlParser_PushTagHandler(*args, **kwargs)
+
+ def PopTagHandler(*args, **kwargs):
+ """PopTagHandler(self)"""
+ return _html.HtmlParser_PopTagHandler(*args, **kwargs)
+
+
+class HtmlParserPtr(HtmlParser):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = HtmlParser
+_html.HtmlParser_swigregister(HtmlParserPtr)
+
+class HtmlWinParser(HtmlParser):
+ """Proxy of C++ HtmlWinParser class"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxHtmlWinParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self, HtmlWindow wnd=None) -> HtmlWinParser"""
+ newobj = _html.new_HtmlWinParser(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def SetDC(*args, **kwargs):
+ """SetDC(self, DC dc)"""
+ return _html.HtmlWinParser_SetDC(*args, **kwargs)
+
+ def GetDC(*args, **kwargs):
+ """GetDC(self) -> DC"""
+ return _html.HtmlWinParser_GetDC(*args, **kwargs)
+
+ def GetCharHeight(*args, **kwargs):
+ """GetCharHeight(self) -> int"""
+ return _html.HtmlWinParser_GetCharHeight(*args, **kwargs)
+
+ def GetCharWidth(*args, **kwargs):
+ """GetCharWidth(self) -> int"""
+ return _html.HtmlWinParser_GetCharWidth(*args, **kwargs)
+
+ def GetWindow(*args, **kwargs):
+ """GetWindow(self) -> HtmlWindow"""
+ return _html.HtmlWinParser_GetWindow(*args, **kwargs)
+
+ def SetFonts(*args, **kwargs):
+ """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)"""
+ return _html.HtmlWinParser_SetFonts(*args, **kwargs)
+
+ def SetStandardFonts(*args, **kwargs):
+ """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)"""
+ return _html.HtmlWinParser_SetStandardFonts(*args, **kwargs)
+
+ def GetContainer(*args, **kwargs):
+ """GetContainer(self) -> HtmlContainerCell"""
+ return _html.HtmlWinParser_GetContainer(*args, **kwargs)
+
+ def OpenContainer(*args, **kwargs):
+ """OpenContainer(self) -> HtmlContainerCell"""
+ return _html.HtmlWinParser_OpenContainer(*args, **kwargs)
+
+ def SetContainer(*args, **kwargs):
+ """SetContainer(self, HtmlContainerCell c) -> HtmlContainerCell"""
+ return _html.HtmlWinParser_SetContainer(*args, **kwargs)
+
+ def CloseContainer(*args, **kwargs):
+ """CloseContainer(self) -> HtmlContainerCell"""
+ return _html.HtmlWinParser_CloseContainer(*args, **kwargs)
+
+ def GetFontSize(*args, **kwargs):
+ """GetFontSize(self) -> int"""
+ return _html.HtmlWinParser_GetFontSize(*args, **kwargs)
+
+ def SetFontSize(*args, **kwargs):
+ """SetFontSize(self, int s)"""
+ return _html.HtmlWinParser_SetFontSize(*args, **kwargs)
+
+ def GetFontBold(*args, **kwargs):
+ """GetFontBold(self) -> int"""
+ return _html.HtmlWinParser_GetFontBold(*args, **kwargs)
+
+ def SetFontBold(*args, **kwargs):
+ """SetFontBold(self, int x)"""
+ return _html.HtmlWinParser_SetFontBold(*args, **kwargs)
+
+ def GetFontItalic(*args, **kwargs):
+ """GetFontItalic(self) -> int"""
+ return _html.HtmlWinParser_GetFontItalic(*args, **kwargs)
+
+ def SetFontItalic(*args, **kwargs):
+ """SetFontItalic(self, int x)"""
+ return _html.HtmlWinParser_SetFontItalic(*args, **kwargs)
+
+ def GetFontUnderlined(*args, **kwargs):
+ """GetFontUnderlined(self) -> int"""
+ return _html.HtmlWinParser_GetFontUnderlined(*args, **kwargs)
+
+ def SetFontUnderlined(*args, **kwargs):
+ """SetFontUnderlined(self, int x)"""
+ return _html.HtmlWinParser_SetFontUnderlined(*args, **kwargs)
+
+ def GetFontFixed(*args, **kwargs):
+ """GetFontFixed(self) -> int"""
+ return _html.HtmlWinParser_GetFontFixed(*args, **kwargs)
+
+ def SetFontFixed(*args, **kwargs):
+ """SetFontFixed(self, int x)"""
+ return _html.HtmlWinParser_SetFontFixed(*args, **kwargs)
+
+ def GetAlign(*args, **kwargs):
+ """GetAlign(self) -> int"""
+ return _html.HtmlWinParser_GetAlign(*args, **kwargs)
+
+ def SetAlign(*args, **kwargs):
+ """SetAlign(self, int a)"""
+ return _html.HtmlWinParser_SetAlign(*args, **kwargs)
+
+ def GetLinkColor(*args, **kwargs):
+ """GetLinkColor(self) -> Colour"""
+ return _html.HtmlWinParser_GetLinkColor(*args, **kwargs)
+
+ def SetLinkColor(*args, **kwargs):
+ """SetLinkColor(self, Colour clr)"""
+ return _html.HtmlWinParser_SetLinkColor(*args, **kwargs)
+
+ def GetActualColor(*args, **kwargs):
+ """GetActualColor(self) -> Colour"""
+ return _html.HtmlWinParser_GetActualColor(*args, **kwargs)
+
+ def SetActualColor(*args, **kwargs):
+ """SetActualColor(self, Colour clr)"""
+ return _html.HtmlWinParser_SetActualColor(*args, **kwargs)
+
+ GetActualColour = GetActualColor
+ SetActualColour = SetActualColor
+
+ def SetLink(*args, **kwargs):
+ """SetLink(self, String link)"""
+ return _html.HtmlWinParser_SetLink(*args, **kwargs)
+
+ def CreateCurrentFont(*args, **kwargs):
+ """CreateCurrentFont(self) -> Font"""
+ return _html.HtmlWinParser_CreateCurrentFont(*args, **kwargs)
+
+ def GetLink(*args, **kwargs):
+ """GetLink(self) -> HtmlLinkInfo"""
+ return _html.HtmlWinParser_GetLink(*args, **kwargs)
+
+
+class HtmlWinParserPtr(HtmlWinParser):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = HtmlWinParser
+_html.HtmlWinParser_swigregister(HtmlWinParserPtr)
+
+class HtmlTagHandler(_core.Object):
+ """Proxy of C++ HtmlTagHandler class"""
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxPyHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """__init__(self) -> HtmlTagHandler"""
+ newobj = _html.new_HtmlTagHandler(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ self._setCallbackInfo(self, HtmlTagHandler)
+
+ def _setCallbackInfo(*args, **kwargs):
+ """_setCallbackInfo(self, PyObject self, PyObject _class)"""
+ return _html.HtmlTagHandler__setCallbackInfo(*args, **kwargs)
+
+ def SetParser(*args, **kwargs):
+ """SetParser(self, HtmlParser parser)"""
+ return _html.HtmlTagHandler_SetParser(*args, **kwargs)
+
+ def GetParser(*args, **kwargs):
+ """GetParser(self) -> HtmlParser"""
+ return _html.HtmlTagHandler_GetParser(*args, **kwargs)
+
+ def ParseInner(*args, **kwargs):
+ """ParseInner(self, HtmlTag tag)"""
+ return _html.HtmlTagHandler_ParseInner(*args, **kwargs)