From deb9f4e0f5fdef43501b4fe4036327a313fc3674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LibreO=EF=AC=83ciant?= Date: Mon, 15 Jul 2019 12:50:48 +0200 Subject: [PATCH] Typo Change-Id: I854c7a4112eda552122fa37f15bcf9752ad302ae Reviewed-on: https://gerrit.libreoffice.org/75627 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/python/python_2_basic.xhp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/text/sbasic/python/python_2_basic.xhp b/source/text/sbasic/python/python_2_basic.xhp index 7be490b75b..19c10e5dfe 100644 --- a/source/text/sbasic/python/python_2_basic.xhp +++ b/source/text/sbasic/python/python_2_basic.xhp @@ -30,13 +30,13 @@ The %PRODUCTNAME Application Programming Interface (API) Scripting Framework supports inter-language script execution between Python and Basic, or other supported programming languages for that matter. Arguments can be passed back and fourth across calls, providing they represent primitives data types that both languages recognize, and assuming that the Scripting Framework converts them appropriately. It is recommended to have knowledge of Python standard modules and %PRODUCTNAME API features prior to perform inter-language calls from Python to Basic, JavaScript or any other script engine. - When running Python scripts from an Integrated Development Environment (IDE), the %PRODUCTNAME nested Basic engine is absent. Avoid Python to %PRODUCTNAME Basic calls in this context. However Python environment and Universal Networks Objects (UNO) are fully available. Refer to Setting Up an Integrated IDE for Python for more information. + When running Python scripts from an Integrated Development Environment (IDE), the %PRODUCTNAME nested Basic engine is absent. Avoid Python to %PRODUCTNAME Basic calls in this context. However Python environment and Universal Networks Objects (UNO) are fully available. Refer to Setting Up an Integrated IDE for Python for more information.

Retrieving %PRODUCTNAME Basic Scripts

- %PRODUCTNAME Basic macros can be personal, shared, or embedded in documents. In order to execute them, Python run time needs to be provided with Basic macro locations. Implementing the com.sun.star.script.provider.XScriptProvider interface allows the retrieval of executable scripts: + %PRODUCTNAME Basic macros can be personal, shared, or embedded in documents. In order to execute them, Python run time needs to be provided with Basic macro locations. Implementing the com.sun.star.script.provider.XScriptProvider interface allows the retrieval of executable scripts:
API;script.provider.MasterScriptProviderFactory: Retrieving Basic scripts - API;script.provider.XScript : Executing Basic scripts + API;script.provider.XScript: Executing Basic scripts API;XScriptProvider: Retrieving Basic scripts @@ -68,7 +68,7 @@ API;script.provider.XScript : Executing Basic scripts - The %PRODUCTNAME Software Development Kit (SDK) documentation for com.sun.star.script.provider.XScript interface details the calling convention for inter-language calls. Invocation of functions requires three arrays: + The %PRODUCTNAME Software Development Kit (SDK) documentation for com.sun.star.script.provider.XScript interface details the calling convention for inter-language calls. Invocation of functions requires three arrays: the first lists the arguments of the called routine the second identifies modified arguments @@ -80,8 +80,8 @@ script.invoke((message,), tuple, ()) script.invoke((args), (), results)

Examples of Personal or Shared Scripts

- Examples in Input/Output to Screen details Python to Basic invocation calls. Monitoring Document Events illustrates the usage of *args Python idiom to print a variable number of parameters to Access2Base logging console dialog. - At time of development you can interrupt Python script execution using Xray extension in order to inspect properties and methods of UNO objects. The ASPO extension debugger allows object introspection using either Xray either MRI extensions. + Examples in Input/Output to Screen detail Python to Basic invocation calls. Monitoring Document Events illustrates the usage of *args Python idiom to print a variable number of parameters to Access2Base logging console dialog. + At time of development you can interrupt Python script execution using Xray extension in order to inspect properties and methods of UNO objects. The ASPO extension debugger allows object introspection using either Xray either MRI extensions. def xray(myObject): script = getBasicScript(library="XrayTool", module="_Main", macro="Xray")