[Libreoffice-commits] help.git: source/text
Olivier Hallot (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 20 14:32:34 UTC 2021
source/text/sbasic/shared/03131600.xhp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 6d7110084bb66a1b2d3afce9567a83be58642e8f
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
AuthorDate: Mon Sep 20 11:19:41 2021 -0300
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Mon Sep 20 16:32:14 2021 +0200
Mute l10n on Basic instructions
Change-Id: I389e49ed5ca19047d13e691057bd5c5edcc30ee2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122365
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/source/text/sbasic/shared/03131600.xhp b/source/text/sbasic/shared/03131600.xhp
index 7342c9cd2..bf62e3df4 100644
--- a/source/text/sbasic/shared/03131600.xhp
+++ b/source/text/sbasic/shared/03131600.xhp
@@ -39,13 +39,13 @@
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<paragraph role="paragraph" id="par_id891561653344669">The example below creates the function <literal>FileExists</literal> that uses the service <literal>com.sun.star.ucb.SimpleFileAccess</literal> to test if a given path is an existing file.</paragraph>
<bascode>
- <paragraph role="bascode" id="bas_id901629989240801">Function FileExists(sPath as String) as Boolean</paragraph>
- <paragraph role="bascode" id="bas_id361629989241073"> Dim svcSFA as Object</paragraph>
- <paragraph role="bascode" id="bas_id461629989241289"> Set svcSFA = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")</paragraph>
- <paragraph role="bascode" id="bas_id441629989241521"> Dim bExists as Boolean : bExists = svcSFA.exists(sPath)</paragraph>
- <paragraph role="bascode" id="bas_id651629989241801"> Dim bIsFolder as Boolean : bIsFolder = svcSFA.IsFolder(sPath)</paragraph>
- <paragraph role="bascode" id="bas_id521629989242114"> FileExists = bExists And Not bIsFolder</paragraph>
- <paragraph role="bascode" id="bas_id211629989242416">End Function</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id901629989240801">Function FileExists(sPath as String) as Boolean</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id361629989241073"> Dim svcSFA as Object</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id461629989241289"> Set svcSFA = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id441629989241521"> Dim bExists as Boolean : bExists = svcSFA.exists(sPath)</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id651629989241801"> Dim bIsFolder as Boolean : bIsFolder = svcSFA.IsFolder(sPath)</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id521629989242114"> FileExists = bExists And Not bIsFolder</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id211629989242416">End Function</paragraph>
</bascode>
<tip id="par_id351629989310797">UNO services have an extensive online documentation in the <link href="https://api.libreoffice.org/" name="API_Website">api.libreoffice.org</link> website. Visit the <link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1ucb_1_1SimpleFileAccess.html" name="SimpleFileAccess_Page">SimpleFileAccess Service</link> reference page to learn more about the methods provided by the service used in the example above.</tip>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
More information about the Libreoffice-commits
mailing list