summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibreOfficiant <OpenOfficiant@sfr.fr>2019-02-11 09:57:13 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-02-11 14:32:51 +0100
commitdfc93df5d71958d100a3fb332e40863c3d4863c5 (patch)
tree5fc842abbd9975d9f93bd42cf6cf087c27deda24
parentcc0a383f138d4f872fe9b3457391ff8ff3cf11b5 (diff)
Corrections + link activation
Change-Id: I99d8a012ff51bf43a96d15450cfaeb02d56ffea9 Reviewed-on: https://gerrit.libreoffice.org/67669 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/sbasic/python/python_examples.xhp3
-rw-r--r--source/text/sbasic/python/python_session.xhp6
2 files changed, 4 insertions, 5 deletions
diff --git a/source/text/sbasic/python/python_examples.xhp b/source/text/sbasic/python/python_examples.xhp
index 085f9ddadb..067f239dfc 100644
--- a/source/text/sbasic/python/python_examples.xhp
+++ b/source/text/sbasic/python/python_examples.xhp
@@ -30,11 +30,10 @@
<embed href="text/sbasic/python/python_from_basic.xhp#pythonfrombasic"/>
<embed href="text/sbasic/python/python_dialog.xhp#pythondialog"/>
<embed href="text/sbasic/python/python_listener.xhp#pythonlistener"/>
- <embed href="text/sbasic/python/python_session.xhp#pythonsession"/>
-->
+ <embed href="text/sbasic/python/python_session.xhp#pythonsession"/>
<embed href="text/sbasic/python/python_platform.xhp#pythonplatform"/>
<!--<embed href="text/sbasic/python/python_import.xhp#pythonimport"/>-->
-
<embed href="text/sbasic/python/python_screen.xhp#ioscreen"/>
<embed href="text/sbasic/python/python_shell.xhp#pythonshell1"/>
</body>
diff --git a/source/text/sbasic/python/python_session.xhp b/source/text/sbasic/python/python_session.xhp
index 5ee5c55f4e..d99bcdb38a 100644
--- a/source/text/sbasic/python/python_session.xhp
+++ b/source/text/sbasic/python/python_session.xhp
@@ -23,8 +23,8 @@
<bookmark_value>Session;UserScripts</bookmark_value>
<bookmark_value>Session;UserPythonScripts</bookmark_value>
</bookmark>
- <h1 id="N0340">Getting session information</h1>
- <paragraph role="paragraph" id="N0341">To compute %PRODUCTNAME user profile and shared modules system file paths can be performed with Python and with Basic language. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information.</paragraph>
+ <h1 id="N0340"><variable id="pythonsession"><link href="text/sbasic/python/python_session.xhp" name="session01">Getting session information</link></variable></h1>
+ <paragraph role="paragraph" id="N0341">Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information.</paragraph>
<h2 id="N0343">Examples:</h2>
<paragraph role="paragraph" id="N0344">With Python shell.</paragraph>
<paragraph role="paragraph" localize="false" id="N0345"><literal>&gt;&gt;&gt; from &lt;the_module&gt; import Session</literal></paragraph>
@@ -48,7 +48,7 @@
<h3 id="N0361">With %PRODUCTNAME Basic.</h3>
<bascode>
<paragraph role="bascode" xml-lang="en-US" id="N0362">Sub Session_example()</paragraph>
- <paragraph role="bascode" localize="false" id="N0363"> Dim s As New Session &apos; instance of Platform class</paragraph>
+ <paragraph role="bascode" localize="false" id="N0363"> Dim s As New Session &apos; instance of Session class</paragraph>
<paragraph role="bascode" xml-lang="en-US" id="N0364"> Print &quot;Shared scripts location:&quot;, s.SharedScripts</paragraph>
<paragraph role="bascode" xml-lang="en-US" id="N0365"> MsgBox s.UserName,,&quot;Hello&quot;</paragraph>
<paragraph role="bascode" xml-lang="en-US" id="N0366"> Print s.UserScripts, Chr(13), s.UserPythonScripts</paragraph>