source/text/sbasic/shared/03/sf_dictionary.xhp |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 8e0e8633018698b124deb530169ddc73f00cc1b6
Author:     Stanislav Horacek <stanislav.hora...@gmail.com>
AuthorDate: Sun Jan 9 15:17:58 2022 +0100
Commit:     Rafael Lima <rafael.palma.l...@gmail.com>
CommitDate: Tue Jan 11 18:34:45 2022 +0100

    corrections to ScriptForge Dictionary page
    
    * Item returns Empty if key does not exist, no error is raised
    * replaced LibreOffice by %PRODUCTNAME
    * use the same capitalization of PropertyValue as in other places
    
    Change-Id: I45f9cfa873e0931a9bdf35d54a63b7591721e221
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128190
    Tested-by: Jenkins
    Reviewed-by: Rafael Lima <rafael.palma.l...@gmail.com>

diff --git a/source/text/sbasic/shared/03/sf_dictionary.xhp 
b/source/text/sbasic/shared/03/sf_dictionary.xhp
index c05c13d90..7d94a6c9f 100644
--- a/source/text/sbasic/shared/03/sf_dictionary.xhp
+++ b/source/text/sbasic/shared/03/sf_dictionary.xhp
@@ -279,7 +279,7 @@
     <paragraph role="pycode" localize="false" id="pyc_id171626700586634">sfDic 
= CreateScriptService("Dictionary", myDict)</paragraph>
     <paragraph role="pycode" localize="false" id="pyc_id251626700586818">prop 
= sfDic.ConvertToPropertyValues()</paragraph>
   </pycode>
-  <tip id="par_id421610393306916">Many services and methods in the UNO library 
take in parameters represented using the <literal>PropertyValue</literal> 
struct, which is part of the LibreOffice API.</tip>
+  <tip id="par_id421610393306916">Many services and methods in the UNO library 
take in parameters represented using the <literal>PropertyValue</literal> 
struct, which is part of the %PRODUCTNAME API.</tip>
 </section>
 
 <section id="Exists">
@@ -351,7 +351,7 @@
     <input>dict.ImportFromPropertyValues(propertyvalues: obj[0..*], overwrite: 
bool = False): bool</input>
   </paragraph>
   <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-  <paragraph role="paragraph" 
id="par_id751588941968522"><emph>propertyvalues</emph>: A zero-based 
1-dimensional array containing 
<literal>com.sun.star.beans.PropertyValue</literal> objects. This parameter may 
also be a single <literal>propertyvalue</literal> object not contained in an 
Array.</paragraph>
+  <paragraph role="paragraph" 
id="par_id751588941968522"><emph>propertyvalues</emph>: A zero-based 
1-dimensional array containing 
<literal>com.sun.star.beans.PropertyValue</literal> objects. This parameter may 
also be a single <literal>PropertyValue</literal> object not contained in an 
Array.</paragraph>
   <paragraph role="paragraph" 
id="par_id21588941968131"><emph>overwrite</emph>: When <literal>True</literal>, 
entries with same name may exist in the dictionary and their values are 
overwritten. When <literal>False</literal> (default), repeated keys will raise 
an error. Note that dictionary keys are not case-sensitive in Basic, whereas 
names are case-sensitive in sets of property values and in Python 
dictionaries.</paragraph>
   <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
   <paragraph role="paragraph" id="par_id641626703615898">The examples below 
first create an array with two <literal>PropertyValue</literal> objects and 
then convert it to a dictionary.</paragraph>
@@ -406,7 +406,7 @@
     <input>dict.Item(key: str): any</input>
   </paragraph>
   <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-  <paragraph role="paragraph" id="par_id551582890399669"><emph>key</emph>: Not 
case-sensitive. Must exist in the dictionary, otherwise an 
<literal>UNKNOWNKEYERROR</literal> error is raised.</paragraph>
+  <paragraph role="paragraph" id="par_id551582890399669"><emph>key</emph>: Not 
case-sensitive. If it does not exist, <literal>Empty</literal> value is 
returned.</paragraph>
   <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
   <paragraph role="paragraph" id="par_id181610395933967">The following example 
iterates over all keys in the dictionary and uses the <literal>Item</literal> 
method to access their values.</paragraph>
   <bascode>

Reply via email to