forked from amazingfate/help
Mute L10n in some Basic code lines
Change-Id: Idbaf2b44d4c7a6220aea66d75c00f36053a22f31 Reviewed-on: https://gerrit.libreoffice.org/82193 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
@ -60,10 +60,10 @@
|
||||
<h2 id="N0463">Executing Python Scripts</h2>
|
||||
<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" localize="false" 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>
|
||||
<paragraph role="paragraph" id="N0467"><literal>file_len = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
|
||||
<paragraph role="paragraph" id="N0468"><literal>normalizedPath = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0467"><literal>file_len = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0468"><literal>normalizedPath = script.invoke(Array(systemFilePath), Array(), Array())</literal></paragraph>
|
||||
<h3 id="N0469">Embedded Scripts Examples</h3>
|
||||
<paragraph role="paragraph" id="N0470">Below <literal>ComputerName</literal>, and <literal>GetFilelen</literal> routines are calling their Python counterparts, using aforementioned <literal>GetPythonScript</literal> function. Exception handling is not detailed.</paragraph>
|
||||
<bascode>
|
||||
@ -102,7 +102,7 @@
|
||||
</bascode>
|
||||
<paragraph role="paragraph" id="N0503">Two different Python modules are called. They can either be embedded in the current document, either be stored on the file system. Argument type checking is skipped for clarity:</paragraph>
|
||||
<list type="unordered">
|
||||
<listitem><paragraph role="paragraph" id="N0504">Platform.py</paragraph></listitem>
|
||||
<listitem><paragraph localize="false" role="paragraph" id="N0504">Platform.py</paragraph></listitem>
|
||||
</list>
|
||||
<pycode>
|
||||
<paragraph role="pycode" localize="false" id="N0505"># -*- coding: utf-8 -*-</paragraph>
|
||||
@ -117,7 +117,7 @@
|
||||
<paragraph role="pycode" localize="false" id="N0514"> return platform.system()</paragraph>
|
||||
</pycode>
|
||||
<list type="unordered">
|
||||
<listitem><paragraph role="paragraph" id="N0515">Os/Path.py</paragraph></listitem>
|
||||
<listitem><paragraph localize="false" role="paragraph" id="N0515">Os/Path.py</paragraph></listitem>
|
||||
</list>
|
||||
<pycode>
|
||||
<paragraph role="pycode" localize="false" id="N0516"># -*- coding: utf-8 -*-</paragraph>
|
||||
@ -146,7 +146,7 @@
|
||||
<paragraph role="bascode" localize="false" id="N0537">End Property ' OSName</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0538"> </paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0539">Private Sub HelloWorld()</paragraph>
|
||||
<paragraph role="bascode" id="N0540"> '''LibreOffice Python shared sample'''</paragraph>
|
||||
<paragraph role="bascode" id="N0540"> '''%PRODUCTNAME Python shared sample'''</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0541"> scr = GetPythonScript("HelloWorld.py$HelloWorldPython", Script.ISSHARED)</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0542"> scr.invoke(Array(), Array(), Array(),)</paragraph>
|
||||
<paragraph role="bascode" localize="false" id="N0543">End Sub ' HelloWorld</paragraph>
|
||||
|
||||
Reference in New Issue
Block a user