X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/423f194a1411e8aac372de29ef4a7ab5f90acb04..3903f408241aedc3b2f5e24349d0ac939ba9164c:/wxPython/src/msw/html.py diff --git a/wxPython/src/msw/html.py b/wxPython/src/msw/html.py index 452dae04c8..b48d4a773f 100644 --- a/wxPython/src/msw/html.py +++ b/wxPython/src/msw/html.py @@ -1,11 +1,64 @@ -# This file was created automatically by SWIG. +# This file was created automatically by SWIG 1.3.29. # Don't modify this file, modify the SWIG interface instead. -import _html +""" +Classes for a simple HTML rendering window, HTML Help Window, etc. +""" -import windows -import core -wx = core +import _html +import new +new_instancemethod = new.instancemethod +def _swig_setattr_nondynamic(self,class_type,name,value,static=1): + if (name == "thisown"): return self.this.own(value) + if (name == "this"): + if type(value).__name__ == 'PySwigObject': + self.__dict__[name] = value + return + method = class_type.__swig_setmethods__.get(name,None) + if method: return method(self,value) + if (not static) or hasattr(self,name): + 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): + if (name == "thisown"): return self.this.own() + method = class_type.__swig_getmethods__.get(name,None) + if method: return method(self) + raise AttributeError,name + +def _swig_repr(self): + try: strthis = "proxy of " + self.this.__repr__() + except: strthis = "" + return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) + +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 (name == "thisown"): return self.this.own(value) + if hasattr(self,name) or (name == "this"): + 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 @@ -27,6 +80,13 @@ 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 @@ -37,1575 +97,1781 @@ 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): - """""" - 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__(wxString href, wxString target=wxPyEmptyString) -> HtmlLinkInfo""" - newobj = _html.new_HtmlLinkInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlLinkInfo(_core.Object): + """Proxy of C++ HtmlLinkInfo class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String href, String target=EmptyString) -> HtmlLinkInfo""" + _html.HtmlLinkInfo_swiginit(self,_html.new_HtmlLinkInfo(*args, **kwargs)) def GetHref(*args, **kwargs): - """GetHref() -> wxString""" + """GetHref(self) -> String""" return _html.HtmlLinkInfo_GetHref(*args, **kwargs) def GetTarget(*args, **kwargs): - """GetTarget() -> wxString""" + """GetTarget(self) -> String""" return _html.HtmlLinkInfo_GetTarget(*args, **kwargs) def GetEvent(*args, **kwargs): - """GetEvent() -> MouseEvent""" + """GetEvent(self) -> MouseEvent""" return _html.HtmlLinkInfo_GetEvent(*args, **kwargs) def GetHtmlCell(*args, **kwargs): - """GetHtmlCell() -> HtmlCell""" + """GetHtmlCell(self) -> HtmlCell""" return _html.HtmlLinkInfo_GetHtmlCell(*args, **kwargs) def SetEvent(*args, **kwargs): - """SetEvent(MouseEvent e)""" + """SetEvent(self, MouseEvent e)""" return _html.HtmlLinkInfo_SetEvent(*args, **kwargs) def SetHtmlCell(*args, **kwargs): - """SetHtmlCell(HtmlCell e)""" + """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) - -class HtmlTag(core.Object): - """""" - 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,) +_html.HtmlLinkInfo_swigregister(HtmlLinkInfo) +cvar = _html.cvar +HtmlWindowNameStr = cvar.HtmlWindowNameStr +HtmlPrintoutTitleStr = cvar.HtmlPrintoutTitleStr +HtmlPrintingTitleStr = cvar.HtmlPrintingTitleStr + +class HtmlTag(_core.Object): + """Proxy of C++ HtmlTag class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr def GetName(*args, **kwargs): - """GetName() -> wxString""" + """GetName(self) -> String""" return _html.HtmlTag_GetName(*args, **kwargs) def HasParam(*args, **kwargs): - """HasParam(wxString par) -> bool""" + """HasParam(self, String par) -> bool""" return _html.HtmlTag_HasParam(*args, **kwargs) def GetParam(*args, **kwargs): - """GetParam(wxString par, int with_commas=False) -> wxString""" + """GetParam(self, String par, int with_commas=False) -> String""" return _html.HtmlTag_GetParam(*args, **kwargs) def GetAllParams(*args, **kwargs): - """GetAllParams() -> wxString""" + """GetAllParams(self) -> String""" return _html.HtmlTag_GetAllParams(*args, **kwargs) def HasEnding(*args, **kwargs): - """HasEnding() -> bool""" + """HasEnding(self) -> bool""" return _html.HtmlTag_HasEnding(*args, **kwargs) def GetBeginPos(*args, **kwargs): - """GetBeginPos() -> int""" + """GetBeginPos(self) -> int""" return _html.HtmlTag_GetBeginPos(*args, **kwargs) def GetEndPos1(*args, **kwargs): - """GetEndPos1() -> int""" + """GetEndPos1(self) -> int""" return _html.HtmlTag_GetEndPos1(*args, **kwargs) def GetEndPos2(*args, **kwargs): - """GetEndPos2() -> int""" + """GetEndPos2(self) -> int""" return _html.HtmlTag_GetEndPos2(*args, **kwargs) +_html.HtmlTag_swigregister(HtmlTag) -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): - """""" - 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,) +class HtmlParser(_core.Object): + """Proxy of C++ HtmlParser class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr def SetFS(*args, **kwargs): - """SetFS(FileSystem fs)""" + """SetFS(self, FileSystem fs)""" return _html.HtmlParser_SetFS(*args, **kwargs) def GetFS(*args, **kwargs): - """GetFS() -> FileSystem""" + """GetFS(self) -> FileSystem""" return _html.HtmlParser_GetFS(*args, **kwargs) def Parse(*args, **kwargs): - """Parse(wxString source) -> Object""" + """Parse(self, String source) -> Object""" return _html.HtmlParser_Parse(*args, **kwargs) def InitParser(*args, **kwargs): - """InitParser(wxString source)""" + """InitParser(self, String source)""" return _html.HtmlParser_InitParser(*args, **kwargs) def DoneParser(*args, **kwargs): - """DoneParser()""" + """DoneParser(self)""" return _html.HtmlParser_DoneParser(*args, **kwargs) def DoParsing(*args, **kwargs): - """DoParsing(int begin_pos, int end_pos)""" + """DoParsing(self, int begin_pos, int end_pos)""" return _html.HtmlParser_DoParsing(*args, **kwargs) def StopParsing(*args, **kwargs): - """StopParsing()""" + """StopParsing(self)""" return _html.HtmlParser_StopParsing(*args, **kwargs) def AddTagHandler(*args, **kwargs): - """AddTagHandler(wxHtmlTagHandler handler)""" + """AddTagHandler(self, HtmlTagHandler handler)""" return _html.HtmlParser_AddTagHandler(*args, **kwargs) def GetSource(*args, **kwargs): - """GetSource() -> wxString""" + """GetSource(self) -> String""" return _html.HtmlParser_GetSource(*args, **kwargs) def PushTagHandler(*args, **kwargs): - """PushTagHandler(wxHtmlTagHandler handler, wxString tags)""" + """PushTagHandler(self, HtmlTagHandler handler, String tags)""" return _html.HtmlParser_PushTagHandler(*args, **kwargs) def PopTagHandler(*args, **kwargs): - """PopTagHandler()""" + """PopTagHandler(self)""" return _html.HtmlParser_PopTagHandler(*args, **kwargs) + def GetInnerSource(*args, **kwargs): + """GetInnerSource(self, HtmlTag tag) -> String""" + return _html.HtmlParser_GetInnerSource(*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) +_html.HtmlParser_swigregister(HtmlParser) class HtmlWinParser(HtmlParser): - """""" - 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__(HtmlWindow wnd=None) -> HtmlWinParser""" - newobj = _html.new_HtmlWinParser(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown + """Proxy of C++ HtmlWinParser class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, HtmlWindow wnd=None) -> HtmlWinParser""" + _html.HtmlWinParser_swiginit(self,_html.new_HtmlWinParser(*args, **kwargs)) def SetDC(*args, **kwargs): - """SetDC(wxDC dc)""" + """SetDC(self, DC dc)""" return _html.HtmlWinParser_SetDC(*args, **kwargs) def GetDC(*args, **kwargs): - """GetDC() -> wxDC""" + """GetDC(self) -> DC""" return _html.HtmlWinParser_GetDC(*args, **kwargs) def GetCharHeight(*args, **kwargs): - """GetCharHeight() -> int""" + """GetCharHeight(self) -> int""" return _html.HtmlWinParser_GetCharHeight(*args, **kwargs) def GetCharWidth(*args, **kwargs): - """GetCharWidth() -> int""" + """GetCharWidth(self) -> int""" return _html.HtmlWinParser_GetCharWidth(*args, **kwargs) def GetWindow(*args, **kwargs): - """GetWindow() -> HtmlWindow""" + """GetWindow(self) -> HtmlWindow""" return _html.HtmlWinParser_GetWindow(*args, **kwargs) + GetWindow = wx._deprecated(GetWindow) + def GetWindowInterface(*args, **kwargs): + """GetWindowInterface(self) -> HtmlWindowInterface""" + return _html.HtmlWinParser_GetWindowInterface(*args, **kwargs) + def SetFonts(*args, **kwargs): - """SetFonts(wxString normal_face, wxString fixed_face, PyObject sizes=None)""" + """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() -> HtmlContainerCell""" + """GetContainer(self) -> HtmlContainerCell""" return _html.HtmlWinParser_GetContainer(*args, **kwargs) def OpenContainer(*args, **kwargs): - """OpenContainer() -> HtmlContainerCell""" + """OpenContainer(self) -> HtmlContainerCell""" return _html.HtmlWinParser_OpenContainer(*args, **kwargs) def SetContainer(*args, **kwargs): - """SetContainer(HtmlContainerCell c) -> HtmlContainerCell""" + """SetContainer(self, HtmlContainerCell c) -> HtmlContainerCell""" return _html.HtmlWinParser_SetContainer(*args, **kwargs) def CloseContainer(*args, **kwargs): - """CloseContainer() -> HtmlContainerCell""" + """CloseContainer(self) -> HtmlContainerCell""" return _html.HtmlWinParser_CloseContainer(*args, **kwargs) def GetFontSize(*args, **kwargs): - """GetFontSize() -> int""" + """GetFontSize(self) -> int""" return _html.HtmlWinParser_GetFontSize(*args, **kwargs) def SetFontSize(*args, **kwargs): - """SetFontSize(int s)""" + """SetFontSize(self, int s)""" return _html.HtmlWinParser_SetFontSize(*args, **kwargs) def GetFontBold(*args, **kwargs): - """GetFontBold() -> int""" + """GetFontBold(self) -> int""" return _html.HtmlWinParser_GetFontBold(*args, **kwargs) def SetFontBold(*args, **kwargs): - """SetFontBold(int x)""" + """SetFontBold(self, int x)""" return _html.HtmlWinParser_SetFontBold(*args, **kwargs) def GetFontItalic(*args, **kwargs): - """GetFontItalic() -> int""" + """GetFontItalic(self) -> int""" return _html.HtmlWinParser_GetFontItalic(*args, **kwargs) def SetFontItalic(*args, **kwargs): - """SetFontItalic(int x)""" + """SetFontItalic(self, int x)""" return _html.HtmlWinParser_SetFontItalic(*args, **kwargs) def GetFontUnderlined(*args, **kwargs): - """GetFontUnderlined() -> int""" + """GetFontUnderlined(self) -> int""" return _html.HtmlWinParser_GetFontUnderlined(*args, **kwargs) def SetFontUnderlined(*args, **kwargs): - """SetFontUnderlined(int x)""" + """SetFontUnderlined(self, int x)""" return _html.HtmlWinParser_SetFontUnderlined(*args, **kwargs) def GetFontFixed(*args, **kwargs): - """GetFontFixed() -> int""" + """GetFontFixed(self) -> int""" return _html.HtmlWinParser_GetFontFixed(*args, **kwargs) def SetFontFixed(*args, **kwargs): - """SetFontFixed(int x)""" + """SetFontFixed(self, int x)""" return _html.HtmlWinParser_SetFontFixed(*args, **kwargs) def GetAlign(*args, **kwargs): - """GetAlign() -> int""" + """GetAlign(self) -> int""" return _html.HtmlWinParser_GetAlign(*args, **kwargs) def SetAlign(*args, **kwargs): - """SetAlign(int a)""" + """SetAlign(self, int a)""" return _html.HtmlWinParser_SetAlign(*args, **kwargs) def GetLinkColor(*args, **kwargs): - """GetLinkColor() -> wxColour""" + """GetLinkColor(self) -> Colour""" return _html.HtmlWinParser_GetLinkColor(*args, **kwargs) def SetLinkColor(*args, **kwargs): - """SetLinkColor(wxColour clr)""" + """SetLinkColor(self, Colour clr)""" return _html.HtmlWinParser_SetLinkColor(*args, **kwargs) def GetActualColor(*args, **kwargs): - """GetActualColor() -> wxColour""" + """GetActualColor(self) -> Colour""" return _html.HtmlWinParser_GetActualColor(*args, **kwargs) def SetActualColor(*args, **kwargs): - """SetActualColor(wxColour clr)""" + """SetActualColor(self, Colour clr)""" return _html.HtmlWinParser_SetActualColor(*args, **kwargs) + GetActualColour = GetActualColor + SetActualColour = SetActualColor + def SetLink(*args, **kwargs): - """SetLink(wxString link)""" + """SetLink(self, String link)""" return _html.HtmlWinParser_SetLink(*args, **kwargs) def CreateCurrentFont(*args, **kwargs): - """CreateCurrentFont() -> wxFont""" + """CreateCurrentFont(self) -> Font""" return _html.HtmlWinParser_CreateCurrentFont(*args, **kwargs) def GetLink(*args, **kwargs): - """GetLink() -> HtmlLinkInfo""" + """GetLink(self) -> HtmlLinkInfo""" return _html.HtmlWinParser_GetLink(*args, **kwargs) +_html.HtmlWinParser_swigregister(HtmlWinParser) -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): - """""" - 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__() -> HtmlTagHandler""" - newobj = _html.new_HtmlTagHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlTagHandler(_core.Object): + """Proxy of C++ HtmlTagHandler class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlTagHandler""" + _html.HtmlTagHandler_swiginit(self,_html.new_HtmlTagHandler(*args, **kwargs)) self._setCallbackInfo(self, HtmlTagHandler) def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(PyObject self, PyObject _class)""" + """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _html.HtmlTagHandler__setCallbackInfo(*args, **kwargs) def SetParser(*args, **kwargs): - """SetParser(HtmlParser parser)""" + """SetParser(self, HtmlParser parser)""" return _html.HtmlTagHandler_SetParser(*args, **kwargs) def GetParser(*args, **kwargs): - """GetParser() -> HtmlParser""" + """GetParser(self) -> HtmlParser""" return _html.HtmlTagHandler_GetParser(*args, **kwargs) def ParseInner(*args, **kwargs): - """ParseInner(HtmlTag tag)""" + """ParseInner(self, HtmlTag tag)""" return _html.HtmlTagHandler_ParseInner(*args, **kwargs) - -class HtmlTagHandlerPtr(HtmlTagHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlTagHandler -_html.HtmlTagHandler_swigregister(HtmlTagHandlerPtr) +_html.HtmlTagHandler_swigregister(HtmlTagHandler) class HtmlWinTagHandler(HtmlTagHandler): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyHtmlWinTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlWinTagHandler""" - newobj = _html.new_HtmlWinTagHandler(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown + """Proxy of C++ HtmlWinTagHandler class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlWinTagHandler""" + _html.HtmlWinTagHandler_swiginit(self,_html.new_HtmlWinTagHandler(*args, **kwargs)) self._setCallbackInfo(self, HtmlWinTagHandler) def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(PyObject self, PyObject _class)""" + """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _html.HtmlWinTagHandler__setCallbackInfo(*args, **kwargs) def SetParser(*args, **kwargs): - """SetParser(HtmlParser parser)""" + """SetParser(self, HtmlParser parser)""" return _html.HtmlWinTagHandler_SetParser(*args, **kwargs) def GetParser(*args, **kwargs): - """GetParser() -> HtmlWinParser""" + """GetParser(self) -> HtmlWinParser""" return _html.HtmlWinTagHandler_GetParser(*args, **kwargs) def ParseInner(*args, **kwargs): - """ParseInner(HtmlTag tag)""" + """ParseInner(self, HtmlTag tag)""" return _html.HtmlWinTagHandler_ParseInner(*args, **kwargs) - -class HtmlWinTagHandlerPtr(HtmlWinTagHandler): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlWinTagHandler -_html.HtmlWinTagHandler_swigregister(HtmlWinTagHandlerPtr) +_html.HtmlWinTagHandler_swigregister(HtmlWinTagHandler) def HtmlWinParser_AddTagHandler(*args, **kwargs): - """HtmlWinParser_AddTagHandler(PyObject tagHandlerClass)""" - return _html.HtmlWinParser_AddTagHandler(*args, **kwargs) + """HtmlWinParser_AddTagHandler(PyObject tagHandlerClass)""" + return _html.HtmlWinParser_AddTagHandler(*args, **kwargs) #--------------------------------------------------------------------------- class HtmlSelection(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlSelection instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlSelection""" - newobj = _html.new_HtmlSelection(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlSelection): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - + """Proxy of C++ HtmlSelection class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlSelection""" + _html.HtmlSelection_swiginit(self,_html.new_HtmlSelection(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlSelection + __del__ = lambda self : None; def Set(*args, **kwargs): - """Set(Point fromPos, HtmlCell fromCell, Point toPos, HtmlCell toCell)""" + """Set(self, Point fromPos, HtmlCell fromCell, Point toPos, HtmlCell toCell)""" return _html.HtmlSelection_Set(*args, **kwargs) def SetCells(*args, **kwargs): - """SetCells(HtmlCell fromCell, HtmlCell toCell)""" + """SetCells(self, HtmlCell fromCell, HtmlCell toCell)""" return _html.HtmlSelection_SetCells(*args, **kwargs) def GetFromCell(*args, **kwargs): - """GetFromCell() -> HtmlCell""" + """GetFromCell(self) -> HtmlCell""" return _html.HtmlSelection_GetFromCell(*args, **kwargs) def GetToCell(*args, **kwargs): - """GetToCell() -> HtmlCell""" + """GetToCell(self) -> HtmlCell""" return _html.HtmlSelection_GetToCell(*args, **kwargs) def GetFromPos(*args, **kwargs): - """GetFromPos() -> Point""" + """GetFromPos(self) -> Point""" return _html.HtmlSelection_GetFromPos(*args, **kwargs) def GetToPos(*args, **kwargs): - """GetToPos() -> Point""" + """GetToPos(self) -> Point""" return _html.HtmlSelection_GetToPos(*args, **kwargs) def GetFromPrivPos(*args, **kwargs): - """GetFromPrivPos() -> Point""" + """GetFromPrivPos(self) -> Point""" return _html.HtmlSelection_GetFromPrivPos(*args, **kwargs) def GetToPrivPos(*args, **kwargs): - """GetToPrivPos() -> Point""" + """GetToPrivPos(self) -> Point""" return _html.HtmlSelection_GetToPrivPos(*args, **kwargs) def SetFromPrivPos(*args, **kwargs): - """SetFromPrivPos(Point pos)""" + """SetFromPrivPos(self, Point pos)""" return _html.HtmlSelection_SetFromPrivPos(*args, **kwargs) def SetToPrivPos(*args, **kwargs): - """SetToPrivPos(Point pos)""" + """SetToPrivPos(self, Point pos)""" return _html.HtmlSelection_SetToPrivPos(*args, **kwargs) def ClearPrivPos(*args, **kwargs): - """ClearPrivPos()""" + """ClearPrivPos(self)""" return _html.HtmlSelection_ClearPrivPos(*args, **kwargs) def IsEmpty(*args, **kwargs): - """IsEmpty() -> bool""" + """IsEmpty(self) -> bool""" return _html.HtmlSelection_IsEmpty(*args, **kwargs) - -class HtmlSelectionPtr(HtmlSelection): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlSelection -_html.HtmlSelection_swigregister(HtmlSelectionPtr) +_html.HtmlSelection_swigregister(HtmlSelection) HTML_SEL_OUT = _html.HTML_SEL_OUT HTML_SEL_IN = _html.HTML_SEL_IN HTML_SEL_CHANGING = _html.HTML_SEL_CHANGING class HtmlRenderingState(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlRenderingState instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlRenderingState""" - newobj = _html.new_HtmlRenderingState(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlRenderingState): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - + """Proxy of C++ HtmlRenderingState class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlRenderingState""" + _html.HtmlRenderingState_swiginit(self,_html.new_HtmlRenderingState(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlRenderingState + __del__ = lambda self : None; def SetSelectionState(*args, **kwargs): - """SetSelectionState(wxHtmlSelectionState s)""" + """SetSelectionState(self, int s)""" return _html.HtmlRenderingState_SetSelectionState(*args, **kwargs) def GetSelectionState(*args, **kwargs): - """GetSelectionState() -> wxHtmlSelectionState""" + """GetSelectionState(self) -> int""" return _html.HtmlRenderingState_GetSelectionState(*args, **kwargs) def SetFgColour(*args, **kwargs): - """SetFgColour(wxColour c)""" + """SetFgColour(self, Colour c)""" return _html.HtmlRenderingState_SetFgColour(*args, **kwargs) def GetFgColour(*args, **kwargs): - """GetFgColour() -> wxColour""" + """GetFgColour(self) -> Colour""" return _html.HtmlRenderingState_GetFgColour(*args, **kwargs) def SetBgColour(*args, **kwargs): - """SetBgColour(wxColour c)""" + """SetBgColour(self, Colour c)""" return _html.HtmlRenderingState_SetBgColour(*args, **kwargs) def GetBgColour(*args, **kwargs): - """GetBgColour() -> wxColour""" + """GetBgColour(self) -> Colour""" return _html.HtmlRenderingState_GetBgColour(*args, **kwargs) - -class HtmlRenderingStatePtr(HtmlRenderingState): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlRenderingState -_html.HtmlRenderingState_swigregister(HtmlRenderingStatePtr) +_html.HtmlRenderingState_swigregister(HtmlRenderingState) class HtmlRenderingStyle(object): - """""" - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + """Proxy of C++ HtmlRenderingStyle class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr def GetSelectedTextColour(*args, **kwargs): - """GetSelectedTextColour(wxColour clr) -> wxColour""" + """GetSelectedTextColour(self, Colour clr) -> Colour""" return _html.HtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs) def GetSelectedTextBgColour(*args, **kwargs): - """GetSelectedTextBgColour(wxColour clr) -> wxColour""" + """GetSelectedTextBgColour(self, Colour clr) -> Colour""" return _html.HtmlRenderingStyle_GetSelectedTextBgColour(*args, **kwargs) - -class HtmlRenderingStylePtr(HtmlRenderingStyle): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlRenderingStyle -_html.HtmlRenderingStyle_swigregister(HtmlRenderingStylePtr) +_html.HtmlRenderingStyle_swigregister(HtmlRenderingStyle) class DefaultHtmlRenderingStyle(HtmlRenderingStyle): - """""" - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxDefaultHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetSelectedTextColour(*args, **kwargs): - """GetSelectedTextColour(wxColour clr) -> wxColour""" - return _html.DefaultHtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs) - - def GetSelectedTextBgColour(*args, **kwargs): - """GetSelectedTextBgColour(wxColour clr) -> wxColour""" - return _html.DefaultHtmlRenderingStyle_GetSelectedTextBgColour(*args, **kwargs) - - -class DefaultHtmlRenderingStylePtr(DefaultHtmlRenderingStyle): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = DefaultHtmlRenderingStyle -_html.DefaultHtmlRenderingStyle_swigregister(DefaultHtmlRenderingStylePtr) + """Proxy of C++ DefaultHtmlRenderingStyle class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr +_html.DefaultHtmlRenderingStyle_swigregister(DefaultHtmlRenderingStyle) class HtmlRenderingInfo(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlRenderingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlRenderingInfo""" - newobj = _html.new_HtmlRenderingInfo(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlRenderingInfo): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - + """Proxy of C++ HtmlRenderingInfo class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlRenderingInfo""" + _html.HtmlRenderingInfo_swiginit(self,_html.new_HtmlRenderingInfo(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlRenderingInfo + __del__ = lambda self : None; def SetSelection(*args, **kwargs): - """SetSelection(HtmlSelection s)""" + """SetSelection(self, HtmlSelection s)""" return _html.HtmlRenderingInfo_SetSelection(*args, **kwargs) def GetSelection(*args, **kwargs): - """GetSelection() -> HtmlSelection""" + """GetSelection(self) -> HtmlSelection""" return _html.HtmlRenderingInfo_GetSelection(*args, **kwargs) def SetStyle(*args, **kwargs): - """SetStyle(HtmlRenderingStyle style)""" + """SetStyle(self, HtmlRenderingStyle style)""" return _html.HtmlRenderingInfo_SetStyle(*args, **kwargs) def GetStyle(*args, **kwargs): - """GetStyle() -> HtmlRenderingStyle""" + """GetStyle(self) -> HtmlRenderingStyle""" return _html.HtmlRenderingInfo_GetStyle(*args, **kwargs) def GetState(*args, **kwargs): - """GetState() -> HtmlRenderingState""" + """GetState(self) -> HtmlRenderingState""" return _html.HtmlRenderingInfo_GetState(*args, **kwargs) - -class HtmlRenderingInfoPtr(HtmlRenderingInfo): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlRenderingInfo -_html.HtmlRenderingInfo_swigregister(HtmlRenderingInfoPtr) +_html.HtmlRenderingInfo_swigregister(HtmlRenderingInfo) #--------------------------------------------------------------------------- HTML_FIND_EXACT = _html.HTML_FIND_EXACT HTML_FIND_NEAREST_BEFORE = _html.HTML_FIND_NEAREST_BEFORE HTML_FIND_NEAREST_AFTER = _html.HTML_FIND_NEAREST_AFTER -class HtmlCell(core.Object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlCell""" - newobj = _html.new_HtmlCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlCell(_core.Object): + """Proxy of C++ HtmlCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlCell""" + _html.HtmlCell_swiginit(self,_html.new_HtmlCell(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlCell + __del__ = lambda self : None; def GetPosX(*args, **kwargs): - """GetPosX() -> int""" + """GetPosX(self) -> int""" return _html.HtmlCell_GetPosX(*args, **kwargs) def GetPosY(*args, **kwargs): - """GetPosY() -> int""" + """GetPosY(self) -> int""" return _html.HtmlCell_GetPosY(*args, **kwargs) def GetWidth(*args, **kwargs): - """GetWidth() -> int""" + """GetWidth(self) -> int""" return _html.HtmlCell_GetWidth(*args, **kwargs) def GetHeight(*args, **kwargs): - """GetHeight() -> int""" + """GetHeight(self) -> int""" return _html.HtmlCell_GetHeight(*args, **kwargs) def GetDescent(*args, **kwargs): - """GetDescent() -> int""" + """GetDescent(self) -> int""" return _html.HtmlCell_GetDescent(*args, **kwargs) + def GetMaxTotalWidth(*args, **kwargs): + """GetMaxTotalWidth(self) -> int""" + return _html.HtmlCell_GetMaxTotalWidth(*args, **kwargs) + + def GetId(*args, **kwargs): + """GetId(self) -> String""" + return _html.HtmlCell_GetId(*args, **kwargs) + + def SetId(*args, **kwargs): + """SetId(self, String id)""" + return _html.HtmlCell_SetId(*args, **kwargs) + def GetLink(*args, **kwargs): - """GetLink(int x=0, int y=0) -> HtmlLinkInfo""" + """GetLink(self, int x=0, int y=0) -> HtmlLinkInfo""" return _html.HtmlCell_GetLink(*args, **kwargs) def GetNext(*args, **kwargs): - """GetNext() -> HtmlCell""" + """GetNext(self) -> HtmlCell""" return _html.HtmlCell_GetNext(*args, **kwargs) def GetParent(*args, **kwargs): - """GetParent() -> HtmlContainerCell""" + """GetParent(self) -> HtmlContainerCell""" return _html.HtmlCell_GetParent(*args, **kwargs) def GetFirstChild(*args, **kwargs): - """GetFirstChild() -> HtmlCell""" + """GetFirstChild(self) -> HtmlCell""" return _html.HtmlCell_GetFirstChild(*args, **kwargs) + def GetMouseCursor(*args, **kwargs): + """GetMouseCursor(self, HtmlWindowInterface window) -> Cursor""" + return _html.HtmlCell_GetMouseCursor(*args, **kwargs) + def GetCursor(*args, **kwargs): - """GetCursor() -> wxCursor""" + """GetCursor(self) -> Cursor""" return _html.HtmlCell_GetCursor(*args, **kwargs) + GetCursor = wx._deprecated(GetCursor) def IsFormattingCell(*args, **kwargs): - """IsFormattingCell() -> bool""" + """IsFormattingCell(self) -> bool""" return _html.HtmlCell_IsFormattingCell(*args, **kwargs) def SetLink(*args, **kwargs): - """SetLink(HtmlLinkInfo link)""" + """SetLink(self, HtmlLinkInfo link)""" return _html.HtmlCell_SetLink(*args, **kwargs) def SetNext(*args, **kwargs): - """SetNext(HtmlCell cell)""" + """SetNext(self, HtmlCell cell)""" return _html.HtmlCell_SetNext(*args, **kwargs) def SetParent(*args, **kwargs): - """SetParent(HtmlContainerCell p)""" + """SetParent(self, HtmlContainerCell p)""" return _html.HtmlCell_SetParent(*args, **kwargs) def SetPos(*args, **kwargs): - """SetPos(int x, int y)""" + """SetPos(self, int x, int y)""" return _html.HtmlCell_SetPos(*args, **kwargs) def Layout(*args, **kwargs): - """Layout(int w)""" + """Layout(self, int w)""" return _html.HtmlCell_Layout(*args, **kwargs) def Draw(*args, **kwargs): - """Draw(wxDC dc, int x, int y, int view_y1, int view_y2, HtmlRenderingInfo info)""" + """Draw(self, DC dc, int x, int y, int view_y1, int view_y2, HtmlRenderingInfo info)""" return _html.HtmlCell_Draw(*args, **kwargs) def DrawInvisible(*args, **kwargs): - """DrawInvisible(wxDC dc, int x, int y, HtmlRenderingInfo info)""" + """DrawInvisible(self, DC dc, int x, int y, HtmlRenderingInfo info)""" return _html.HtmlCell_DrawInvisible(*args, **kwargs) def Find(*args, **kwargs): - """Find(int condition, void param) -> HtmlCell""" + """Find(self, int condition, void param) -> HtmlCell""" return _html.HtmlCell_Find(*args, **kwargs) - def AdjustPagebreak(*args, **kwargs): - """AdjustPagebreak(int INOUT) -> bool""" - return _html.HtmlCell_AdjustPagebreak(*args, **kwargs) + def ProcessMouseClick(*args, **kwargs): + """ProcessMouseClick(self, HtmlWindowInterface window, Point pos, MouseEvent event) -> bool""" + return _html.HtmlCell_ProcessMouseClick(*args, **kwargs) def SetCanLiveOnPagebreak(*args, **kwargs): - """SetCanLiveOnPagebreak(bool can)""" + """SetCanLiveOnPagebreak(self, bool can)""" return _html.HtmlCell_SetCanLiveOnPagebreak(*args, **kwargs) def IsLinebreakAllowed(*args, **kwargs): - """IsLinebreakAllowed() -> bool""" + """IsLinebreakAllowed(self) -> bool""" return _html.HtmlCell_IsLinebreakAllowed(*args, **kwargs) def IsTerminalCell(*args, **kwargs): - """IsTerminalCell() -> bool""" + """IsTerminalCell(self) -> bool""" return _html.HtmlCell_IsTerminalCell(*args, **kwargs) def FindCellByPos(*args, **kwargs): - """FindCellByPos(int x, int y, unsigned int flags=HTML_FIND_EXACT) -> HtmlCell""" + """FindCellByPos(self, int x, int y, unsigned int flags=HTML_FIND_EXACT) -> HtmlCell""" return _html.HtmlCell_FindCellByPos(*args, **kwargs) def GetAbsPos(*args, **kwargs): - """GetAbsPos() -> Point""" + """GetAbsPos(self, HtmlCell rootCell=None) -> Point""" return _html.HtmlCell_GetAbsPos(*args, **kwargs) + def GetRootCell(*args, **kwargs): + """GetRootCell(self) -> HtmlCell""" + return _html.HtmlCell_GetRootCell(*args, **kwargs) + def GetFirstTerminal(*args, **kwargs): - """GetFirstTerminal() -> HtmlCell""" + """GetFirstTerminal(self) -> HtmlCell""" return _html.HtmlCell_GetFirstTerminal(*args, **kwargs) def GetLastTerminal(*args, **kwargs): - """GetLastTerminal() -> HtmlCell""" + """GetLastTerminal(self) -> HtmlCell""" return _html.HtmlCell_GetLastTerminal(*args, **kwargs) def GetDepth(*args, **kwargs): - """GetDepth() -> unsigned int""" + """GetDepth(self) -> unsigned int""" return _html.HtmlCell_GetDepth(*args, **kwargs) def IsBefore(*args, **kwargs): - """IsBefore(HtmlCell cell) -> bool""" + """IsBefore(self, HtmlCell cell) -> bool""" return _html.HtmlCell_IsBefore(*args, **kwargs) def ConvertToText(*args, **kwargs): - """ConvertToText(HtmlSelection sel) -> wxString""" + """ConvertToText(self, HtmlSelection sel) -> String""" return _html.HtmlCell_ConvertToText(*args, **kwargs) - -class HtmlCellPtr(HtmlCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlCell -_html.HtmlCell_swigregister(HtmlCellPtr) +_html.HtmlCell_swigregister(HtmlCell) class HtmlWordCell(HtmlCell): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxString word, wxDC dc) -> HtmlWordCell""" - newobj = _html.new_HtmlWordCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class HtmlWordCellPtr(HtmlWordCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlWordCell -_html.HtmlWordCell_swigregister(HtmlWordCellPtr) + """Proxy of C++ HtmlWordCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String word, DC dc) -> HtmlWordCell""" + _html.HtmlWordCell_swiginit(self,_html.new_HtmlWordCell(*args, **kwargs)) + def ConvertToText(*args, **kwargs): + """ConvertToText(self, HtmlSelection sel) -> String""" + return _html.HtmlWordCell_ConvertToText(*args, **kwargs) + + def IsLinebreakAllowed(*args, **kwargs): + """IsLinebreakAllowed(self) -> bool""" + return _html.HtmlWordCell_IsLinebreakAllowed(*args, **kwargs) + + def SetPreviousWord(*args, **kwargs): + """SetPreviousWord(self, HtmlWordCell cell)""" + return _html.HtmlWordCell_SetPreviousWord(*args, **kwargs) + +_html.HtmlWordCell_swigregister(HtmlWordCell) class HtmlContainerCell(HtmlCell): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlContainerCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(HtmlContainerCell parent) -> HtmlContainerCell""" - newobj = _html.new_HtmlContainerCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown + """Proxy of C++ HtmlContainerCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, HtmlContainerCell parent) -> HtmlContainerCell""" + _html.HtmlContainerCell_swiginit(self,_html.new_HtmlContainerCell(*args, **kwargs)) def InsertCell(*args, **kwargs): - """InsertCell(HtmlCell cell)""" + """InsertCell(self, HtmlCell cell)""" return _html.HtmlContainerCell_InsertCell(*args, **kwargs) def SetAlignHor(*args, **kwargs): - """SetAlignHor(int al)""" + """SetAlignHor(self, int al)""" return _html.HtmlContainerCell_SetAlignHor(*args, **kwargs) def GetAlignHor(*args, **kwargs): - """GetAlignHor() -> int""" + """GetAlignHor(self) -> int""" return _html.HtmlContainerCell_GetAlignHor(*args, **kwargs) def SetAlignVer(*args, **kwargs): - """SetAlignVer(int al)""" + """SetAlignVer(self, int al)""" return _html.HtmlContainerCell_SetAlignVer(*args, **kwargs) def GetAlignVer(*args, **kwargs): - """GetAlignVer() -> int""" + """GetAlignVer(self) -> int""" return _html.HtmlContainerCell_GetAlignVer(*args, **kwargs) def SetIndent(*args, **kwargs): - """SetIndent(int i, int what, int units=HTML_UNITS_PIXELS)""" + """SetIndent(self, int i, int what, int units=HTML_UNITS_PIXELS)""" return _html.HtmlContainerCell_SetIndent(*args, **kwargs) def GetIndent(*args, **kwargs): - """GetIndent(int ind) -> int""" + """GetIndent(self, int ind) -> int""" return _html.HtmlContainerCell_GetIndent(*args, **kwargs) def GetIndentUnits(*args, **kwargs): - """GetIndentUnits(int ind) -> int""" + """GetIndentUnits(self, int ind) -> int""" return _html.HtmlContainerCell_GetIndentUnits(*args, **kwargs) def SetAlign(*args, **kwargs): - """SetAlign(HtmlTag tag)""" + """SetAlign(self, HtmlTag tag)""" return _html.HtmlContainerCell_SetAlign(*args, **kwargs) def SetWidthFloat(*args, **kwargs): - """SetWidthFloat(int w, int units)""" + """SetWidthFloat(self, int w, int units)""" return _html.HtmlContainerCell_SetWidthFloat(*args, **kwargs) def SetWidthFloatFromTag(*args, **kwargs): - """SetWidthFloatFromTag(HtmlTag tag)""" + """SetWidthFloatFromTag(self, HtmlTag tag)""" return _html.HtmlContainerCell_SetWidthFloatFromTag(*args, **kwargs) def SetMinHeight(*args, **kwargs): - """SetMinHeight(int h, int align=HTML_ALIGN_TOP)""" + """SetMinHeight(self, int h, int align=HTML_ALIGN_TOP)""" return _html.HtmlContainerCell_SetMinHeight(*args, **kwargs) def SetBackgroundColour(*args, **kwargs): - """SetBackgroundColour(wxColour clr)""" + """SetBackgroundColour(self, Colour clr)""" return _html.HtmlContainerCell_SetBackgroundColour(*args, **kwargs) def GetBackgroundColour(*args, **kwargs): - """GetBackgroundColour() -> wxColour""" + """GetBackgroundColour(self) -> Colour""" return _html.HtmlContainerCell_GetBackgroundColour(*args, **kwargs) def SetBorder(*args, **kwargs): - """SetBorder(wxColour clr1, wxColour clr2)""" + """SetBorder(self, Colour clr1, Colour clr2)""" return _html.HtmlContainerCell_SetBorder(*args, **kwargs) def GetFirstChild(*args, **kwargs): - """GetFirstChild() -> HtmlCell""" + """GetFirstChild(self) -> HtmlCell""" return _html.HtmlContainerCell_GetFirstChild(*args, **kwargs) - -class HtmlContainerCellPtr(HtmlContainerCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlContainerCell -_html.HtmlContainerCell_swigregister(HtmlContainerCellPtr) +_html.HtmlContainerCell_swigregister(HtmlContainerCell) class HtmlColourCell(HtmlCell): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxColour clr, int flags=HTML_CLR_FOREGROUND) -> HtmlColourCell""" - newobj = _html.new_HtmlColourCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class HtmlColourCellPtr(HtmlColourCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlColourCell -_html.HtmlColourCell_swigregister(HtmlColourCellPtr) + """Proxy of C++ HtmlColourCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, Colour clr, int flags=HTML_CLR_FOREGROUND) -> HtmlColourCell""" + _html.HtmlColourCell_swiginit(self,_html.new_HtmlColourCell(*args, **kwargs)) +_html.HtmlColourCell_swigregister(HtmlColourCell) class HtmlFontCell(HtmlCell): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlFontCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxFont font) -> HtmlFontCell""" - newobj = _html.new_HtmlFontCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class HtmlFontCellPtr(HtmlFontCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlFontCell -_html.HtmlFontCell_swigregister(HtmlFontCellPtr) + """Proxy of C++ HtmlFontCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, Font font) -> HtmlFontCell""" + _html.HtmlFontCell_swiginit(self,_html.new_HtmlFontCell(*args, **kwargs)) +_html.HtmlFontCell_swigregister(HtmlFontCell) class HtmlWidgetCell(HtmlCell): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlWidgetCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(Window wnd, int w=0) -> HtmlWidgetCell""" - newobj = _html.new_HtmlWidgetCell(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - -class HtmlWidgetCellPtr(HtmlWidgetCell): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlWidgetCell -_html.HtmlWidgetCell_swigregister(HtmlWidgetCellPtr) + """Proxy of C++ HtmlWidgetCell class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, Window wnd, int w=0) -> HtmlWidgetCell""" + _html.HtmlWidgetCell_swiginit(self,_html.new_HtmlWidgetCell(*args, **kwargs)) +_html.HtmlWidgetCell_swigregister(HtmlWidgetCell) #--------------------------------------------------------------------------- -class HtmlFilter(core.Object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlFilter""" - newobj = _html.new_HtmlFilter(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlFilter(_core.Object): + """Proxy of C++ HtmlFilter class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlFilter""" + _html.HtmlFilter_swiginit(self,_html.new_HtmlFilter(*args, **kwargs)) self._setCallbackInfo(self, HtmlFilter) def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(PyObject self, PyObject _class)""" + """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _html.HtmlFilter__setCallbackInfo(*args, **kwargs) +_html.HtmlFilter_swigregister(HtmlFilter) + +class HtmlWindowInterface(object): + """Proxy of C++ HtmlWindowInterface class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + __swig_destroy__ = _html.delete_HtmlWindowInterface + __del__ = lambda self : None; + def SetHTMLWindowTitle(*args, **kwargs): + """SetHTMLWindowTitle(self, String title)""" + return _html.HtmlWindowInterface_SetHTMLWindowTitle(*args, **kwargs) -class HtmlFilterPtr(HtmlFilter): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlFilter -_html.HtmlFilter_swigregister(HtmlFilterPtr) + def HTMLCoordsToWindow(*args, **kwargs): + """HTMLCoordsToWindow(self, HtmlCell cell, Point pos) -> Point""" + return _html.HtmlWindowInterface_HTMLCoordsToWindow(*args, **kwargs) + + def GetHTMLWindow(*args, **kwargs): + """GetHTMLWindow(self) -> Window""" + return _html.HtmlWindowInterface_GetHTMLWindow(*args, **kwargs) + + def GetHTMLBackgroundColour(*args, **kwargs): + """GetHTMLBackgroundColour(self) -> Colour""" + return _html.HtmlWindowInterface_GetHTMLBackgroundColour(*args, **kwargs) + + def SetHTMLBackgroundColour(*args, **kwargs): + """SetHTMLBackgroundColour(self, Colour clr)""" + return _html.HtmlWindowInterface_SetHTMLBackgroundColour(*args, **kwargs) + + def SetHTMLBackgroundImage(*args, **kwargs): + """SetHTMLBackgroundImage(self, Bitmap bmpBg)""" + return _html.HtmlWindowInterface_SetHTMLBackgroundImage(*args, **kwargs) + + def SetHTMLStatusText(*args, **kwargs): + """SetHTMLStatusText(self, String text)""" + return _html.HtmlWindowInterface_SetHTMLStatusText(*args, **kwargs) + + HTMLCursor_Default = _html.HtmlWindowInterface_HTMLCursor_Default + HTMLCursor_Link = _html.HtmlWindowInterface_HTMLCursor_Link + HTMLCursor_Text = _html.HtmlWindowInterface_HTMLCursor_Text +_html.HtmlWindowInterface_swigregister(HtmlWindowInterface) #--------------------------------------------------------------------------- -class HtmlWindow(windows.ScrolledWindow): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxPyHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, int style=HW_DEFAULT_STYLE, - wxString name=wxPyHtmlWindowNameStr) -> HtmlWindow""" - newobj = _html.new_HtmlWindow(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlWindow(_windows.ScrolledWindow): + """Proxy of C++ HtmlWindow class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, + Size size=DefaultSize, int style=HW_DEFAULT_STYLE, + String name=HtmlWindowNameStr) -> HtmlWindow + """ + _html.HtmlWindow_swiginit(self,_html.new_HtmlWindow(*args, **kwargs)) self._setCallbackInfo(self, HtmlWindow); self._setOORInfo(self) def Create(*args, **kwargs): - """Create(Window parent, int id=-1, Point pos=DefaultPosition, - Size size=DefaultSize, int style=HW_SCROLLBAR_AUTO, - wxString name=wxPyHtmlWindowNameStr) -> bool""" + """ + Create(self, Window parent, int id=-1, Point pos=DefaultPosition, + Size size=DefaultSize, int style=HW_SCROLLBAR_AUTO, + String name=HtmlWindowNameStr) -> bool + """ return _html.HtmlWindow_Create(*args, **kwargs) def _setCallbackInfo(*args, **kwargs): - """_setCallbackInfo(PyObject self, PyObject _class)""" + """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _html.HtmlWindow__setCallbackInfo(*args, **kwargs) def SetPage(*args, **kwargs): - """SetPage(wxString source) -> bool""" + """SetPage(self, String source) -> bool""" return _html.HtmlWindow_SetPage(*args, **kwargs) def LoadPage(*args, **kwargs): - """LoadPage(wxString location) -> bool""" + """LoadPage(self, String location) -> bool""" return _html.HtmlWindow_LoadPage(*args, **kwargs) def LoadFile(*args, **kwargs): - """LoadFile(wxString filename) -> bool""" + """LoadFile(self, String filename) -> bool""" return _html.HtmlWindow_LoadFile(*args, **kwargs) def AppendToPage(*args, **kwargs): - """AppendToPage(wxString source) -> bool""" + """AppendToPage(self, String source) -> bool""" return _html.HtmlWindow_AppendToPage(*args, **kwargs) def GetOpenedPage(*args, **kwargs): - """GetOpenedPage() -> wxString""" + """GetOpenedPage(self) -> String""" return _html.HtmlWindow_GetOpenedPage(*args, **kwargs) def GetOpenedAnchor(*args, **kwargs): - """GetOpenedAnchor() -> wxString""" + """GetOpenedAnchor(self) -> String""" return _html.HtmlWindow_GetOpenedAnchor(*args, **kwargs) def GetOpenedPageTitle(*args, **kwargs): - """GetOpenedPageTitle() -> wxString""" + """GetOpenedPageTitle(self) -> String""" return _html.HtmlWindow_GetOpenedPageTitle(*args, **kwargs) def SetRelatedFrame(*args, **kwargs): - """SetRelatedFrame(Frame frame, wxString format)""" + """SetRelatedFrame(self, Frame frame, String format)""" return _html.HtmlWindow_SetRelatedFrame(*args, **kwargs) def GetRelatedFrame(*args, **kwargs): - """GetRelatedFrame() -> Frame""" + """GetRelatedFrame(self) -> Frame""" return _html.HtmlWindow_GetRelatedFrame(*args, **kwargs) def SetRelatedStatusBar(*args, **kwargs): - """SetRelatedStatusBar(int bar)""" + """SetRelatedStatusBar(self, int bar)""" return _html.HtmlWindow_SetRelatedStatusBar(*args, **kwargs) def SetFonts(*args, **kwargs): - """SetFonts(wxString normal_face, wxString fixed_face, PyObject sizes=None)""" + """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)""" return _html.HtmlWindow_SetFonts(*args, **kwargs) - def SetTitle(*args, **kwargs): - """SetTitle(wxString title)""" - return _html.HtmlWindow_SetTitle(*args, **kwargs) + def SetStandardFonts(*args, **kwargs): + """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)""" + return _html.HtmlWindow_SetStandardFonts(*args, **kwargs) def SetBorders(*args, **kwargs): - """SetBorders(int b)""" + """SetBorders(self, int b)""" return _html.HtmlWindow_SetBorders(*args, **kwargs) + def SetBackgroundImage(*args, **kwargs): + """SetBackgroundImage(self, Bitmap bmpBg)""" + return _html.HtmlWindow_SetBackgroundImage(*args, **kwargs) + def ReadCustomization(*args, **kwargs): - """ReadCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" + """ReadCustomization(self, ConfigBase cfg, String path=EmptyString)""" return _html.HtmlWindow_ReadCustomization(*args, **kwargs) def WriteCustomization(*args, **kwargs): - """WriteCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" + """WriteCustomization(self, ConfigBase cfg, String path=EmptyString)""" return _html.HtmlWindow_WriteCustomization(*args, **kwargs) def HistoryBack(*args, **kwargs): - """HistoryBack() -> bool""" + """HistoryBack(self) -> bool""" return _html.HtmlWindow_HistoryBack(*args, **kwargs) def HistoryForward(*args, **kwargs): - """HistoryForward() -> bool""" + """HistoryForward(self) -> bool""" return _html.HtmlWindow_HistoryForward(*args, **kwargs) def HistoryCanBack(*args, **kwargs): - """HistoryCanBack() -> bool""" + """HistoryCanBack(self) -> bool""" return _html.HtmlWindow_HistoryCanBack(*args, **kwargs) def HistoryCanForward(*args, **kwargs): - """HistoryCanForward() -> bool""" + """HistoryCanForward(self) -> bool""" return _html.HtmlWindow_HistoryCanForward(*args, **kwargs) def HistoryClear(*args, **kwargs): - """HistoryClear()""" + """HistoryClear(self)""" return _html.HtmlWindow_HistoryClear(*args, **kwargs) def GetInternalRepresentation(*args, **kwargs): - """GetInternalRepresentation() -> HtmlContainerCell""" + """GetInternalRepresentation(self) -> HtmlContainerCell""" return _html.HtmlWindow_GetInternalRepresentation(*args, **kwargs) def GetParser(*args, **kwargs): - """GetParser() -> HtmlWinParser""" + """GetParser(self) -> HtmlWinParser""" return _html.HtmlWindow_GetParser(*args, **kwargs) def ScrollToAnchor(*args, **kwargs): - """ScrollToAnchor(wxString anchor) -> bool""" + """ScrollToAnchor(self, String anchor) -> bool""" return _html.HtmlWindow_ScrollToAnchor(*args, **kwargs) def HasAnchor(*args, **kwargs): - """HasAnchor(wxString anchor) -> bool""" + """HasAnchor(self, String anchor) -> bool""" return _html.HtmlWindow_HasAnchor(*args, **kwargs) def AddFilter(*args, **kwargs): - """HtmlWindow.AddFilter(HtmlFilter filter)""" + """AddFilter(HtmlFilter filter)""" return _html.HtmlWindow_AddFilter(*args, **kwargs) AddFilter = staticmethod(AddFilter) - def base_OnLinkClicked(*args, **kwargs): - """base_OnLinkClicked(HtmlLinkInfo link)""" - return _html.HtmlWindow_base_OnLinkClicked(*args, **kwargs) - - def base_OnSetTitle(*args, **kwargs): - """base_OnSetTitle(wxString title)""" - return _html.HtmlWindow_base_OnSetTitle(*args, **kwargs) - - def base_OnCellMouseHover(*args, **kwargs): - """base_OnCellMouseHover(HtmlCell cell, int x, int y)""" - return _html.HtmlWindow_base_OnCellMouseHover(*args, **kwargs) - - def base_OnCellClicked(*args, **kwargs): - """base_OnCellClicked(HtmlCell cell, int x, int y, MouseEvent event)""" - return _html.HtmlWindow_base_OnCellClicked(*args, **kwargs) - - -class HtmlWindowPtr(HtmlWindow): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlWindow -_html.HtmlWindow_swigregister(HtmlWindowPtr) + def SelectWord(*args, **kwargs): + """SelectWord(self, Point pos)""" + return _html.HtmlWindow_SelectWord(*args, **kwargs) + + def SelectLine(*args, **kwargs): + """SelectLine(self, Point pos)""" + return _html.HtmlWindow_SelectLine(*args, **kwargs) + + def SelectAll(*args, **kwargs): + """SelectAll(self)""" + return _html.HtmlWindow_SelectAll(*args, **kwargs) + + def SelectionToText(*args, **kwargs): + """SelectionToText(self) -> String""" + return _html.HtmlWindow_SelectionToText(*args, **kwargs) + + def ToText(*args, **kwargs): + """ToText(self) -> String""" + return _html.HtmlWindow_ToText(*args, **kwargs) + + def OnLinkClicked(*args, **kwargs): + """OnLinkClicked(self, HtmlLinkInfo link)""" + return _html.HtmlWindow_OnLinkClicked(*args, **kwargs) + + def OnSetTitle(*args, **kwargs): + """OnSetTitle(self, String title)""" + return _html.HtmlWindow_OnSetTitle(*args, **kwargs) + + def OnCellMouseHover(*args, **kwargs): + """OnCellMouseHover(self, HtmlCell cell, int x, int y)""" + return _html.HtmlWindow_OnCellMouseHover(*args, **kwargs) + + def OnCellClicked(*args, **kwargs): + """OnCellClicked(self, HtmlCell cell, int x, int y, MouseEvent event) -> bool""" + return _html.HtmlWindow_OnCellClicked(*args, **kwargs) + + def OnOpeningURL(*args, **kwargs): + """OnOpeningURL(self, int type, String url, String redirect) -> int""" + return _html.HtmlWindow_OnOpeningURL(*args, **kwargs) + + def base_OnLinkClicked(*args, **kw): + return HtmlWindow.OnLinkClicked(*args, **kw) + base_OnLinkClicked = wx._deprecated(base_OnLinkClicked, + "Please use HtmlWindow.OnLinkClicked instead.") + + def base_OnSetTitle(*args, **kw): + return HtmlWindow.OnSetTitle(*args, **kw) + base_OnSetTitle = wx._deprecated(base_OnSetTitle, + "Please use HtmlWindow.OnSetTitle instead.") + + def base_OnCellMouseHover(*args, **kw): + return HtmlWindow.OnCellMouseHover(*args, **kw) + base_OnCellMouseHover = wx._deprecated(base_OnCellMouseHover, + "Please use HtmlWindow.OnCellMouseHover instead.") + + def base_OnCellClicked(*args, **kw): + return HtmlWindow.OnCellClicked(*args, **kw) + base_OnCellClicked = wx._deprecated(base_OnCellClicked, + "Please use HtmlWindow.OnCellClicked instead.") + + def GetClassDefaultAttributes(*args, **kwargs): + """ + GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes + + Get the default attributes for this class. This is useful if you want + to use the same font or colour in your own control as in a standard + control -- which is a much better idea than hard coding specific + colours or fonts which might look completely out of place on the + user's system, especially if it uses themes. + + The variant parameter is only relevant under Mac currently and is + ignore under other platforms. Under Mac, it will change the size of + the returned font. See `wx.Window.SetWindowVariant` for more about + this. + """ + return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs) + + GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) + HTMLCursor_Default = _html.HtmlWindow_HTMLCursor_Default + HTMLCursor_Link = _html.HtmlWindow_HTMLCursor_Link + HTMLCursor_Text = _html.HtmlWindow_HTMLCursor_Text + def GetDefaultHTMLCursor(*args, **kwargs): + """GetDefaultHTMLCursor(int type) -> Cursor""" + return _html.HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs) + + GetDefaultHTMLCursor = staticmethod(GetDefaultHTMLCursor) +_html.HtmlWindow_swigregister(HtmlWindow) def PreHtmlWindow(*args, **kwargs): """PreHtmlWindow() -> HtmlWindow""" val = _html.new_PreHtmlWindow(*args, **kwargs) - val.thisown = 1 return val def HtmlWindow_AddFilter(*args, **kwargs): - """HtmlWindow_AddFilter(HtmlFilter filter)""" - return _html.HtmlWindow_AddFilter(*args, **kwargs) + """HtmlWindow_AddFilter(HtmlFilter filter)""" + return _html.HtmlWindow_AddFilter(*args, **kwargs) + +def HtmlWindow_GetClassDefaultAttributes(*args, **kwargs): + """ + HtmlWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes + + Get the default attributes for this class. This is useful if you want + to use the same font or colour in your own control as in a standard + control -- which is a much better idea than hard coding specific + colours or fonts which might look completely out of place on the + user's system, especially if it uses themes. + + The variant parameter is only relevant under Mac currently and is + ignore under other platforms. Under Mac, it will change the size of + the returned font. See `wx.Window.SetWindowVariant` for more about + this. + """ + return _html.HtmlWindow_GetClassDefaultAttributes(*args, **kwargs) + +def HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs): + """HtmlWindow_GetDefaultHTMLCursor(int type) -> Cursor""" + return _html.HtmlWindow_GetDefaultHTMLCursor(*args, **kwargs) #--------------------------------------------------------------------------- -class HtmlDCRenderer(core.Object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlDCRenderer""" - newobj = _html.new_HtmlDCRenderer(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlDCRenderer): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - +class HtmlDCRenderer(_core.Object): + """Proxy of C++ HtmlDCRenderer class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlDCRenderer""" + _html.HtmlDCRenderer_swiginit(self,_html.new_HtmlDCRenderer(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlDCRenderer + __del__ = lambda self : None; def SetDC(*args, **kwargs): - """SetDC(wxDC dc, int maxwidth)""" + """SetDC(self, DC dc, int maxwidth)""" return _html.HtmlDCRenderer_SetDC(*args, **kwargs) def SetSize(*args, **kwargs): - """SetSize(int width, int height)""" + """SetSize(self, int width, int height)""" return _html.HtmlDCRenderer_SetSize(*args, **kwargs) def SetHtmlText(*args, **kwargs): - """SetHtmlText(wxString html, wxString basepath=wxPyEmptyString, bool isdir=True)""" + """SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)""" return _html.HtmlDCRenderer_SetHtmlText(*args, **kwargs) def SetFonts(*args, **kwargs): - """SetFonts(wxString normal_face, wxString fixed_face, PyObject sizes=None)""" + """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)""" return _html.HtmlDCRenderer_SetFonts(*args, **kwargs) + def SetStandardFonts(*args, **kwargs): + """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)""" + return _html.HtmlDCRenderer_SetStandardFonts(*args, **kwargs) + def Render(*args, **kwargs): - """Render(int x, int y, int from=0, int dont_render=False, int to=INT_MAX, - int choices=None, int LCOUNT=0) -> int""" + """ + Render(self, int x, int y, wxArrayInt known_pagebreaks, int from=0, + int dont_render=False, int to=INT_MAX) -> int + """ return _html.HtmlDCRenderer_Render(*args, **kwargs) def GetTotalHeight(*args, **kwargs): - """GetTotalHeight() -> int""" + """GetTotalHeight(self) -> int""" return _html.HtmlDCRenderer_GetTotalHeight(*args, **kwargs) - -class HtmlDCRendererPtr(HtmlDCRenderer): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlDCRenderer -_html.HtmlDCRenderer_swigregister(HtmlDCRendererPtr) +_html.HtmlDCRenderer_swigregister(HtmlDCRenderer) PAGE_ODD = _html.PAGE_ODD PAGE_EVEN = _html.PAGE_EVEN PAGE_ALL = _html.PAGE_ALL -class HtmlPrintout(windows.Printout): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxString title=wxPyHtmlPrintoutTitleStr) -> HtmlPrintout""" - newobj = _html.new_HtmlPrintout(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +class HtmlPrintout(_windows.Printout): + """Proxy of C++ HtmlPrintout class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String title=HtmlPrintoutTitleStr) -> HtmlPrintout""" + _html.HtmlPrintout_swiginit(self,_html.new_HtmlPrintout(*args, **kwargs)) def SetHtmlText(*args, **kwargs): - """SetHtmlText(wxString html, wxString basepath=wxPyEmptyString, bool isdir=True)""" + """SetHtmlText(self, String html, String basepath=EmptyString, bool isdir=True)""" return _html.HtmlPrintout_SetHtmlText(*args, **kwargs) def SetHtmlFile(*args, **kwargs): - """SetHtmlFile(wxString htmlfile)""" + """SetHtmlFile(self, String htmlfile)""" return _html.HtmlPrintout_SetHtmlFile(*args, **kwargs) def SetHeader(*args, **kwargs): - """SetHeader(wxString header, int pg=PAGE_ALL)""" + """SetHeader(self, String header, int pg=PAGE_ALL)""" return _html.HtmlPrintout_SetHeader(*args, **kwargs) def SetFooter(*args, **kwargs): - """SetFooter(wxString footer, int pg=PAGE_ALL)""" + """SetFooter(self, String footer, int pg=PAGE_ALL)""" return _html.HtmlPrintout_SetFooter(*args, **kwargs) def SetFonts(*args, **kwargs): - """SetFonts(wxString normal_face, wxString fixed_face, PyObject sizes=None)""" + """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)""" return _html.HtmlPrintout_SetFonts(*args, **kwargs) + def SetStandardFonts(*args, **kwargs): + """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)""" + return _html.HtmlPrintout_SetStandardFonts(*args, **kwargs) + def SetMargins(*args, **kwargs): - """SetMargins(float top=25.2, float bottom=25.2, float left=25.2, - float right=25.2, float spaces=5)""" + """ + SetMargins(self, float top=25.2, float bottom=25.2, float left=25.2, + float right=25.2, float spaces=5) + """ return _html.HtmlPrintout_SetMargins(*args, **kwargs) def AddFilter(*args, **kwargs): - """HtmlPrintout.AddFilter(wxHtmlFilter filter)""" + """AddFilter(wxHtmlFilter filter)""" return _html.HtmlPrintout_AddFilter(*args, **kwargs) AddFilter = staticmethod(AddFilter) def CleanUpStatics(*args, **kwargs): - """HtmlPrintout.CleanUpStatics()""" + """CleanUpStatics()""" return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs) CleanUpStatics = staticmethod(CleanUpStatics) - -class HtmlPrintoutPtr(HtmlPrintout): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlPrintout -_html.HtmlPrintout_swigregister(HtmlPrintoutPtr) +_html.HtmlPrintout_swigregister(HtmlPrintout) def HtmlPrintout_AddFilter(*args, **kwargs): - """HtmlPrintout_AddFilter(wxHtmlFilter filter)""" - return _html.HtmlPrintout_AddFilter(*args, **kwargs) - -def HtmlPrintout_CleanUpStatics(*args, **kwargs): - """HtmlPrintout_CleanUpStatics()""" - return _html.HtmlPrintout_CleanUpStatics(*args, **kwargs) - -class HtmlEasyPrinting(core.Object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxString name=wxPyHtmlPrintingTitleStr, Window parentWindow=None) -> HtmlEasyPrinting""" - newobj = _html.new_HtmlEasyPrinting(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlEasyPrinting): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - + """HtmlPrintout_AddFilter(wxHtmlFilter filter)""" + return _html.HtmlPrintout_AddFilter(*args, **kwargs) + +def HtmlPrintout_CleanUpStatics(*args): + """HtmlPrintout_CleanUpStatics()""" + return _html.HtmlPrintout_CleanUpStatics(*args) + +class HtmlEasyPrinting(_core.Object): + """Proxy of C++ HtmlEasyPrinting class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String name=HtmlPrintingTitleStr, Window parentWindow=None) -> HtmlEasyPrinting""" + _html.HtmlEasyPrinting_swiginit(self,_html.new_HtmlEasyPrinting(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlEasyPrinting + __del__ = lambda self : None; def PreviewFile(*args, **kwargs): - """PreviewFile(wxString htmlfile)""" + """PreviewFile(self, String htmlfile)""" return _html.HtmlEasyPrinting_PreviewFile(*args, **kwargs) def PreviewText(*args, **kwargs): - """PreviewText(wxString htmltext, wxString basepath=wxPyEmptyString)""" + """PreviewText(self, String htmltext, String basepath=EmptyString)""" return _html.HtmlEasyPrinting_PreviewText(*args, **kwargs) def PrintFile(*args, **kwargs): - """PrintFile(wxString htmlfile)""" + """PrintFile(self, String htmlfile)""" return _html.HtmlEasyPrinting_PrintFile(*args, **kwargs) def PrintText(*args, **kwargs): - """PrintText(wxString htmltext, wxString basepath=wxPyEmptyString)""" + """PrintText(self, String htmltext, String basepath=EmptyString)""" return _html.HtmlEasyPrinting_PrintText(*args, **kwargs) - def PrinterSetup(*args, **kwargs): - """PrinterSetup()""" - return _html.HtmlEasyPrinting_PrinterSetup(*args, **kwargs) - def PageSetup(*args, **kwargs): - """PageSetup()""" + """PageSetup(self)""" return _html.HtmlEasyPrinting_PageSetup(*args, **kwargs) def SetHeader(*args, **kwargs): - """SetHeader(wxString header, int pg=PAGE_ALL)""" + """SetHeader(self, String header, int pg=PAGE_ALL)""" return _html.HtmlEasyPrinting_SetHeader(*args, **kwargs) def SetFooter(*args, **kwargs): - """SetFooter(wxString footer, int pg=PAGE_ALL)""" + """SetFooter(self, String footer, int pg=PAGE_ALL)""" return _html.HtmlEasyPrinting_SetFooter(*args, **kwargs) def SetFonts(*args, **kwargs): - """SetFonts(wxString normal_face, wxString fixed_face, PyObject sizes=None)""" + """SetFonts(self, String normal_face, String fixed_face, PyObject sizes=None)""" return _html.HtmlEasyPrinting_SetFonts(*args, **kwargs) + def SetStandardFonts(*args, **kwargs): + """SetStandardFonts(self, int size=-1, String normal_face=EmptyString, String fixed_face=EmptyString)""" + return _html.HtmlEasyPrinting_SetStandardFonts(*args, **kwargs) + def GetPrintData(*args, **kwargs): - """GetPrintData() -> PrintData""" + """GetPrintData(self) -> PrintData""" return _html.HtmlEasyPrinting_GetPrintData(*args, **kwargs) def GetPageSetupData(*args, **kwargs): - """GetPageSetupData() -> PageSetupDialogData""" + """GetPageSetupData(self) -> PageSetupDialogData""" return _html.HtmlEasyPrinting_GetPageSetupData(*args, **kwargs) - -class HtmlEasyPrintingPtr(HtmlEasyPrinting): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlEasyPrinting -_html.HtmlEasyPrinting_swigregister(HtmlEasyPrintingPtr) +_html.HtmlEasyPrinting_swigregister(HtmlEasyPrinting) #--------------------------------------------------------------------------- class HtmlBookRecord(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlBookRecord instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(wxString bookfile, wxString basepath, wxString title, - wxString start) -> HtmlBookRecord""" - newobj = _html.new_HtmlBookRecord(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown + """Proxy of C++ HtmlBookRecord class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, String bookfile, String basepath, String title, String start) -> HtmlBookRecord""" + _html.HtmlBookRecord_swiginit(self,_html.new_HtmlBookRecord(*args, **kwargs)) def GetBookFile(*args, **kwargs): - """GetBookFile() -> wxString""" + """GetBookFile(self) -> String""" return _html.HtmlBookRecord_GetBookFile(*args, **kwargs) def GetTitle(*args, **kwargs): - """GetTitle() -> wxString""" + """GetTitle(self) -> String""" return _html.HtmlBookRecord_GetTitle(*args, **kwargs) def GetStart(*args, **kwargs): - """GetStart() -> wxString""" + """GetStart(self) -> String""" return _html.HtmlBookRecord_GetStart(*args, **kwargs) def GetBasePath(*args, **kwargs): - """GetBasePath() -> wxString""" + """GetBasePath(self) -> String""" return _html.HtmlBookRecord_GetBasePath(*args, **kwargs) def SetContentsRange(*args, **kwargs): - """SetContentsRange(int start, int end)""" + """SetContentsRange(self, int start, int end)""" return _html.HtmlBookRecord_SetContentsRange(*args, **kwargs) def GetContentsStart(*args, **kwargs): - """GetContentsStart() -> int""" + """GetContentsStart(self) -> int""" return _html.HtmlBookRecord_GetContentsStart(*args, **kwargs) def GetContentsEnd(*args, **kwargs): - """GetContentsEnd() -> int""" + """GetContentsEnd(self) -> int""" return _html.HtmlBookRecord_GetContentsEnd(*args, **kwargs) def SetTitle(*args, **kwargs): - """SetTitle(wxString title)""" + """SetTitle(self, String title)""" return _html.HtmlBookRecord_SetTitle(*args, **kwargs) def SetBasePath(*args, **kwargs): - """SetBasePath(wxString path)""" + """SetBasePath(self, String path)""" return _html.HtmlBookRecord_SetBasePath(*args, **kwargs) def SetStart(*args, **kwargs): - """SetStart(wxString start)""" + """SetStart(self, String start)""" return _html.HtmlBookRecord_SetStart(*args, **kwargs) def GetFullPath(*args, **kwargs): - """GetFullPath(wxString page) -> wxString""" + """GetFullPath(self, String page) -> String""" return _html.HtmlBookRecord_GetFullPath(*args, **kwargs) - -class HtmlBookRecordPtr(HtmlBookRecord): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlBookRecord -_html.HtmlBookRecord_swigregister(HtmlBookRecordPtr) - -class HtmlContentsItem(object): - """""" - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlContentsItem instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def GetLevel(*args, **kwargs): - """GetLevel() -> int""" - return _html.HtmlContentsItem_GetLevel(*args, **kwargs) - - def GetID(*args, **kwargs): - """GetID() -> int""" - return _html.HtmlContentsItem_GetID(*args, **kwargs) - - def GetName(*args, **kwargs): - """GetName() -> wxString""" - return _html.HtmlContentsItem_GetName(*args, **kwargs) - - def GetPage(*args, **kwargs): - """GetPage() -> wxString""" - return _html.HtmlContentsItem_GetPage(*args, **kwargs) - - def GetBook(*args, **kwargs): - """GetBook() -> HtmlBookRecord""" - return _html.HtmlContentsItem_GetBook(*args, **kwargs) - - -class HtmlContentsItemPtr(HtmlContentsItem): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlContentsItem -_html.HtmlContentsItem_swigregister(HtmlContentsItemPtr) +_html.HtmlBookRecord_swigregister(HtmlBookRecord) class HtmlSearchStatus(object): - """""" - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlSearchStatus instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + """Proxy of C++ HtmlSearchStatus class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr def Search(*args, **kwargs): - """Search() -> bool""" + """Search(self) -> bool""" return _html.HtmlSearchStatus_Search(*args, **kwargs) def IsActive(*args, **kwargs): - """IsActive() -> bool""" + """IsActive(self) -> bool""" return _html.HtmlSearchStatus_IsActive(*args, **kwargs) def GetCurIndex(*args, **kwargs): - """GetCurIndex() -> int""" + """GetCurIndex(self) -> int""" return _html.HtmlSearchStatus_GetCurIndex(*args, **kwargs) def GetMaxIndex(*args, **kwargs): - """GetMaxIndex() -> int""" + """GetMaxIndex(self) -> int""" return _html.HtmlSearchStatus_GetMaxIndex(*args, **kwargs) def GetName(*args, **kwargs): - """GetName() -> wxString""" + """GetName(self) -> String""" return _html.HtmlSearchStatus_GetName(*args, **kwargs) - def GetContentsItem(*args, **kwargs): - """GetContentsItem() -> HtmlContentsItem""" - return _html.HtmlSearchStatus_GetContentsItem(*args, **kwargs) - - -class HtmlSearchStatusPtr(HtmlSearchStatus): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlSearchStatus -_html.HtmlSearchStatus_swigregister(HtmlSearchStatusPtr) +_html.HtmlSearchStatus_swigregister(HtmlSearchStatus) class HtmlHelpData(object): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlHelpData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__() -> HtmlHelpData""" - newobj = _html.new_HtmlHelpData(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown - def __del__(self, destroy=_html.delete_HtmlHelpData): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass - + """Proxy of C++ HtmlHelpData class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self) -> HtmlHelpData""" + _html.HtmlHelpData_swiginit(self,_html.new_HtmlHelpData(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlHelpData + __del__ = lambda self : None; def SetTempDir(*args, **kwargs): - """SetTempDir(wxString path)""" + """SetTempDir(self, String path)""" return _html.HtmlHelpData_SetTempDir(*args, **kwargs) def AddBook(*args, **kwargs): - """AddBook(wxString book) -> bool""" + """AddBook(self, String book) -> bool""" return _html.HtmlHelpData_AddBook(*args, **kwargs) def FindPageByName(*args, **kwargs): - """FindPageByName(wxString page) -> wxString""" + """FindPageByName(self, String page) -> String""" return _html.HtmlHelpData_FindPageByName(*args, **kwargs) def FindPageById(*args, **kwargs): - """FindPageById(int id) -> wxString""" + """FindPageById(self, int id) -> String""" return _html.HtmlHelpData_FindPageById(*args, **kwargs) def GetBookRecArray(*args, **kwargs): - """GetBookRecArray() -> wxHtmlBookRecArray""" + """GetBookRecArray(self) -> wxHtmlBookRecArray""" return _html.HtmlHelpData_GetBookRecArray(*args, **kwargs) - def GetContents(*args, **kwargs): - """GetContents() -> HtmlContentsItem""" - return _html.HtmlHelpData_GetContents(*args, **kwargs) - - def GetContentsCnt(*args, **kwargs): - """GetContentsCnt() -> int""" - return _html.HtmlHelpData_GetContentsCnt(*args, **kwargs) - - def GetIndex(*args, **kwargs): - """GetIndex() -> HtmlContentsItem""" - return _html.HtmlHelpData_GetIndex(*args, **kwargs) - - def GetIndexCnt(*args, **kwargs): - """GetIndexCnt() -> int""" - return _html.HtmlHelpData_GetIndexCnt(*args, **kwargs) - - -class HtmlHelpDataPtr(HtmlHelpData): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlHelpData -_html.HtmlHelpData_swigregister(HtmlHelpDataPtr) - -class HtmlHelpFrame(windows.Frame): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlHelpFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(Window parent, int ??, wxString title=wxPyEmptyString, - int style=HF_DEFAULTSTYLE, HtmlHelpData data=None) -> HtmlHelpFrame""" - newobj = _html.new_HtmlHelpFrame(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown +_html.HtmlHelpData_swigregister(HtmlHelpData) + +HF_TOOLBAR = _html.HF_TOOLBAR +HF_CONTENTS = _html.HF_CONTENTS +HF_INDEX = _html.HF_INDEX +HF_SEARCH = _html.HF_SEARCH +HF_BOOKMARKS = _html.HF_BOOKMARKS +HF_OPEN_FILES = _html.HF_OPEN_FILES +HF_PRINT = _html.HF_PRINT +HF_FLAT_TOOLBAR = _html.HF_FLAT_TOOLBAR +HF_MERGE_BOOKS = _html.HF_MERGE_BOOKS +HF_ICONS_BOOK = _html.HF_ICONS_BOOK +HF_ICONS_BOOK_CHAPTER = _html.HF_ICONS_BOOK_CHAPTER +HF_ICONS_FOLDER = _html.HF_ICONS_FOLDER +HF_DEFAULT_STYLE = _html.HF_DEFAULT_STYLE +HF_EMBEDDED = _html.HF_EMBEDDED +HF_DIALOG = _html.HF_DIALOG +HF_FRAME = _html.HF_FRAME +HF_MODAL = _html.HF_MODAL +ID_HTML_PANEL = _html.ID_HTML_PANEL +ID_HTML_BACK = _html.ID_HTML_BACK +ID_HTML_FORWARD = _html.ID_HTML_FORWARD +ID_HTML_UPNODE = _html.ID_HTML_UPNODE +ID_HTML_UP = _html.ID_HTML_UP +ID_HTML_DOWN = _html.ID_HTML_DOWN +ID_HTML_PRINT = _html.ID_HTML_PRINT +ID_HTML_OPENFILE = _html.ID_HTML_OPENFILE +ID_HTML_OPTIONS = _html.ID_HTML_OPTIONS +ID_HTML_BOOKMARKSLIST = _html.ID_HTML_BOOKMARKSLIST +ID_HTML_BOOKMARKSADD = _html.ID_HTML_BOOKMARKSADD +ID_HTML_BOOKMARKSREMOVE = _html.ID_HTML_BOOKMARKSREMOVE +ID_HTML_TREECTRL = _html.ID_HTML_TREECTRL +ID_HTML_INDEXPAGE = _html.ID_HTML_INDEXPAGE +ID_HTML_INDEXLIST = _html.ID_HTML_INDEXLIST +ID_HTML_INDEXTEXT = _html.ID_HTML_INDEXTEXT +ID_HTML_INDEXBUTTON = _html.ID_HTML_INDEXBUTTON +ID_HTML_INDEXBUTTONALL = _html.ID_HTML_INDEXBUTTONALL +ID_HTML_NOTEBOOK = _html.ID_HTML_NOTEBOOK +ID_HTML_SEARCHPAGE = _html.ID_HTML_SEARCHPAGE +ID_HTML_SEARCHTEXT = _html.ID_HTML_SEARCHTEXT +ID_HTML_SEARCHLIST = _html.ID_HTML_SEARCHLIST +ID_HTML_SEARCHBUTTON = _html.ID_HTML_SEARCHBUTTON +ID_HTML_SEARCHCHOICE = _html.ID_HTML_SEARCHCHOICE +ID_HTML_COUNTINFO = _html.ID_HTML_COUNTINFO +class HtmlHelpWindow(_core.Window): + """Proxy of C++ HtmlHelpWindow class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int ?, Point pos=DefaultPosition, Size size=DefaultSize, + int style=wxTAB_TRAVERSAL|wxNO_BORDER, + int helpStyle=HF_DEFAULT_STYLE, + HtmlHelpData data=None) -> HtmlHelpWindow + """ + _html.HtmlHelpWindow_swiginit(self,_html.new_HtmlHelpWindow(*args, **kwargs)) self._setOORInfo(self) + def Create(*args, **kwargs): + """ + Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize, + int style=wxTAB_TRAVERSAL|wxNO_BORDER, + int helpStyle=HF_DEFAULT_STYLE) -> bool + """ + return _html.HtmlHelpWindow_Create(*args, **kwargs) + def GetData(*args, **kwargs): - """GetData() -> HtmlHelpData""" - return _html.HtmlHelpFrame_GetData(*args, **kwargs) + """GetData(self) -> HtmlHelpData""" + return _html.HtmlHelpWindow_GetData(*args, **kwargs) - def SetTitleFormat(*args, **kwargs): - """SetTitleFormat(wxString format)""" - return _html.HtmlHelpFrame_SetTitleFormat(*args, **kwargs) + def GetController(*args, **kwargs): + """GetController(self) -> HtmlHelpController""" + return _html.HtmlHelpWindow_GetController(*args, **kwargs) + + def SetController(*args, **kwargs): + """SetController(self, HtmlHelpController controller)""" + return _html.HtmlHelpWindow_SetController(*args, **kwargs) def Display(*args, **kwargs): - """Display(wxString x)""" - return _html.HtmlHelpFrame_Display(*args, **kwargs) + """Display(self, String x) -> bool""" + return _html.HtmlHelpWindow_Display(*args, **kwargs) def DisplayID(*args, **kwargs): - """DisplayID(int id)""" - return _html.HtmlHelpFrame_DisplayID(*args, **kwargs) + """DisplayID(self, int id) -> bool""" + return _html.HtmlHelpWindow_DisplayID(*args, **kwargs) def DisplayContents(*args, **kwargs): - """DisplayContents()""" - return _html.HtmlHelpFrame_DisplayContents(*args, **kwargs) + """DisplayContents(self) -> bool""" + return _html.HtmlHelpWindow_DisplayContents(*args, **kwargs) def DisplayIndex(*args, **kwargs): - """DisplayIndex()""" - return _html.HtmlHelpFrame_DisplayIndex(*args, **kwargs) + """DisplayIndex(self) -> bool""" + return _html.HtmlHelpWindow_DisplayIndex(*args, **kwargs) def KeywordSearch(*args, **kwargs): - """KeywordSearch(wxString keyword) -> bool""" - return _html.HtmlHelpFrame_KeywordSearch(*args, **kwargs) + """KeywordSearch(self, String keyword, wxHelpSearchMode mode=wxHELP_SEARCH_ALL) -> bool""" + return _html.HtmlHelpWindow_KeywordSearch(*args, **kwargs) def UseConfig(*args, **kwargs): - """UseConfig(wxConfigBase config, wxString rootpath=wxPyEmptyString)""" - return _html.HtmlHelpFrame_UseConfig(*args, **kwargs) + """UseConfig(self, ConfigBase config, String rootpath=wxEmptyString)""" + return _html.HtmlHelpWindow_UseConfig(*args, **kwargs) def ReadCustomization(*args, **kwargs): - """ReadCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" - return _html.HtmlHelpFrame_ReadCustomization(*args, **kwargs) + """ReadCustomization(self, ConfigBase cfg, String path=wxEmptyString)""" + return _html.HtmlHelpWindow_ReadCustomization(*args, **kwargs) def WriteCustomization(*args, **kwargs): - """WriteCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" - return _html.HtmlHelpFrame_WriteCustomization(*args, **kwargs) + """WriteCustomization(self, ConfigBase cfg, String path=wxEmptyString)""" + return _html.HtmlHelpWindow_WriteCustomization(*args, **kwargs) + def NotifyPageChanged(*args, **kwargs): + """NotifyPageChanged(self)""" + return _html.HtmlHelpWindow_NotifyPageChanged(*args, **kwargs) -class HtmlHelpFramePtr(HtmlHelpFrame): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlHelpFrame -_html.HtmlHelpFrame_swigregister(HtmlHelpFramePtr) + def RefreshLists(*args, **kwargs): + """RefreshLists(self)""" + return _html.HtmlHelpWindow_RefreshLists(*args, **kwargs) -HF_TOOLBAR = _html.HF_TOOLBAR -HF_FLATTOOLBAR = _html.HF_FLATTOOLBAR -HF_CONTENTS = _html.HF_CONTENTS -HF_INDEX = _html.HF_INDEX -HF_SEARCH = _html.HF_SEARCH -HF_BOOKMARKS = _html.HF_BOOKMARKS -HF_OPENFILES = _html.HF_OPENFILES -HF_PRINT = _html.HF_PRINT -HF_DEFAULTSTYLE = _html.HF_DEFAULTSTYLE -class HtmlHelpController(core.EvtHandler): - """""" - def __repr__(self): - return "<%s.%s; proxy of C++ wxHtmlHelpController instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) - def __init__(self, *args, **kwargs): - """__init__(int style=HF_DEFAULTSTYLE) -> HtmlHelpController""" - newobj = _html.new_HtmlHelpController(*args, **kwargs) - self.this = newobj.this - self.thisown = 1 - del newobj.thisown + def GetHtmlWindow(*args, **kwargs): + """GetHtmlWindow(self) -> wxHtmlWindow""" + return _html.HtmlHelpWindow_GetHtmlWindow(*args, **kwargs) + + def GetSplitterWindow(*args, **kwargs): + """GetSplitterWindow(self) -> SplitterWindow""" + return _html.HtmlHelpWindow_GetSplitterWindow(*args, **kwargs) + + def GetToolBar(*args, **kwargs): + """GetToolBar(self) -> wxToolBar""" + return _html.HtmlHelpWindow_GetToolBar(*args, **kwargs) + + def GetCfgData(*args, **kwargs): + """GetCfgData(self) -> wxHtmlHelpFrameCfg""" + return _html.HtmlHelpWindow_GetCfgData(*args, **kwargs) + + def GetTreeCtrl(*args, **kwargs): + """GetTreeCtrl(self) -> wxTreeCtrl""" + return _html.HtmlHelpWindow_GetTreeCtrl(*args, **kwargs) + +_html.HtmlHelpWindow_swigregister(HtmlHelpWindow) + +def PreHtmlHelpWindow(*args, **kwargs): + """PreHtmlHelpWindow(HtmlHelpData data=None) -> HtmlHelpWindow""" + val = _html.new_PreHtmlHelpWindow(*args, **kwargs) + self._setOORInfo(self) + return val + +class HtmlWindowEvent(_core.NotifyEvent): + """Proxy of C++ HtmlWindowEvent class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> HtmlWindowEvent""" + _html.HtmlWindowEvent_swiginit(self,_html.new_HtmlWindowEvent(*args, **kwargs)) + def SetURL(*args, **kwargs): + """SetURL(self, String url)""" + return _html.HtmlWindowEvent_SetURL(*args, **kwargs) + + def GetURL(*args, **kwargs): + """GetURL(self) -> String""" + return _html.HtmlWindowEvent_GetURL(*args, **kwargs) + +_html.HtmlWindowEvent_swigregister(HtmlWindowEvent) + +class HtmlHelpFrame(_windows.Frame): + """Proxy of C++ HtmlHelpFrame class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int ?, String title=EmptyString, int style=wxHF_DEFAULTSTYLE, + HtmlHelpData data=None) -> HtmlHelpFrame + """ + _html.HtmlHelpFrame_swiginit(self,_html.new_HtmlHelpFrame(*args, **kwargs)) self._setOORInfo(self) - def __del__(self, destroy=_html.delete_HtmlHelpController): - """__del__()""" - try: - if self.thisown: destroy(self) - except: pass + def Create(*args, **kwargs): + """Create(self, Window parent, int id, String title=EmptyString, int style=HF_DEFAULT_STYLE) -> bool""" + return _html.HtmlHelpFrame_Create(*args, **kwargs) + + def GetData(*args, **kwargs): + """GetData(self) -> HtmlHelpData""" + return _html.HtmlHelpFrame_GetData(*args, **kwargs) def SetTitleFormat(*args, **kwargs): - """SetTitleFormat(wxString format)""" + """SetTitleFormat(self, String format)""" + return _html.HtmlHelpFrame_SetTitleFormat(*args, **kwargs) + + def AddGrabIfNeeded(*args, **kwargs): + """AddGrabIfNeeded(self)""" + return _html.HtmlHelpFrame_AddGrabIfNeeded(*args, **kwargs) + + def GetController(*args, **kwargs): + """GetController(self) -> HtmlHelpController""" + return _html.HtmlHelpFrame_GetController(*args, **kwargs) + + def SetController(*args, **kwargs): + """SetController(self, HtmlHelpController controller)""" + return _html.HtmlHelpFrame_SetController(*args, **kwargs) + + def GetHelpWindow(*args, **kwargs): + """GetHelpWindow(self) -> HtmlHelpWindow""" + return _html.HtmlHelpFrame_GetHelpWindow(*args, **kwargs) + + # For compatibility from before the refactor + def Display(self, x): + return self.GetHelpWindow().Display(x) + def DisplayID(self, x): + return self.GetHelpWindow().DisplayID(id) + def DisplayContents(self): + return self.GetHelpWindow().DisplayContents() + def DisplayIndex(self): + return self.GetHelpWindow().DisplayIndex() + + def KeywordSearch(self, keyword): + return self.GetHelpWindow().KeywordSearch(keyword) + + def UseConfig(self, config, rootpath=""): + return self.GetHelpWindow().UseConfig(config, rootpath) + def ReadCustomization(self, config, rootpath=""): + return self.GetHelpWindow().ReadCustomization(config, rootpath) + def WriteCustomization(self, config, rootpath=""): + return self.GetHelpWindow().WriteCustomization(config, rootpath) + +_html.HtmlHelpFrame_swigregister(HtmlHelpFrame) + +def PreHtmlHelpFrame(*args, **kwargs): + """PreHtmlHelpFrame(HtmlHelpData data=None) -> HtmlHelpFrame""" + val = _html.new_PreHtmlHelpFrame(*args, **kwargs) + self._setOORInfo(self) + return val + +class HtmlHelpDialog(_windows.Dialog): + """Proxy of C++ HtmlHelpDialog class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, int ?, String title=EmptyString, int style=HF_DEFAULT_STYLE, + HtmlHelpData data=None) -> HtmlHelpDialog + """ + _html.HtmlHelpDialog_swiginit(self,_html.new_HtmlHelpDialog(*args, **kwargs)) + self._setOORInfo(self) + + def Create(*args, **kwargs): + """Create(self, Window parent, int id, String title=EmptyString, int style=HF_DEFAULT_STYLE) -> bool""" + return _html.HtmlHelpDialog_Create(*args, **kwargs) + + def GetData(*args, **kwargs): + """GetData(self) -> HtmlHelpData""" + return _html.HtmlHelpDialog_GetData(*args, **kwargs) + + def GetController(*args, **kwargs): + """GetController(self) -> HtmlHelpController""" + return _html.HtmlHelpDialog_GetController(*args, **kwargs) + + def SetController(*args, **kwargs): + """SetController(self, HtmlHelpController controller)""" + return _html.HtmlHelpDialog_SetController(*args, **kwargs) + + def GetHelpWindow(*args, **kwargs): + """GetHelpWindow(self) -> HtmlHelpWindow""" + return _html.HtmlHelpDialog_GetHelpWindow(*args, **kwargs) + + def SetTitleFormat(*args, **kwargs): + """SetTitleFormat(self, String format)""" + return _html.HtmlHelpDialog_SetTitleFormat(*args, **kwargs) + +_html.HtmlHelpDialog_swigregister(HtmlHelpDialog) + +def PreHtmlHelpDialog(*args, **kwargs): + """PreHtmlHelpDialog(HtmlHelpData data=None) -> HtmlHelpDialog""" + val = _html.new_PreHtmlHelpDialog(*args, **kwargs) + self._setOORInfo(self) + return val + +class HelpControllerBase(_core.Object): + """Proxy of C++ HelpControllerBase class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + def __init__(self): raise AttributeError, "No constructor defined" + __repr__ = _swig_repr + def Initialize(*args): + """ + Initialize(self, String file, int server) -> bool + Initialize(self, String file) -> bool + """ + return _html.HelpControllerBase_Initialize(*args) + + def SetViewer(*args, **kwargs): + """SetViewer(self, String viewer, long flags=0)""" + return _html.HelpControllerBase_SetViewer(*args, **kwargs) + + def LoadFile(*args, **kwargs): + """LoadFile(self, String file=wxEmptyString) -> bool""" + return _html.HelpControllerBase_LoadFile(*args, **kwargs) + + def DisplayContents(*args, **kwargs): + """DisplayContents(self) -> bool""" + return _html.HelpControllerBase_DisplayContents(*args, **kwargs) + + def DisplayContextPopup(*args, **kwargs): + """DisplayContextPopup(self, int contextId) -> bool""" + return _html.HelpControllerBase_DisplayContextPopup(*args, **kwargs) + + def DisplayTextPopup(*args, **kwargs): + """DisplayTextPopup(self, String text, Point pos) -> bool""" + return _html.HelpControllerBase_DisplayTextPopup(*args, **kwargs) + + def DisplaySection(*args): + """ + DisplaySection(self, int sectionNo) -> bool + DisplaySection(self, String section) -> bool + """ + return _html.HelpControllerBase_DisplaySection(*args) + + def DisplayBlock(*args, **kwargs): + """DisplayBlock(self, long blockNo) -> bool""" + return _html.HelpControllerBase_DisplayBlock(*args, **kwargs) + + def KeywordSearch(*args, **kwargs): + """KeywordSearch(self, String k, wxHelpSearchMode mode=wxHELP_SEARCH_ALL) -> bool""" + return _html.HelpControllerBase_KeywordSearch(*args, **kwargs) + + def SetFrameParameters(*args, **kwargs): + """ + SetFrameParameters(self, String title, Size size, Point pos=DefaultPosition, + bool newFrameEachTime=False) + """ + return _html.HelpControllerBase_SetFrameParameters(*args, **kwargs) + + def GetFrameParameters(*args, **kwargs): + """GetFrameParameters(self, Size size=None, Point pos=None, bool newFrameEachTime=None) -> Frame""" + return _html.HelpControllerBase_GetFrameParameters(*args, **kwargs) + + def Quit(*args, **kwargs): + """Quit(self) -> bool""" + return _html.HelpControllerBase_Quit(*args, **kwargs) + + def OnQuit(*args, **kwargs): + """OnQuit(self)""" + return _html.HelpControllerBase_OnQuit(*args, **kwargs) + + def SetParentWindow(*args, **kwargs): + """SetParentWindow(self, Window win)""" + return _html.HelpControllerBase_SetParentWindow(*args, **kwargs) + + def GetParentWindow(*args, **kwargs): + """GetParentWindow(self) -> Window""" + return _html.HelpControllerBase_GetParentWindow(*args, **kwargs) + +_html.HelpControllerBase_swigregister(HelpControllerBase) + +class HtmlHelpController(HelpControllerBase): + """Proxy of C++ HtmlHelpController class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """__init__(self, int style=HF_DEFAULT_STYLE, Window parentWindow=None) -> HtmlHelpController""" + _html.HtmlHelpController_swiginit(self,_html.new_HtmlHelpController(*args, **kwargs)) + __swig_destroy__ = _html.delete_HtmlHelpController + __del__ = lambda self : None; + def GetHelpWindow(*args, **kwargs): + """GetHelpWindow(self) -> HtmlHelpWindow""" + return _html.HtmlHelpController_GetHelpWindow(*args, **kwargs) + + def SetHelpWindow(*args, **kwargs): + """SetHelpWindow(self, HtmlHelpWindow helpWindow)""" + return _html.HtmlHelpController_SetHelpWindow(*args, **kwargs) + + def GetFrame(*args, **kwargs): + """GetFrame(self) -> HtmlHelpFrame""" + return _html.HtmlHelpController_GetFrame(*args, **kwargs) + + def GetDialog(*args, **kwargs): + """GetDialog(self) -> HtmlHelpDialog""" + return _html.HtmlHelpController_GetDialog(*args, **kwargs) + + def SetTitleFormat(*args, **kwargs): + """SetTitleFormat(self, String format)""" return _html.HtmlHelpController_SetTitleFormat(*args, **kwargs) def SetTempDir(*args, **kwargs): - """SetTempDir(wxString path)""" + """SetTempDir(self, String path)""" return _html.HtmlHelpController_SetTempDir(*args, **kwargs) def AddBook(*args, **kwargs): - """AddBook(wxString book, int show_wait_msg=False) -> bool""" + """AddBook(self, String book, int show_wait_msg=False) -> bool""" return _html.HtmlHelpController_AddBook(*args, **kwargs) def Display(*args, **kwargs): - """Display(wxString x)""" + """Display(self, String x)""" return _html.HtmlHelpController_Display(*args, **kwargs) def DisplayID(*args, **kwargs): - """DisplayID(int id)""" + """DisplayID(self, int id)""" return _html.HtmlHelpController_DisplayID(*args, **kwargs) def DisplayContents(*args, **kwargs): - """DisplayContents()""" + """DisplayContents(self)""" return _html.HtmlHelpController_DisplayContents(*args, **kwargs) def DisplayIndex(*args, **kwargs): - """DisplayIndex()""" + """DisplayIndex(self)""" return _html.HtmlHelpController_DisplayIndex(*args, **kwargs) def KeywordSearch(*args, **kwargs): - """KeywordSearch(wxString keyword) -> bool""" + """KeywordSearch(self, String keyword) -> bool""" return _html.HtmlHelpController_KeywordSearch(*args, **kwargs) def UseConfig(*args, **kwargs): - """UseConfig(wxConfigBase config, wxString rootpath=wxPyEmptyString)""" + """UseConfig(self, ConfigBase config, String rootpath=EmptyString)""" return _html.HtmlHelpController_UseConfig(*args, **kwargs) def ReadCustomization(*args, **kwargs): - """ReadCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" + """ReadCustomization(self, ConfigBase cfg, String path=EmptyString)""" return _html.HtmlHelpController_ReadCustomization(*args, **kwargs) def WriteCustomization(*args, **kwargs): - """WriteCustomization(wxConfigBase cfg, wxString path=wxPyEmptyString)""" + """WriteCustomization(self, ConfigBase cfg, String path=EmptyString)""" return _html.HtmlHelpController_WriteCustomization(*args, **kwargs) - def GetFrame(*args, **kwargs): - """GetFrame() -> HtmlHelpFrame""" - return _html.HtmlHelpController_GetFrame(*args, **kwargs) + def MakeModalIfNeeded(*args, **kwargs): + """MakeModalIfNeeded(self)""" + return _html.HtmlHelpController_MakeModalIfNeeded(*args, **kwargs) + + def FindTopLevelWindow(*args, **kwargs): + """FindTopLevelWindow(self) -> Window""" + return _html.HtmlHelpController_FindTopLevelWindow(*args, **kwargs) + +_html.HtmlHelpController_swigregister(HtmlHelpController) +class HtmlModalHelp(object): + """Proxy of C++ HtmlModalHelp class""" + thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') + __repr__ = _swig_repr + def __init__(self, *args, **kwargs): + """ + __init__(self, Window parent, String helpFile, String topic=wxEmptyString, + int style=wxHF_DEFAULT_STYLE|wxHF_DIALOG|wxHF_MODAL) -> HtmlModalHelp + """ + _html.HtmlModalHelp_swiginit(self,_html.new_HtmlModalHelp(*args, **kwargs)) +_html.HtmlModalHelp_swigregister(HtmlModalHelp) -class HtmlHelpControllerPtr(HtmlHelpController): - def __init__(self, this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = HtmlHelpController -_html.HtmlHelpController_swigregister(HtmlHelpControllerPtr)