summaryrefslogtreecommitdiff
path: root/source/text/sbasic
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@edx.srv.br>2015-08-31 07:09:53 -0300
committerCaolán McNamara <caolanm@redhat.com>2015-08-31 10:11:49 +0000
commitbce98cd0f5446b99a1258eee3138c13469ec510a (patch)
treebc3aff61bd90e8a8654d38ba6476905f179a4a15 /source/text/sbasic
parent550b03030e494f8c0fd1161cbdeea3d8e5b954e5 (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/text/sbasic')
-rw-r--r--source/text/sbasic/shared/code-stubs.xhp12
1 files changed, 12 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