X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ef86e32ddee8d77078b1e18affa3cadcdc420d2..f7327fccd339b39a9b42b6af5974528f2ee4e8b0:/wxPython/src/gtk/html.py diff --git a/wxPython/src/gtk/html.py b/wxPython/src/gtk/html.py index a846e9e5b1..ec7c093592 100644 --- a/wxPython/src/gtk/html.py +++ b/wxPython/src/gtk/html.py @@ -1,1073 +1,1627 @@ # This file was created automatically by SWIG. -import htmlc +# Don't modify this file, modify the SWIG interface instead. + +import _html + +import windows +import core +wx = core +#--------------------------------------------------------------------------- + +HTML_ALIGN_LEFT = _html.HTML_ALIGN_LEFT +HTML_ALIGN_CENTER = _html.HTML_ALIGN_CENTER +HTML_ALIGN_RIGHT = _html.HTML_ALIGN_RIGHT +HTML_ALIGN_BOTTOM = _html.HTML_ALIGN_BOTTOM +HTML_ALIGN_TOP = _html.HTML_ALIGN_TOP +HTML_CLR_FOREGROUND = _html.HTML_CLR_FOREGROUND +HTML_CLR_BACKGROUND = _html.HTML_CLR_BACKGROUND +HTML_UNITS_PIXELS = _html.HTML_UNITS_PIXELS +HTML_UNITS_PERCENT = _html.HTML_UNITS_PERCENT +HTML_INDENT_LEFT = _html.HTML_INDENT_LEFT +HTML_INDENT_RIGHT = _html.HTML_INDENT_RIGHT +HTML_INDENT_TOP = _html.HTML_INDENT_TOP +HTML_INDENT_BOTTOM = _html.HTML_INDENT_BOTTOM +HTML_INDENT_HORIZONTAL = _html.HTML_INDENT_HORIZONTAL +HTML_INDENT_VERTICAL = _html.HTML_INDENT_VERTICAL +HTML_INDENT_ALL = _html.HTML_INDENT_ALL +HTML_COND_ISANCHOR = _html.HTML_COND_ISANCHOR +HTML_COND_ISIMAGEMAP = _html.HTML_COND_ISIMAGEMAP +HTML_COND_USER = _html.HTML_COND_USER +HTML_FONT_SIZE_1 = _html.HTML_FONT_SIZE_1 +HTML_FONT_SIZE_2 = _html.HTML_FONT_SIZE_2 +HTML_FONT_SIZE_3 = _html.HTML_FONT_SIZE_3 +HTML_FONT_SIZE_4 = _html.HTML_FONT_SIZE_4 +HTML_FONT_SIZE_5 = _html.HTML_FONT_SIZE_5 +HTML_FONT_SIZE_6 = _html.HTML_FONT_SIZE_6 +HTML_FONT_SIZE_7 = _html.HTML_FONT_SIZE_7 +HW_SCROLLBAR_NEVER = _html.HW_SCROLLBAR_NEVER +HW_SCROLLBAR_AUTO = _html.HW_SCROLLBAR_AUTO +HW_NO_SELECTION = _html.HW_NO_SELECTION +HW_DEFAULT_STYLE = _html.HW_DEFAULT_STYLE +HTML_OPEN = _html.HTML_OPEN +HTML_BLOCK = _html.HTML_BLOCK +HTML_REDIRECT = _html.HTML_REDIRECT +HTML_URL_PAGE = _html.HTML_URL_PAGE +HTML_URL_IMAGE = _html.HTML_URL_IMAGE +HTML_URL_OTHER = _html.HTML_URL_OTHER +class HtmlLinkInfo(core.Object): + 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__(String href, String target=EmptyString) -> HtmlLinkInfo""" + newobj = _html.new_HtmlLinkInfo(*args, **kwargs) + self.this = newobj.this + self.thisown = 1 + del newobj.thisown + def GetHref(*args, **kwargs): + """GetHref() -> String""" + return _html.HtmlLinkInfo_GetHref(*args, **kwargs) + + def GetTarget(*args, **kwargs): + """GetTarget() -> String""" + return _html.HtmlLinkInfo_GetTarget(*args, **kwargs) + + def GetEvent(*args, **kwargs): + """GetEvent() -> MouseEvent""" + return _html.HtmlLinkInfo_GetEvent(*args, **kwargs) -from misc import * + def GetHtmlCell(*args, **kwargs): + """GetHtmlCell() -> HtmlCell""" + return _html.HtmlLinkInfo_GetHtmlCell(*args, **kwargs) -from misc2 import * + def SetEvent(*args, **kwargs): + """SetEvent(MouseEvent e)""" + return _html.HtmlLinkInfo_SetEvent(*args, **kwargs) -from windows import * + def SetHtmlCell(*args, **kwargs): + """SetHtmlCell(HtmlCell e)""" + return _html.HtmlLinkInfo_SetHtmlCell(*args, **kwargs) -from gdi import * -from fonts import * +class HtmlLinkInfoPtr(HtmlLinkInfo): + def __init__(self, this): + self.this = this + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlLinkInfo +_html.HtmlLinkInfo_swigregister(HtmlLinkInfoPtr) +cvar = _html.cvar +HtmlWindowNameStr = cvar.HtmlWindowNameStr +HtmlPrintoutTitleStr = cvar.HtmlPrintoutTitleStr +HtmlPrintingTitleStr = cvar.HtmlPrintingTitleStr + +class HtmlTag(core.Object): + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<%s.%s; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def GetName(*args, **kwargs): + """GetName() -> String""" + return _html.HtmlTag_GetName(*args, **kwargs) -from clip_dnd import * + def HasParam(*args, **kwargs): + """HasParam(String par) -> bool""" + return _html.HtmlTag_HasParam(*args, **kwargs) -from events import * + def GetParam(*args, **kwargs): + """GetParam(String par, int with_commas=False) -> String""" + return _html.HtmlTag_GetParam(*args, **kwargs) -from streams import * + def GetAllParams(*args, **kwargs): + """GetAllParams() -> String""" + return _html.HtmlTag_GetAllParams(*args, **kwargs) -from utils import * + def HasEnding(*args, **kwargs): + """HasEnding() -> bool""" + return _html.HtmlTag_HasEnding(*args, **kwargs) -from mdi import * + def GetBeginPos(*args, **kwargs): + """GetBeginPos() -> int""" + return _html.HtmlTag_GetBeginPos(*args, **kwargs) -from frames import * + def GetEndPos1(*args, **kwargs): + """GetEndPos1() -> int""" + return _html.HtmlTag_GetEndPos1(*args, **kwargs) -from stattool import * + def GetEndPos2(*args, **kwargs): + """GetEndPos2() -> int""" + return _html.HtmlTag_GetEndPos2(*args, **kwargs) -from controls import * -from controls2 import * +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) -from windows2 import * +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,) + def SetFS(*args, **kwargs): + """SetFS(FileSystem fs)""" + return _html.HtmlParser_SetFS(*args, **kwargs) -from cmndlgs import * + def GetFS(*args, **kwargs): + """GetFS() -> FileSystem""" + return _html.HtmlParser_GetFS(*args, **kwargs) -from windows3 import * + def Parse(*args, **kwargs): + """Parse(String source) -> Object""" + return _html.HtmlParser_Parse(*args, **kwargs) -from image import * + def InitParser(*args, **kwargs): + """InitParser(String source)""" + return _html.HtmlParser_InitParser(*args, **kwargs) -from printfw import * + def DoneParser(*args, **kwargs): + """DoneParser()""" + return _html.HtmlParser_DoneParser(*args, **kwargs) -from sizers import * + def DoParsing(*args, **kwargs): + """DoParsing(int begin_pos, int end_pos)""" + return _html.HtmlParser_DoParsing(*args, **kwargs) -from filesys import * -import wx -class wxHtmlLinkInfoPtr(wxObjectPtr): - def __init__(self,this): + def StopParsing(*args, **kwargs): + """StopParsing()""" + return _html.HtmlParser_StopParsing(*args, **kwargs) + + def AddTagHandler(*args, **kwargs): + """AddTagHandler(HtmlTagHandler handler)""" + return _html.HtmlParser_AddTagHandler(*args, **kwargs) + + def GetSource(*args, **kwargs): + """GetSource() -> String""" + return _html.HtmlParser_GetSource(*args, **kwargs) + + def PushTagHandler(*args, **kwargs): + """PushTagHandler(HtmlTagHandler handler, String tags)""" + return _html.HtmlParser_PushTagHandler(*args, **kwargs) + + def PopTagHandler(*args, **kwargs): + """PopTagHandler()""" + return _html.HtmlParser_PopTagHandler(*args, **kwargs) + + +class HtmlParserPtr(HtmlParser): + def __init__(self, this): self.this = this - self.thisown = 0 - def GetHref(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_GetHref(self, *_args, **_kwargs) - return val - def GetTarget(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_GetTarget(self, *_args, **_kwargs) - return val - def GetEvent(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_GetEvent(self, *_args, **_kwargs) - return val - def GetHtmlCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_GetHtmlCell(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def SetEvent(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_SetEvent(self, *_args, **_kwargs) - return val - def SetHtmlCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlLinkInfo_SetHtmlCell(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlParser +_html.HtmlParser_swigregister(HtmlParserPtr) + +class HtmlWinParser(HtmlParser): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlLinkInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlLinkInfo(wxHtmlLinkInfoPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlLinkInfo(*_args,**_kwargs) + 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 + def SetDC(*args, **kwargs): + """SetDC(DC dc)""" + return _html.HtmlWinParser_SetDC(*args, **kwargs) + def GetDC(*args, **kwargs): + """GetDC() -> DC""" + return _html.HtmlWinParser_GetDC(*args, **kwargs) + def GetCharHeight(*args, **kwargs): + """GetCharHeight() -> int""" + return _html.HtmlWinParser_GetCharHeight(*args, **kwargs) + def GetCharWidth(*args, **kwargs): + """GetCharWidth() -> int""" + return _html.HtmlWinParser_GetCharWidth(*args, **kwargs) -class wxHtmlTagPtr(wxObjectPtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def GetName(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetName(self, *_args, **_kwargs) - return val - def HasParam(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_HasParam(self, *_args, **_kwargs) - return val - def GetParam(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetParam(self, *_args, **_kwargs) - return val - def GetAllParams(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetAllParams(self, *_args, **_kwargs) - return val - def HasEnding(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_HasEnding(self, *_args, **_kwargs) - return val - def GetBeginPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetBeginPos(self, *_args, **_kwargs) - return val - def GetEndPos1(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetEndPos1(self, *_args, **_kwargs) - return val - def GetEndPos2(self, *_args, **_kwargs): - val = htmlc.wxHtmlTag_GetEndPos2(self, *_args, **_kwargs) - return val - def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlTag instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlTag(wxHtmlTagPtr): - def __init__(self,this): - self.this = this + def GetWindow(*args, **kwargs): + """GetWindow() -> HtmlWindow""" + return _html.HtmlWinParser_GetWindow(*args, **kwargs) + def SetFonts(*args, **kwargs): + """SetFonts(String normal_face, String fixed_face, PyObject sizes=None)""" + return _html.HtmlWinParser_SetFonts(*args, **kwargs) + def GetContainer(*args, **kwargs): + """GetContainer() -> HtmlContainerCell""" + return _html.HtmlWinParser_GetContainer(*args, **kwargs) + def OpenContainer(*args, **kwargs): + """OpenContainer() -> HtmlContainerCell""" + return _html.HtmlWinParser_OpenContainer(*args, **kwargs) -class wxHtmlParserPtr(wxObjectPtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def SetFS(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_SetFS(self, *_args, **_kwargs) - return val - def GetFS(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_GetFS(self, *_args, **_kwargs) - return val - def Parse(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_Parse(self, *_args, **_kwargs) - return val - def InitParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_InitParser(self, *_args, **_kwargs) - return val - def DoneParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_DoneParser(self, *_args, **_kwargs) - return val - def DoParsing(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_DoParsing(self, *_args, **_kwargs) - return val - def StopParsing(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_StopParsing(self, *_args, **_kwargs) - return val - def AddTagHandler(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_AddTagHandler(self, *_args, **_kwargs) - return val - def GetSource(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_GetSource(self, *_args, **_kwargs) - return val - def PushTagHandler(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_PushTagHandler(self, *_args, **_kwargs) - return val - def PopTagHandler(self, *_args, **_kwargs): - val = htmlc.wxHtmlParser_PopTagHandler(self, *_args, **_kwargs) - return val - def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlParser(wxHtmlParserPtr): - def __init__(self,this): - self.this = this + def SetContainer(*args, **kwargs): + """SetContainer(HtmlContainerCell c) -> HtmlContainerCell""" + return _html.HtmlWinParser_SetContainer(*args, **kwargs) + def CloseContainer(*args, **kwargs): + """CloseContainer() -> HtmlContainerCell""" + return _html.HtmlWinParser_CloseContainer(*args, **kwargs) + def GetFontSize(*args, **kwargs): + """GetFontSize() -> int""" + return _html.HtmlWinParser_GetFontSize(*args, **kwargs) + def SetFontSize(*args, **kwargs): + """SetFontSize(int s)""" + return _html.HtmlWinParser_SetFontSize(*args, **kwargs) -class wxHtmlWinParserPtr(wxHtmlParserPtr): - def __init__(self,this): - self.this = this - self.thisown = 0 - def SetDC(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetDC(self, *_args, **_kwargs) - return val - def GetDC(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetDC(self, *_args, **_kwargs) - return val - def GetCharHeight(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetCharHeight(self, *_args, **_kwargs) - return val - def GetCharWidth(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetCharWidth(self, *_args, **_kwargs) - return val - def GetWindow(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetWindow(self, *_args, **_kwargs) - return val - def SetFonts(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFonts(self, *_args, **_kwargs) - return val - def GetContainer(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetContainer(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def OpenContainer(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_OpenContainer(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def SetContainer(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetContainer(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def CloseContainer(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_CloseContainer(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def GetFontSize(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetFontSize(self, *_args, **_kwargs) - return val - def SetFontSize(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFontSize(self, *_args, **_kwargs) - return val - def GetFontBold(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetFontBold(self, *_args, **_kwargs) - return val - def SetFontBold(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFontBold(self, *_args, **_kwargs) - return val - def GetFontItalic(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetFontItalic(self, *_args, **_kwargs) - return val - def SetFontItalic(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFontItalic(self, *_args, **_kwargs) - return val - def GetFontUnderlined(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetFontUnderlined(self, *_args, **_kwargs) - return val - def SetFontUnderlined(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFontUnderlined(self, *_args, **_kwargs) - return val - def GetFontFixed(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetFontFixed(self, *_args, **_kwargs) - return val - def SetFontFixed(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetFontFixed(self, *_args, **_kwargs) - return val - def GetAlign(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetAlign(self, *_args, **_kwargs) - return val - def SetAlign(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetAlign(self, *_args, **_kwargs) - return val - def GetLinkColor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetLinkColor(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def SetLinkColor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetLinkColor(self, *_args, **_kwargs) - return val - def GetActualColor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetActualColor(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def SetActualColor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetActualColor(self, *_args, **_kwargs) - return val - def SetLink(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_SetLink(self, *_args, **_kwargs) - return val - def CreateCurrentFont(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_CreateCurrentFont(self, *_args, **_kwargs) - if val: val = wxFontPtr(val) - return val - def GetLink(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinParser_GetLink(self, *_args, **_kwargs) - if val: val = wxHtmlLinkInfoPtr(val) ; val.thisown = 1 - return val - def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlWinParser instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlWinParser(wxHtmlWinParserPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlWinParser(*_args,**_kwargs) - self.thisown = 1 + def GetFontBold(*args, **kwargs): + """GetFontBold() -> int""" + return _html.HtmlWinParser_GetFontBold(*args, **kwargs) + + def SetFontBold(*args, **kwargs): + """SetFontBold(int x)""" + return _html.HtmlWinParser_SetFontBold(*args, **kwargs) + + def GetFontItalic(*args, **kwargs): + """GetFontItalic() -> int""" + return _html.HtmlWinParser_GetFontItalic(*args, **kwargs) + + def SetFontItalic(*args, **kwargs): + """SetFontItalic(int x)""" + return _html.HtmlWinParser_SetFontItalic(*args, **kwargs) + + def GetFontUnderlined(*args, **kwargs): + """GetFontUnderlined() -> int""" + return _html.HtmlWinParser_GetFontUnderlined(*args, **kwargs) + + def SetFontUnderlined(*args, **kwargs): + """SetFontUnderlined(int x)""" + return _html.HtmlWinParser_SetFontUnderlined(*args, **kwargs) + + def GetFontFixed(*args, **kwargs): + """GetFontFixed() -> int""" + return _html.HtmlWinParser_GetFontFixed(*args, **kwargs) + def SetFontFixed(*args, **kwargs): + """SetFontFixed(int x)""" + return _html.HtmlWinParser_SetFontFixed(*args, **kwargs) + def GetAlign(*args, **kwargs): + """GetAlign() -> int""" + return _html.HtmlWinParser_GetAlign(*args, **kwargs) + def SetAlign(*args, **kwargs): + """SetAlign(int a)""" + return _html.HtmlWinParser_SetAlign(*args, **kwargs) -class wxHtmlTagHandlerPtr(wxObjectPtr): - def __init__(self,this): + def GetLinkColor(*args, **kwargs): + """GetLinkColor() -> Colour""" + return _html.HtmlWinParser_GetLinkColor(*args, **kwargs) + + def SetLinkColor(*args, **kwargs): + """SetLinkColor(Colour clr)""" + return _html.HtmlWinParser_SetLinkColor(*args, **kwargs) + + def GetActualColor(*args, **kwargs): + """GetActualColor() -> Colour""" + return _html.HtmlWinParser_GetActualColor(*args, **kwargs) + + def SetActualColor(*args, **kwargs): + """SetActualColor(Colour clr)""" + return _html.HtmlWinParser_SetActualColor(*args, **kwargs) + + def SetLink(*args, **kwargs): + """SetLink(String link)""" + return _html.HtmlWinParser_SetLink(*args, **kwargs) + + def CreateCurrentFont(*args, **kwargs): + """CreateCurrentFont() -> Font""" + return _html.HtmlWinParser_CreateCurrentFont(*args, **kwargs) + + def GetLink(*args, **kwargs): + """GetLink() -> HtmlLinkInfo""" + return _html.HtmlWinParser_GetLink(*args, **kwargs) + + +class HtmlWinParserPtr(HtmlWinParser): + def __init__(self, this): self.this = this - self.thisown = 0 - def _setCallbackInfo(self, *_args, **_kwargs): - val = htmlc.wxHtmlTagHandler__setCallbackInfo(self, *_args, **_kwargs) - return val - def SetParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlTagHandler_SetParser(self, *_args, **_kwargs) - return val - def GetParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlTagHandler_GetParser(self, *_args, **_kwargs) - if val: val = wxHtmlParserPtr(val) - return val - def ParseInner(self, *_args, **_kwargs): - val = htmlc.wxHtmlTagHandler_ParseInner(self, *_args, **_kwargs) - return val + 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 instance; proxy of C++ wxHtmlTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlTagHandler(wxHtmlTagHandlerPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlTagHandler(*_args,**_kwargs) + 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 - self._setCallbackInfo(self, wxHtmlTagHandler) + del newobj.thisown + self._setCallbackInfo(self, HtmlTagHandler) + + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _html.HtmlTagHandler__setCallbackInfo(*args, **kwargs) + def SetParser(*args, **kwargs): + """SetParser(HtmlParser parser)""" + return _html.HtmlTagHandler_SetParser(*args, **kwargs) + def GetParser(*args, **kwargs): + """GetParser() -> HtmlParser""" + return _html.HtmlTagHandler_GetParser(*args, **kwargs) + def ParseInner(*args, **kwargs): + """ParseInner(HtmlTag tag)""" + return _html.HtmlTagHandler_ParseInner(*args, **kwargs) -class wxHtmlWinTagHandlerPtr(wxHtmlTagHandlerPtr): - def __init__(self,this): + +class HtmlTagHandlerPtr(HtmlTagHandler): + def __init__(self, this): self.this = this - self.thisown = 0 - def _setCallbackInfo(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinTagHandler__setCallbackInfo(self, *_args, **_kwargs) - return val - def SetParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinTagHandler_SetParser(self, *_args, **_kwargs) - return val - def GetParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinTagHandler_GetParser(self, *_args, **_kwargs) - if val: val = wxHtmlWinParserPtr(val) - return val - def ParseInner(self, *_args, **_kwargs): - val = htmlc.wxHtmlWinTagHandler_ParseInner(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlTagHandler +_html.HtmlTagHandler_swigregister(HtmlTagHandlerPtr) + +class HtmlWinTagHandler(HtmlTagHandler): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlWinTagHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlWinTagHandler(*_args,**_kwargs) + 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 - self._setCallbackInfo(self, wxHtmlWinTagHandler) + del newobj.thisown + self._setCallbackInfo(self, HtmlWinTagHandler) + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _html.HtmlWinTagHandler__setCallbackInfo(*args, **kwargs) + def SetParser(*args, **kwargs): + """SetParser(HtmlParser parser)""" + return _html.HtmlWinTagHandler_SetParser(*args, **kwargs) + def GetParser(*args, **kwargs): + """GetParser() -> HtmlWinParser""" + return _html.HtmlWinTagHandler_GetParser(*args, **kwargs) -class wxHtmlSelectionPtr : - def __init__(self,this): + def ParseInner(*args, **kwargs): + """ParseInner(HtmlTag tag)""" + return _html.HtmlWinTagHandler_ParseInner(*args, **kwargs) + + +class HtmlWinTagHandlerPtr(HtmlWinTagHandler): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=htmlc.delete_wxHtmlSelection): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def Set(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_Set(self, *_args, **_kwargs) - return val - def SetCells(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_SetCells(self, *_args, **_kwargs) - return val - def GetFromCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetFromCell(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetToCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetToCell(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetFromPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetFromPos(self, *_args, **_kwargs) - if val: val = wxPointPtr(val) - return val - def GetToPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetToPos(self, *_args, **_kwargs) - if val: val = wxPointPtr(val) - return val - def GetFromPrivPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetFromPrivPos(self, *_args, **_kwargs) - if val: val = wxPointPtr(val) - return val - def GetToPrivPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_GetToPrivPos(self, *_args, **_kwargs) - if val: val = wxPointPtr(val) - return val - def SetFromPrivPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_SetFromPrivPos(self, *_args, **_kwargs) - return val - def SetToPrivPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_SetToPrivPos(self, *_args, **_kwargs) - return val - def ClearPrivPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_ClearPrivPos(self, *_args, **_kwargs) - return val - def IsEmpty(self, *_args, **_kwargs): - val = htmlc.wxHtmlSelection_IsEmpty(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlWinTagHandler +_html.HtmlWinTagHandler_swigregister(HtmlWinTagHandlerPtr) + + +def HtmlWinParser_AddTagHandler(*args, **kwargs): + """HtmlWinParser_AddTagHandler(PyObject tagHandlerClass)""" + return _html.HtmlWinParser_AddTagHandler(*args, **kwargs) +#--------------------------------------------------------------------------- + +class HtmlSelection(object): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlSelection instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlSelection(wxHtmlSelectionPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlSelection(*_args,**_kwargs) + 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 + + def Set(*args, **kwargs): + """Set(Point fromPos, HtmlCell fromCell, Point toPos, HtmlCell toCell)""" + return _html.HtmlSelection_Set(*args, **kwargs) + + def SetCells(*args, **kwargs): + """SetCells(HtmlCell fromCell, HtmlCell toCell)""" + return _html.HtmlSelection_SetCells(*args, **kwargs) + + def GetFromCell(*args, **kwargs): + """GetFromCell() -> HtmlCell""" + return _html.HtmlSelection_GetFromCell(*args, **kwargs) + + def GetToCell(*args, **kwargs): + """GetToCell() -> HtmlCell""" + return _html.HtmlSelection_GetToCell(*args, **kwargs) + + def GetFromPos(*args, **kwargs): + """GetFromPos() -> Point""" + return _html.HtmlSelection_GetFromPos(*args, **kwargs) + def GetToPos(*args, **kwargs): + """GetToPos() -> Point""" + return _html.HtmlSelection_GetToPos(*args, **kwargs) + def GetFromPrivPos(*args, **kwargs): + """GetFromPrivPos() -> Point""" + return _html.HtmlSelection_GetFromPrivPos(*args, **kwargs) + def GetToPrivPos(*args, **kwargs): + """GetToPrivPos() -> Point""" + return _html.HtmlSelection_GetToPrivPos(*args, **kwargs) -class wxHtmlRenderingStatePtr : - def __init__(self,this): + def SetFromPrivPos(*args, **kwargs): + """SetFromPrivPos(Point pos)""" + return _html.HtmlSelection_SetFromPrivPos(*args, **kwargs) + + def SetToPrivPos(*args, **kwargs): + """SetToPrivPos(Point pos)""" + return _html.HtmlSelection_SetToPrivPos(*args, **kwargs) + + def ClearPrivPos(*args, **kwargs): + """ClearPrivPos()""" + return _html.HtmlSelection_ClearPrivPos(*args, **kwargs) + + def IsEmpty(*args, **kwargs): + """IsEmpty() -> bool""" + return _html.HtmlSelection_IsEmpty(*args, **kwargs) + + +class HtmlSelectionPtr(HtmlSelection): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=htmlc.delete_wxHtmlRenderingState): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def SetSelectionState(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_SetSelectionState(self, *_args, **_kwargs) - return val - def GetSelectionState(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_GetSelectionState(self, *_args, **_kwargs) - return val - def SetFgColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_SetFgColour(self, *_args, **_kwargs) - return val - def GetFgColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_GetFgColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) - return val - def SetBgColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_SetBgColour(self, *_args, **_kwargs) - return val - def GetBgColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingState_GetBgColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlSelection +_html.HtmlSelection_swigregister(HtmlSelectionPtr) + +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 instance; proxy of C++ wxHtmlRenderingState instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlRenderingState(wxHtmlRenderingStatePtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlRenderingState(*_args,**_kwargs) + 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 + + def SetSelectionState(*args, **kwargs): + """SetSelectionState(int s)""" + return _html.HtmlRenderingState_SetSelectionState(*args, **kwargs) + + def GetSelectionState(*args, **kwargs): + """GetSelectionState() -> int""" + return _html.HtmlRenderingState_GetSelectionState(*args, **kwargs) + def SetFgColour(*args, **kwargs): + """SetFgColour(Colour c)""" + return _html.HtmlRenderingState_SetFgColour(*args, **kwargs) + def GetFgColour(*args, **kwargs): + """GetFgColour() -> Colour""" + return _html.HtmlRenderingState_GetFgColour(*args, **kwargs) + def SetBgColour(*args, **kwargs): + """SetBgColour(Colour c)""" + return _html.HtmlRenderingState_SetBgColour(*args, **kwargs) -class wxHtmlRenderingStylePtr : - def __init__(self,this): + def GetBgColour(*args, **kwargs): + """GetBgColour() -> Colour""" + return _html.HtmlRenderingState_GetBgColour(*args, **kwargs) + + +class HtmlRenderingStatePtr(HtmlRenderingState): + def __init__(self, this): self.this = this - self.thisown = 0 - def GetSelectedTextColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingStyle_GetSelectedTextColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def GetSelectedTextBgColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingStyle_GetSelectedTextBgColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlRenderingState +_html.HtmlRenderingState_swigregister(HtmlRenderingStatePtr) + +class HtmlRenderingStyle(object): + def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlRenderingStyle(wxHtmlRenderingStylePtr): - def __init__(self,this): + return "<%s.%s; proxy of C++ wxHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def GetSelectedTextColour(*args, **kwargs): + """GetSelectedTextColour(Colour clr) -> Colour""" + return _html.HtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs) + + def GetSelectedTextBgColour(*args, **kwargs): + """GetSelectedTextBgColour(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) +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(Colour clr) -> Colour""" + return _html.DefaultHtmlRenderingStyle_GetSelectedTextColour(*args, **kwargs) + def GetSelectedTextBgColour(*args, **kwargs): + """GetSelectedTextBgColour(Colour clr) -> Colour""" + return _html.DefaultHtmlRenderingStyle_GetSelectedTextBgColour(*args, **kwargs) -class wxDefaultHtmlRenderingStylePtr(wxHtmlRenderingStylePtr): - def __init__(self,this): +class DefaultHtmlRenderingStylePtr(DefaultHtmlRenderingStyle): + def __init__(self, this): self.this = this - self.thisown = 0 - def GetSelectedTextColour(self, *_args, **_kwargs): - val = htmlc.wxDefaultHtmlRenderingStyle_GetSelectedTextColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def GetSelectedTextBgColour(self, *_args, **_kwargs): - val = htmlc.wxDefaultHtmlRenderingStyle_GetSelectedTextBgColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = DefaultHtmlRenderingStyle +_html.DefaultHtmlRenderingStyle_swigregister(DefaultHtmlRenderingStylePtr) + +class HtmlRenderingInfo(object): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxDefaultHtmlRenderingStyle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxDefaultHtmlRenderingStyle(wxDefaultHtmlRenderingStylePtr): - def __init__(self,this): - self.this = this + 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 + + def SetSelection(*args, **kwargs): + """SetSelection(HtmlSelection s)""" + return _html.HtmlRenderingInfo_SetSelection(*args, **kwargs) + + def GetSelection(*args, **kwargs): + """GetSelection() -> HtmlSelection""" + return _html.HtmlRenderingInfo_GetSelection(*args, **kwargs) + def SetStyle(*args, **kwargs): + """SetStyle(HtmlRenderingStyle style)""" + return _html.HtmlRenderingInfo_SetStyle(*args, **kwargs) + def GetStyle(*args, **kwargs): + """GetStyle() -> HtmlRenderingStyle""" + return _html.HtmlRenderingInfo_GetStyle(*args, **kwargs) + def GetState(*args, **kwargs): + """GetState() -> HtmlRenderingState""" + return _html.HtmlRenderingInfo_GetState(*args, **kwargs) -class wxHtmlRenderingInfoPtr : - def __init__(self,this): + +class HtmlRenderingInfoPtr(HtmlRenderingInfo): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=htmlc.delete_wxHtmlRenderingInfo): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def SetSelection(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingInfo_SetSelection(self, *_args, **_kwargs) - return val - def GetSelection(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingInfo_GetSelection(self, *_args, **_kwargs) - if val: val = wxHtmlSelectionPtr(val) - return val - def SetStyle(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingInfo_SetStyle(self, *_args, **_kwargs) - return val - def GetStyle(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingInfo_GetStyle(self, *_args, **_kwargs) - if val: val = wxHtmlRenderingStylePtr(val) - return val - def GetState(self, *_args, **_kwargs): - val = htmlc.wxHtmlRenderingInfo_GetState(self, *_args, **_kwargs) - if val: val = wxHtmlRenderingStatePtr(val) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlRenderingInfo +_html.HtmlRenderingInfo_swigregister(HtmlRenderingInfoPtr) + +#--------------------------------------------------------------------------- + +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 instance; proxy of C++ wxHtmlRenderingInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlRenderingInfo(wxHtmlRenderingInfoPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlRenderingInfo(*_args,**_kwargs) + 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 + def GetPosX(*args, **kwargs): + """GetPosX() -> int""" + return _html.HtmlCell_GetPosX(*args, **kwargs) + + def GetPosY(*args, **kwargs): + """GetPosY() -> int""" + return _html.HtmlCell_GetPosY(*args, **kwargs) + + def GetWidth(*args, **kwargs): + """GetWidth() -> int""" + return _html.HtmlCell_GetWidth(*args, **kwargs) + + def GetHeight(*args, **kwargs): + """GetHeight() -> int""" + return _html.HtmlCell_GetHeight(*args, **kwargs) + + def GetDescent(*args, **kwargs): + """GetDescent() -> int""" + return _html.HtmlCell_GetDescent(*args, **kwargs) + + def GetMaxTotalWidth(*args, **kwargs): + """GetMaxTotalWidth() -> int""" + return _html.HtmlCell_GetMaxTotalWidth(*args, **kwargs) + + def GetId(*args, **kwargs): + """GetId() -> String""" + return _html.HtmlCell_GetId(*args, **kwargs) + + def SetId(*args, **kwargs): + """SetId(String id)""" + return _html.HtmlCell_SetId(*args, **kwargs) + + def GetLink(*args, **kwargs): + """GetLink(int x=0, int y=0) -> HtmlLinkInfo""" + return _html.HtmlCell_GetLink(*args, **kwargs) + + def GetNext(*args, **kwargs): + """GetNext() -> HtmlCell""" + return _html.HtmlCell_GetNext(*args, **kwargs) + + def GetParent(*args, **kwargs): + """GetParent() -> HtmlContainerCell""" + return _html.HtmlCell_GetParent(*args, **kwargs) + + def GetFirstChild(*args, **kwargs): + """GetFirstChild() -> HtmlCell""" + return _html.HtmlCell_GetFirstChild(*args, **kwargs) + + def GetCursor(*args, **kwargs): + """GetCursor() -> Cursor""" + return _html.HtmlCell_GetCursor(*args, **kwargs) + + def IsFormattingCell(*args, **kwargs): + """IsFormattingCell() -> bool""" + return _html.HtmlCell_IsFormattingCell(*args, **kwargs) + + def SetLink(*args, **kwargs): + """SetLink(HtmlLinkInfo link)""" + return _html.HtmlCell_SetLink(*args, **kwargs) + + def SetNext(*args, **kwargs): + """SetNext(HtmlCell cell)""" + return _html.HtmlCell_SetNext(*args, **kwargs) + def SetParent(*args, **kwargs): + """SetParent(HtmlContainerCell p)""" + return _html.HtmlCell_SetParent(*args, **kwargs) + def SetPos(*args, **kwargs): + """SetPos(int x, int y)""" + return _html.HtmlCell_SetPos(*args, **kwargs) + def Layout(*args, **kwargs): + """Layout(int w)""" + return _html.HtmlCell_Layout(*args, **kwargs) -class wxHtmlCellPtr(wxObjectPtr): - def __init__(self,this): + def Draw(*args, **kwargs): + """Draw(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(DC dc, int x, int y, HtmlRenderingInfo info)""" + return _html.HtmlCell_DrawInvisible(*args, **kwargs) + + def Find(*args, **kwargs): + """Find(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 SetCanLiveOnPagebreak(*args, **kwargs): + """SetCanLiveOnPagebreak(bool can)""" + return _html.HtmlCell_SetCanLiveOnPagebreak(*args, **kwargs) + + def IsLinebreakAllowed(*args, **kwargs): + """IsLinebreakAllowed() -> bool""" + return _html.HtmlCell_IsLinebreakAllowed(*args, **kwargs) + + def IsTerminalCell(*args, **kwargs): + """IsTerminalCell() -> bool""" + return _html.HtmlCell_IsTerminalCell(*args, **kwargs) + + def FindCellByPos(*args, **kwargs): + """FindCellByPos(int x, int y, unsigned int flags=HTML_FIND_EXACT) -> HtmlCell""" + return _html.HtmlCell_FindCellByPos(*args, **kwargs) + + def GetAbsPos(*args, **kwargs): + """GetAbsPos() -> Point""" + return _html.HtmlCell_GetAbsPos(*args, **kwargs) + + def GetFirstTerminal(*args, **kwargs): + """GetFirstTerminal() -> HtmlCell""" + return _html.HtmlCell_GetFirstTerminal(*args, **kwargs) + + def GetLastTerminal(*args, **kwargs): + """GetLastTerminal() -> HtmlCell""" + return _html.HtmlCell_GetLastTerminal(*args, **kwargs) + + def GetDepth(*args, **kwargs): + """GetDepth() -> unsigned int""" + return _html.HtmlCell_GetDepth(*args, **kwargs) + + def IsBefore(*args, **kwargs): + """IsBefore(HtmlCell cell) -> bool""" + return _html.HtmlCell_IsBefore(*args, **kwargs) + + def ConvertToText(*args, **kwargs): + """ConvertToText(HtmlSelection sel) -> String""" + return _html.HtmlCell_ConvertToText(*args, **kwargs) + + +class HtmlCellPtr(HtmlCell): + def __init__(self, this): self.this = this - self.thisown = 0 - def GetPosX(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetPosX(self, *_args, **_kwargs) - return val - def GetPosY(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetPosY(self, *_args, **_kwargs) - return val - def GetWidth(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetWidth(self, *_args, **_kwargs) - return val - def GetHeight(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetHeight(self, *_args, **_kwargs) - return val - def GetDescent(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetDescent(self, *_args, **_kwargs) - return val - def GetLink(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetLink(self, *_args, **_kwargs) - if val: val = wxHtmlLinkInfoPtr(val) - return val - def GetNext(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetNext(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetParent(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetParent(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def GetFirstChild(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetFirstChild(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetCursor(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetCursor(self, *_args, **_kwargs) - if val: val = wxCursorPtr(val) ; val.thisown = 1 - return val - def IsFormattingCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_IsFormattingCell(self, *_args, **_kwargs) - return val - def SetLink(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_SetLink(self, *_args, **_kwargs) - return val - def SetNext(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_SetNext(self, *_args, **_kwargs) - return val - def SetParent(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_SetParent(self, *_args, **_kwargs) - return val - def SetPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_SetPos(self, *_args, **_kwargs) - return val - def Layout(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_Layout(self, *_args, **_kwargs) - return val - def Draw(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_Draw(self, *_args, **_kwargs) - return val - def DrawInvisible(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_DrawInvisible(self, *_args, **_kwargs) - return val - def Find(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_Find(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def AdjustPagebreak(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_AdjustPagebreak(self, *_args, **_kwargs) - return val - def SetCanLiveOnPagebreak(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_SetCanLiveOnPagebreak(self, *_args, **_kwargs) - return val - def IsLinebreakAllowed(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_IsLinebreakAllowed(self, *_args, **_kwargs) - return val - def IsTerminalCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_IsTerminalCell(self, *_args, **_kwargs) - return val - def FindCellByPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_FindCellByPos(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetAbsPos(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetAbsPos(self, *_args, **_kwargs) - if val: val = wxPointPtr(val) ; val.thisown = 1 - return val - def GetFirstTerminal(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetFirstTerminal(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetLastTerminal(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetLastTerminal(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val - def GetDepth(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_GetDepth(self, *_args, **_kwargs) - return val - def IsBefore(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_IsBefore(self, *_args, **_kwargs) - return val - def ConvertToText(self, *_args, **_kwargs): - val = htmlc.wxHtmlCell_ConvertToText(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlCell +_html.HtmlCell_swigregister(HtmlCellPtr) + +class HtmlWordCell(HtmlCell): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlCell(wxHtmlCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlCell(*_args,**_kwargs) + return "<%s.%s; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__(String word, DC 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) + +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 + def InsertCell(*args, **kwargs): + """InsertCell(HtmlCell cell)""" + return _html.HtmlContainerCell_InsertCell(*args, **kwargs) + + def SetAlignHor(*args, **kwargs): + """SetAlignHor(int al)""" + return _html.HtmlContainerCell_SetAlignHor(*args, **kwargs) + + def GetAlignHor(*args, **kwargs): + """GetAlignHor() -> int""" + return _html.HtmlContainerCell_GetAlignHor(*args, **kwargs) + + def SetAlignVer(*args, **kwargs): + """SetAlignVer(int al)""" + return _html.HtmlContainerCell_SetAlignVer(*args, **kwargs) + + def GetAlignVer(*args, **kwargs): + """GetAlignVer() -> int""" + return _html.HtmlContainerCell_GetAlignVer(*args, **kwargs) + + def SetIndent(*args, **kwargs): + """SetIndent(int i, int what, int units=HTML_UNITS_PIXELS)""" + return _html.HtmlContainerCell_SetIndent(*args, **kwargs) + + def GetIndent(*args, **kwargs): + """GetIndent(int ind) -> int""" + return _html.HtmlContainerCell_GetIndent(*args, **kwargs) + + def GetIndentUnits(*args, **kwargs): + """GetIndentUnits(int ind) -> int""" + return _html.HtmlContainerCell_GetIndentUnits(*args, **kwargs) + + def SetAlign(*args, **kwargs): + """SetAlign(HtmlTag tag)""" + return _html.HtmlContainerCell_SetAlign(*args, **kwargs) + def SetWidthFloat(*args, **kwargs): + """SetWidthFloat(int w, int units)""" + return _html.HtmlContainerCell_SetWidthFloat(*args, **kwargs) + def SetWidthFloatFromTag(*args, **kwargs): + """SetWidthFloatFromTag(HtmlTag tag)""" + return _html.HtmlContainerCell_SetWidthFloatFromTag(*args, **kwargs) + def SetMinHeight(*args, **kwargs): + """SetMinHeight(int h, int align=HTML_ALIGN_TOP)""" + return _html.HtmlContainerCell_SetMinHeight(*args, **kwargs) -class wxHtmlWordCellPtr(wxHtmlCellPtr): - def __init__(self,this): + def SetBackgroundColour(*args, **kwargs): + """SetBackgroundColour(Colour clr)""" + return _html.HtmlContainerCell_SetBackgroundColour(*args, **kwargs) + + def GetBackgroundColour(*args, **kwargs): + """GetBackgroundColour() -> Colour""" + return _html.HtmlContainerCell_GetBackgroundColour(*args, **kwargs) + + def SetBorder(*args, **kwargs): + """SetBorder(Colour clr1, Colour clr2)""" + return _html.HtmlContainerCell_SetBorder(*args, **kwargs) + + def GetFirstChild(*args, **kwargs): + """GetFirstChild() -> HtmlCell""" + return _html.HtmlContainerCell_GetFirstChild(*args, **kwargs) + + +class HtmlContainerCellPtr(HtmlContainerCell): + def __init__(self, this): self.this = this - self.thisown = 0 + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlContainerCell +_html.HtmlContainerCell_swigregister(HtmlContainerCellPtr) + +class HtmlColourCell(HtmlCell): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlWordCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlWordCell(wxHtmlWordCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlWordCell(*_args,**_kwargs) + return "<%s.%s; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__(Colour 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) +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__(Font font) -> HtmlFontCell""" + newobj = _html.new_HtmlFontCell(*args, **kwargs) + self.this = newobj.this + self.thisown = 1 + del newobj.thisown - -class wxHtmlContainerCellPtr(wxHtmlCellPtr): - def __init__(self,this): +class HtmlFontCellPtr(HtmlFontCell): + def __init__(self, this): self.this = this - self.thisown = 0 - def InsertCell(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_InsertCell(self, *_args, **_kwargs) - return val - def SetAlignHor(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetAlignHor(self, *_args, **_kwargs) - return val - def GetAlignHor(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetAlignHor(self, *_args, **_kwargs) - return val - def SetAlignVer(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetAlignVer(self, *_args, **_kwargs) - return val - def GetAlignVer(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetAlignVer(self, *_args, **_kwargs) - return val - def SetIndent(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetIndent(self, *_args, **_kwargs) - return val - def GetIndent(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetIndent(self, *_args, **_kwargs) - return val - def GetIndentUnits(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetIndentUnits(self, *_args, **_kwargs) - return val - def SetAlign(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetAlign(self, *_args, **_kwargs) - return val - def SetWidthFloat(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetWidthFloat(self, *_args, **_kwargs) - return val - def SetWidthFloatFromTag(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetWidthFloatFromTag(self, *_args, **_kwargs) - return val - def SetMinHeight(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetMinHeight(self, *_args, **_kwargs) - return val - def SetBackgroundColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetBackgroundColour(self, *_args, **_kwargs) - return val - def GetBackgroundColour(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetBackgroundColour(self, *_args, **_kwargs) - if val: val = wxColourPtr(val) ; val.thisown = 1 - return val - def SetBorder(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_SetBorder(self, *_args, **_kwargs) - return val - def GetFirstChild(self, *_args, **_kwargs): - val = htmlc.wxHtmlContainerCell_GetFirstChild(self, *_args, **_kwargs) - if val: val = wxHtmlCellPtr(val) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlFontCell +_html.HtmlFontCell_swigregister(HtmlFontCellPtr) + +class HtmlWidgetCell(HtmlCell): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlContainerCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) - GetFirstCell = GetFirstChild -class wxHtmlContainerCell(wxHtmlContainerCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlContainerCell(*_args,**_kwargs) + 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) + +#--------------------------------------------------------------------------- + +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 + self._setCallbackInfo(self, HtmlFilter) + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _html.HtmlFilter__setCallbackInfo(*args, **kwargs) -class wxHtmlColourCellPtr(wxHtmlCellPtr): - def __init__(self,this): +class HtmlFilterPtr(HtmlFilter): + def __init__(self, this): self.this = this - self.thisown = 0 + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlFilter +_html.HtmlFilter_swigregister(HtmlFilterPtr) + +#--------------------------------------------------------------------------- + +class HtmlWindow(windows.ScrolledWindow): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlColourCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlColourCell(wxHtmlColourCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlColourCell(*_args,**_kwargs) + 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, + String name=HtmlWindowNameStr) -> HtmlWindow + """ + newobj = _html.new_HtmlWindow(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + 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, + String name=HtmlWindowNameStr) -> bool + """ + return _html.HtmlWindow_Create(*args, **kwargs) + + def _setCallbackInfo(*args, **kwargs): + """_setCallbackInfo(PyObject self, PyObject _class)""" + return _html.HtmlWindow__setCallbackInfo(*args, **kwargs) + + def SetPage(*args, **kwargs): + """SetPage(String source) -> bool""" + return _html.HtmlWindow_SetPage(*args, **kwargs) + + def LoadPage(*args, **kwargs): + """LoadPage(String location) -> bool""" + return _html.HtmlWindow_LoadPage(*args, **kwargs) + + def LoadFile(*args, **kwargs): + """LoadFile(String filename) -> bool""" + return _html.HtmlWindow_LoadFile(*args, **kwargs) + + def AppendToPage(*args, **kwargs): + """AppendToPage(String source) -> bool""" + return _html.HtmlWindow_AppendToPage(*args, **kwargs) + + def GetOpenedPage(*args, **kwargs): + """GetOpenedPage() -> String""" + return _html.HtmlWindow_GetOpenedPage(*args, **kwargs) + + def GetOpenedAnchor(*args, **kwargs): + """GetOpenedAnchor() -> String""" + return _html.HtmlWindow_GetOpenedAnchor(*args, **kwargs) + + def GetOpenedPageTitle(*args, **kwargs): + """GetOpenedPageTitle() -> String""" + return _html.HtmlWindow_GetOpenedPageTitle(*args, **kwargs) + + def SetRelatedFrame(*args, **kwargs): + """SetRelatedFrame(Frame frame, String format)""" + return _html.HtmlWindow_SetRelatedFrame(*args, **kwargs) + + def GetRelatedFrame(*args, **kwargs): + """GetRelatedFrame() -> Frame""" + return _html.HtmlWindow_GetRelatedFrame(*args, **kwargs) + + def SetRelatedStatusBar(*args, **kwargs): + """SetRelatedStatusBar(int bar)""" + return _html.HtmlWindow_SetRelatedStatusBar(*args, **kwargs) + + def SetFonts(*args, **kwargs): + """SetFonts(String normal_face, String fixed_face, PyObject sizes=None)""" + return _html.HtmlWindow_SetFonts(*args, **kwargs) + + def SetTitle(*args, **kwargs): + """SetTitle(String title)""" + return _html.HtmlWindow_SetTitle(*args, **kwargs) + + def SetBorders(*args, **kwargs): + """SetBorders(int b)""" + return _html.HtmlWindow_SetBorders(*args, **kwargs) + + def ReadCustomization(*args, **kwargs): + """ReadCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlWindow_ReadCustomization(*args, **kwargs) + + def WriteCustomization(*args, **kwargs): + """WriteCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlWindow_WriteCustomization(*args, **kwargs) + + def HistoryBack(*args, **kwargs): + """HistoryBack() -> bool""" + return _html.HtmlWindow_HistoryBack(*args, **kwargs) + + def HistoryForward(*args, **kwargs): + """HistoryForward() -> bool""" + return _html.HtmlWindow_HistoryForward(*args, **kwargs) + def HistoryCanBack(*args, **kwargs): + """HistoryCanBack() -> bool""" + return _html.HtmlWindow_HistoryCanBack(*args, **kwargs) + def HistoryCanForward(*args, **kwargs): + """HistoryCanForward() -> bool""" + return _html.HtmlWindow_HistoryCanForward(*args, **kwargs) + def HistoryClear(*args, **kwargs): + """HistoryClear()""" + return _html.HtmlWindow_HistoryClear(*args, **kwargs) -class wxHtmlFontCellPtr(wxHtmlCellPtr): - def __init__(self,this): + def GetInternalRepresentation(*args, **kwargs): + """GetInternalRepresentation() -> HtmlContainerCell""" + return _html.HtmlWindow_GetInternalRepresentation(*args, **kwargs) + + def GetParser(*args, **kwargs): + """GetParser() -> HtmlWinParser""" + return _html.HtmlWindow_GetParser(*args, **kwargs) + + def ScrollToAnchor(*args, **kwargs): + """ScrollToAnchor(String anchor) -> bool""" + return _html.HtmlWindow_ScrollToAnchor(*args, **kwargs) + + def HasAnchor(*args, **kwargs): + """HasAnchor(String anchor) -> bool""" + return _html.HtmlWindow_HasAnchor(*args, **kwargs) + + def AddFilter(*args, **kwargs): + """AddFilter(HtmlFilter filter)""" + return _html.HtmlWindow_AddFilter(*args, **kwargs) + + AddFilter = staticmethod(AddFilter) + def SelectWord(*args, **kwargs): + """SelectWord(Point pos)""" + return _html.HtmlWindow_SelectWord(*args, **kwargs) + + def SelectLine(*args, **kwargs): + """SelectLine(Point pos)""" + return _html.HtmlWindow_SelectLine(*args, **kwargs) + + def SelectAll(*args, **kwargs): + """SelectAll()""" + return _html.HtmlWindow_SelectAll(*args, **kwargs) + + def base_OnLinkClicked(*args, **kwargs): + """base_OnLinkClicked(HtmlLinkInfo link)""" + return _html.HtmlWindow_base_OnLinkClicked(*args, **kwargs) + + def base_OnSetTitle(*args, **kwargs): + """base_OnSetTitle(String 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 - self.thisown = 0 + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlWindow +_html.HtmlWindow_swigregister(HtmlWindowPtr) + +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) + +#--------------------------------------------------------------------------- + +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 + + def SetDC(*args, **kwargs): + """SetDC(DC dc, int maxwidth)""" + return _html.HtmlDCRenderer_SetDC(*args, **kwargs) + + def SetSize(*args, **kwargs): + """SetSize(int width, int height)""" + return _html.HtmlDCRenderer_SetSize(*args, **kwargs) + + def SetHtmlText(*args, **kwargs): + """SetHtmlText(String html, String basepath=EmptyString, bool isdir=True)""" + return _html.HtmlDCRenderer_SetHtmlText(*args, **kwargs) + + def SetFonts(*args, **kwargs): + """SetFonts(String normal_face, String fixed_face, PyObject sizes=None)""" + return _html.HtmlDCRenderer_SetFonts(*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 + """ + return _html.HtmlDCRenderer_Render(*args, **kwargs) + + def GetTotalHeight(*args, **kwargs): + """GetTotalHeight() -> 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) + +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 instance; proxy of C++ wxHtmlFontCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlFontCell(wxHtmlFontCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlFontCell(*_args,**_kwargs) + return "<%s.%s; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__(String title=HtmlPrintoutTitleStr) -> HtmlPrintout""" + newobj = _html.new_HtmlPrintout(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + def SetHtmlText(*args, **kwargs): + """SetHtmlText(String html, String basepath=EmptyString, bool isdir=True)""" + return _html.HtmlPrintout_SetHtmlText(*args, **kwargs) + + def SetHtmlFile(*args, **kwargs): + """SetHtmlFile(String htmlfile)""" + return _html.HtmlPrintout_SetHtmlFile(*args, **kwargs) + + def SetHeader(*args, **kwargs): + """SetHeader(String header, int pg=PAGE_ALL)""" + return _html.HtmlPrintout_SetHeader(*args, **kwargs) + + def SetFooter(*args, **kwargs): + """SetFooter(String footer, int pg=PAGE_ALL)""" + return _html.HtmlPrintout_SetFooter(*args, **kwargs) + + def SetFonts(*args, **kwargs): + """SetFonts(String normal_face, String fixed_face, PyObject sizes=None)""" + return _html.HtmlPrintout_SetFonts(*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) + """ + return _html.HtmlPrintout_SetMargins(*args, **kwargs) + + def AddFilter(*args, **kwargs): + """AddFilter(wxHtmlFilter filter)""" + return _html.HtmlPrintout_AddFilter(*args, **kwargs) + + AddFilter = staticmethod(AddFilter) + def CleanUpStatics(*args, **kwargs): + """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) + +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__(String name=HtmlPrintingTitleStr, 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 + + def PreviewFile(*args, **kwargs): + """PreviewFile(String htmlfile)""" + return _html.HtmlEasyPrinting_PreviewFile(*args, **kwargs) + def PreviewText(*args, **kwargs): + """PreviewText(String htmltext, String basepath=EmptyString)""" + return _html.HtmlEasyPrinting_PreviewText(*args, **kwargs) + def PrintFile(*args, **kwargs): + """PrintFile(String htmlfile)""" + return _html.HtmlEasyPrinting_PrintFile(*args, **kwargs) + def PrintText(*args, **kwargs): + """PrintText(String htmltext, String basepath=EmptyString)""" + return _html.HtmlEasyPrinting_PrintText(*args, **kwargs) -class wxHtmlWidgetCellPtr(wxHtmlCellPtr): - def __init__(self,this): + def PrinterSetup(*args, **kwargs): + """PrinterSetup()""" + return _html.HtmlEasyPrinting_PrinterSetup(*args, **kwargs) + + def PageSetup(*args, **kwargs): + """PageSetup()""" + return _html.HtmlEasyPrinting_PageSetup(*args, **kwargs) + + def SetHeader(*args, **kwargs): + """SetHeader(String header, int pg=PAGE_ALL)""" + return _html.HtmlEasyPrinting_SetHeader(*args, **kwargs) + + def SetFooter(*args, **kwargs): + """SetFooter(String footer, int pg=PAGE_ALL)""" + return _html.HtmlEasyPrinting_SetFooter(*args, **kwargs) + + def SetFonts(*args, **kwargs): + """SetFonts(String normal_face, String fixed_face, PyObject sizes=None)""" + return _html.HtmlEasyPrinting_SetFonts(*args, **kwargs) + + def GetPrintData(*args, **kwargs): + """GetPrintData() -> PrintData""" + return _html.HtmlEasyPrinting_GetPrintData(*args, **kwargs) + + def GetPageSetupData(*args, **kwargs): + """GetPageSetupData() -> PageSetupDialogData""" + return _html.HtmlEasyPrinting_GetPageSetupData(*args, **kwargs) + + +class HtmlEasyPrintingPtr(HtmlEasyPrinting): + def __init__(self, this): self.this = this - self.thisown = 0 + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlEasyPrinting +_html.HtmlEasyPrinting_swigregister(HtmlEasyPrintingPtr) + +#--------------------------------------------------------------------------- + +class HtmlBookRecord(object): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlWidgetCell instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlWidgetCell(wxHtmlWidgetCellPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlWidgetCell(*_args,**_kwargs) + return "<%s.%s; proxy of C++ wxHtmlBookRecord instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def __init__(self, *args, **kwargs): + """__init__(String bookfile, String basepath, String title, String start) -> HtmlBookRecord""" + newobj = _html.new_HtmlBookRecord(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + def GetBookFile(*args, **kwargs): + """GetBookFile() -> String""" + return _html.HtmlBookRecord_GetBookFile(*args, **kwargs) + + def GetTitle(*args, **kwargs): + """GetTitle() -> String""" + return _html.HtmlBookRecord_GetTitle(*args, **kwargs) + + def GetStart(*args, **kwargs): + """GetStart() -> String""" + return _html.HtmlBookRecord_GetStart(*args, **kwargs) + + def GetBasePath(*args, **kwargs): + """GetBasePath() -> String""" + return _html.HtmlBookRecord_GetBasePath(*args, **kwargs) + + def SetContentsRange(*args, **kwargs): + """SetContentsRange(int start, int end)""" + return _html.HtmlBookRecord_SetContentsRange(*args, **kwargs) + + def GetContentsStart(*args, **kwargs): + """GetContentsStart() -> int""" + return _html.HtmlBookRecord_GetContentsStart(*args, **kwargs) + def GetContentsEnd(*args, **kwargs): + """GetContentsEnd() -> int""" + return _html.HtmlBookRecord_GetContentsEnd(*args, **kwargs) + def SetTitle(*args, **kwargs): + """SetTitle(String title)""" + return _html.HtmlBookRecord_SetTitle(*args, **kwargs) + def SetBasePath(*args, **kwargs): + """SetBasePath(String path)""" + return _html.HtmlBookRecord_SetBasePath(*args, **kwargs) -class wxHtmlFilterPtr(wxObjectPtr): - def __init__(self,this): + def SetStart(*args, **kwargs): + """SetStart(String start)""" + return _html.HtmlBookRecord_SetStart(*args, **kwargs) + + def GetFullPath(*args, **kwargs): + """GetFullPath(String page) -> String""" + return _html.HtmlBookRecord_GetFullPath(*args, **kwargs) + + +class HtmlBookRecordPtr(HtmlBookRecord): + def __init__(self, this): self.this = this - self.thisown = 0 - def _setCallbackInfo(self, *_args, **_kwargs): - val = htmlc.wxHtmlFilter__setCallbackInfo(self, *_args, **_kwargs) - return val + 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 instance; proxy of C++ wxHtmlFilter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlFilter(wxHtmlFilterPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlFilter(*_args,**_kwargs) - self.thisown = 1 - self._setCallbackInfo(self, wxHtmlFilter) + 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() -> String""" + return _html.HtmlContentsItem_GetName(*args, **kwargs) + def GetPage(*args, **kwargs): + """GetPage() -> String""" + return _html.HtmlContentsItem_GetPage(*args, **kwargs) + def GetBook(*args, **kwargs): + """GetBook() -> HtmlBookRecord""" + return _html.HtmlContentsItem_GetBook(*args, **kwargs) -class wxHtmlWindowPtr(wxScrolledWindowPtr): - def __init__(self,this): + +class HtmlContentsItemPtr(HtmlContentsItem): + def __init__(self, this): self.this = this - self.thisown = 0 - def Create(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_Create(self, *_args, **_kwargs) - return val - def _setCallbackInfo(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow__setCallbackInfo(self, *_args, **_kwargs) - return val - def SetPage(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetPage(self, *_args, **_kwargs) - return val - def LoadPage(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_LoadPage(self, *_args, **_kwargs) - return val - def LoadFile(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_LoadFile(self, *_args, **_kwargs) - return val - def AppendToPage(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_AppendToPage(self, *_args, **_kwargs) - return val - def GetOpenedPage(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetOpenedPage(self, *_args, **_kwargs) - return val - def GetOpenedAnchor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetOpenedAnchor(self, *_args, **_kwargs) - return val - def GetOpenedPageTitle(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetOpenedPageTitle(self, *_args, **_kwargs) - return val - def SetRelatedFrame(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetRelatedFrame(self, *_args, **_kwargs) - return val - def GetRelatedFrame(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetRelatedFrame(self, *_args, **_kwargs) - return val - def SetRelatedStatusBar(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetRelatedStatusBar(self, *_args, **_kwargs) - return val - def SetFonts(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetFonts(self, *_args, **_kwargs) - return val - def SetTitle(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetTitle(self, *_args, **_kwargs) - return val - def SetBorders(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_SetBorders(self, *_args, **_kwargs) - return val - def ReadCustomization(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_ReadCustomization(self, *_args, **_kwargs) - return val - def WriteCustomization(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_WriteCustomization(self, *_args, **_kwargs) - return val - def HistoryBack(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HistoryBack(self, *_args, **_kwargs) - return val - def HistoryForward(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HistoryForward(self, *_args, **_kwargs) - return val - def HistoryCanBack(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HistoryCanBack(self, *_args, **_kwargs) - return val - def HistoryCanForward(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HistoryCanForward(self, *_args, **_kwargs) - return val - def HistoryClear(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HistoryClear(self, *_args, **_kwargs) - return val - def GetInternalRepresentation(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetInternalRepresentation(self, *_args, **_kwargs) - if val: val = wxHtmlContainerCellPtr(val) - return val - def GetParser(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_GetParser(self, *_args, **_kwargs) - if val: val = wxHtmlWinParserPtr(val) - return val - def ScrollToAnchor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_ScrollToAnchor(self, *_args, **_kwargs) - return val - def HasAnchor(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_HasAnchor(self, *_args, **_kwargs) - return val - def base_OnLinkClicked(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_base_OnLinkClicked(self, *_args, **_kwargs) - return val - def base_OnSetTitle(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_base_OnSetTitle(self, *_args, **_kwargs) - return val - def base_OnCellMouseHover(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_base_OnCellMouseHover(self, *_args, **_kwargs) - return val - def base_OnCellClicked(self, *_args, **_kwargs): - val = htmlc.wxHtmlWindow_base_OnCellClicked(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlContentsItem +_html.HtmlContentsItem_swigregister(HtmlContentsItemPtr) + +class HtmlSearchStatus(object): + def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlWindow(wxHtmlWindowPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlWindow(*_args,**_kwargs) - self.thisown = 1 - self._setCallbackInfo(self, wxHtmlWindow) - self._setOORInfo(self) + return "<%s.%s; proxy of C++ wxHtmlSearchStatus instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) + def Search(*args, **kwargs): + """Search() -> bool""" + return _html.HtmlSearchStatus_Search(*args, **kwargs) + def IsActive(*args, **kwargs): + """IsActive() -> bool""" + return _html.HtmlSearchStatus_IsActive(*args, **kwargs) + def GetCurIndex(*args, **kwargs): + """GetCurIndex() -> int""" + return _html.HtmlSearchStatus_GetCurIndex(*args, **kwargs) -def wxPreHtmlWindow(*_args,**_kwargs): - val = wxHtmlWindowPtr(htmlc.new_wxPreHtmlWindow(*_args,**_kwargs)) - val.thisown = 1 - val._setOORInfo(val) - return val + def GetMaxIndex(*args, **kwargs): + """GetMaxIndex() -> int""" + return _html.HtmlSearchStatus_GetMaxIndex(*args, **kwargs) + def GetName(*args, **kwargs): + """GetName() -> String""" + return _html.HtmlSearchStatus_GetName(*args, **kwargs) -class wxHtmlDCRendererPtr(wxObjectPtr): - def __init__(self,this): + def GetContentsItem(*args, **kwargs): + """GetContentsItem() -> HtmlContentsItem""" + return _html.HtmlSearchStatus_GetContentsItem(*args, **kwargs) + + +class HtmlSearchStatusPtr(HtmlSearchStatus): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=htmlc.delete_wxHtmlDCRenderer): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def SetDC(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_SetDC(self, *_args, **_kwargs) - return val - def SetSize(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_SetSize(self, *_args, **_kwargs) - return val - def SetHtmlText(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_SetHtmlText(self, *_args, **_kwargs) - return val - def SetFonts(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_SetFonts(self, *_args, **_kwargs) - return val - def Render(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_Render(self, *_args, **_kwargs) - return val - def GetTotalHeight(self, *_args, **_kwargs): - val = htmlc.wxHtmlDCRenderer_GetTotalHeight(self, *_args, **_kwargs) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlSearchStatus +_html.HtmlSearchStatus_swigregister(HtmlSearchStatusPtr) + +class HtmlHelpData(object): def __repr__(self): - return "<%s.%s instance; proxy of C++ wxHtmlDCRenderer instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlDCRenderer(wxHtmlDCRendererPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlDCRenderer(*_args,**_kwargs) + 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 + def SetTempDir(*args, **kwargs): + """SetTempDir(String path)""" + return _html.HtmlHelpData_SetTempDir(*args, **kwargs) + def AddBook(*args, **kwargs): + """AddBook(String book) -> bool""" + return _html.HtmlHelpData_AddBook(*args, **kwargs) + def FindPageByName(*args, **kwargs): + """FindPageByName(String page) -> String""" + return _html.HtmlHelpData_FindPageByName(*args, **kwargs) -class wxHtmlPrintoutPtr(wxPrintoutPtr): - def __init__(self,this): + def FindPageById(*args, **kwargs): + """FindPageById(int id) -> String""" + return _html.HtmlHelpData_FindPageById(*args, **kwargs) + + def GetBookRecArray(*args, **kwargs): + """GetBookRecArray() -> 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 - self.thisown = 0 - def SetHtmlText(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetHtmlText(self, *_args, **_kwargs) - return val - def SetHtmlFile(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetHtmlFile(self, *_args, **_kwargs) - return val - def SetHeader(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetHeader(self, *_args, **_kwargs) - return val - def SetFooter(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetFooter(self, *_args, **_kwargs) - return val - def SetFonts(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetFonts(self, *_args, **_kwargs) - return val - def SetMargins(self, *_args, **_kwargs): - val = htmlc.wxHtmlPrintout_SetMargins(self, *_args, **_kwargs) - return val + 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 instance; proxy of C++ wxHtmlPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlPrintout(wxHtmlPrintoutPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlPrintout(*_args,**_kwargs) + 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 ??, String title=EmptyString, int style=HF_DEFAULTSTYLE, + HtmlHelpData data=None) -> HtmlHelpFrame + """ + newobj = _html.new_HtmlHelpFrame(*args, **kwargs) + self.this = newobj.this self.thisown = 1 + del newobj.thisown + self._setOORInfo(self) + + def GetData(*args, **kwargs): + """GetData() -> HtmlHelpData""" + return _html.HtmlHelpFrame_GetData(*args, **kwargs) + + def SetTitleFormat(*args, **kwargs): + """SetTitleFormat(String format)""" + return _html.HtmlHelpFrame_SetTitleFormat(*args, **kwargs) + + def Display(*args, **kwargs): + """Display(String x)""" + return _html.HtmlHelpFrame_Display(*args, **kwargs) + + def DisplayID(*args, **kwargs): + """DisplayID(int id)""" + return _html.HtmlHelpFrame_DisplayID(*args, **kwargs) + + def DisplayContents(*args, **kwargs): + """DisplayContents()""" + return _html.HtmlHelpFrame_DisplayContents(*args, **kwargs) + + def DisplayIndex(*args, **kwargs): + """DisplayIndex()""" + return _html.HtmlHelpFrame_DisplayIndex(*args, **kwargs) + def KeywordSearch(*args, **kwargs): + """KeywordSearch(String keyword) -> bool""" + return _html.HtmlHelpFrame_KeywordSearch(*args, **kwargs) + def UseConfig(*args, **kwargs): + """UseConfig(ConfigBase config, String rootpath=EmptyString)""" + return _html.HtmlHelpFrame_UseConfig(*args, **kwargs) + def ReadCustomization(*args, **kwargs): + """ReadCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlHelpFrame_ReadCustomization(*args, **kwargs) -class wxHtmlEasyPrintingPtr(wxObjectPtr): - def __init__(self,this): + def WriteCustomization(*args, **kwargs): + """WriteCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlHelpFrame_WriteCustomization(*args, **kwargs) + + +class HtmlHelpFramePtr(HtmlHelpFrame): + def __init__(self, this): self.this = this - self.thisown = 0 - def __del__(self, delfunc=htmlc.delete_wxHtmlEasyPrinting): - if self.thisown == 1: - try: - delfunc(self) - except: - pass - def PreviewFile(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PreviewFile(self, *_args, **_kwargs) - return val - def PreviewText(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PreviewText(self, *_args, **_kwargs) - return val - def PrintFile(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PrintFile(self, *_args, **_kwargs) - return val - def PrintText(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PrintText(self, *_args, **_kwargs) - return val - def PrinterSetup(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PrinterSetup(self, *_args, **_kwargs) - return val - def PageSetup(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_PageSetup(self, *_args, **_kwargs) - return val - def SetHeader(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_SetHeader(self, *_args, **_kwargs) - return val - def SetFooter(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_SetFooter(self, *_args, **_kwargs) - return val - def SetFonts(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_SetFonts(self, *_args, **_kwargs) - return val - def GetPrintData(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_GetPrintData(self, *_args, **_kwargs) - if val: val = wxPrintDataPtr(val) - return val - def GetPageSetupData(self, *_args, **_kwargs): - val = htmlc.wxHtmlEasyPrinting_GetPageSetupData(self, *_args, **_kwargs) - if val: val = wxPageSetupDialogDataPtr(val) - return val + if not hasattr(self,"thisown"): self.thisown = 0 + self.__class__ = HtmlHelpFrame +_html.HtmlHelpFrame_swigregister(HtmlHelpFramePtr) + +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 instance; proxy of C++ wxHtmlEasyPrinting instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) -class wxHtmlEasyPrinting(wxHtmlEasyPrintingPtr): - def __init__(self,*_args,**_kwargs): - self.this = htmlc.new_wxHtmlEasyPrinting(*_args,**_kwargs) + 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 + self._setOORInfo(self) + + def __del__(self, destroy=_html.delete_HtmlHelpController): + """__del__()""" + try: + if self.thisown: destroy(self) + except: pass + + def SetTitleFormat(*args, **kwargs): + """SetTitleFormat(String format)""" + return _html.HtmlHelpController_SetTitleFormat(*args, **kwargs) + + def SetTempDir(*args, **kwargs): + """SetTempDir(String path)""" + return _html.HtmlHelpController_SetTempDir(*args, **kwargs) + + def AddBook(*args, **kwargs): + """AddBook(String book, int show_wait_msg=False) -> bool""" + return _html.HtmlHelpController_AddBook(*args, **kwargs) + def Display(*args, **kwargs): + """Display(String x)""" + return _html.HtmlHelpController_Display(*args, **kwargs) + def DisplayID(*args, **kwargs): + """DisplayID(int id)""" + return _html.HtmlHelpController_DisplayID(*args, **kwargs) + def DisplayContents(*args, **kwargs): + """DisplayContents()""" + return _html.HtmlHelpController_DisplayContents(*args, **kwargs) + def DisplayIndex(*args, **kwargs): + """DisplayIndex()""" + return _html.HtmlHelpController_DisplayIndex(*args, **kwargs) + def KeywordSearch(*args, **kwargs): + """KeywordSearch(String keyword) -> bool""" + return _html.HtmlHelpController_KeywordSearch(*args, **kwargs) + + def UseConfig(*args, **kwargs): + """UseConfig(ConfigBase config, String rootpath=EmptyString)""" + return _html.HtmlHelpController_UseConfig(*args, **kwargs) + + def ReadCustomization(*args, **kwargs): + """ReadCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlHelpController_ReadCustomization(*args, **kwargs) + + def WriteCustomization(*args, **kwargs): + """WriteCustomization(ConfigBase cfg, String path=EmptyString)""" + return _html.HtmlHelpController_WriteCustomization(*args, **kwargs) + + def GetFrame(*args, **kwargs): + """GetFrame() -> HtmlHelpFrame""" + return _html.HtmlHelpController_GetFrame(*args, **kwargs) + + +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) -#-------------- FUNCTION WRAPPERS ------------------ - -wxHtmlWinParser_AddTagHandler = htmlc.wxHtmlWinParser_AddTagHandler - -wxHtmlWindow_AddFilter = htmlc.wxHtmlWindow_AddFilter - -wxHtmlPrintout_AddFilter = htmlc.wxHtmlPrintout_AddFilter - -wxHtmlPrintout_CleanUpStatics = htmlc.wxHtmlPrintout_CleanUpStatics - - - -#-------------- VARIABLE WRAPPERS ------------------ - -wxHTML_ALIGN_LEFT = htmlc.wxHTML_ALIGN_LEFT -wxHTML_ALIGN_CENTER = htmlc.wxHTML_ALIGN_CENTER -wxHTML_ALIGN_RIGHT = htmlc.wxHTML_ALIGN_RIGHT -wxHTML_ALIGN_BOTTOM = htmlc.wxHTML_ALIGN_BOTTOM -wxHTML_ALIGN_TOP = htmlc.wxHTML_ALIGN_TOP -wxHTML_CLR_FOREGROUND = htmlc.wxHTML_CLR_FOREGROUND -wxHTML_CLR_BACKGROUND = htmlc.wxHTML_CLR_BACKGROUND -wxHTML_UNITS_PIXELS = htmlc.wxHTML_UNITS_PIXELS -wxHTML_UNITS_PERCENT = htmlc.wxHTML_UNITS_PERCENT -wxHTML_INDENT_LEFT = htmlc.wxHTML_INDENT_LEFT -wxHTML_INDENT_RIGHT = htmlc.wxHTML_INDENT_RIGHT -wxHTML_INDENT_TOP = htmlc.wxHTML_INDENT_TOP -wxHTML_INDENT_BOTTOM = htmlc.wxHTML_INDENT_BOTTOM -wxHTML_INDENT_HORIZONTAL = htmlc.wxHTML_INDENT_HORIZONTAL -wxHTML_INDENT_VERTICAL = htmlc.wxHTML_INDENT_VERTICAL -wxHTML_INDENT_ALL = htmlc.wxHTML_INDENT_ALL -wxHTML_COND_ISANCHOR = htmlc.wxHTML_COND_ISANCHOR -wxHTML_COND_ISIMAGEMAP = htmlc.wxHTML_COND_ISIMAGEMAP -wxHTML_COND_USER = htmlc.wxHTML_COND_USER -wxHW_SCROLLBAR_NEVER = htmlc.wxHW_SCROLLBAR_NEVER -wxHW_SCROLLBAR_AUTO = htmlc.wxHW_SCROLLBAR_AUTO -wxHW_NO_SELECTION = htmlc.wxHW_NO_SELECTION -wxHW_DEFAULT_STYLE = htmlc.wxHW_DEFAULT_STYLE -wxHTML_OPEN = htmlc.wxHTML_OPEN -wxHTML_BLOCK = htmlc.wxHTML_BLOCK -wxHTML_REDIRECT = htmlc.wxHTML_REDIRECT -wxHTML_URL_PAGE = htmlc.wxHTML_URL_PAGE -wxHTML_URL_IMAGE = htmlc.wxHTML_URL_IMAGE -wxHTML_URL_OTHER = htmlc.wxHTML_URL_OTHER -wxHTML_SEL_OUT = htmlc.wxHTML_SEL_OUT -wxHTML_SEL_IN = htmlc.wxHTML_SEL_IN -wxHTML_SEL_CHANGING = htmlc.wxHTML_SEL_CHANGING -wxHTML_FIND_EXACT = htmlc.wxHTML_FIND_EXACT -wxHTML_FIND_NEAREST_BEFORE = htmlc.wxHTML_FIND_NEAREST_BEFORE -wxHTML_FIND_NEAREST_AFTER = htmlc.wxHTML_FIND_NEAREST_AFTER -wxPAGE_ODD = htmlc.wxPAGE_ODD -wxPAGE_EVEN = htmlc.wxPAGE_EVEN -wxPAGE_ALL = htmlc.wxPAGE_ALL - - -#-------------- USER INCLUDE ----------------------- - - -# Stuff these names into the wx namespace so wxPyConstructObject can find them -import wx -wx.wxHtmlTagPtr = wxHtmlTagPtr -wx.wxHtmlParserPtr = wxHtmlParserPtr -wx.wxHtmlWinParserPtr = wxHtmlWinParserPtr -wx.wxHtmlTagHandlerPtr = wxHtmlTagHandlerPtr -wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr -wx.wxHtmlCellPtr = wxHtmlCellPtr -wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr -wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr -wx.wxHtmlWindowPtr = wxHtmlWindowPtr -wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr -wx.wxHtmlFilterPtr = wxHtmlFilterPtr