X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..70541533c8e108249a82fbe2bc05ccfb73bf028d:/wxPython/src/gtk/html.py diff --git a/wxPython/src/gtk/html.py b/wxPython/src/gtk/html.py index ebda9bbf3b..ba5cd8f56e 100644 --- a/wxPython/src/gtk/html.py +++ b/wxPython/src/gtk/html.py @@ -13,6 +13,8 @@ from clip_dnd import * from events import * +from streams import * + from mdi import * from frames import * @@ -34,8 +36,12 @@ from image import * from printfw import * from sizers import * + +from filesys import * + +from utils import * import wx -class wxHtmlLinkInfoPtr : +class wxHtmlLinkInfoPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -47,12 +53,17 @@ class wxHtmlLinkInfoPtr : return val def GetEvent(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlLinkInfo_GetEvent,(self,) + _args, _kwargs) - if val: val = wxMouseEventPtr(val) return val def GetHtmlCell(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlLinkInfo_GetHtmlCell,(self,) + _args, _kwargs) if val: val = wxHtmlCellPtr(val) return val + def SetEvent(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlLinkInfo_SetEvent,(self,) + _args, _kwargs) + return val + def SetHtmlCell(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlLinkInfo_SetHtmlCell,(self,) + _args, _kwargs) + return val def __repr__(self): return "" % (self.this,) class wxHtmlLinkInfo(wxHtmlLinkInfoPtr): @@ -63,7 +74,7 @@ class wxHtmlLinkInfo(wxHtmlLinkInfoPtr): -class wxHtmlTagPtr : +class wxHtmlTagPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -79,9 +90,6 @@ class wxHtmlTagPtr : def GetAllParams(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlTag_GetAllParams,(self,) + _args, _kwargs) return val - def IsEnding(self, *_args, **_kwargs): - val = apply(htmlc.wxHtmlTag_IsEnding,(self,) + _args, _kwargs) - return val def HasEnding(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlTag_HasEnding,(self,) + _args, _kwargs) return val @@ -103,7 +111,7 @@ class wxHtmlTag(wxHtmlTagPtr): -class wxHtmlParserPtr : +class wxHtmlParserPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -155,7 +163,6 @@ class wxHtmlWinParserPtr(wxHtmlParserPtr): return val def GetDC(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWinParser_GetDC,(self,) + _args, _kwargs) - if val: val = wxDCPtr(val) return val def GetCharHeight(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWinParser_GetCharHeight,(self,) + _args, _kwargs) @@ -165,7 +172,6 @@ class wxHtmlWinParserPtr(wxHtmlParserPtr): return val def GetWindow(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWinParser_GetWindow,(self,) + _args, _kwargs) - if val: val = wxWindowPtr(val) return val def SetFonts(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWinParser_SetFonts,(self,) + _args, _kwargs) @@ -257,7 +263,7 @@ class wxHtmlWinParser(wxHtmlWinParserPtr): -class wxHtmlTagHandlerPtr : +class wxHtmlTagHandlerPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -313,7 +319,7 @@ class wxHtmlWinTagHandler(wxHtmlWinTagHandlerPtr): -class wxHtmlCellPtr : +class wxHtmlCellPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -385,6 +391,20 @@ class wxHtmlCell(wxHtmlCellPtr): +class wxHtmlWordCellPtr(wxHtmlCellPtr): + def __init__(self,this): + self.this = this + self.thisown = 0 + def __repr__(self): + return "" % (self.this,) +class wxHtmlWordCell(wxHtmlWordCellPtr): + def __init__(self,*_args,**_kwargs): + self.this = apply(htmlc.new_wxHtmlWordCell,_args,_kwargs) + self.thisown = 1 + + + + class wxHtmlContainerCellPtr(wxHtmlCellPtr): def __init__(self,this): self.this = this @@ -459,41 +479,29 @@ class wxHtmlColourCell(wxHtmlColourCellPtr): -class wxHtmlWidgetCellPtr(wxHtmlCellPtr): +class wxHtmlFontCellPtr(wxHtmlCellPtr): def __init__(self,this): self.this = this self.thisown = 0 def __repr__(self): - return "" % (self.this,) -class wxHtmlWidgetCell(wxHtmlWidgetCellPtr): + return "" % (self.this,) +class wxHtmlFontCell(wxHtmlFontCellPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(htmlc.new_wxHtmlWidgetCell,_args,_kwargs) + self.this = apply(htmlc.new_wxHtmlFontCell,_args,_kwargs) self.thisown = 1 -class HtmlHistoryItemPtr : +class wxHtmlWidgetCellPtr(wxHtmlCellPtr): def __init__(self,this): self.this = this self.thisown = 0 - def GetPos(self, *_args, **_kwargs): - val = apply(htmlc.HtmlHistoryItem_GetPos,(self,) + _args, _kwargs) - return val - def SetPos(self, *_args, **_kwargs): - val = apply(htmlc.HtmlHistoryItem_SetPos,(self,) + _args, _kwargs) - return val - def GetPage(self, *_args, **_kwargs): - val = apply(htmlc.HtmlHistoryItem_GetPage,(self,) + _args, _kwargs) - return val - def GetAnchor(self, *_args, **_kwargs): - val = apply(htmlc.HtmlHistoryItem_GetAnchor,(self,) + _args, _kwargs) - return val def __repr__(self): - return "" % (self.this,) -class HtmlHistoryItem(HtmlHistoryItemPtr): + return "" % (self.this,) +class wxHtmlWidgetCell(wxHtmlWidgetCellPtr): def __init__(self,*_args,**_kwargs): - self.this = apply(htmlc.new_HtmlHistoryItem,_args,_kwargs) + self.this = apply(htmlc.new_wxHtmlWidgetCell,_args,_kwargs) self.thisown = 1 @@ -515,12 +523,17 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def GetOpenedPage(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_GetOpenedPage,(self,) + _args, _kwargs) return val + def GetOpenedAnchor(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_GetOpenedAnchor,(self,) + _args, _kwargs) + return val + def GetOpenedPageTitle(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_GetOpenedPageTitle,(self,) + _args, _kwargs) + return val def SetRelatedFrame(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_SetRelatedFrame,(self,) + _args, _kwargs) return val def GetRelatedFrame(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_GetRelatedFrame,(self,) + _args, _kwargs) - if val: val = wxFramePtr(val) return val def SetRelatedStatusBar(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_SetRelatedStatusBar,(self,) + _args, _kwargs) @@ -546,6 +559,12 @@ class wxHtmlWindowPtr(wxScrolledWindowPtr): def HistoryForward(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_HistoryForward,(self,) + _args, _kwargs) return val + def HistoryCanBack(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_HistoryCanBack,(self,) + _args, _kwargs) + return val + def HistoryCanForward(self, *_args, **_kwargs): + val = apply(htmlc.wxHtmlWindow_HistoryCanForward,(self,) + _args, _kwargs) + return val def HistoryClear(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlWindow_HistoryClear,(self,) + _args, _kwargs) return val @@ -576,7 +595,7 @@ class wxHtmlWindow(wxHtmlWindowPtr): -class wxHtmlDCRendererPtr : +class wxHtmlDCRendererPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -612,9 +631,6 @@ class wxHtmlPrintoutPtr(wxPrintoutPtr): def __init__(self,this): self.this = this self.thisown = 0 - def __del__(self,htmlc=htmlc): - if self.thisown == 1 : - htmlc.delete_wxHtmlPrintout(self) def SetHtmlText(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlPrintout_SetHtmlText,(self,) + _args, _kwargs) return val @@ -640,7 +656,7 @@ class wxHtmlPrintout(wxHtmlPrintoutPtr): -class wxHtmlEasyPrintingPtr : +class wxHtmlEasyPrintingPtr(wxObjectPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -738,6 +754,5 @@ wx.wxHtmlWinTagHandlerPtr = wxHtmlWinTagHandlerPtr wx.wxHtmlCellPtr = wxHtmlCellPtr wx.wxHtmlContainerCellPtr = wxHtmlContainerCellPtr wx.wxHtmlWidgetCellPtr = wxHtmlWidgetCellPtr -wx.HtmlHistoryItemPtr = HtmlHistoryItemPtr wx.wxHtmlWindowPtr = wxHtmlWindowPtr wx.wxHtmlLinkInfoPtr = wxHtmlLinkInfoPtr