summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStéphane Guillou <stephane.guillou@libreoffice.org>2023-11-29 09:31:07 +0100
committerOlivier Hallot <olivier.hallot@libreoffice.org>2023-11-29 12:42:35 +0100
commit0f2ed56c7a3e1b11a2498b62fa14fa596438b3c8 (patch)
tree103f0f8b09c6135130a1a555b17246d3e65e0938
parent751a65e5be60a35ae970b3a66b2038d90ea580e4 (diff)
Code Completion requires Use Extended Types
even though it is mentioned in the last section. Also, fix two typos. Change-Id: I2ccc2b6f1cd5bab7975ae151a29b7477af8e3c83 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/160033 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
-rw-r--r--source/text/shared/optionen/BasicIDE.xhp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/text/shared/optionen/BasicIDE.xhp b/source/text/shared/optionen/BasicIDE.xhp
index 99857f978f..92b287416b 100644
--- a/source/text/shared/optionen/BasicIDE.xhp
+++ b/source/text/shared/optionen/BasicIDE.xhp
@@ -49,7 +49,7 @@
<paragraph id="par_id2607201514295746" role="paragraph" xml-lang="en-US">This feature helps the Basic programmer to complete the code, saves extensive typing and helps to reduce coding errors.</paragraph>
<h3 id="par_id2507201509433497">Enable code completion</h3>
-<paragraph id="par_id2507201509570245" role="paragraph" xml-lang="en-US"><ahelp hid="cui/ui/optbasicidepage/codecomplete_enable">Display methods of a Basic object.</ahelp> Code completion will display the methods of a Basic object, provided the object is a UNO extended type. Its does not work on a generic <item type="literal">Object</item> or <item type="literal">Variant</item> Basic types.</paragraph>
+<paragraph id="par_id2507201509570245" role="paragraph" xml-lang="en-US"><ahelp hid="cui/ui/optbasicidepage/codecomplete_enable">Display methods of a Basic object.</ahelp> Code completion will display the methods of a Basic object, provided the object is a UNO extended type, and the option "Use extended types" is also on. It does not work on a generic <item type="literal">Object</item> or <item type="literal">Variant</item> Basic types.</paragraph>
<paragraph id="par_id2507201516150454" role="paragraph" xml-lang="en-US">When a variable is a UNO interface or structure, a list box appears when pressing the dot after a variable's name (like <item type="literal">aVar.</item> [list box appears] ). Its methods and variables are listed in the list box, displayed just below. You can navigate between the suggested methods and variables with the arrow keys. To insert the selected entry, press the <item type="keycode">Enter</item> key or double click on it with the mouse. To cancel the list box, press the <item type="keycode">Esc</item> key.</paragraph>
<paragraph id="par_id2507201516150494" role="paragraph" xml-lang="en-US">When typing the method's name, and pressing the <item type="keycode">Tab</item> key once, it will complete the selected entry, pressing the Tab key again will cycle through the matches with the longest prefix. For example, when <item type="literal">aVar.aMeth</item> is typed, it will cycle through <item type="literal">aMeth1, aMethod2, aMethod3</item> entries, and other entries are not hidden.</paragraph>
<paragraph id="par_id2507201516150482" role="paragraph" xml-lang="en-US">Example:</paragraph>
@@ -81,7 +81,7 @@
<h2 id="hd_id2507201509433412">Language Features</h2>
<h3 id="hd_id2507201509433456">Use extended types</h3>
-<paragraph id="par_id2507201516150463" role="paragraph" xml-lang="en-US"><ahelp hid="cui/ui/optbasicidepage/extendedtypes_enable">Allow UNO object types as valid Basic types.</ahelp> This feature extend the Basic programming language standard types with the %PRODUCTNAME UNO types. This allows the programmer to define variables with the right UNO type and is necessary for the code completion feature.</paragraph>
+<paragraph id="par_id2507201516150463" role="paragraph" xml-lang="en-US"><ahelp hid="cui/ui/optbasicidepage/extendedtypes_enable">Allow UNO object types as valid Basic types.</ahelp> This feature extends the Basic programming language standard types with the %PRODUCTNAME UNO types. This allows the programmer to define variables with the right UNO type and is necessary for the code completion feature.</paragraph>
<paragraph id="par_id2507201516150472" role="paragraph" xml-lang="en-US">Example: </paragraph>
<embed href="text/sbasic/shared/code-stubs.xhp#BasicIDEOption04"/>
<paragraph id="par_id2507201516150422" role="warning" xml-lang="en-US">The use of UNO Extended Types in Basic programs can restrain interoperability of the program when executed in other office suites.</paragraph>