source/text/sbasic/python/python_programming.xhp |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 4ee8b6f4751bd71333c93756474148cfa7afc750
Author:     LibreOļ¬ƒciant <libreoffici...@sfr.fr>
AuthorDate: Wed Apr 24 08:28:24 2019 +0200
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Fri Apr 26 15:33:08 2019 +0200

    added hasUnoInterfaces()
    
    Change-Id: I41e521c34c4dbf161b0bd4316da75d6db7ec4314
    Reviewed-on: https://gerrit.libreoffice.org/71214
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/source/text/sbasic/python/python_programming.xhp 
b/source/text/sbasic/python/python_programming.xhp
index 5b3998ef6..888ed96b4 100644
--- a/source/text/sbasic/python/python_programming.xhp
+++ b/source/text/sbasic/python/python_programming.xhp
@@ -243,6 +243,12 @@
         </tablerow>
         <tablerow>
             <tablecell>
+                <paragraph role="tablecontent" localize="false" id="N0292">def 
hasUnoInterfaces(obj, *interfaces):</paragraph>
+                <paragraph role="tablecontent" localize="false" 
id="N0293">return set(interfaces).issubset(t.typeName for t in 
obj.Types)</paragraph>
+                <!-- Credits:
+                [Python]Equivalent 'supportsService' by Hubert Lambert
+                @ 
https://forum.openoffice.org/fr/forum/viewtopic.php?f=8&t=56597
+                 -->
             </tablecell>
             <tablecell>
                 <paragraph role="tablecontent" localize="false" 
id="N0294">HasUnoInterfaces()</paragraph>
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to