source/text/sbasic/shared/03131600.xhp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
New commits: commit c4c2ae468886b8a38465b9969d8293b677672481 Author: Alain Romedenne <libreoffici...@sfr.fr> AuthorDate: Wed Jun 17 14:57:20 2020 +0200 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Wed Jun 17 23:58:49 2020 +0200 fix to deprecated API example cf. https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1ui_1_1dialogs_1_1XFilePicker.html#ae368e8b36ffdb8f8f7ba45d93556a60d Change-Id: Ie25dd20111eff943a729cc8c13ce2febd3368811 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96506 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/source/text/sbasic/shared/03131600.xhp b/source/text/sbasic/shared/03131600.xhp index b0c499b8c..1d168f8a4 100644 --- a/source/text/sbasic/shared/03131600.xhp +++ b/source/text/sbasic/shared/03131600.xhp @@ -17,14 +17,12 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> - <meta> <topic id="textsbasicshared03131600xml" indexer="include" status="PUBLISH"> <title id="tit" xml-lang="en-US">CreateUnoService Function</title> <filename>/text/sbasic/shared/03131600.xhp</filename> </topic> </meta> - <body> <section id="createunoservice"> <bookmark xml-lang="en-US" branch="index" id="bm_id3150682"> @@ -32,16 +30,12 @@ <bookmark_value>API;FilePicker</bookmark_value> <bookmark_value>API;FunctionAccess</bookmark_value> </bookmark> - <h1 id="hd_id3150682"><variable id="createunoserviceh1"><link href="text/sbasic/shared/03131600.xhp" name="CreateUnoService Function">CreateUnoService Function</link></variable></h1> <paragraph id="par_id3152924" role="paragraph" xml-lang="en-US">Instantiates a Uno service with the ProcessServiceManager.</paragraph> </section> - <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> <paragraph id="par_id3153346" role="code" xml-lang="en-US">oService = CreateUnoService( Uno service name )</paragraph> - <paragraph id="par_idN1060F" role="paragraph" xml-lang="en-US">For a list of available services, go to: <link href="https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star.html" name="api.libreoffice.org com::sun::star Module Reference">https://api.libreoffice.org/docs/idl/ref/namespacecom_1_1sun_1_1star.html</link></paragraph> - <embed href="text/sbasic/shared/00000003.xhp#functexample"/> <bookmark xml-lang="en-US" branch="index" id="bm_id731561653332192"> <bookmark_value>Calc functions;API Service</bookmark_value> @@ -74,7 +68,7 @@ <paragraph id="par_idm1206770832" role="bascode" localize="false" xml-lang="en-US"> filepicker = createUnoService("com.sun.star.ui.dialogs.FilePicker")</paragraph> <paragraph id="par_idm1206769648" role="bascode" localize="false" xml-lang="en-US"> filepicker.Title = title</paragraph> <paragraph id="par_idm1206768496" role="bascode" localize="false" xml-lang="en-US"> filepicker.execute()</paragraph> -<paragraph id="par_idm1206767344" role="bascode" localize="false" xml-lang="en-US"> files = filepicker.getFiles()</paragraph> +<paragraph id="par_idm1206767344" role="bascode" localize="false" xml-lang="en-US"> files = filepicker.getSelectedFiles()</paragraph> <paragraph id="par_idm1206766192" role="bascode" localize="false" xml-lang="en-US"> FileOpenDialog=files(0)</paragraph> <paragraph id="par_idm1206765040" role="bascode" localize="false" xml-lang="en-US">End Function</paragraph> </bascode> @@ -82,4 +76,4 @@ <embed href="text/sbasic/shared/calc_functions.xhp#CallingCalcFunctionsh1"/> </section> </body> -</helpdocument> +</helpdocument> \ No newline at end of file _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits