diff options
author | Olivier Hallot <olivier.hallot@edx.srv.br> | 2015-08-31 07:09:53 -0300 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-31 10:11:49 +0000 |
commit | bce98cd0f5446b99a1258eee3138c13469ec510a (patch) | |
tree | bc3aff61bd90e8a8654d38ba6476905f179a4a15 /source | |
parent | 550b03030e494f8c0fd1161cbdeea3d8e5b954e5 (diff) |
Add example to Basic IDE Options help page
Change-Id: I387ad0c22972392cd5eb1c865e59e94456395d9b
Reviewed-on: https://gerrit.libreoffice.org/18164
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'source')
-rw-r--r-- | source/text/sbasic/shared/code-stubs.xhp | 12 | ||||
-rw-r--r-- | source/text/shared/optionen/BasicIDE.xhp | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source/text/sbasic/shared/code-stubs.xhp b/source/text/sbasic/shared/code-stubs.xhp index efbb0ab83e..5425a87b5b 100644 --- a/source/text/sbasic/shared/code-stubs.xhp +++ b/source/text/sbasic/shared/code-stubs.xhp @@ -41,6 +41,18 @@ <paragraph id="hd_id1000030" role="bascode" xml-lang="en-US" localize="false">Dim intVar as Integer</paragraph> </bascode> </section> +<section id="BasicIDEOption04"> + <bascode> + <paragraph id="hd_id10000400" role="bascode" xml-lang="en-US" localize="false">Sub Some_Calc_UNO_Types</paragraph> + <paragraph id="hd_id10000410" role="bascode" xml-lang="en-US" localize="true">REM A spreadsheet object</paragraph> + <paragraph id="hd_id10000420" role="bascode" xml-lang="en-US" localize="false"> Dim oSheet As com.sun.star.sheet.XSpreadsheet</paragraph> + <paragraph id="hd_id10000430" role="bascode" xml-lang="en-US" localize="false"> oSheet = ThisComponent.getSheets().getByIndex(0)</paragraph> + <paragraph id="hd_id10000470" role="bascode" xml-lang="en-US" localize="true">REM A cell object</paragraph> + <paragraph id="hd_id10000480" role="bascode" xml-lang="en-US" localize="false"> Dim oCell As com.sun.star.table.XCell</paragraph> + <paragraph id="hd_id10000490" role="bascode" xml-lang="en-US" localize="false"> oCell = oSheet.getCellByPosition(0,0)</paragraph> + <paragraph id="hd_id10000500" role="bascode" xml-lang="en-US" localize="false">End Sub</paragraph> + </bascode> +</section> </body> </helpdocument>
\ No newline at end of file diff --git a/source/text/shared/optionen/BasicIDE.xhp b/source/text/shared/optionen/BasicIDE.xhp index a4b4e913f2..bc70137124 100644 --- a/source/text/shared/optionen/BasicIDE.xhp +++ b/source/text/shared/optionen/BasicIDE.xhp @@ -81,6 +81,8 @@ <paragraph id="hd_id2507201509433456" role="heading" xml-lang="en-US" level="3">Use extended types</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 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_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> <section id="relatedtopics"> |