source/text/sbasic/shared/03131600.xhp             |    5 +++--
 source/text/sbasic/shared/CreateUnoSvcWithArgs.xhp |    4 +++-
 2 files changed, 6 insertions(+), 3 deletions(-)

New commits:
commit d80c8eab1992dd82a197755e9c8e5c35eaff1be5
Author:     Alain Romedenne <alain.romede...@libreoffice.org>
AuthorDate: Thu Mar 20 09:11:05 2025 +0100
Commit:     Alain Romedenne <alain.romede...@libreoffice.org>
CommitDate: Thu Mar 20 14:26:16 2025 +0100

    Code sample fix
    
    Change-Id: I3150817f6ba40184f84f9fdaa743dc2c8435789c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/183149
    Tested-by: Jenkins
    Reviewed-by: Alain Romedenne <alain.romede...@libreoffice.org>

diff --git a/source/text/sbasic/shared/03131600.xhp 
b/source/text/sbasic/shared/03131600.xhp
index 5cffdfadaf..6a7ad4dee0 100644
--- a/source/text/sbasic/shared/03131600.xhp
+++ b/source/text/sbasic/shared/03131600.xhp
@@ -54,7 +54,7 @@
 <bookmark xml-lang="en-US" branch="index" id="bm_id8334604">
 <bookmark_value>filepicker;API service</bookmark_value>
 </bookmark>
-<paragraph id="par_idN10625" role="paragraph" xml-lang="en-US">The following 
code uses the service <literal>com.sun.star.ui.dialogs.FilePicker</literal> to 
show a file open dialog:</paragraph>
+<paragraph id="par_idN10625" role="paragraph" xml-lang="en-US">The following 
code uses the service <literal>com.sun.star.ui.dialogs.FilePicker</literal> to 
show an open file dialog:</paragraph>
 <bascode>
 <paragraph id="par_idm1206777616" role="bascode" localize="false">Sub 
Main</paragraph>
 <paragraph id="par_idN1062B" role="bascode" xml-lang="en-US">    fName = 
FileOpenDialog ("Please select a file")</paragraph>
@@ -65,11 +65,12 @@
 <paragraph id="bas_id11593417954966" role="bascode" localize="false">    res = 
com.sun.star.ui.dialogs.ExecutableDialogResults</paragraph>
 <paragraph id="par_idm1206770832" role="bascode" localize="false">    
filepicker = CreateUnoService("com.sun.star.ui.dialogs.FilePicker")</paragraph>
 <paragraph id="par_idm1206769648" role="bascode" localize="false">    
filepicker.Title = title</paragraph>
+<paragraph id="par_idm1217869648" role="bascode" localize="false">    
filepicker.MultiSelectionMode = True</paragraph>
 <paragraph id="par_idm1206768496" role="bascode" localize="false">    If 
res.OK = filepicker.execute() Then </paragraph>
 <paragraph id="par_idm1206767344" role="bascode" localize="false">        
files = filepicker.getSelectedFiles()</paragraph>
 <paragraph id="par_idm1206766192" role="bascode" localize="false">        
FileOpenDialog=files(0)</paragraph>
 <paragraph id="bas_id11593417954" role="bascode" localize="false">    
EndIf</paragraph>
-<paragraph id="par_idm1206765040" role="bascode" localize="false">End Function 
' Main</paragraph>
+<paragraph id="par_idm1206765040" role="bascode" localize="false">End Function 
' FileOpenDialog</paragraph>
 </bascode>
 <section id="relatedtopics">
     <embed 
href="text/sbasic/shared/CreateUnoSvcWithArgs.xhp#UnoSvcWithArgs_h1"/>
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">

Reply via email to