summaryrefslogtreecommitdiff
path: root/offapi/Makefile
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2023-08-19 17:30:25 +0200
committerJean-Pierre Ledure <jp@ledure.be>2023-08-20 10:48:48 +0200
commit0bbe5b4f2a7797bfd05fdbde316857fceaf84d77 (patch)
tree1dad13b9c6dc05fa3cd1acbca5cdb744e3b962c3 /offapi/Makefile
parent6c149bffd798d401db0945f6f3ee8ab777020298 (diff)
ScriptForge - Refactor Python <=> Basic protocol
Incremental changes had made the code in SF_PythonHelper.xba scriptforge.py (which manage the protocol between the Python user scripts and the ScriptForge services implemented in Basic) less readable and efficient. Next features have been reviewed: - dict instances may be passed as arguments and returned. Conversions are done on-th-fly. - dates may be passed as arguments and returned. Conversions are done on-th-fly. The lists of hardcoded methods have been removed. - 2D arrays in standard modules may be passed as arguments and returned. Conversions are done on-th-fly. The lists of hardcoded methods have been removed. - The hardcoded list of methods requiring a post- processing has been reduced. - Methods in standard modules, when not returning an array, are also executed with CallByName(). - The unused 'localProperties' attribute in Python services has been removed. - Flags about arrays in standard modules have been adapted in filesystem.Files() filesystem.SubFolders() session.UnoMethods() session.UnoProperties() string.SplitNotQuoted() string.Wrap() ui.Documents() - The platform.UserData property became a usual property. Dictionaries are admitted as arguments and return values. As a consquence next functions are supported in Python as well: session.GetPDFExportOpetions() session.SetPDFExportOptions() document, calc, writer.CustomProperties document, calc, writer.DocumentProperties These changes require an update of the help pages. Non-regression tests were run with success. All changes are transparent for existing scripts. Change-Id: Iae7a1f5090c590209cd3cb2314c919c44736eba9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155860 Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins
Diffstat (limited to 'offapi/Makefile')
0 files changed, 0 insertions, 0 deletions