From 5f787a1f2d96dcc67dde76a688867a593bb815df Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 13 Feb 2019 12:28:01 -0200 Subject: Python: improve navigation between Help pages add links between python pages add links from Contents section Change-Id: Ifc6704862c8213008eeb5d6e6baf86aa7c7be50b Reviewed-on: https://gerrit.libreoffice.org/67778 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/python/main0000.xhp | 3 +-- source/text/sbasic/python/python_examples.xhp | 4 +++- source/text/sbasic/python/python_ide.xhp | 2 -- source/text/sbasic/python/python_locations.xhp | 1 - source/text/sbasic/python/python_platform.xhp | 1 + source/text/sbasic/python/python_programming.xhp | 5 +++-- source/text/sbasic/python/python_screen.xhp | 1 + source/text/sbasic/python/python_shell.xhp | 1 + 8 files changed, 10 insertions(+), 8 deletions(-) (limited to 'source/text/sbasic') diff --git a/source/text/sbasic/python/main0000.xhp b/source/text/sbasic/python/main0000.xhp index 3b8ed37301..173dbc6dd5 100644 --- a/source/text/sbasic/python/main0000.xhp +++ b/source/text/sbasic/python/main0000.xhp @@ -26,15 +26,14 @@ %PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit https://api.libreoffice.org This help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the Designing & Developing Python Applications on the Wiki. -

Working with Python Scripts in %PRODUCTNAME

You can execute Python scripts choosing Tools - Macros - Run Macro. Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run the Python interactive console from %PRODUCTNAME. - Creating a dialog + diff --git a/source/text/sbasic/python/python_examples.xhp b/source/text/sbasic/python/python_examples.xhp index bdfb2488a3..3dd1c5564b 100644 --- a/source/text/sbasic/python/python_examples.xhp +++ b/source/text/sbasic/python/python_examples.xhp @@ -35,6 +35,8 @@ - +
+ +
diff --git a/source/text/sbasic/python/python_ide.xhp b/source/text/sbasic/python/python_ide.xhp index d1bc36e1fc..685ba92635 100644 --- a/source/text/sbasic/python/python_ide.xhp +++ b/source/text/sbasic/python/python_ide.xhp @@ -27,8 +27,6 @@

Setting up an Integrated Development Environment (IDE) for Python

Writing Python macros requires extra configuration steps to set an IDE of choice. - - Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to Designing & Developing Python Applications on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME.

The APSO Extension

diff --git a/source/text/sbasic/python/python_locations.xhp b/source/text/sbasic/python/python_locations.xhp index 7d7681e781..46b473ae81 100644 --- a/source/text/sbasic/python/python_locations.xhp +++ b/source/text/sbasic/python/python_locations.xhp @@ -20,7 +20,6 @@ Python Scripts Organization and Location The Python script files are stored in the filesystem, in folders controlled by %PRODUCTNAME. The macros can be started at installation, user or file level. -

Python Script Locations

%PRODUCTNAME Macros container

Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here. diff --git a/source/text/sbasic/python/python_platform.xhp b/source/text/sbasic/python/python_platform.xhp index 5127069fbe..7ee0b379f9 100644 --- a/source/text/sbasic/python/python_platform.xhp +++ b/source/text/sbasic/python/python_platform.xhp @@ -112,6 +112,7 @@ Basic to Python function calls --> + diff --git a/source/text/sbasic/python/python_programming.xhp b/source/text/sbasic/python/python_programming.xhp index fe357bd220..627c0ffbae 100644 --- a/source/text/sbasic/python/python_programming.xhp +++ b/source/text/sbasic/python/python_programming.xhp @@ -296,8 +296,9 @@
Basic UNO Objects, Functions and Services - Importing Modules - Input/Output to Screen + + +
diff --git a/source/text/sbasic/python/python_screen.xhp b/source/text/sbasic/python/python_screen.xhp index 33f37f2a08..e6d1d89f44 100644 --- a/source/text/sbasic/python/python_screen.xhp +++ b/source/text/sbasic/python/python_screen.xhp @@ -99,6 +99,7 @@ + diff --git a/source/text/sbasic/python/python_shell.xhp b/source/text/sbasic/python/python_shell.xhp index 194bc2fd60..bd522838e4 100644 --- a/source/text/sbasic/python/python_shell.xhp +++ b/source/text/sbasic/python/python_shell.xhp @@ -53,6 +53,7 @@ Python Interactive Console
+
-- cgit