1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <office:document xmlns:
office=
"urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:
ooo=
"http://openoffice.org/2004/office" xmlns:
table=
"urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:
script=
"urn:oasis:names:tc:opendocument:xmlns:script:1.0" office:
version=
"1.3" office:
mimetype=
"application/vnd.oasis.opendocument.spreadsheet">
5 <office:script script:
language=
"ooo:Basic">
7 <ooo:library-embedded ooo:
name=
"Standard">
8 <ooo:module ooo:
name=
"Module1">
9 <ooo:source-code>REM ***** BASIC *****
12 script = ThisComponent.scriptProvider.getScript(
"vnd.sun.star.script:Standard.Module1.S_Ref_Long?language=Basic
&location=document
")
13 ret = script.invoke(Array(
1), Array(), Array())
15 script = ThisComponent.scriptProvider.getScript(
"vnd.sun.star.script:Standard.Module1.S_Ref_Dbl?language=Basic
&location=document
")
16 ret = ret
& "/
" & script.invoke(Array(
2), Array(), Array())
21 Function S_Ref_Long(n As Long)
22 S_Ref_Long = CStr(n)
& " " & TypeName(n)
25 Function S_Ref_Dbl(n As Double)
26 S_Ref_Dbl = CStr(n)
& " " & TypeName(n)
32 </ooo:library-embedded>
38 <table:table table:
name=
"Sheet1"/>