summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03
diff options
context:
space:
mode:
authorflywire <flywire0@gmail.com>2022-02-22 04:02:47 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2022-02-23 14:54:27 +0100
commit046e5b4b6101edcc1614dd2dc392d8feab9eb891 (patch)
treee7ee5b370b5c6203239f2e9919a679c7e6bdfff8 /source/text/sbasic/shared/03
parent2dabe39b5600714274285d364cd0600bc7662267 (diff)
Add ScriptForge services language headings
Change-Id: I22fbe569cb3702d784f944738261d7aed6de3ca0 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/130314 Tested-by: Jenkins Reviewed-by: Alain Romedenne
Diffstat (limited to 'source/text/sbasic/shared/03')
-rw-r--r--source/text/sbasic/shared/03/lib_ScriptForge.xhp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/text/sbasic/shared/03/lib_ScriptForge.xhp b/source/text/sbasic/shared/03/lib_ScriptForge.xhp
index 6ef0011318..2b7e50b6e9 100644
--- a/source/text/sbasic/shared/03/lib_ScriptForge.xhp
+++ b/source/text/sbasic/shared/03/lib_ScriptForge.xhp
@@ -31,20 +31,22 @@
<tip id="par_id1001623412767893">To learn more about how to create and execute Python scripts using the <literal>ScriptForge</literal> library, read the help page <link href="text/sbasic/shared/03/sf_intro.xhp" name="sfintro_link">Creating Python Scripts with ScriptForge</link>.</tip>
<h2 id="hd_id781637256119733">Invoking ScriptForge services</h2>
- <paragraph role="paragraph" id="par_id781606153472028">The described modules and classes are invoked from user scripts as "Services". A generic constructor of those services has been designed for that purpose for each language:</paragraph>
+ <paragraph role="paragraph" id="par_id781606153472028">The described modules and classes are invoked from user scripts as "Services". A generic constructor of those services has been designed for that purpose for each language.</paragraph>
+ <paragraph role="paragraph" id="par_id871637256506167">The <literal>Dispose</literal> method is available in all services and should be called to free up resources after usage:</paragraph>
+ <embed href="text/sbasic/shared/00000003.xhp#In_Basic"/>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id901619770181787">GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")</paragraph>
<paragraph role="bascode" localize="false" id="bas_id201606153529501">Set oSvc = CreateScriptService("servicename"[, arg0, arg1, ...])</paragraph>
<paragraph role="bascode" localize="false" id="bas_id701637256465858">' ...</paragraph>
<paragraph role="bascode" localize="false" id="bas_id851637256466244">oSvc.Dispose()</paragraph>
</bascode>
+ <embed href="text/sbasic/shared/00000003.xhp#In_Python"/>
<pycode>
<paragraph role="pycode" localize="false" id="pyc_id701619701322002">from scriptforge import CreateScriptService</paragraph>
<paragraph role="pycode" localize="false" id="pyc_id531619701322249">svc = CreateScriptService('servicename'[, arg0, arg1, ...])</paragraph>
<paragraph role="pycode" localize="false" id="pyc_id271637256185236"># ...</paragraph>
<paragraph role="pycode" localize="false" id="pyc_id501637256192213">svc.Dispose()</paragraph>
</pycode>
- <paragraph role="paragraph" id="par_id871637256506167">The <literal>Dispose</literal> method is available in all services and should be called to free up resources after usage.</paragraph>
<h2 id="hd_id851613836643580">Services provided by the ScriptForge library</h2>
<table id="tab_id311613838858931">
@@ -237,4 +239,4 @@
<warning id="par_id851506659675843">All <literal>ScriptForge</literal> Basic routines or identifiers that are prefixed with an underscore character "_" are reserved for internal use. They are not meant be used in Basic macros or Python scripts.</warning>
</section>
</body>
-</helpdocument>
+</helpdocument> \ No newline at end of file