diff options
author | LibreOfficiant <LibreOfficiant@sfr.fr> | 2019-10-25 08:39:01 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-10-25 12:32:46 +0200 |
commit | 8af9c4cb203beb51c5104d3a45e1a0b084511665 (patch) | |
tree | 6385ba4febd8f6159923db9bc2cfda9591845ace /source | |
parent | bb7bf5a4beaf8c380659dd77e72bcf8f8d2eecbb (diff) |
Wrong links & extra bookmarks
Change-Id: I454e5ee23a17e48931dee2d51ad1639fb73ecba9
Reviewed-on: https://gerrit.libreoffice.org/81487
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/guide/basic_2_python.xhp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/text/sbasic/guide/basic_2_python.xhp b/source/text/sbasic/guide/basic_2_python.xhp index f80cb1658c..945566211e 100644 --- a/source/text/sbasic/guide/basic_2_python.xhp +++ b/source/text/sbasic/guide/basic_2_python.xhp @@ -19,6 +19,7 @@ <bookmark_value>Basic;Calling Python</bookmark_value> <bookmark_value>API;SimpleFileAccess</bookmark_value> <bookmark_value>API;PathSettings</bookmark_value> + <bookmark_value>API;XScript</bookmark_value> </bookmark> <h1 id="hd_id811571848401485"><variable id="basic2python"><link href="text/sbasic/guide/basic_2_python.xhp" name="Basic Programming Examples">Calling Python macros from Basic</link></variable></h1> <paragraph role="paragraph" id="N0432">Calling Python scripts from %PRODUCTNAME Basic macros is possible, and valuable features can be obtained such as:</paragraph> @@ -57,7 +58,7 @@ <paragraph role="bascode" localize="false" id="N0462">End Function ' GetPythonScript</paragraph> </bascode> <h2 id="N0463">Executing Python Scripts</h2> - <embed href="text.sbasic.python/python_2_basic.xhp#APIScriptingFramework" /> + <embed href="text/sbasic/python/python_2_basic.xhp#APIScriptingFramework" /> <h3 id="N0464">Syntax</h3> <paragraph role="paragraph" id="N0465"><literal>workstation_name = script.invoke(Array(), Array(), Array())</literal></paragraph> <paragraph role="paragraph" id="N0466"><literal>opSysName = script.invoke(Array(), in_outs, Array())</literal> ' in_out is an Array</paragraph> @@ -112,7 +113,7 @@ <paragraph role="pycode" localize="false" id="N0510">def computer_name() -> str:</paragraph> <paragraph role="pycode" localize="false" id="N0511"> return platform.node()</paragraph> <paragraph role="pycode" localize="false" id="N0512"> </paragraph> - <paragraph role="pycode" localize="false" id="N0513">def OSname():</paragraph> + <paragraph role="pycode" localize="false" id="N0513">def OSname() -> str:</paragraph> <paragraph role="pycode" localize="false" id="N0514"> return platform.system()</paragraph> </pycode> <list type="unordered"> @@ -172,7 +173,7 @@ <listitem><paragraph role="listitem" id="N0562"><emph>xml.etree.ElementTree</emph> ElementTree XML API</paragraph></listitem> </list> <section id="relatedtopics" > - <embed href="text/sbasic/python/python_2_basic.xhp#py2bah1"/> + <embed href="text/sbasic/python/python_2_basic.xhp#py2bas1"/> <embed href="text/sbasic/shared/main0601.xhp#mainsbasic"/> <embed href="text/sbasic/python/main0000.xhp#pythonscriptshelp"/> </section> |