wizards/source/scriptforge/python/scriptforge.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit a69bca0fda60d988409f628efb21a1799a687378
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Sun Oct 16 17:36:06 2022 +0200
Commit:     Jean-Pierre Ledure <j...@ledure.be>
CommitDate: Sun Oct 16 18:25:59 2022 +0200

    ScriptForge - (SF_Basic) new CreateUnoStruct() method
    
    The method extends the set of functions compatible
    with their corresponding Basic builtin functions.
    
    BTW it might avoid the need for the user to
       import uno
    in his/her Python scripts.
    Of course (s)he remains free to prefer the latter.
    
    Impact only on Python scripts. Basic part is unchanged.
    An update of the help page about the Basic service is reuired.
    
    Change-Id: I3b01eb76aa52f62fa54bae49ddb45755126bc3fe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141429
    Tested-by: Jean-Pierre Ledure <j...@ledure.be>
    Reviewed-by: Jean-Pierre Ledure <j...@ledure.be>
    Tested-by: Jenkins

diff --git a/wizards/source/scriptforge/python/scriptforge.py 
b/wizards/source/scriptforge/python/scriptforge.py
index 11022984286b..c05d5349f0b4 100644
--- a/wizards/source/scriptforge/python/scriptforge.py
+++ b/wizards/source/scriptforge/python/scriptforge.py
@@ -727,6 +727,10 @@ class SFScriptForge:
         def CreateUnoService(cls, servicename):
             return cls.SIMPLEEXEC(cls.module + '.PyCreateUnoService', 
servicename)
 
+        @classmethod
+        def CreateUnoStruct(cls, unostructure):
+            return uno.createUnoStruct(unostructure)
+
         @classmethod
         def DateAdd(cls, interval, number, date):
             if isinstance(date, datetime.datetime):

Reply via email to