Also in this patch: - lib_ScriptForge.xhp: add links to table of contents - sf_dialogcontrol.xhp: silence strings for translation Change-Id: I9b69be483d93957cdc793d95f56f33a48e3f1c85 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110788 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
132 lines
7.6 KiB
XML
132 lines
7.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
-->
|
|
<meta>
|
|
<topic id="toolsbasiclibrary" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">ScriptForge Libraries</title>
|
|
<filename>/text/sbasic/shared/03/lib_ScriptForge.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<h1 id="hd_id31529004750471" xml-lang="en-US"><variable id="ScriptForge_lib"><link href="text/sbasic/shared/03/lib_ScriptForge.xhp" name="ScriptForge library">The <item type="literal">ScriptForge</item> Library</link></variable></h1>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id491529070339774">
|
|
<bookmark_value>BASIC ScriptForge library</bookmark_value>
|
|
</bookmark>
|
|
<section id="howtoget">
|
|
<embed href="text/sbasic/shared/00000003.xhp#basiclibhowtoget"/>
|
|
</section>
|
|
<note id="par_id901528999850603"><embedvar href="text/sbasic/shared/00000003.xhp#basiclibrarynote" markup="keep"/><br/>
|
|
<item type="literal">GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")</item></note>
|
|
<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:</paragraph>
|
|
<bascode>
|
|
<paragraph role="bascode" localize="false" id="bas_id201606153529501">CreateScriptService("servicename"[, arg0, Arg1, ...])</paragraph>
|
|
</bascode>
|
|
<paragraph role="paragraph" id="par_id891606153700196">Services from external libraries can be registered with the <literal>RegisterScriptServices(...)</literal> method in order to extend the set of available services.</paragraph>
|
|
<note id="par_id851605659675843">The <literal>ScriptForge</literal> Basic library is available from %PRODUCTNAME 7.1 onwards.</note>
|
|
<table id="tab_id501611613601554">
|
|
<tablerow>
|
|
<tablecell colspan="4"><paragraph id="par_id891611613601554" role="tablehead" xml-lang="en-US">Services provided by the ScriptForge library</paragraph></tablecell>
|
|
</tablerow>
|
|
<tablerow>
|
|
<tablecell>
|
|
<paragraph id="par_id891611613601556" role="tablecontent" localize="false">
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Array" name="Array service">Array</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Calc" name="Calc service">Calc</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Database" name="Database service">Database</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Dialog" name="Dialog service">Dialog</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#DialogControl" name="DialogControl service">DialogControl</link>
|
|
</paragraph>
|
|
</tablecell>
|
|
<tablecell>
|
|
<paragraph id="par_id541611613601554" role="tablecontent" localize="false">
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Dictionary" name="Dictionary service">Dictionary</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Document" name="Document service">Document</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Exception" name="Exception service">Exception</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#FileSystem" name="FileSystem service">FileSystem</link><br/><br/>
|
|
</paragraph>
|
|
</tablecell>
|
|
<tablecell>
|
|
<paragraph id="par_id107611613601554" role="tablecontent" localize="false">
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Localization" name="Localization service">Localization (L10N)</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Platform" name="Platform service">Platform</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Services" name="Services service">Services</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Session" name="Session service">Session</link><br/><br/>
|
|
</paragraph>
|
|
</tablecell>
|
|
<tablecell>
|
|
<paragraph id="par_id701611613106554" role="tablecontent" localize="false">
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#String" name="String service">String</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#TextStream" name="TextStream service">TextStream</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Timer" name="Timer service">Timer</link><br/>
|
|
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#UI" name="UI service">UI</link><br/><br/>
|
|
</paragraph>
|
|
</tablecell>
|
|
</tablerow>
|
|
</table>
|
|
|
|
<section id="Array">
|
|
<embed href="text/sbasic/shared/03/sf_array.xhp#abstract"/>
|
|
</section>
|
|
<section id="Calc">
|
|
<embed href="text/sbasic/shared/03/sf_calc.xhp#abstract"/>
|
|
</section>
|
|
<section id="Database">
|
|
<paragraph role="paragraph" id="par_id511606151140931" localize="false">Database</paragraph>
|
|
</section>
|
|
<section id="Dialog">
|
|
<embed href="text/sbasic/shared/03/sf_dialog.xhp#abstract"/>
|
|
</section>
|
|
<section id="DialogControl">
|
|
<embed href="text/sbasic/shared/03/sf_dialogcontrol.xhp#abstract"/>
|
|
</section>
|
|
<section id="Dictionary">
|
|
<embed href="text/sbasic/shared/03/sf_dictionary.xhp#abstract"/>
|
|
</section>
|
|
<section id="Document">
|
|
<embed href="text/sbasic/shared/03/sf_document.xhp#abstract"/>
|
|
</section>
|
|
<section id="Exception">
|
|
<embed href="text/sbasic/shared/03/sf_exception.xhp#abstract"/>
|
|
</section>
|
|
<section id="FileSystem">
|
|
<embed href="text/sbasic/shared/03/sf_filesystem.xhp#abstract"/>
|
|
</section>
|
|
<section id="Localization">
|
|
<paragraph role="paragraph" id="par_id511606151140972" localize="false">Localization (L10N)</paragraph>
|
|
</section>
|
|
<section id="Platform">
|
|
<paragraph role="paragraph" id="par_id781606151141190" localize="false">Platform</paragraph>
|
|
</section>
|
|
<section id="Services">
|
|
<paragraph role="paragraph" id="par_id771606151141575" localize="false">Services</paragraph>
|
|
</section>
|
|
<section id="Session">
|
|
<embed href="text/sbasic/shared/03/sf_session.xhp#abstract"/>
|
|
</section>
|
|
<section id="String">
|
|
<embed href="text/sbasic/shared/03/sf_string.xhp#abstract"/>
|
|
</section>
|
|
<section id="TextStream">
|
|
<paragraph role="paragraph" id="par_id791606151259895" localize="false">TextStream class Service</paragraph>
|
|
</section>
|
|
<section id="Timer">
|
|
<embed href="text/sbasic/shared/03/sf_timer.xhp#abstract"/>
|
|
</section>
|
|
<section id="UI">
|
|
<embed href="text/sbasic/shared/03/sf_ui.xhp#abstract"/>
|
|
</section>
|
|
<comment>Restricted use for SF_Root, SF_Utils modules as well as internal methods</comment>
|
|
<paragraph role="paragraph" id="par_id331608220104798"><emph>Note:</emph> Other <literal>ScriptForge</literal> undescribed modules are reserved for internal use. Their content is subject to change without notice.</paragraph>
|
|
<section id="SF_InternalUse">
|
|
<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.</warning>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|