diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2022-10-16 17:36:06 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2022-10-16 18:25:59 +0200 |
commit | a69bca0fda60d988409f628efb21a1799a687378 (patch) | |
tree | b3d430558d102e63649915cfa1e61d52022b9adc /wizards | |
parent | f4e7738112eb4a374186a99953a74a5288bee4b0 (diff) |
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 <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/source/scriptforge/python/scriptforge.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ -728,6 +728,10 @@ class SFScriptForge: 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): date = cls.CDateToUnoDateTime(date) |