Translation

basic_2_python.xhp N0470 help.text
English FadCx
Context English Catalan (ca_VALENCIA)
basic_2_python.xhp
N0436
help.text
and many more. entre altres funcionalitats.
basic_2_python.xhp
N0437
help.text
A reasonable exposure to %PRODUCTNAME Basic and to <link href="https://api.libreoffice.org/" name="Application Programming Interface">Application Programming Interface (API)</link> features is recommended prior to perform inter-language calls from Basic to Python, to JavaScript or any other script engine. És recomanable familiaritzar-se amb les característiques de %PRODUCTNAME Basic i la <link href="https://api.libreoffice.org/" name="Application Programming Interface">interfície de programació d'aplicacions (API)</link> abans de fer crides de Basic a Python, JavaScript o un altre motor de scripts.
basic_2_python.xhp
N0438
help.text
Retrieving Python Scripts Recuperació d'scripts Python
basic_2_python.xhp
N0439
help.text
Python scripts can be personal, shared, or embedded in documents. In order to execute them, %PRODUCTNAME Basic needs to be provided with Python script locations. Locating <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html" name="script.provider.XScript">com.sun.star.script.provider.XScript</link> interface compliant UNO objects allows the execution of Python scripts: Els scripts de Python poden ser independents, compartits o estar incrustats en els documents. Per a executar-los, s'han d'incloure les ubicacions dels scripts de Python en %PRODUCTNAME Basic. Cercar objectes UNO compatibles amb la interfície <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html" name="script.provider.XScript"> com.sun.star.script.provider.XScript</link> permet que s'executen els scripts de Python:
basic_2_python.xhp
N0444
help.text
''' Grab Python script object before execution ''' Pren l'objecte de l'script de Python abans de l'execució
basic_2_python.xhp
N0445
help.text
' Arguments: ' Arguments:
basic_2_python.xhp
N0446
help.text
' macro : as "library/module.py$macro" or "module.py$macro" ' macro : com a «library/module.py$macro» o «module.py$macro»
basic_2_python.xhp
N0447
help.text
' location: as "document", "share", "user" or ENUM(eration) '····location: com a «document», «share», «user» o ENUM(eració)
basic_2_python.xhp
N0448
help.text
' Result: ' Resultat:
basic_2_python.xhp
N0449
help.text
' located com.sun.star.script.provider.XScript UNO service''' ' s'ha localitzat el servei com.sun.star.script.provider.XScript de l'UNO'''
basic_2_python.xhp
N0452
help.text
Dim sp As Object ' com.sun.star.script.provider.XScriptProvider compatible Dim sp As Object ' compatible amb com.sun.star.script.provider.XScriptProvider
basic_2_python.xhp
N0463
help.text
Executing Python Scripts Execució de scripts en Python
basic_2_python.xhp
N0464
help.text
Syntax Sintaxi
basic_2_python.xhp
N0466
help.text
<literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> ' in_out is an Array <literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> ' in_out és una matriu
basic_2_python.xhp
N0469
help.text
Embedded Scripts Examples Exemples de scripts incrustats
basic_2_python.xhp
N0470
help.text
Below <literal>ComputerName</literal>, and <literal>GetFilelen</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
basic_2_python.xhp
N0472
help.text
Option Compatible ' Properties are supported Option Compatible ' S'admeten propietats
basic_2_python.xhp
N0477
help.text
'''Workstation name''' '''Nom de l'estació de treball'''
basic_2_python.xhp
N0483
help.text
'''File size in bytes''' '''Mida del fitxer en bytes'''
basic_2_python.xhp
N0489
help.text
ISEMBEDDED As String ' document script ISEMBEDDED As String ' script del document
basic_2_python.xhp
N0490
help.text
ISPERSONAL As String ' user script ISPERSONAL As String ' script d'usuari
basic_2_python.xhp
N0491
help.text
ISSHARED As String ' %PRODUCTNAME macro ISSHARED As String ' macro del %PRODUCTNAME
basic_2_python.xhp
N0497
help.text
.ISEMBEDDED = "document" ' document script .ISEMBEDDED = "document" ' script del document
basic_2_python.xhp
N0498
help.text
.ISPERSONAL = "user" ' user scripts .ISPERSONAL = "user" ' scripts d'usuari
basic_2_python.xhp
N0499
help.text
.ISSHARED = "share" ' %PRODUCTNAME macro .ISSHARED = "share" ' macro del %PRODUCTNAME
basic_2_python.xhp
N0503
help.text
Two different Python modules are called. They can either be embedded in the current document, either be stored on the file system. Argument type checking is skipped for clarity:
basic_2_python.xhp
N0526
help.text
Personal or Shared Scripts Examples Exemples d'scripts personals i compartits
basic_2_python.xhp
N0527
help.text
The calling mechanism for personal or shared Python scripts is identical to that of embedded scripts. Library names are mapped to folders. Computing %PRODUCTNAME user profile and shared modules system file paths can be performed as detailed in <link href="text/sbasic/python/python_session.xhp">Getting session information</link>. Below <literal>OSName</literal>, <literal>HelloWorld</literal> and <literal>NormalizePath</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.
basic_2_python.xhp
N0529
help.text
Option Compatible ' Properties are supported Option Compatible ' S'admeten propietats
basic_2_python.xhp
N0534
help.text
'''Platform name as "Linux", "Darwin" or "Windows"''' '''El nom d'una plataforma, com ara «Linux», «Darwin» o «Windows»'''
basic_2_python.xhp
N0540
help.text
'''%PRODUCTNAME Python shared sample''' '''exemple de Python compartit al %PRODUCTNAME'''

Loading…

No matching activity found.
Browse all component changes

Glossary

English Catalan (ca_VALENCIA)
No related strings found in the glossary.

String information

Context
basic_2_python.xhp
N0470
help.text
Source string description
FadCx
Source string location
basic_2_python.xhp
String age
2 years ago
Source string age
2 years ago
Translation file
ca-valencia/helpcontent2/source/text/sbasic/guide.po, string 42