source/text/sbasic/shared/code-stubs.xhp | 12 ++++++++++++ source/text/shared/optionen/BasicIDE.xhp | 2 ++ 2 files changed, 14 insertions(+)
New commits: commit bce98cd0f5446b99a1258eee3138c13469ec510a Author: Olivier Hallot <olivier.hal...@edx.srv.br> Date: Mon Aug 31 07:09:53 2015 -0300 Add example to Basic IDE Options help page Change-Id: I387ad0c22972392cd5eb1c865e59e94456395d9b Reviewed-on: https://gerrit.libreoffice.org/18164 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/source/text/sbasic/shared/code-stubs.xhp b/source/text/sbasic/shared/code-stubs.xhp index efbb0ab..5425a87 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 a4b4e91..bc70137 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">
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits