forked from amazingfate/help
added hasUnoInterfaces()
Change-Id: I41e521c34c4dbf161b0bd4316da75d6db7ec4314 Reviewed-on: https://gerrit.libreoffice.org/71214 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
f52790876d
commit
4ee8b6f475
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user