]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/html.py
added functions to read/write several elements at once (patch 754986)
[wxWidgets.git] / wxPython / src / mac / html.py
index 09c3573b152dedcc8b2eb9fce32914ccdcd773f1..58e15a4d99fb00421c1aab3ec014efac729b12e0 100644 (file)
@@ -135,6 +135,9 @@ class wxHtmlParserPtr(wxObjectPtr):
     def DoParsing(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlParser_DoParsing,(self,) + _args, _kwargs)
         return val
+    def StopParsing(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlParser_StopParsing,(self,) + _args, _kwargs)
+        return val
     def AddTagHandler(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlParser_AddTagHandler,(self,) + _args, _kwargs)
         return val
@@ -450,6 +453,10 @@ class wxHtmlContainerCellPtr(wxHtmlCellPtr):
     def SetBackgroundColour(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlContainerCell_SetBackgroundColour,(self,) + _args, _kwargs)
         return val
+    def GetBackgroundColour(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlContainerCell_GetBackgroundColour,(self,) + _args, _kwargs)
+        if val: val = wxColourPtr(val) ; val.thisown = 1
+        return val
     def SetBorder(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlContainerCell_SetBorder,(self,) + _args, _kwargs)
         return val
@@ -509,6 +516,24 @@ class wxHtmlWidgetCell(wxHtmlWidgetCellPtr):
 
 
 
+class wxHtmlFilterPtr(wxObjectPtr):
+    def __init__(self,this):
+        self.this = this
+        self.thisown = 0
+    def _setCallbackInfo(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlFilter__setCallbackInfo,(self,) + _args, _kwargs)
+        return val
+    def __repr__(self):
+        return "<C wxHtmlFilter instance at %s>" % (self.this,)
+class wxHtmlFilter(wxHtmlFilterPtr):
+    def __init__(self,*_args,**_kwargs):
+        self.this = apply(htmlc.new_wxHtmlFilter,_args,_kwargs)
+        self.thisown = 1
+        self._setCallbackInfo(self, wxHtmlFilter)
+
+
+
+
 class wxHtmlWindowPtr(wxScrolledWindowPtr):
     def __init__(self,this):
         self.this = this
@@ -624,9 +649,12 @@ class wxHtmlDCRendererPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,htmlc=htmlc):
-        if self.thisown == 1 :
-            htmlc.delete_wxHtmlDCRenderer(self)
+    def __del__(self, delfunc=htmlc.delete_wxHtmlDCRenderer):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def SetDC(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlDCRenderer_SetDC,(self,) + _args, _kwargs)
         return val
@@ -636,6 +664,9 @@ class wxHtmlDCRendererPtr(wxObjectPtr):
     def SetHtmlText(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlDCRenderer_SetHtmlText,(self,) + _args, _kwargs)
         return val
+    def SetFonts(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlDCRenderer_SetFonts,(self,) + _args, _kwargs)
+        return val
     def Render(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlDCRenderer_Render,(self,) + _args, _kwargs)
         return val
@@ -668,6 +699,9 @@ class wxHtmlPrintoutPtr(wxPrintoutPtr):
     def SetFooter(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlPrintout_SetFooter,(self,) + _args, _kwargs)
         return val
+    def SetFonts(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlPrintout_SetFonts,(self,) + _args, _kwargs)
+        return val
     def SetMargins(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlPrintout_SetMargins,(self,) + _args, _kwargs)
         return val
@@ -685,9 +719,12 @@ class wxHtmlEasyPrintingPtr(wxObjectPtr):
     def __init__(self,this):
         self.this = this
         self.thisown = 0
-    def __del__(self,htmlc=htmlc):
-        if self.thisown == 1 :
-            htmlc.delete_wxHtmlEasyPrinting(self)
+    def __del__(self, delfunc=htmlc.delete_wxHtmlEasyPrinting):
+        if self.thisown == 1:
+            try:
+                delfunc(self)
+            except:
+                pass
     def PreviewFile(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlEasyPrinting_PreviewFile,(self,) + _args, _kwargs)
         return val
@@ -712,6 +749,9 @@ class wxHtmlEasyPrintingPtr(wxObjectPtr):
     def SetFooter(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlEasyPrinting_SetFooter,(self,) + _args, _kwargs)
         return val
+    def SetFonts(self, *_args, **_kwargs):
+        val = apply(htmlc.wxHtmlEasyPrinting_SetFonts,(self,) + _args, _kwargs)
+        return val
     def GetPrintData(self, *_args, **_kwargs):
         val = apply(htmlc.wxHtmlEasyPrinting_GetPrintData,(self,) + _args, _kwargs)
         if val: val = wxPrintDataPtr(val) 
@@ -789,4 +829,5 @@ wx.wxHtmlContainerCellPtr   = wxHtmlContainerCellPtr
 wx.wxHtmlWidgetCellPtr      = wxHtmlWidgetCellPtr
 wx.wxHtmlWindowPtr          = wxHtmlWindowPtr
 wx.wxHtmlLinkInfoPtr        = wxHtmlLinkInfoPtr
+wx.wxHtmlFilterPtr          = wxHtmlFilterPtr