summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp
diff options
context:
space:
mode:
authorAlain Romedenne <alain.romedenne@libreoffice.org>2025-03-20 09:11:05 +0100
committerAlain Romedenne <alain.romedenne@libreoffice.org>2025-03-20 14:26:16 +0100
commitd80c8eab1992dd82a197755e9c8e5c35eaff1be5 (patch)
treed210242a5e43a9bbd31beaaa0d9052be189b31ee /source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp
parente187e1497fe9c9dc8f8a5d6380e63604e228bbb1 (diff)
Code sample fix
Change-Id: I3150817f6ba40184f84f9fdaa743dc2c8435789c Reviewed-on: https://gerrit.libreoffice.org/c/help/+/183149 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Diffstat (limited to 'source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp')
-rw-r--r--source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp b/source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp
index 4494038244..611f04e462 100644
--- a/source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp
+++ b/source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp
@@ -44,7 +44,7 @@
<paragraph role="paragraph" id="par_id311666942529939">An instance of the given UNO service name, otherwise <literal>Null</literal> value.</paragraph>
<note id="par_id921629989537850">For a list of available services, visit the <link href="https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star.html">com::sun::star Module</link> reference page.</note>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
- <paragraph role="paragraph" id="par_id891561653344669">The <literal>com.sun.star.ui.dialogs.FilePicker</literal> example below displays a <emph>Save As</emph> dialog with two extra controls: a listbox and a checkbox.</paragraph>
+ <paragraph role="paragraph" id="par_id891561653344669">The <literal>com.sun.star.ui.dialogs.FilePicker</literal> example below displays a built-in %PRODUCTNAME <emph>Save As</emph> dialog with two extra controls: a listbox and a checkbox.</paragraph>
<bascode>
<paragraph role="bascode" localize="false" id="bas_id901629989240801">Sub FileSaveAsDialog()</paragraph>
<paragraph role="bascode" localize="false" id="bas_id361629989241073"> td = com.sun.star.ui.dialogs.TemplateDescription</paragraph>
@@ -52,8 +52,10 @@
<paragraph role="bascode" localize="false" id="bas_id441629989241521"> dlg = CreateUnoServiceWithArguments( _</paragraph>
<paragraph role="bascode" localize="false" id="bas_id651629989241801"> "com.sun.star.ui.dialogs.FilePicker", _</paragraph>
<paragraph role="bascode" localize="false" id="bas_id521629989242114"> Array(options))</paragraph>
+ <paragraph role="bascode" localize="false" id="bas_id151742458430017"> dlg.execute()</paragraph>
<paragraph role="bascode" localize="false" id="bas_id211629989242416">End Sub ' FileSaveAsDialog</paragraph>
</bascode>
+ <embed href="text/shared/01/01020000.xhp#fpUserPreferences"/>
<tip id="par_id351629989310797">UNO services have an extensive online documentation in the <link href="https://api.libreoffice.org/">api.libreoffice.org</link> website. Visit the <link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1ui_1_1dialogs_1_1FilePicker.html">FilePicker 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"/>
<bookmark xml-lang="en-US" branch="index" id="bm_id8334604">