<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=G11nAutomation</id>
	<title>Apache OpenOffice Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openoffice.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=G11nAutomation"/>
	<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/wiki/Special:Contributions/G11nAutomation"/>
	<updated>2026-11-07T11:42:15Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/&amp;diff=143746</id>
		<title>G11ntest/Documentation/BASIC Guide/</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/&amp;diff=143746"/>
		<updated>2009-10-21T14:45:05Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= 英语 =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= 德语 =&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Boolean&amp;diff=143745</id>
		<title>G11ntest/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Boolean&amp;diff=143745"/>
		<updated>2009-10-21T14:45:00Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:布尔变量}}&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Arrays&amp;diff=143744</id>
		<title>G11ntest/Documentation/BASIC Guide/Arrays</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Arrays&amp;diff=143744"/>
		<updated>2009-10-21T14:44:54Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Scope of Variables&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Arrays}}&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray(3)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MyArray(0)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyArray(1)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyArray(2)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyArray(3)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyInteger(3) As Integer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyInteger(5 To 10) As Integer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyInteger(-10 To -5) As Integer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim s(-53000 to 89000) As String&lt;br /&gt;
s(-52000) = &amp;quot;aa&amp;quot;&lt;br /&gt;
s(79999) = &amp;quot;bb&amp;quot;&lt;br /&gt;
print s(-52000), s(79999)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Option Base 1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Option Base 1&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Option Base 1&lt;br /&gt;
&amp;#039; ...&lt;br /&gt;
Dim MyInteger(3)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;MyInteger(1)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyInteger(2)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyInteger(3)&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;MyInteger(4)&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|{{OOo}}&amp;lt;tt&amp;gt;Option Base 1&amp;lt;/tt&amp;gt;{{OOo}}&amp;lt;tt&amp;gt;MyInteger(3)&amp;lt;/tt&amp;gt;{{OOo}}&amp;lt;tt&amp;gt;Option Compatible&amp;lt;/tt&amp;gt;{{OOo}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyIntArray(5, 5) As Integer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ReDim MyArray(10)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|&amp;lt;tt&amp;gt;Dim MyArray()&amp;lt;/tt&amp;gt;{{OOo}}&amp;lt;tt&amp;gt;ReDim&amp;lt;/tt&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray(4) As Integer &amp;#039; Declaration with five elements &lt;br /&gt;
&amp;#039; ...&lt;br /&gt;
ReDim MyArray(10) As Integer &amp;#039; Increase to 11 elements&lt;br /&gt;
&amp;#039; ... &lt;br /&gt;
ReDim MyArray(20) As Integer &amp;#039; Increase to 21 elements&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Preserve&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray(10) As Integer &amp;#039; Defining the initial &lt;br /&gt;
&amp;#039; dimensions&lt;br /&gt;
&amp;#039; ... &lt;br /&gt;
ReDim Preserve MyArray(20) As Integer &amp;#039; Increase in &lt;br /&gt;
&amp;#039; data field, while&lt;br /&gt;
&amp;#039; retaining content&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Preserve&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|&amp;lt;tt&amp;gt;Preserve&amp;lt;/tt&amp;gt;{{OOo}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;ReDim&amp;lt;/tt&amp;gt;&amp;lt;tt&amp;gt;Preserve&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray(10) As Integer&lt;br /&gt;
&amp;#039; ... some instructions&lt;br /&gt;
Dim n As Integer&lt;br /&gt;
n = 47 &amp;#039; could be the result of a computation&lt;br /&gt;
Redim MyArray(n) As Integer&lt;br /&gt;
MsgBox(LBound(MyArray))  &amp;#039; displays : 0&lt;br /&gt;
MsgBox(UBound(MyArray))  &amp;#039; displays : 47&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray(10, 13 to 28) As Integer&lt;br /&gt;
MsgBox(LBound(MyArray, 2))  &amp;#039; displays : 13&lt;br /&gt;
MsgBox(UBound(MyArray, 2))  &amp;#039; displays : 28&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim s() As String &amp;#039; declare an empty array&lt;br /&gt;
&amp;#039; --- later in the program ...&lt;br /&gt;
Redim s(13) As String&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyArray() As Integer&lt;br /&gt;
MsgBox(LBound(MyArray))  &amp;#039; displays : 0&lt;br /&gt;
MsgBox(UBound(MyArray))  &amp;#039; displays : -1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/API_Intro&amp;diff=143743</id>
		<title>G11ntest/Documentation/BASIC Guide/API Intro</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/API_Intro&amp;diff=143743"/>
		<updated>2009-10-21T14:44:47Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Other Functions (Runtime Library)&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/UNO&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:{{OOo}}}}&lt;br /&gt;
 &lt;br /&gt;
{{OOo}}{{OOo}}{{OOo}}{{OOo}}&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Branching&amp;diff=143742</id>
		<title>G11ntest/Documentation/BASIC Guide/Branching</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide/Branching&amp;diff=143742"/>
		<updated>2009-10-21T14:44:39Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Branching}}&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Operators&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Loops&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
使用分支语句可以限制执行代码块,直到特定条件满足。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;tt&amp;gt;If...Then...Else&amp;lt;/tt&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
最常用的分支语句是 &amp;lt;tt&amp;gt;If&amp;lt;/tt&amp;gt; 语句中所示: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
If A &amp;gt; 3 Then&lt;br /&gt;
  B = 2&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
} &amp;lt;tt&amp;gt;B = 2&amp;lt;/tt&amp;gt; 指定仅发生在变量 &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; 大于3。 的变体 &amp;lt;tt&amp;gt;If&amp;lt;/tt&amp;gt; 语句是 &amp;lt;tt&amp;gt;If/Else&amp;lt;/tt&amp;gt; 子句: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
If A &amp;gt; 3 Then&lt;br /&gt;
  B = 2&lt;br /&gt;
Else&lt;br /&gt;
  B = 0&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在本例中,变量 &amp;lt;tt&amp;gt;B&amp;lt;/tt&amp;gt; 的值被指定为2时 &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; 大于3,否则 &amp;lt;tt&amp;gt;B&amp;lt;/tt&amp;gt; 的值被指定为0。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
对于更复杂语句,可以级联的 &amp;lt;tt&amp;gt;If&amp;lt;/tt&amp;gt; 语句,例如: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
If A = 0 Then&lt;br /&gt;
  B = 0&lt;br /&gt;
ElseIf A &amp;lt; 3 Then&lt;br /&gt;
  B = 1&lt;br /&gt;
Else &lt;br /&gt;
  B = 2&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
如果该值的变量 &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; 等于零, &amp;lt;tt&amp;gt;B&amp;lt;/tt&amp;gt; 的值指定为0。 如果 &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; 小于3(但不等于0),则 &amp;lt;tt&amp;gt;B&amp;lt;/tt&amp;gt; 的值指定为1。 在所有其他情况下(也就是说,如果 &amp;lt;tt&amp;gt;A&amp;lt;/tt&amp;gt; 大于或等于3) &amp;lt;tt&amp;gt;B&amp;lt;/tt&amp;gt; 的值指定为2。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
一个全面,声明可写在单一行,并使用一种简单语法。 第一个例子此页面可以写成: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
If A &amp;gt; 3 Then  B = 2&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
第二个示例,此页面可以写成: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
If A &amp;gt; 3 Then  B = 2  Else  B = 0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;tt&amp;gt;Select...Case&amp;lt;/tt&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
该 &amp;lt;tt&amp;gt;Select...Case&amp;lt;/tt&amp;gt; 指令可替代级联 &amp;lt;tt&amp;gt;If&amp;lt;/tt&amp;gt; 语句,它用于需要来检查某个值按照各种条件: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Select Case DayOfWeek&lt;br /&gt;
  Case 1:&lt;br /&gt;
    NameOfWeekday = &amp;quot;Sunday&amp;quot;&lt;br /&gt;
  Case 2: &lt;br /&gt;
    NameOfWeekday = &amp;quot;Monday&amp;quot;&lt;br /&gt;
  Case 3: &lt;br /&gt;
    NameOfWeekday = &amp;quot;Tuesday&amp;quot;&lt;br /&gt;
  Case 4:&lt;br /&gt;
    NameOfWeekday = &amp;quot;Wednesday&amp;quot;&lt;br /&gt;
  Case 5:&lt;br /&gt;
    NameOfWeekday = &amp;quot;Thursday&amp;quot;&lt;br /&gt;
  Case 6:&lt;br /&gt;
    NameOfWeekday = &amp;quot;Friday&amp;quot;&lt;br /&gt;
  Case 7:&lt;br /&gt;
    NameOfWeekday = &amp;quot;Saturday&amp;quot;&lt;br /&gt;
End Select&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在本示例中,名称工作日都对应一个数字,因此,该 &amp;lt;tt&amp;gt;DayOfWeek&amp;lt;/tt&amp;gt; 变量的值指定为1用于 &amp;lt;tt&amp;gt;Sunday&amp;lt;/tt&amp;gt;,2代表 &amp;lt;tt&amp;gt;Monday&amp;lt;/tt&amp;gt; 值,并依次类推。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
此 &amp;lt;tt&amp;gt;Select&amp;lt;/tt&amp;gt; 命令不限于简单的1:1赋值,也可以指定比较运算符或表达式列单的 &amp;lt;tt&amp;gt;Case&amp;lt;/tt&amp;gt; 分支。 以下示例列出最重要的语法变体: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Select Case Var&lt;br /&gt;
  Case 1 To 5                   &lt;br /&gt;
    &amp;#039; ... Var is between the numbers 1 and 5 (including the values 1 and 5).&lt;br /&gt;
  Case &amp;gt; 100&lt;br /&gt;
    &amp;#039; ... Var is greater than 100&lt;br /&gt;
  Case 6, 7, 8                  &lt;br /&gt;
    &amp;#039; ... Var is 6, 7 or 8&lt;br /&gt;
  Case 6, 7, 8, &amp;gt; 15, &amp;lt; 0&lt;br /&gt;
    &amp;#039; ... Var is 6, 7, 8, greater than 15, or less than 0&lt;br /&gt;
  Case Else&lt;br /&gt;
    &amp;#039; ... all other instances&lt;br /&gt;
End Select&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
现在请考虑不正确(高级)和生成常见的错误: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Select Case Var&lt;br /&gt;
  Case Var = 8&lt;br /&gt;
    &amp;#039; ... Var is 0&lt;br /&gt;
  Case Else&lt;br /&gt;
    &amp;#039; ... all other instances&lt;br /&gt;
End Select&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
说明(Var = 8)计算为true var8,否则为False。 为true,-1和设置为false,0。 &amp;quot;Select Case语句的求值的表达式,它是True或False,然后比较的值设置为var。 当var0,则匹配。 如果您知道最后一个示例,则您还知道为何本示例不做它显示 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Select Case Var&lt;br /&gt;
  Case Var &amp;gt; 8 And Var &amp;lt; 11&lt;br /&gt;
    &amp;#039; ... Var is 0&lt;br /&gt;
  Case Else&lt;br /&gt;
    &amp;#039; ... all other instances&lt;br /&gt;
End Select&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide&amp;diff=143741</id>
		<title>G11ntest/Documentation/BASIC Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide&amp;diff=143741"/>
		<updated>2009-10-21T14:44:32Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=none&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Language&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:{{OOo}}}}&lt;br /&gt;
&lt;br /&gt;
{{Download_Collection|MediaWiki:Collections/BASIC_Guide}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 This guide provides an introduction to programming with {{OOo}} Basic. 中文 To get the most out of this book, you should be familiar with other programming languages. 中文 Extensive examples are provided to help you quickly develop your own {{OOo}} Basic programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 This guide divides information about {{OOo}} administration into several chapters. 中文 The first three chapters introduce you to {{OOo}} Basic:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|多语言{{OOo}} Basic]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime_Library|Runtime Library中文]]&lt;br /&gt;
* [[Documentation/BASIC Guide/API_Intro|介绍 API]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 These chapters provide an overview of {{OOo}} Basic and should be read by anyone who intends to write {{OOo}} Basic programs. 中文 The remaining chapters describe the individual components of the {{OOo}} API in more detail and can be read selectively as required:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=={{OOo}}==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 测试The {{OOo}} Basic programming language has been developed especially for {{OOo}} and is firmly integrated in the Office package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 As the name suggests, {{OOo}} Basic is a programming language from the Basic family. Anyone who has previously worked with other Basic languages — in particular with Visual Basic or Visual Basic for Applications (VBA) from Microsoft — will quickly become accustomed to {{OOo}} Basic. Large sections of the basic constructs of {{OOo}} Basic are compatible with Visual Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} Basic programming language can be divided into four components:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The language of {{OOo}} Basic: Defines the elementary linguistic constructs, for example, for variable declarations, loops, and functions.&lt;br /&gt;
* The runtime library: Provides standard functions which have no direct reference to {{OOo}}, for example, functions for editing numbers, strings, date values, and files.&lt;br /&gt;
* The {{OOo}} API (Application Programming Interface): Permits access to {{OOo}} documents and allows these to be created, saved, modified, and printed.&lt;br /&gt;
* The Dialog Editor: Creates personal dialog windows and provides scope for the adding of control elements and event handlers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|{{OOo}}{{OOo}}{{OOo}}{{OOo}}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=={{OOo}}==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The scope of application for {{OOo}} Basic begins where the standard functions of {{OOo}} end. Routine tasks can therefore be automated in {{OOo}} Basic, links can be made to other programs — for example to a database server — and complex activities can be performed at the press of a button by using predefined scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic offers complete access to all {{OOo}} functions, supports all functions, modifies document types, and provides options for creating personal dialog windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=={{OOo}}==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic can be used by any {{OOo}} user without any additional programs or aids. Even in the standard installation, {{OOo}} Basic has all the components needed to create its own Basic macros, including:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The integrated development environment (IDE) which provides an editor for creating and testing macros.&lt;br /&gt;
* The interpreter, which is needed to run {{OOo}} Basic macros.&lt;br /&gt;
* The interfaces to various {{OOo}} applications, which allow for direct access to Office documents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The components of the {{OOo}} API that are discussed in this guide were selected based on their practical benefits for the {{OOo}} Basic programmer. In general, only parts of the interfaces are discussed. 有关详细图像,请参见 [http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html 《API参考]。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Documentation/DevGuide/OpenOffice.org_Developers_Guide|Documentation/DevGuide/OpenOffice.org_Developers_Guide]]{{OOo}}Anyone who is already familiar with {{OOo}} Basic programming can find additional information in the Developer&amp;#039;s Guide on {{OOo}} Basic and {{OOo}} programming.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}}{{OOo}}{{OOo}}{{OOo}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/AppendixB/Special_Markups&amp;diff=142662</id>
		<title>Ja/Documentation/DevGuide/AppendixB/Special Markups</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/AppendixB/Special_Markups&amp;diff=142662"/>
		<updated>2009-10-13T14:36:51Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/DevGuide/AppendixBTOC |ShowPrevNext=block |PrevPage=Documentation/DevGuide/AppendixB/Element Documentation |NextPage=Documentation/DevGuide/AppendixB/Special Docu…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/DevGuide/AppendixBTOC&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|PrevPage=Documentation/DevGuide/AppendixB/Element Documentation&lt;br /&gt;
|NextPage=Documentation/DevGuide/AppendixB/Special Documentation Tags&lt;br /&gt;
}}&lt;br /&gt;
{{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixB/{{SUBPAGENAME}}}}&lt;br /&gt;
{{DISPLAYTITLE:特殊なマークアップ}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
これらのマークアップタグは、ドキュメンテーションのレイアウトバージョン (HTML または XHTML) を生成する XSL プロセッサによって評価されます。これらのタグは、記述に間違いがなく、開始タグと終了タグがペアになっていて、大文字小文字も正しく記載されている必要があります。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
クロスリファレンステーブルを構築したり、整合性をチェックする際に生成されたドキュメンテーションの識別子を強調し、ハイパーリンクを自動的に生成するには、すべての識別子をマークアップする必要があります。さらに、単独の語で構成されるメソッド名は動詞で区別できないので、校正にも重要になります。識別子は、編集者による再編集から除外する必要があります。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
使用されるマークアップは以下のとおりです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;atom&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、long、short、string などの atomar タイプの識別子で使用されます。タイプのシーケンスやアレイが参照される場合は、次元数を表すかっこのペア数とともに属性 dim を追加します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;atom&amp;gt;long&amp;lt;/atom&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
シーケンスの例については、&amp;lt;nowiki&amp;gt;&amp;lt;type&amp;gt;&amp;lt;/nowiki&amp;gt; を参照してください。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;type&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、インタフェース、サービス、typedef、struct、例外、enum、および定数グループの識別子に使用されます。タイプのシーケンスやアレイが参照される場合は、次元数を表すかっこのペア数とともに属性 dim を追加します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;type scope=&amp;quot;com::sun::star::uno&amp;quot;&amp;gt;XInterface&amp;lt;/type&amp;gt;&lt;br /&gt;
 &amp;lt;type dim=&amp;quot;[][]&amp;quot;&amp;gt;PropertyValue&amp;lt;/type&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;member&amp;gt;&amp;lt;/nowiki&amp;gt;  ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、推奨されないメソッド、フィールド、および属性マークアップを置換し、struct と例外のフィールド、およびサービス仕様の属性やインターフェースのメソッドで使用されます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;member scope=&amp;quot;com::sun::star::uno&amp;quot;&amp;gt;XInterface::queryInterface()&amp;lt;/member&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;const&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、定数グループや enum の記号定数の識別子で使用されます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;&amp;lt;const scope=&amp;quot;...&amp;quot;&amp;gt;ParagraphAdjust::LEFT&amp;lt;/const&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;TRUE/&amp;gt;, &amp;lt;FALSE/&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これらのマークアップは、Boolean 値 TRUE および FALSE の原子的な定数を表します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
@returns&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;数値が有効な場合は &amp;lt;TRUE\&amp;gt;、そうでない場合は &amp;lt;FALSE\&amp;gt;。&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;NULL/&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、NULL 値の原子的な定数を表します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;void/&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、原子的なタイプ void を表します。これは、&amp;lt;nowiki&amp;gt;&amp;lt;atom&amp;gt;void&amp;lt;/atom&amp;gt;&amp;lt;/nowiki&amp;gt; と同じです。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;&amp;lt;/nowiki&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
このマークアップは、インラインコードで使用されます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;nowiki&amp;gt;&amp;lt;code&amp;gt;queryInterface( NULL )&amp;lt;/code&amp;gt;&amp;lt;/nowiki&amp;gt; for:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;nowiki&amp;gt;listing&amp;gt;&lt;br /&gt;
このマークアップは、複数行のコードの例で使用されます。&lt;br /&gt;
これは下記のように利用します。&lt;br /&gt;
@example StarBASIC&lt;br /&gt;
  &amp;lt;listing&amp;gt;&lt;br /&gt;
  aCmp = StarDesktop.loadComponentFromURL( ... )&lt;br /&gt;
if ( isnull(aCmp) )&lt;br /&gt;
  ....&lt;br /&gt;
endif&lt;br /&gt;
  &amp;lt;/listing&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/Developer&amp;#039;s Guide/Appendix]]&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/Basic/First_Steps_with_OpenOffice.org_Basic&amp;diff=142661</id>
		<title>Ja/Documentation/DevGuide/Basic/First Steps with OpenOffice.org Basic</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/Basic/First_Steps_with_OpenOffice.org_Basic&amp;diff=142661"/>
		<updated>2009-10-13T14:36:47Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/DevGuide/BasicTOC |BasicTutorial=block |ShowPrevNext=block |PrevPage=Documentation/DevGuide/Basic/OpenOffice.org Basic |NextPage=Documentation/DevGuide/Basic/Crea…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/DevGuide/BasicTOC&lt;br /&gt;
|BasicTutorial=block&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|PrevPage=Documentation/DevGuide/Basic/OpenOffice.org Basic&lt;br /&gt;
|NextPage=Documentation/DevGuide/Basic/Creating a Module in a Standard Library&lt;br /&gt;
}}&lt;br /&gt;
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Basic/{{SUBPAGENAME}}}} &lt;br /&gt;
 {{DISPLAYTITLE:{{PRODUCTNAME}} Basic 入門}} &lt;br /&gt;
=== 手順に沿ったチュートリアル ===&lt;br /&gt;
この節は、Basic IDE を使用できるようになるための開発者用のチュートリアルです。この節では、Basic IDE でプログラムを作成およびデバッグして、Basic ダイアログを設計するために必要な手順を説明します。すべてのツールおよびオプションの包括的な説明については、 [[Documentation/DevGuide/Basic/OpenOffice.org Basic IDE|OpenOffice.org Basic IDE]] を参照してください。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/Developer&amp;#039;s Guide/Basic and Dialogs]]&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/AppendixA/Source_Files_and_Types&amp;diff=142660</id>
		<title>Ja/Documentation/DevGuide/AppendixA/Source Files and Types</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/AppendixA/Source_Files_and_Types&amp;diff=142660"/>
		<updated>2009-10-13T14:35:11Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/DevGuide/AppendixATOC |ShowPrevNext=block |PrevPage=Documentation/DevGuide/AppendixA/Abbreviations |NextPage=Documentation/DevGuide/AppendixB/IDL Documentation Gu…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/DevGuide/AppendixATOC&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|PrevPage=Documentation/DevGuide/AppendixA/Abbreviations&lt;br /&gt;
|NextPage=Documentation/DevGuide/AppendixB/IDL Documentation Guidelines&lt;br /&gt;
}}&lt;br /&gt;
{{Documentation/DevGuideLanguages|Documentation/DevGuide/AppendixA/{{SUBPAGENAME}}}} &lt;br /&gt;
 {{DISPLAYTITLE:ソースファイルとタイプ}}&lt;br /&gt;
各タイプに対し、同じベース名と拡張子 &amp;#039;&amp;#039;.idl&amp;#039;&amp;#039; を持つ個別の IDL ファイルを作成します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/Developer&amp;#039;s Guide/Appendix]]&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/JavaBean/OfficeConnection_Interface&amp;diff=142427</id>
		<title>Ja/Documentation/DevGuide/JavaBean/OfficeConnection Interface</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Ja/Documentation/DevGuide/JavaBean/OfficeConnection_Interface&amp;diff=142427"/>
		<updated>2009-10-09T12:15:50Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/DevGuide/JavaBeanTOC |JavaBean2b=block |ShowPrevNext=block |PrevPage=Documentation/DevGuide/JavaBean/The Internal Office Bean API |NextPage=Documentation/DevGuide…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/DevGuide/JavaBeanTOC&lt;br /&gt;
|JavaBean2b=block&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|PrevPage=Documentation/DevGuide/JavaBean/The Internal Office Bean API&lt;br /&gt;
|NextPage=Documentation/DevGuide/JavaBean/OfficeWindow Interface&lt;br /&gt;
}}&lt;br /&gt;
{{Documentation/DevGuideLanguages|Documentation/DevGuide/JavaBean/{{SUBPAGENAME}}}} &lt;br /&gt;
 {{DISPLAYTITLE:OfficeConnection インターフェース}}&lt;br /&gt;
インターフェース &amp;lt;code&amp;gt;com.sun.star.comp.beans.OfficeConnection&amp;lt;/code&amp;gt; には、{{PRODUCTNAME}}[ の接続を設定、開始、管理するメソッドが含まれます。メソッドには次のものがあります。&lt;br /&gt;
 &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
  public void setUnoUrl(String URL) throws java.net.MalformedURLException&lt;br /&gt;
  public com.sun.star.uno.XComponentContext getComponentContext()&lt;br /&gt;
  public OfficeWindow createOfficeWindow(Container container)&lt;br /&gt;
  public void setContainerFactory(ContainerFactory containerFactory)&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
クライアントは &amp;lt;code&amp;gt;setUnoUrl()&amp;lt;/code&amp;gt; を使用し、OfficeBean がどのように {{PRODUCTNAME}} プロセスに接続するか指定します。URL のシンタックスに関する詳細については、[[Documentation/DevGuide/JavaBean/Configuring the Office Bean|OfficeBean の設定]]の節を参照してください。クライアントが不正に形成された URL を引数として渡した場合は、具体的な実装によって &amp;lt;code&amp;gt;java.net.MalformedURLException&amp;lt;/code&amp;gt; がスローされます。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
メソッド &amp;lt;code&amp;gt;getComponentContext()&amp;lt;/code&amp;gt; は、OfficeBean からインターフェース &amp;lt;idl&amp;gt;com.sun.star.uno.XComponentContext&amp;lt;/idl&amp;gt; を実装するオブジェクトを取得します。このオブジェクトは、バックエンドの {{PRODUCTNAME}} プロセスから {{PRODUCTNAME}} の完全な API を実装するオブジェクトを取得します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;createOfficeWindow()&amp;lt;/code&amp;gt; への呼び出しは、 &amp;lt;code&amp;gt;OfficeConnection&amp;lt;/code&amp;gt;  から新規 &amp;lt;code&amp;gt;OfficeWindow&amp;lt;/code&amp;gt;  を要求します。クライアントは  &amp;lt;code&amp;gt;OfficeWindow&amp;lt;/code&amp;gt;  から &amp;lt;code&amp;gt;java.awt.Component&amp;lt;/code&amp;gt; を取得し、それを UI に埋め込みます。次のメソッド &amp;lt;code&amp;gt;getAWTComponent()&amp;lt;/code&amp;gt; で、&amp;lt;code&amp;gt;OfficeWindow&amp;lt;/code&amp;gt; から Component を取得する方法を確認します。クライアントは、作成すべき &amp;lt;code&amp;gt;OfficeWindow&amp;lt;/code&amp;gt;  を示す &amp;lt;code&amp;gt;java.awt.Container&amp;lt;/code&amp;gt; を実装に提供します。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
メソッド &amp;lt;code&amp;gt;setContainerFactory()&amp;lt;/code&amp;gt; は、Java 環境でポップアップウィンドウを表示するための Java AWT ウィンドウを作成するファクトリーオブジェクトを OfficeBean に指定します。このファクトリーオブジェクトは、インターフェース &amp;lt;code&amp;gt;com.sun.star.comp.beans.ContainerFactory&amp;lt;/code&amp;gt; を実装します。インターフェース &amp;lt;code&amp;gt;ContainerFactory&amp;lt;/code&amp;gt; の定義については、以下を参照してください。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
クライアントが自分独自のインターフェース &amp;lt;code&amp;gt;ContainerFactory&amp;lt;/code&amp;gt; を実装しない場合、OfficeBean はデフォルトの &amp;lt;code&amp;gt;ContainerFactory&amp;lt;/code&amp;gt; を使用して、 のインスタンスを作成します。&amp;lt;code&amp;gt;java.awt.Canvas&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/Developer&amp;#039;s Guide/JavaBean for Office Components]]&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140584</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140584"/>
		<updated>2009-09-17T15:15:14Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[G11NWIKITEST/Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|Introduction to the API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140583</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings (Runtime Library)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140583"/>
		<updated>2009-09-17T15:13:32Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Conversion Functions (Runtime Library)&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date and Time (Runtime Library)&lt;br /&gt;
|runtime=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:字符串 ({{OOo}} BASIC 运行库)}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
== Working with Sets of Characters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When administering strings, {{OOo}} Basic uses the set of Unicode characters. The &amp;lt;tt&amp;gt;Asc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; functions allow the Unicode value belonging to a character to be established and/or the corresponding character to be found for a Unicode value. The following expressions assign the various Unicode values to the code variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Code = Asc(&amp;quot;A&amp;quot;)         &amp;#039; Latin letter A (Unicode-value 65)&lt;br /&gt;
Code = Asc(&amp;quot;€&amp;quot;)         &amp;#039; Euro character (Unicode-value 8364)&lt;br /&gt;
Code = Asc(&amp;quot;Л&amp;quot;)         &amp;#039; Cyrillic letter Л (Unicode-value 1083)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Conversely, the expression &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ensures that the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string is initialized with the value of the number &amp;lt;tt&amp;gt;13&amp;lt;/tt&amp;gt;, which stands for a hard line break.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; command is often used in Basic languages to insert control characters in a string. The assignment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(9) + &amp;quot;This is a test&amp;quot; + Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
therefore ensures that the text is preceded by a tab character (Unicode-value 9) and that a hard line break (Unicode-value 13) is added after the text. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Accessing Parts of a String ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides three functions that return partial strings, plus a length function: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Left(MyString, Length)&amp;lt;/tt&amp;gt;:returns the first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Right(MyString, Length)&amp;lt;/tt&amp;gt;:returns the last &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Mid(MyString, Start, Length)&amp;lt;/tt&amp;gt;:returns first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; as of the &amp;lt;tt&amp;gt;Start&amp;lt;/tt&amp;gt; position.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Len(MyString)&amp;lt;/tt&amp;gt;:returns the number of characters in &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are a few example calls for the named functions: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
Dim MyResult As String&lt;br /&gt;
Dim MyLen As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MyString = &amp;quot;This is a small test&amp;quot;&lt;br /&gt;
MyResult = Left(MyString,5)      &amp;#039; Provides the string &amp;quot;This &amp;quot;&lt;br /&gt;
MyResult = Right(MyString, 5)    &amp;#039; Provides the string &amp;quot; test&amp;quot;&lt;br /&gt;
MyResult = Mid(MyString, 8, 5)   &amp;#039; Provides the string &amp;quot; a sm&amp;quot;&lt;br /&gt;
MyLen = Len(MyString)            &amp;#039; Provides the value 20&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search and Replace ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides the &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; function for searching for a partial string within another string:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr (MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; parameter specifies the string to be searched for within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;. The function returns a number that contains the position at which the &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; first appears within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;; a return value of zero indicates no match. If you want to find other matches for the string, the function also provides the opportunity to specify an optional start position from which {{OOo}} Basic begins the search. In this case, the syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(StartPosition, MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the previous examples, &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; ignores uppercase and lowercase characters. To change the search so that &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; is case sensitive, add the parameter &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;, as shown in the following example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(MyString, SearchString, 0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous functions for editing strings, programmers can search for and replace one string in another string: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Function Replace(Source As String, Search As String, NewPart As String)&lt;br /&gt;
  Dim Result As String&lt;br /&gt;
  Dim StartPos As Long&lt;br /&gt;
  Dim CurrentPos As Long&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Result = &amp;quot;&amp;quot;&lt;br /&gt;
  StartPos = 1&lt;br /&gt;
  CurrentPos = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  If Search = &amp;quot;&amp;quot; Then&lt;br /&gt;
    Result = Source&lt;br /&gt;
  Else &lt;br /&gt;
    Do While CurrentPos &amp;lt;&amp;gt; 0&lt;br /&gt;
      CurrentPos = InStr(StartPos, Source, Search)&lt;br /&gt;
      If CurrentPos &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, _&lt;br /&gt;
        CurrentPos - StartPos)&lt;br /&gt;
        Result = Result + NewPart&lt;br /&gt;
        StartPos = CurrentPos + Len(Search)&lt;br /&gt;
      Else&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, Len(Source))&lt;br /&gt;
      End If                &amp;#039; Position &amp;lt;&amp;gt; 0&lt;br /&gt;
    Loop &lt;br /&gt;
  End If &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Replace = Result&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The function searches through the transferred &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt; string in a loop by means of &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; in the original term &amp;lt;tt&amp;gt;Source&amp;lt;/tt&amp;gt;. If it finds the search term, it takes the part before the expression and writes it to the &amp;lt;tt&amp;gt;Result&amp;lt;/tt&amp;gt; return buffer. It adds the &amp;lt;tt&amp;gt;NewPart&amp;lt;/tt&amp;gt; section at the point of the search term &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt;. If no more matches are found for the search term, the function establishes the part of the string still remaining and adds this to the return buffer. It returns the string produced in this way as the result of the replacement process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since replacing parts of character sequences is one of the most frequently used functions, the &amp;lt;tt&amp;gt;Mid&amp;lt;/tt&amp;gt; function in {{OOo}} Basic has been extended so that this task is performed automatically. The following example replaces three characters with the string &amp;lt;tt&amp;gt;is&amp;lt;/tt&amp;gt; from the sixth position of the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
 &lt;br /&gt;
MyString = &amp;quot;This was my text&amp;quot;&lt;br /&gt;
Mid(MyString, 6, 3, &amp;quot;is&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Formatting Strings ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function formats numbers as a string. To do this, the function expects a &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; expression to be specified, which is then used as the template for formatting the numbers. Each place holder within the template ensures that this item is formatted correspondingly in the output value. The five most important place holders within a template are the zero (&amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;), pound sign (&amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt;), period (&amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt;), comma (&amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt;) and dollar sign (&amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;) characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; character within the template ensures that a number is always placed at the corresponding point. If a number is not provided, 0 is displayed in its place. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; stands for the decimal point symbol defined by the operating system in the country-specific settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example below shows how the &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; characters can define the digits after the decimal point in an expression:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the same way, zeros can be added in front of a number to achieve the desired length:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0000.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0000,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0000,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt; represents the character that the operating system uses for a thousands separator, and the &amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt; stands for a digit or place that is only displayed if it is required by the input string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In place of the &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt; place holder, the &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function displays the relevant currency symbol defined by the system (this example assumes a European locale has been defined):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00 $&amp;quot;   &lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40 €&amp;quot; &lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43 €&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The format instructions used in VBA for formatting date and time details can also be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
sub main&lt;br /&gt;
    dim myDate as date&lt;br /&gt;
    myDate = &amp;quot;01/06/98&amp;quot;&lt;br /&gt;
    TestStr = Format(myDate, &amp;quot;mm-dd-yyyy&amp;quot;) &amp;#039; 01-06-1998&lt;br /&gt;
    MsgBox TestStr&lt;br /&gt;
end sub &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings (Runtime Library)}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140582</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140582"/>
		<updated>2009-09-17T15:13:24Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: 字符串变量}}&lt;br /&gt;
{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Working With Variables&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Strings, together with numbers, form the most important basic types of {{OOo}} Basic. A string consists of a sequence of consecutive individual characters. The computer saves the strings internally as a sequence of numbers where each number represents one specific character.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==From a Set of ASCII Characters to Unicode==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Character sets match characters in a string with a corresponding code (numbers and characters) in a table that describes how the computer is to display the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ASCII Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ASCII character set is a set of codes that represent numbers, characters, and special symbols by one byte. The 0 to 127 ASCII codes correspond to the alphabet and to common symbols (such as periods, parentheses, and commas), as well as some special screen and printer control codes. The ASCII character set is commonly used as a standard format for transferring text data between computers. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, this character set does not include a range of special characters used in Europe, such as â, ä, and î, as well as other character formats, such as the Cyrillic alphabet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ANSI Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Microsoft based its Windows product on the American National Standards Institute (ANSI) character set, which was gradually extended to include characters that are missing from the ASCII character set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code Pages===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ISO 8859 character sets provide an international standard. The first 128 characters of the ISO character set correspond to the ASCII character set. The ISO standard introduces new character sets (&amp;#039;&amp;#039;&amp;#039;code pages&amp;#039;&amp;#039;&amp;#039;) so that more languages can be correctly displayed. However, as a result, the same character value can represent different characters in different languages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unicode===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unicode increases the length of a character to four bytes and combines different character sets to create a standard to depict as many of the world&amp;#039;s languages as possible. Version 2.0 of Unicode is now supported by many programs — including {{OOo}} and {{OOo}} Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String Variables==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic saves strings as string variables in Unicode. A string variable can store up to 65535 characters. Internally, {{OOo}} Basic saves the associated Unicode value for every character. The working memory needed for a string variable depends on the length of the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a string variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable As String&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also write this declaration as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable$&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|When porting VBA applications, ensure that the maximum allowed string length in {{OOo}} Basic is observed (65535 characters).}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Specification of Explicit Strings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To assign an explicit string to a string variable, enclose the string in quotation marks (&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot; This is a test&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To split a string across two lines of code, add an ampersand sign (the concatenation operator) and the underscore continuation character at the end of the first line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString =   &amp;quot;This string is so long that it &amp;quot; &amp;amp; _&lt;br /&gt;
             &amp;quot;has been split over two lines.&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To include a quotation mark (&amp;quot;) in a string, enter it twice at the relevant point:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot;a &amp;quot;&amp;quot;-quotation mark.&amp;quot;    &amp;#039; produces a &amp;quot;-quotation mark&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140581</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings (Runtime Library)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140581"/>
		<updated>2009-09-17T15:12:05Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Conversion Functions (Runtime Library)&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date and Time (Runtime Library)&lt;br /&gt;
|runtime=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:字符串 ({{OOo}} BASIC 运行库)}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
== Working with Sets of Characters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When administering strings, {{OOo}} Basic uses the set of Unicode characters. The &amp;lt;tt&amp;gt;Asc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; functions allow the Unicode value belonging to a character to be established and/or the corresponding character to be found for a Unicode value. The following expressions assign the various Unicode values to the code variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Code = Asc(&amp;quot;A&amp;quot;)         &amp;#039; Latin letter A (Unicode-value 65)&lt;br /&gt;
Code = Asc(&amp;quot;€&amp;quot;)         &amp;#039; Euro character (Unicode-value 8364)&lt;br /&gt;
Code = Asc(&amp;quot;Л&amp;quot;)         &amp;#039; Cyrillic letter Л (Unicode-value 1083)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Conversely, the expression &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ensures that the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string is initialized with the value of the number &amp;lt;tt&amp;gt;13&amp;lt;/tt&amp;gt;, which stands for a hard line break.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; command is often used in Basic languages to insert control characters in a string. The assignment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(9) + &amp;quot;This is a test&amp;quot; + Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
therefore ensures that the text is preceded by a tab character (Unicode-value 9) and that a hard line break (Unicode-value 13) is added after the text. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Accessing Parts of a String ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides three functions that return partial strings, plus a length function: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Left(MyString, Length)&amp;lt;/tt&amp;gt;:returns the first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Right(MyString, Length)&amp;lt;/tt&amp;gt;:returns the last &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Mid(MyString, Start, Length)&amp;lt;/tt&amp;gt;:returns first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; as of the &amp;lt;tt&amp;gt;Start&amp;lt;/tt&amp;gt; position.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Len(MyString)&amp;lt;/tt&amp;gt;:returns the number of characters in &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are a few example calls for the named functions: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
Dim MyResult As String&lt;br /&gt;
Dim MyLen As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MyString = &amp;quot;This is a small test&amp;quot;&lt;br /&gt;
MyResult = Left(MyString,5)      &amp;#039; Provides the string &amp;quot;This &amp;quot;&lt;br /&gt;
MyResult = Right(MyString, 5)    &amp;#039; Provides the string &amp;quot; test&amp;quot;&lt;br /&gt;
MyResult = Mid(MyString, 8, 5)   &amp;#039; Provides the string &amp;quot; a sm&amp;quot;&lt;br /&gt;
MyLen = Len(MyString)            &amp;#039; Provides the value 20&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search and Replace ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides the &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; function for searching for a partial string within another string:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr (MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; parameter specifies the string to be searched for within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;. The function returns a number that contains the position at which the &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; first appears within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;; a return value of zero indicates no match. If you want to find other matches for the string, the function also provides the opportunity to specify an optional start position from which {{OOo}} Basic begins the search. In this case, the syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(StartPosition, MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the previous examples, &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; ignores uppercase and lowercase characters. To change the search so that &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; is case sensitive, add the parameter &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;, as shown in the following example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(MyString, SearchString, 0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous functions for editing strings, programmers can search for and replace one string in another string: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Function Replace(Source As String, Search As String, NewPart As String)&lt;br /&gt;
  Dim Result As String&lt;br /&gt;
  Dim StartPos As Long&lt;br /&gt;
  Dim CurrentPos As Long&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Result = &amp;quot;&amp;quot;&lt;br /&gt;
  StartPos = 1&lt;br /&gt;
  CurrentPos = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  If Search = &amp;quot;&amp;quot; Then&lt;br /&gt;
    Result = Source&lt;br /&gt;
  Else &lt;br /&gt;
    Do While CurrentPos &amp;lt;&amp;gt; 0&lt;br /&gt;
      CurrentPos = InStr(StartPos, Source, Search)&lt;br /&gt;
      If CurrentPos &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, _&lt;br /&gt;
        CurrentPos - StartPos)&lt;br /&gt;
        Result = Result + NewPart&lt;br /&gt;
        StartPos = CurrentPos + Len(Search)&lt;br /&gt;
      Else&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, Len(Source))&lt;br /&gt;
      End If                &amp;#039; Position &amp;lt;&amp;gt; 0&lt;br /&gt;
    Loop &lt;br /&gt;
  End If &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Replace = Result&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The function searches through the transferred &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt; string in a loop by means of &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; in the original term &amp;lt;tt&amp;gt;Source&amp;lt;/tt&amp;gt;. If it finds the search term, it takes the part before the expression and writes it to the &amp;lt;tt&amp;gt;Result&amp;lt;/tt&amp;gt; return buffer. It adds the &amp;lt;tt&amp;gt;NewPart&amp;lt;/tt&amp;gt; section at the point of the search term &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt;. If no more matches are found for the search term, the function establishes the part of the string still remaining and adds this to the return buffer. It returns the string produced in this way as the result of the replacement process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since replacing parts of character sequences is one of the most frequently used functions, the &amp;lt;tt&amp;gt;Mid&amp;lt;/tt&amp;gt; function in {{OOo}} Basic has been extended so that this task is performed automatically. The following example replaces three characters with the string &amp;lt;tt&amp;gt;is&amp;lt;/tt&amp;gt; from the sixth position of the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
 &lt;br /&gt;
MyString = &amp;quot;This was my text&amp;quot;&lt;br /&gt;
Mid(MyString, 6, 3, &amp;quot;is&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Formatting Strings ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function formats numbers as a string. To do this, the function expects a &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; expression to be specified, which is then used as the template for formatting the numbers. Each place holder within the template ensures that this item is formatted correspondingly in the output value. The five most important place holders within a template are the zero (&amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;), pound sign (&amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt;), period (&amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt;), comma (&amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt;) and dollar sign (&amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;) characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; character within the template ensures that a number is always placed at the corresponding point. If a number is not provided, 0 is displayed in its place. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; stands for the decimal point symbol defined by the operating system in the country-specific settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example below shows how the &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; characters can define the digits after the decimal point in an expression:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the same way, zeros can be added in front of a number to achieve the desired length:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0000.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0000,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0000,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt; represents the character that the operating system uses for a thousands separator, and the &amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt; stands for a digit or place that is only displayed if it is required by the input string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In place of the &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt; place holder, the &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function displays the relevant currency symbol defined by the system (this example assumes a European locale has been defined):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00 $&amp;quot;   &lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40 €&amp;quot; &lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43 €&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The format instructions used in VBA for formatting date and time details can also be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
sub main&lt;br /&gt;
    dim myDate as date&lt;br /&gt;
    myDate = &amp;quot;01/06/98&amp;quot;&lt;br /&gt;
    TestStr = Format(myDate, &amp;quot;mm-dd-yyyy&amp;quot;) &amp;#039; 01-06-1998&lt;br /&gt;
    MsgBox TestStr&lt;br /&gt;
end sub &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings (Runtime Library)}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140580</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140580"/>
		<updated>2009-09-17T15:12:01Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|Introduction to the API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140579</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140579"/>
		<updated>2009-09-17T15:11:58Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: 字符串变量}}&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Working With Variables&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Strings, together with numbers, form the most important basic types of {{OOo}} Basic. A string consists of a sequence of consecutive individual characters. The computer saves the strings internally as a sequence of numbers where each number represents one specific character.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==From a Set of ASCII Characters to Unicode==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Character sets match characters in a string with a corresponding code (numbers and characters) in a table that describes how the computer is to display the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ASCII Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ASCII character set is a set of codes that represent numbers, characters, and special symbols by one byte. The 0 to 127 ASCII codes correspond to the alphabet and to common symbols (such as periods, parentheses, and commas), as well as some special screen and printer control codes. The ASCII character set is commonly used as a standard format for transferring text data between computers. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, this character set does not include a range of special characters used in Europe, such as â, ä, and î, as well as other character formats, such as the Cyrillic alphabet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ANSI Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Microsoft based its Windows product on the American National Standards Institute (ANSI) character set, which was gradually extended to include characters that are missing from the ASCII character set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code Pages===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ISO 8859 character sets provide an international standard. The first 128 characters of the ISO character set correspond to the ASCII character set. The ISO standard introduces new character sets (&amp;#039;&amp;#039;&amp;#039;code pages&amp;#039;&amp;#039;&amp;#039;) so that more languages can be correctly displayed. However, as a result, the same character value can represent different characters in different languages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unicode===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unicode increases the length of a character to four bytes and combines different character sets to create a standard to depict as many of the world&amp;#039;s languages as possible. Version 2.0 of Unicode is now supported by many programs — including {{OOo}} and {{OOo}} Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String Variables==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic saves strings as string variables in Unicode. A string variable can store up to 65535 characters. Internally, {{OOo}} Basic saves the associated Unicode value for every character. The working memory needed for a string variable depends on the length of the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a string variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable As String&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also write this declaration as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable$&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|When porting VBA applications, ensure that the maximum allowed string length in {{OOo}} Basic is observed (65535 characters).}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Specification of Explicit Strings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To assign an explicit string to a string variable, enclose the string in quotation marks (&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot; This is a test&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To split a string across two lines of code, add an ampersand sign (the concatenation operator) and the underscore continuation character at the end of the first line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString =   &amp;quot;This string is so long that it &amp;quot; &amp;amp; _&lt;br /&gt;
             &amp;quot;has been split over two lines.&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To include a quotation mark (&amp;quot;) in a string, enter it twice at the relevant point:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot;a &amp;quot;&amp;quot;-quotation mark.&amp;quot;    &amp;#039; produces a &amp;quot;-quotation mark&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140578</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140578"/>
		<updated>2009-09-17T14:54:40Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[G11NWIKITEST/Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|Introduction to the API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140567</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140567"/>
		<updated>2009-09-17T07:39:58Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[G11NWIKITEST/Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|Introduction to the API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140566</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings (Runtime Library)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140566"/>
		<updated>2009-09-17T07:38:14Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Conversion Functions (Runtime Library)&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date and Time (Runtime Library)&lt;br /&gt;
|runtime=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:字符串 ({{OOo}} BASIC 运行库)}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
== Working with Sets of Characters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When administering strings, {{OOo}} Basic uses the set of Unicode characters. The &amp;lt;tt&amp;gt;Asc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; functions allow the Unicode value belonging to a character to be established and/or the corresponding character to be found for a Unicode value. The following expressions assign the various Unicode values to the code variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Code = Asc(&amp;quot;A&amp;quot;)         &amp;#039; Latin letter A (Unicode-value 65)&lt;br /&gt;
Code = Asc(&amp;quot;€&amp;quot;)         &amp;#039; Euro character (Unicode-value 8364)&lt;br /&gt;
Code = Asc(&amp;quot;Л&amp;quot;)         &amp;#039; Cyrillic letter Л (Unicode-value 1083)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Conversely, the expression &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ensures that the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string is initialized with the value of the number &amp;lt;tt&amp;gt;13&amp;lt;/tt&amp;gt;, which stands for a hard line break.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; command is often used in Basic languages to insert control characters in a string. The assignment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(9) + &amp;quot;This is a test&amp;quot; + Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
therefore ensures that the text is preceded by a tab character (Unicode-value 9) and that a hard line break (Unicode-value 13) is added after the text. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Accessing Parts of a String ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides three functions that return partial strings, plus a length function: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Left(MyString, Length)&amp;lt;/tt&amp;gt;:returns the first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Right(MyString, Length)&amp;lt;/tt&amp;gt;:returns the last &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Mid(MyString, Start, Length)&amp;lt;/tt&amp;gt;:returns first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; as of the &amp;lt;tt&amp;gt;Start&amp;lt;/tt&amp;gt; position.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Len(MyString)&amp;lt;/tt&amp;gt;:returns the number of characters in &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are a few example calls for the named functions: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
Dim MyResult As String&lt;br /&gt;
Dim MyLen As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MyString = &amp;quot;This is a small test&amp;quot;&lt;br /&gt;
MyResult = Left(MyString,5)      &amp;#039; Provides the string &amp;quot;This &amp;quot;&lt;br /&gt;
MyResult = Right(MyString, 5)    &amp;#039; Provides the string &amp;quot; test&amp;quot;&lt;br /&gt;
MyResult = Mid(MyString, 8, 5)   &amp;#039; Provides the string &amp;quot; a sm&amp;quot;&lt;br /&gt;
MyLen = Len(MyString)            &amp;#039; Provides the value 20&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search and Replace ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides the &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; function for searching for a partial string within another string:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr (MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; parameter specifies the string to be searched for within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;. The function returns a number that contains the position at which the &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; first appears within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;; a return value of zero indicates no match. If you want to find other matches for the string, the function also provides the opportunity to specify an optional start position from which {{OOo}} Basic begins the search. In this case, the syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(StartPosition, MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the previous examples, &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; ignores uppercase and lowercase characters. To change the search so that &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; is case sensitive, add the parameter &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;, as shown in the following example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(MyString, SearchString, 0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous functions for editing strings, programmers can search for and replace one string in another string: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Function Replace(Source As String, Search As String, NewPart As String)&lt;br /&gt;
  Dim Result As String&lt;br /&gt;
  Dim StartPos As Long&lt;br /&gt;
  Dim CurrentPos As Long&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Result = &amp;quot;&amp;quot;&lt;br /&gt;
  StartPos = 1&lt;br /&gt;
  CurrentPos = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  If Search = &amp;quot;&amp;quot; Then&lt;br /&gt;
    Result = Source&lt;br /&gt;
  Else &lt;br /&gt;
    Do While CurrentPos &amp;lt;&amp;gt; 0&lt;br /&gt;
      CurrentPos = InStr(StartPos, Source, Search)&lt;br /&gt;
      If CurrentPos &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, _&lt;br /&gt;
        CurrentPos - StartPos)&lt;br /&gt;
        Result = Result + NewPart&lt;br /&gt;
        StartPos = CurrentPos + Len(Search)&lt;br /&gt;
      Else&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, Len(Source))&lt;br /&gt;
      End If                &amp;#039; Position &amp;lt;&amp;gt; 0&lt;br /&gt;
    Loop &lt;br /&gt;
  End If &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Replace = Result&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The function searches through the transferred &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt; string in a loop by means of &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; in the original term &amp;lt;tt&amp;gt;Source&amp;lt;/tt&amp;gt;. If it finds the search term, it takes the part before the expression and writes it to the &amp;lt;tt&amp;gt;Result&amp;lt;/tt&amp;gt; return buffer. It adds the &amp;lt;tt&amp;gt;NewPart&amp;lt;/tt&amp;gt; section at the point of the search term &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt;. If no more matches are found for the search term, the function establishes the part of the string still remaining and adds this to the return buffer. It returns the string produced in this way as the result of the replacement process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since replacing parts of character sequences is one of the most frequently used functions, the &amp;lt;tt&amp;gt;Mid&amp;lt;/tt&amp;gt; function in {{OOo}} Basic has been extended so that this task is performed automatically. The following example replaces three characters with the string &amp;lt;tt&amp;gt;is&amp;lt;/tt&amp;gt; from the sixth position of the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
 &lt;br /&gt;
MyString = &amp;quot;This was my text&amp;quot;&lt;br /&gt;
Mid(MyString, 6, 3, &amp;quot;is&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Formatting Strings ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function formats numbers as a string. To do this, the function expects a &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; expression to be specified, which is then used as the template for formatting the numbers. Each place holder within the template ensures that this item is formatted correspondingly in the output value. The five most important place holders within a template are the zero (&amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;), pound sign (&amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt;), period (&amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt;), comma (&amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt;) and dollar sign (&amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;) characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; character within the template ensures that a number is always placed at the corresponding point. If a number is not provided, 0 is displayed in its place. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; stands for the decimal point symbol defined by the operating system in the country-specific settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example below shows how the &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; characters can define the digits after the decimal point in an expression:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the same way, zeros can be added in front of a number to achieve the desired length:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0000.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0000,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0000,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt; represents the character that the operating system uses for a thousands separator, and the &amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt; stands for a digit or place that is only displayed if it is required by the input string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In place of the &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt; place holder, the &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function displays the relevant currency symbol defined by the system (this example assumes a European locale has been defined):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00 $&amp;quot;   &lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40 €&amp;quot; &lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43 €&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The format instructions used in VBA for formatting date and time details can also be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
sub main&lt;br /&gt;
    dim myDate as date&lt;br /&gt;
    myDate = &amp;quot;01/06/98&amp;quot;&lt;br /&gt;
    TestStr = Format(myDate, &amp;quot;mm-dd-yyyy&amp;quot;) &amp;#039; 01-06-1998&lt;br /&gt;
    MsgBox TestStr&lt;br /&gt;
end sub &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings (Runtime Library)}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140565</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140565"/>
		<updated>2009-09-17T07:38:05Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: 字符串变量}}&lt;br /&gt;
{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Working With Variables&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Strings, together with numbers, form the most important basic types of {{OOo}} Basic. A string consists of a sequence of consecutive individual characters. The computer saves the strings internally as a sequence of numbers where each number represents one specific character.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==From a Set of ASCII Characters to Unicode==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Character sets match characters in a string with a corresponding code (numbers and characters) in a table that describes how the computer is to display the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ASCII Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ASCII character set is a set of codes that represent numbers, characters, and special symbols by one byte. The 0 to 127 ASCII codes correspond to the alphabet and to common symbols (such as periods, parentheses, and commas), as well as some special screen and printer control codes. The ASCII character set is commonly used as a standard format for transferring text data between computers. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, this character set does not include a range of special characters used in Europe, such as â, ä, and î, as well as other character formats, such as the Cyrillic alphabet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ANSI Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Microsoft based its Windows product on the American National Standards Institute (ANSI) character set, which was gradually extended to include characters that are missing from the ASCII character set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code Pages===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ISO 8859 character sets provide an international standard. The first 128 characters of the ISO character set correspond to the ASCII character set. The ISO standard introduces new character sets (&amp;#039;&amp;#039;&amp;#039;code pages&amp;#039;&amp;#039;&amp;#039;) so that more languages can be correctly displayed. However, as a result, the same character value can represent different characters in different languages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unicode===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unicode increases the length of a character to four bytes and combines different character sets to create a standard to depict as many of the world&amp;#039;s languages as possible. Version 2.0 of Unicode is now supported by many programs — including {{OOo}} and {{OOo}} Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String Variables==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic saves strings as string variables in Unicode. A string variable can store up to 65535 characters. Internally, {{OOo}} Basic saves the associated Unicode value for every character. The working memory needed for a string variable depends on the length of the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a string variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable As String&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also write this declaration as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable$&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|When porting VBA applications, ensure that the maximum allowed string length in {{OOo}} Basic is observed (65535 characters).}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Specification of Explicit Strings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To assign an explicit string to a string variable, enclose the string in quotation marks (&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot; This is a test&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To split a string across two lines of code, add an ampersand sign (the concatenation operator) and the underscore continuation character at the end of the first line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString =   &amp;quot;This string is so long that it &amp;quot; &amp;amp; _&lt;br /&gt;
             &amp;quot;has been split over two lines.&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To include a quotation mark (&amp;quot;) in a string, enter it twice at the relevant point:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot;a &amp;quot;&amp;quot;-quotation mark.&amp;quot;    &amp;#039; produces a &amp;quot;-quotation mark&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140564</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings (Runtime Library)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings_(Runtime_Library)&amp;diff=140564"/>
		<updated>2009-09-17T07:32:35Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Conversion Functions (Runtime Library) |NextPage=Documentation/BASIC …&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Conversion Functions (Runtime Library)&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date and Time (Runtime Library)&lt;br /&gt;
|runtime=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:字符串 ({{OOo}} BASIC 运行库)}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
== Working with Sets of Characters ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
When administering strings, {{OOo}} Basic uses the set of Unicode characters. The &amp;lt;tt&amp;gt;Asc&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; functions allow the Unicode value belonging to a character to be established and/or the corresponding character to be found for a Unicode value. The following expressions assign the various Unicode values to the code variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Code = Asc(&amp;quot;A&amp;quot;)         &amp;#039; Latin letter A (Unicode-value 65)&lt;br /&gt;
Code = Asc(&amp;quot;€&amp;quot;)         &amp;#039; Euro character (Unicode-value 8364)&lt;br /&gt;
Code = Asc(&amp;quot;Л&amp;quot;)         &amp;#039; Cyrillic letter Л (Unicode-value 1083)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Conversely, the expression &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ensures that the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string is initialized with the value of the number &amp;lt;tt&amp;gt;13&amp;lt;/tt&amp;gt;, which stands for a hard line break.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chr&amp;lt;/tt&amp;gt; command is often used in Basic languages to insert control characters in a string. The assignment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyString = Chr(9) + &amp;quot;This is a test&amp;quot; + Chr(13)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
therefore ensures that the text is preceded by a tab character (Unicode-value 9) and that a hard line break (Unicode-value 13) is added after the text. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Accessing Parts of a String ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides three functions that return partial strings, plus a length function: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Left(MyString, Length)&amp;lt;/tt&amp;gt;:returns the first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Right(MyString, Length)&amp;lt;/tt&amp;gt;:returns the last &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Mid(MyString, Start, Length)&amp;lt;/tt&amp;gt;:returns first &amp;lt;tt&amp;gt;Length&amp;lt;/tt&amp;gt; characters of &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; as of the &amp;lt;tt&amp;gt;Start&amp;lt;/tt&amp;gt; position.&lt;br /&gt;
;&amp;lt;tt&amp;gt;Len(MyString)&amp;lt;/tt&amp;gt;:returns the number of characters in &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here are a few example calls for the named functions: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
Dim MyResult As String&lt;br /&gt;
Dim MyLen As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
MyString = &amp;quot;This is a small test&amp;quot;&lt;br /&gt;
MyResult = Left(MyString,5)      &amp;#039; Provides the string &amp;quot;This &amp;quot;&lt;br /&gt;
MyResult = Right(MyString, 5)    &amp;#039; Provides the string &amp;quot; test&amp;quot;&lt;br /&gt;
MyResult = Mid(MyString, 8, 5)   &amp;#039; Provides the string &amp;quot; a sm&amp;quot;&lt;br /&gt;
MyLen = Len(MyString)            &amp;#039; Provides the value 20&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Search and Replace ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic provides the &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; function for searching for a partial string within another string:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr (MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; parameter specifies the string to be searched for within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;. The function returns a number that contains the position at which the &amp;lt;tt&amp;gt;SearchString&amp;lt;/tt&amp;gt; first appears within &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt;; a return value of zero indicates no match. If you want to find other matches for the string, the function also provides the opportunity to specify an optional start position from which {{OOo}} Basic begins the search. In this case, the syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(StartPosition, MyString, SearchString)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the previous examples, &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; ignores uppercase and lowercase characters. To change the search so that &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; is case sensitive, add the parameter &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;, as shown in the following example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
ResultString = InStr(MyString, SearchString, 0)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous functions for editing strings, programmers can search for and replace one string in another string: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Function Replace(Source As String, Search As String, NewPart As String)&lt;br /&gt;
  Dim Result As String&lt;br /&gt;
  Dim StartPos As Long&lt;br /&gt;
  Dim CurrentPos As Long&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Result = &amp;quot;&amp;quot;&lt;br /&gt;
  StartPos = 1&lt;br /&gt;
  CurrentPos = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  If Search = &amp;quot;&amp;quot; Then&lt;br /&gt;
    Result = Source&lt;br /&gt;
  Else &lt;br /&gt;
    Do While CurrentPos &amp;lt;&amp;gt; 0&lt;br /&gt;
      CurrentPos = InStr(StartPos, Source, Search)&lt;br /&gt;
      If CurrentPos &amp;lt;&amp;gt; 0 Then&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, _&lt;br /&gt;
        CurrentPos - StartPos)&lt;br /&gt;
        Result = Result + NewPart&lt;br /&gt;
        StartPos = CurrentPos + Len(Search)&lt;br /&gt;
      Else&lt;br /&gt;
        Result = Result + Mid(Source, StartPos, Len(Source))&lt;br /&gt;
      End If                &amp;#039; Position &amp;lt;&amp;gt; 0&lt;br /&gt;
    Loop &lt;br /&gt;
  End If &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Replace = Result&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The function searches through the transferred &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt; string in a loop by means of &amp;lt;tt&amp;gt;InStr&amp;lt;/tt&amp;gt; in the original term &amp;lt;tt&amp;gt;Source&amp;lt;/tt&amp;gt;. If it finds the search term, it takes the part before the expression and writes it to the &amp;lt;tt&amp;gt;Result&amp;lt;/tt&amp;gt; return buffer. It adds the &amp;lt;tt&amp;gt;NewPart&amp;lt;/tt&amp;gt; section at the point of the search term &amp;lt;tt&amp;gt;Search&amp;lt;/tt&amp;gt;. If no more matches are found for the search term, the function establishes the part of the string still remaining and adds this to the return buffer. It returns the string produced in this way as the result of the replacement process.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since replacing parts of character sequences is one of the most frequently used functions, the &amp;lt;tt&amp;gt;Mid&amp;lt;/tt&amp;gt; function in {{OOo}} Basic has been extended so that this task is performed automatically. The following example replaces three characters with the string &amp;lt;tt&amp;gt;is&amp;lt;/tt&amp;gt; from the sixth position of the &amp;lt;tt&amp;gt;MyString&amp;lt;/tt&amp;gt; string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
 &lt;br /&gt;
MyString = &amp;quot;This was my text&amp;quot;&lt;br /&gt;
Mid(MyString, 6, 3, &amp;quot;is&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Formatting Strings ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function formats numbers as a string. To do this, the function expects a &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; expression to be specified, which is then used as the template for formatting the numbers. Each place holder within the template ensures that this item is formatted correspondingly in the output value. The five most important place holders within a template are the zero (&amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt;), pound sign (&amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt;), period (&amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt;), comma (&amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt;) and dollar sign (&amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;) characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; character within the template ensures that a number is always placed at the corresponding point. If a number is not provided, 0 is displayed in its place. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; stands for the decimal point symbol defined by the operating system in the country-specific settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example below shows how the &amp;lt;tt&amp;gt;0&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;.&amp;lt;/tt&amp;gt; characters can define the digits after the decimal point in an expression:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the same way, zeros can be added in front of a number to achieve the desired length:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;0000.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0000,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0000,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;tt&amp;gt;,&amp;lt;/tt&amp;gt; represents the character that the operating system uses for a thousands separator, and the &amp;lt;tt&amp;gt;#&amp;lt;/tt&amp;gt; stands for a digit or place that is only displayed if it is required by the input string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00&amp;quot;&lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80&amp;quot;&lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40&amp;quot;&lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In place of the &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt; place holder, the &amp;lt;tt&amp;gt;Format&amp;lt;/tt&amp;gt; function displays the relevant currency symbol defined by the system (this example assumes a European locale has been defined):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
MyFormat = &amp;quot;#,##0.00 $&amp;quot;   &lt;br /&gt;
MyString = Format(-1579.8, MyFormat)     &amp;#039; Provides &amp;quot;-1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(1579.8, MyFormat)      &amp;#039; Provides &amp;quot;1.579,80 €&amp;quot; &lt;br /&gt;
MyString = Format(0.4, MyFormat)         &amp;#039; Provides &amp;quot;0,40 €&amp;quot; &lt;br /&gt;
MyString = Format(0.434, MyFormat)       &amp;#039; Provides &amp;quot;0,43 €&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The format instructions used in VBA for formatting date and time details can also be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
sub main&lt;br /&gt;
    dim myDate as date&lt;br /&gt;
    myDate = &amp;quot;01/06/98&amp;quot;&lt;br /&gt;
    TestStr = Format(myDate, &amp;quot;mm-dd-yyyy&amp;quot;) &amp;#039; 01-06-1998&lt;br /&gt;
    MsgBox TestStr&lt;br /&gt;
end sub &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings (Runtime Library)}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140563</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=140563"/>
		<updated>2009-09-17T07:32:31Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|Introduction to the API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140562</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide/Strings</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide/Strings&amp;diff=140562"/>
		<updated>2009-09-17T07:32:18Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{DISPLAYTITLE: 字符串变量}} {{Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Working With Variables |NextPage=Do…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE: 字符串变量}}&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Working With Variables&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
Strings, together with numbers, form the most important basic types of {{OOo}} Basic. A string consists of a sequence of consecutive individual characters. The computer saves the strings internally as a sequence of numbers where each number represents one specific character.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==From a Set of ASCII Characters to Unicode==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Character sets match characters in a string with a corresponding code (numbers and characters) in a table that describes how the computer is to display the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ASCII Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ASCII character set is a set of codes that represent numbers, characters, and special symbols by one byte. The 0 to 127 ASCII codes correspond to the alphabet and to common symbols (such as periods, parentheses, and commas), as well as some special screen and printer control codes. The ASCII character set is commonly used as a standard format for transferring text data between computers. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, this character set does not include a range of special characters used in Europe, such as â, ä, and î, as well as other character formats, such as the Cyrillic alphabet.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===The ANSI Character Set===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Microsoft based its Windows product on the American National Standards Institute (ANSI) character set, which was gradually extended to include characters that are missing from the ASCII character set.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Code Pages===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ISO 8859 character sets provide an international standard. The first 128 characters of the ISO character set correspond to the ASCII character set. The ISO standard introduces new character sets (&amp;#039;&amp;#039;&amp;#039;code pages&amp;#039;&amp;#039;&amp;#039;) so that more languages can be correctly displayed. However, as a result, the same character value can represent different characters in different languages.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Unicode===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unicode increases the length of a character to four bytes and combines different character sets to create a standard to depict as many of the world&amp;#039;s languages as possible. Version 2.0 of Unicode is now supported by many programs — including {{OOo}} and {{OOo}} Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==String Variables==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic saves strings as string variables in Unicode. A string variable can store up to 65535 characters. Internally, {{OOo}} Basic saves the associated Unicode value for every character. The working memory needed for a string variable depends on the length of the string.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a string variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable As String&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can also write this declaration as:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Variable$&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|When porting VBA applications, ensure that the maximum allowed string length in {{OOo}} Basic is observed (65535 characters).}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Specification of Explicit Strings==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To assign an explicit string to a string variable, enclose the string in quotation marks (&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot; This is a test&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To split a string across two lines of code, add an ampersand sign (the concatenation operator) and the underscore continuation character at the end of the first line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString =   &amp;quot;This string is so long that it &amp;quot; &amp;amp; _&lt;br /&gt;
             &amp;quot;has been split over two lines.&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To include a quotation mark (&amp;quot;) in a string, enter it twice at the relevant point:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim MyString As String&lt;br /&gt;
MyString = &amp;quot;a &amp;quot;&amp;quot;-quotation mark.&amp;quot;    &amp;#039; produces a &amp;quot;-quotation mark&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Strings}}&lt;br /&gt;
{{PDL1}}&lt;br /&gt;
&lt;br /&gt;
[[Category:G11n Wiki Translation]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139697</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139697"/>
		<updated>2009-09-09T01:05:24Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[G11NWIKITEST/Documentation/BASIC Guide|基本指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Language|多语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|基本程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|利用变量工作]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|模版]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|图标类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|数据资源]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139696</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139696"/>
		<updated>2009-09-09T01:02:41Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|基本指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|多语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|基本程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|利用变量工作]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|模版]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|图标类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|数据资源]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139635</id>
		<title>Template:G11ntest/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139635"/>
		<updated>2009-09-08T19:29:31Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/Banner}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{ZH/Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[ZH/Documentation/BASIC Guide|{{OOo}} BASIC 编程指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|{{OOo}} BASIC 语言]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|{{OOo}} Basic 程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|使用变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|字符串变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|数字变量]]&lt;br /&gt;
* [[g11ntest/Documentation/BASIC Guide/Boolean|布尔变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|日期和时间变量]]&lt;br /&gt;
* [[g11ntest/Documentation/BASIC Guide/Arrays|数组]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|变量的作用域和生命周期]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|常量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|运算符]]&lt;br /&gt;
* [[g11ntest/Documentation/BASIC Guide/Branching|分支]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Loops|循环]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Procedures and Functions|过程和函数]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Error Handling|错误处理]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Runtime Library|{{OOo}} Basic 的运行时库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Conversion Functions (Runtime Library)|转换函数（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Strings (Runtime Library)|字符串（{{OOo}} BASIC 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Date and Time (Runtime Library)|日期和时间（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Files and Directories (Runtime Library)|文件和目录（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|消息和输入框（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Other Functions (Runtime Library)|其他函数（{{OOo}} 运行时库）]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/API Intro|{{OOo}} API 简介]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/UNO|通用网络对象 (Universal Network Objects, UNO)]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Properties and Methods (API)|属性和方法 (API)]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Modules, Services and Interfaces|模块、服务和接口]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/UNO Tools|使用 UNO 时所需的工具]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Interface Overview|几个主要接口的概述]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Documents|使用 {{OOo}} 文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/StarDesktop|StarDesktop]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Templates|模板]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Text Documents|文本文档结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Text Documents|编辑文本文档]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/More Than Text| 文本文档：文本以外的内容]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Spreadsheets|电子表格]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Spreadsheets|电子表格文档结构]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Rows and Columns|行和列]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Cells and Ranges|单元格和区域]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Formatting Spreadsheet Documents|设置电子表格文档格式]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Spreadsheet Documents|编辑电子表格文档]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Drawings Presentations|绘图和演示文稿]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Drawings|绘图结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Drawing Objects|编辑绘图对象]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Presentations|演示文稿]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Charts|图表]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Charts in Spreadsheets|在电子表格中使用图表]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Charts|图表结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Chart Types|图表类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/SQL|SQL: 查询语言]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Access Types|数据库访问类型]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Data Sources|数据源]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Access|数据库访问]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Dialogs|对话框]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Working With Dialogs|使用对话框]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Properties|属性]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Events|事件]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Control Elements|对话框控制元素详述]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Forms|表单]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Working With Forms|使用表单]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Control Element Forms|控制元素表单详述]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Forms|数据库表单]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide&amp;diff=139634</id>
		<title>G11NWIKITEST/Documentation/BASIC Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/Documentation/BASIC_Guide&amp;diff=139634"/>
		<updated>2009-09-08T19:28:39Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=none&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Language&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:{{OOo}} 中文BASIC Programming Guide}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Download_Collection|MediaWiki:Collections/BASIC_Guide}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 This guide provides an introduction to programming with {{OOo}} Basic. 中文 To get the most out of this book, you should be familiar with other programming languages. 中文 Extensive examples are provided to help you quickly develop your own {{OOo}} Basic programs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 This guide divides information about {{OOo}} administration into several chapters. 中文 The first three chapters introduce you to {{OOo}} Basic:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime_Library|Runtime Library]]&lt;br /&gt;
* [[Documentation/BASIC Guide/API_Intro|Introduction to the API]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 These chapters provide an overview of {{OOo}} Basic and should be read by anyone who intends to write {{OOo}} Basic programs. 中文 The remaining chapters describe the individual components of the {{OOo}} API in more detail and can be read selectively as required:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Drawings Presentations|Drawings and Presentations]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==中文 About {{OOo}} Basic==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 The {{OOo}} Basic programming language has been developed especially for {{OOo}} and is firmly integrated in the Office package.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
中文 As the name suggests, {{OOo}} Basic is a programming language from the Basic family. Anyone who has previously worked with other Basic languages — in particular with Visual Basic or Visual Basic for Applications (VBA) from Microsoft — will quickly become accustomed to {{OOo}} Basic. Large sections of the basic constructs of {{OOo}} Basic are compatible with Visual Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} Basic programming language can be divided into four components:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The language of {{OOo}} Basic: Defines the elementary linguistic constructs, for example, for variable declarations, loops, and functions.&lt;br /&gt;
* The runtime library: Provides standard functions which have no direct reference to {{OOo}}, for example, functions for editing numbers, strings, date values, and files.&lt;br /&gt;
* The {{OOo}} API (Application Programming Interface): Permits access to {{OOo}} documents and allows these to be created, saved, modified, and printed.&lt;br /&gt;
* The Dialog Editor: Creates personal dialog windows and provides scope for the adding of control elements and event handlers.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|Compatibility between {{OOo}} Basic and VBA relates to the {{OOo}} Basic language as well as the runtime library. The {{OOo}} API and the Dialog Editor are not compatible with VBA (standardizing these interfaces would have made many of the concepts provided in {{OOo}} impossible).}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Intended Users of {{OOo}} Basic==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The scope of application for {{OOo}} Basic begins where the standard functions of {{OOo}} end. Routine tasks can therefore be automated in {{OOo}} Basic, links can be made to other programs — for example to a database server — and complex activities can be performed at the press of a button by using predefined scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic offers complete access to all {{OOo}} functions, supports all functions, modifies document types, and provides options for creating personal dialog windows.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Use of {{OOo}} Basic==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic can be used by any {{OOo}} user without any additional programs or aids. Even in the standard installation, {{OOo}} Basic has all the components needed to create its own Basic macros, including:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* The integrated development environment (IDE) which provides an editor for creating and testing macros.&lt;br /&gt;
* The interpreter, which is needed to run {{OOo}} Basic macros.&lt;br /&gt;
* The interfaces to various {{OOo}} applications, which allow for direct access to Office documents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==More Information==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The components of the {{OOo}} API that are discussed in this guide were selected based on their practical benefits for the {{OOo}} Basic programmer. In general, only parts of the interfaces are discussed. For a more detailed picture, see [http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html the API reference].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The [[Documentation/DevGuide/OpenOffice.org_Developers_Guide|Developer&amp;#039;s Guide]] describes the {{OOo}} API in more detail than this guide, but is primarily intended for Java and C++ programmers. Anyone who is already familiar with {{OOo}} Basic programming can find additional information in the Developer&amp;#039;s Guide on {{OOo}} Basic and {{OOo}} programming.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Programmers who want to work directly with Java or C++ rather than {{OOo}} Basic should consult the {{OOo}} Developer&amp;#039;s Guide instead of this guide. {{OOo}} programming with Java or C++ is a considerably more complex process than programming with {{OOo}} Basic.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139633</id>
		<title>Template:G11ntest/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139633"/>
		<updated>2009-09-08T19:27:16Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/Banner}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{ZH/Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[ZH/Documentation/BASIC Guide|{{OOo}} BASIC 编程指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|{{OOo}} BASIC 语言]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|{{OOo}} Basic 程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|使用变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|字符串变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|数字变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|布尔变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|日期和时间变量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|数组]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|变量的作用域和生命周期]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|常量]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|运算符]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|分支]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Loops|循环]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Procedures and Functions|过程和函数]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Error Handling|错误处理]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Runtime Library|{{OOo}} Basic 的运行时库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Conversion Functions (Runtime Library)|转换函数（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Strings (Runtime Library)|字符串（{{OOo}} BASIC 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Date and Time (Runtime Library)|日期和时间（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Files and Directories (Runtime Library)|文件和目录（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|消息和输入框（{{OOo}} 运行时库）]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Other Functions (Runtime Library)|其他函数（{{OOo}} 运行时库）]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/API Intro|{{OOo}} API 简介]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/UNO|通用网络对象 (Universal Network Objects, UNO)]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Properties and Methods (API)|属性和方法 (API)]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Modules, Services and Interfaces|模块、服务和接口]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/UNO Tools|使用 UNO 时所需的工具]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Interface Overview|几个主要接口的概述]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Documents|使用 {{OOo}} 文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/StarDesktop|StarDesktop]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Templates|模板]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Text Documents|文本文档结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Text Documents|编辑文本文档]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/More Than Text| 文本文档：文本以外的内容]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Spreadsheets|电子表格]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Spreadsheets|电子表格文档结构]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Rows and Columns|行和列]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Cells and Ranges|单元格和区域]]&lt;br /&gt;
** [[ZH/Documentation/BASIC Guide/Formatting Spreadsheet Documents|设置电子表格文档格式]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Spreadsheet Documents|编辑电子表格文档]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Drawings Presentations|绘图和演示文稿]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Drawings|绘图结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Editing Drawing Objects|编辑绘图对象]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Presentations|演示文稿]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Charts|图表]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Charts in Spreadsheets|在电子表格中使用图表]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Structure of Charts|图表结构]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Chart Types|图表类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/SQL|SQL: 查询语言]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Access Types|数据库访问类型]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Data Sources|数据源]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Access|数据库访问]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Dialogs|对话框]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Working With Dialogs|使用对话框]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Properties|属性]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Events|事件]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Control Elements|对话框控制元素详述]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Forms|表单]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Working With Forms|使用表单]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Control Element Forms|控制元素表单详述]]&lt;br /&gt;
* [[ZH/Documentation/BASIC Guide/Database Forms|数据库表单]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139632</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139632"/>
		<updated>2009-09-08T19:23:04Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{g11ntest/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[g11ntest/Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139631</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139631"/>
		<updated>2009-09-08T19:22:51Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{g11ntest/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139630</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139630"/>
		<updated>2009-09-08T19:22:44Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Boolean Variables}}&lt;br /&gt;
&lt;br /&gt;
{{g11ntest/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
Boolean variables can only contain one of two values: &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide&amp;diff=139629</id>
		<title>G11ntest/Documentation/BASIC Guide</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/Documentation/BASIC_Guide&amp;diff=139629"/>
		<updated>2009-09-08T19:21:59Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{g11ntest/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=none&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Language&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:{{OOo}} Basic编程指南}} &lt;br /&gt;
____&lt;br /&gt;
{{Download_Collection|MediaWiki:Collections/BASIC_Guide}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
本指南将介绍Programming with {{OOo}} Basic。 要获得充分利用本书,您应该熟悉其他编程语言。 提供了大量示例,帮助您快速开发自己的 {{OOo}} Basic程序。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
本指南将关于 {{OOo}} 管理几个章节。 前三章介绍 {{OOo}} 基本: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|The Language of {{OOo}} Basic]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime_Library|Runtime Library]]&lt;br /&gt;
* [[g11ntest/Documentation/BASIC Guide/API_Intro|Introduction to the API]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
这些章节概述了 {{OOo}} 基本及应该阅读这些任何有意编写 {{OOo}} Basic程序。 其余的章节介绍了各个组件 {{OOo}} API的详细信息,可以有选择地理解为必需的: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|Working with Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|Drawings and Presentations]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== {{OOo}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在 {{OOo}} Basic编程语言开发特别是, {{OOo}} 并且被紧密地集成到Office软件包。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
顾名思义, {{OOo}} Basic编程语言Basic系列。 以前使用过其他Basic语言〉(尤其是Visual Basic或Visual Basic for Applications(VBA)的Microsoft-将很快就能熟悉 {{OOo}} 基本。 较大的基本结构 {{OOo}} Basic与Visual Basic兼容。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在 {{OOo}} Basic编程语言分为四个部分: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 该语言 {{OOo}} Basic:定义基本语言结构,例如,变量声明、循环和函数。 &lt;br /&gt;
* 运行时库:提供标准函数不直接引用 {{OOo}},例如,函数用于编辑数字、字串、日期值和文件。 &lt;br /&gt;
* 此 {{OOo}} API(应用程序编程接口):允许访问 {{OOo}} 文档,并允许将这些创建、保存、修改和打印。 &lt;br /&gt;
* 对话框编辑器:创建个人对话窗口并提供范围加入控制元素和事件处理程序。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|Compatibility between {{OOo}} Basic和VBA与 {{OOo}} Basic语言和运行时库。 此 {{OOo}} API和对话框编辑器不兼容的VBA(标准化这些接口会有很多的概念提供 {{OOo}} 无法实现)。 }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
用户 {{OOo}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
使用的范围, {{OOo}} Basic开始标准功能的 {{OOo}} 结束 例程任务可自动在 {{OOo}} Basic中,链接可以建立与其他程序,例如数据库服务器,复杂活动可执行的按钮使用预设脚本。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} Basic可以完全访问所有 {{OOo}} 功能,支持所有功能,还可以修改文档类型,以及提供选项建立个人对话窗口。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== {{OOo}} &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} 基本可由所有 {{OOo}} 用户,而没有任何附加程序和辅助工具。 即使在标准安装中, {{OOo}} Basic具有所有组件所需创建自己的Basic宏,其中包括: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 集成开发环境(IDE),它提供了编辑器用于创建和测试宏。 &lt;br /&gt;
* 解释程序,时需要该运行 {{OOo}} Basic宏。 &lt;br /&gt;
* 接口各种 {{OOo}} 应用程序,允许直接访问Office文档。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
组件的 {{OOo}} API将介绍本指南中选择根据其实际价值的 {{OOo}} Basic程序员。 一般只部分接口进行了讨论。 有关详细图像,请参见 [http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html the API reference]。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在 [[文档//OpenOffice.org_开发者_指南|Developer&amp;#039;s Guide]]介绍了 {{OOo}} API更详细的情况指南》,而是主要适用于Java和C++ 程序员。 任何已经熟悉了 {{OOo}} Basic编程可以查找其他信息Developer&amp;#039;s Guide的 {{OOo}} 基本功能和 {{OOo}} 编程。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
程序员希望直接在Java或C++ (而不是 {{OOo}} 基本应查阅《 {{OOo}} 开发者指南》,而此指南。 {{OOo}} 编程Java或C++ 是一个相当较复杂的进程编程 {{OOo}} Basic。 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139623</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139623"/>
		<updated>2009-09-08T18:29:57Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[G11NWIKITEST/Documentation/BASIC Guide|基本指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Language|多语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|基本程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|利用变量工作]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|模版]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|图标类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|数据资源]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[G11NWIKITEST/Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139537</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139537"/>
		<updated>2009-09-08T08:25:09Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139536</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139536"/>
		<updated>2009-09-08T08:24:50Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139535</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139535"/>
		<updated>2009-09-08T08:24:37Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Boolean Variables}}&lt;br /&gt;
&lt;br /&gt;
{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
Boolean variables can only contain one of two values: &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139532</id>
		<title>Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139532"/>
		<updated>2009-09-08T08:22:00Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|基本指南]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|多语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|基本程序概述]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|利用变量工作]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|模版]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|绘图和演示]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|图标类型]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|数据库]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|数据资源]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=MediaWiki_source_Documentation_BASIC/Template:g11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139529</id>
		<title>MediaWiki source Documentation BASIC/Template:g11ntest/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=MediaWiki_source_Documentation_BASIC/Template:g11ntest/Documentation/BASICGuideTOC/v2&amp;diff=139529"/>
		<updated>2009-09-08T07:25:30Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/MasterTOC |ShowPrevPage={{{ShowPrevPage}}} |PrevPage={{{PrevPage}}} |ShowNextPage={{{ShowNextPage}}} |NextPage={{{NextPage}}} |bookid=BASICGuide |ShowParttitle=no…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|Drawings and Presentations]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139528</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139528"/>
		<updated>2009-09-08T07:25:26Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets |NextPage=Documentation/BASIC Guide/Chart Type…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139527</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139527"/>
		<updated>2009-09-08T07:25:22Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/UNO Tools |NextPage=Documentation/BASIC Guide/Documents |api=block }}…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139526</id>
		<title>G11ntest/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11ntest/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139526"/>
		<updated>2009-09-08T07:25:18Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: Created page with &amp;#039;{{DISPLAYTITLE:Boolean Variables}}  {{Documentation/BASICGuideTOC/v2 |ShowPrevNext=block |ShowPrevPage=block |PrevPage=Documentation/BASIC Guide/Numbers |NextPage=Documentation/B…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Boolean Variables}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
Boolean variables can only contain one of two values: &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139525</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139525"/>
		<updated>2009-09-08T07:19:54Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139524</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139524"/>
		<updated>2009-09-08T07:19:50Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139523</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139523"/>
		<updated>2009-09-08T07:19:46Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Boolean Variables}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
Boolean variables can only contain one of two values: &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139396</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139396"/>
		<updated>2009-09-07T13:13:46Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[G11NWIKITEST/Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139395</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139395"/>
		<updated>2009-09-07T13:13:24Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139394</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Boolean</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Boolean&amp;diff=139394"/>
		<updated>2009-09-07T13:13:11Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Boolean Variables}}&lt;br /&gt;
&lt;br /&gt;
{{G11NWIKITEST/Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Numbers&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Date&lt;br /&gt;
|lang=block&lt;br /&gt;
}}&lt;br /&gt;
 &lt;br /&gt;
Boolean variables can only contain one of two values: &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt;. They are suitable for binary specifications that can only adopt one of two statuses. A Boolean value is saved internally as a two-byte integer value, where 0 corresponds to the False and any other value to True. There is no type declaration symbol for Boolean variables. The declaration can only be made using the supplement &amp;lt;tt&amp;gt;As Boolean&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example declaration of a Boolean variable:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
 Dim Variable As Boolean&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Boolean}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=MediaWiki_source_Documentation_BASIC/Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139387</id>
		<title>MediaWiki source Documentation BASIC/Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=MediaWiki_source_Documentation_BASIC/Template:G11NWIKITEST/Documentation/BASICGuideTOC/v2&amp;diff=139387"/>
		<updated>2009-09-07T13:09:28Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/MasterTOC&lt;br /&gt;
|ShowPrevPage={{{ShowPrevPage}}}&lt;br /&gt;
|PrevPage={{{PrevPage}}}&lt;br /&gt;
|ShowNextPage={{{ShowNextPage}}}&lt;br /&gt;
|NextPage={{{NextPage}}}&lt;br /&gt;
|bookid=BASICGuide&lt;br /&gt;
|ShowParttitle=none&lt;br /&gt;
|ShowPrevPart=none&lt;br /&gt;
|ShowNextPart=none&lt;br /&gt;
|booktitle=[[Documentation/BASIC Guide|BASIC Guide]]&lt;br /&gt;
|toccontent=&amp;lt;section begin=toccontent /&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Language|语言{{OOo}} Basic]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;lang&amp;quot; style=&amp;quot;display:{{{lang|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Program Overview|Overview of a Basic Program]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Variables|Working With Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Numbers|Numbers]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Boolean|Boolean Values]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Arrays|Arrays]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Scope of Variables|Scope and Life Span of Variables]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Constants|Constants]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Operators|Operators]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Branching|Branching]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Loops|Loops]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Procedures and Functions|Procedures and Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Error Handling|Error Handling]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Instructions|Other Instructions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Runtime Library|Runtime Library中文]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;runtime&amp;quot; style=&amp;quot;display:{{{runtime|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Conversion Functions (Runtime Library)|Conversion Functions]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Strings (Runtime Library)|Strings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Date and Time (Runtime Library)|Date and Time]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Files and Directories (Runtime Library)|Files and Directories]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Message and Input Boxes (Runtime Library)|Message and Input Boxes]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Other Functions (Runtime Library)|Other Functions]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/API Intro|介绍 API]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;api&amp;quot; style=&amp;quot;display:{{{api|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO|Universal Network Objects (UNO)]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties and Methods (API)|Properties and Methods]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Modules, Services and Interfaces|Modules, Services and Interfaces]]&lt;br /&gt;
* [[Documentation/BASIC Guide/UNO Tools|Tools for Working with UNO]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Interface Overview|Overview of Central Interfaces]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Documents|参照文档工作]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;docs&amp;quot; style=&amp;quot;display:{{{docs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/StarDesktop|The StarDesktop]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Templates|Templates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Text Documents|文本文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;textdocs&amp;quot; style=&amp;quot;display:{{{textdocs|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Text Documents|The Structure of Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Text Documents|Editing Text Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/More Than Text|More than Just Text]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Spreadsheets|数据表文档]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;spread&amp;quot; style=&amp;quot;display:{{{spread|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Spreadsheets|The Structure of Spreadsheets]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Rows and Columns|Rows and Columns]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Cells and Ranges|Cells and Ranges]]&lt;br /&gt;
** [[Documentation/BASIC Guide/Formatting Spreadsheet Documents|Formatting Spreadsheet Documents]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Spreadsheet Documents|Editing Spreadsheet Documents]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Drawings Presentations|Drawings and Presentations]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;draw&amp;quot; style=&amp;quot;display:{{{draw|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Drawings|The Structure of Drawings]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Editing Drawing Objects|Editing Drawing Objects]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Presentations|Presentations]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts|Charts (Diagrams)]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;chart&amp;quot; style=&amp;quot;display:{{{chart|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Charts in Spreadsheets|Using Charts in Spreadsheets]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Structure of Charts|The Structure of Charts]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Chart Types|Chart Types]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Database|Databases]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;base&amp;quot; style=&amp;quot;display:{{{base|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/SQL|SQL: a Query Language]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access Types|Types of Database Access]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Data Sources|Data Sources]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Access|Database Access]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Dialogs|Dialogs]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;dial&amp;quot; style=&amp;quot;display:{{{dial|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Dialogs|Working With Dialogs]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Properties|Properties]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Events|Events]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Elements|Dialog Control Elements]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Forms|Forms]]&lt;br /&gt;
&amp;lt;div id=&amp;quot;form&amp;quot; style=&amp;quot;display:{{{form|none}}};margin-left: 12px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Documentation/BASIC Guide/Working With Forms|Working With Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Control Element Forms|Control Element Forms]]&lt;br /&gt;
* [[Documentation/BASIC Guide/Database Forms|Database Forms]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;section end=toccontent /&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation/BASIC Guide]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Exclude in print|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139386</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Structure of Charts</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Structure_of_Charts&amp;diff=139386"/>
		<updated>2009-09-07T13:09:22Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/Charts in Spreadsheets&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Chart Types&lt;br /&gt;
|chart=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:The Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The structure of a chart, and therefore the list of services and interfaces supported by it, depends on the chart type. For example, the methods and properties of the Z-axis, are available in 3D charts, but not in 2D charts, and in pie charts, there are no interfaces for working with axes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Title, Subtitle and Legend ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Title, subtitle and legend are basic elements provided for every chart. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the following properties for administrating these elements:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasMainTitle (Boolean)&amp;lt;/tt&amp;gt;:activates the title&lt;br /&gt;
;&amp;lt;tt&amp;gt;Title (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart title (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSubTitle(Boolean)&amp;lt;/tt&amp;gt;:activates the subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;Subtitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the chart subtitle (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasLegend (Boolean)&amp;lt;/tt&amp;gt;:activates the legend&lt;br /&gt;
;&amp;lt;tt&amp;gt;Legend (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the legend (supports the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Both services &amp;lt;tt&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/tt&amp;gt; do support the service &amp;lt;tt&amp;gt;com.sun.star.drawing.Shape&amp;lt;/tt&amp;gt;. This allows to determine the position and size of the elements using the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Size&amp;lt;/tt&amp;gt; properties. As the size of the legend and the titles is calculated automatically based on the current content and the character height for example, the size property provides read access only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services) as well as the character properties (&amp;lt;idl&amp;gt;com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service) are provided for further formatting of the elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; contains not only the listed formatting properties, but also two other properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;String (String)&amp;lt;/tt&amp;gt;:text which to be displayed as the title or subtitle&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text in 100ths of a degree&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The legend (&amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegend&amp;lt;/idl&amp;gt;) contains the following additional property:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Alignment (Enum)&amp;lt;/tt&amp;gt;:position at which the legend appears (value of type &amp;lt;idl&amp;gt;com.sun.star.chart.ChartLegendPosition&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a chart with a title &amp;quot;Main Title String&amp;quot;, a subtitle &amp;quot;Subtitle String&amp;quot; and a legend. The legend has a gray background color, is placed at the bottom of the chart, and has a character size of 7 points.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.HasMainTitle = True&lt;br /&gt;
Chart.Title.String = &amp;quot;Main Title String&amp;quot;&lt;br /&gt;
Chart.HasSubTitle = True&lt;br /&gt;
Chart.Subtitle.String = &amp;quot;Subtitle String&amp;quot;&lt;br /&gt;
Chart.HasLegend = True &lt;br /&gt;
Chart.Legend.Alignment = com.sun.star.chart.ChartLegendPosition.BOTTOM&lt;br /&gt;
Chart.Legend.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Legend.FillColor = RGB(210, 210, 210)&lt;br /&gt;
Chart.Legend.CharHeight = 7&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Every chart has a background area. The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Area&amp;lt;/tt&amp;gt; to format the background:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Area (Object)&amp;lt;/tt&amp;gt;:background area of the chart (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The background of a chart covers its complete area, including the area under the title, subtitle and legend. The associated &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service supports line and fill properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Diagram ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Chart&amp;lt;/tt&amp;gt; object provides the property &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; which forms the coordinate system with axes and grids, where the data finally is displayed:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Diagram (Object)&amp;lt;/tt&amp;gt;:object forming the coordinate system where the data is plotted.  It supports &amp;lt;idl&amp;gt;com.sun.star.chart.Diagram&amp;lt;/idl&amp;gt; service and:&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisZSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisXSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
:* &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTwoAxisYSupplier&amp;lt;/idl&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Different services are supported depending on the chart type (see&lt;br /&gt;
[[Documentation/BASIC_Guide/Chart_Types|Chart Types]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Wall and Floor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The chart wall is the background of the coordinate system where the data is plotted.&lt;br /&gt;
Two chart walls usually exist for 3D charts: one behind the plotted data and one as the left-hand or right-hand demarcation. This depends on the rotation of the chart. 3D charts usually also have a floor.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the properties Wall and Floor:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Wall (Object)&amp;lt;/tt&amp;gt;:background wall of the coordinate system (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Floor (Object)&amp;lt;/tt&amp;gt;:floor panel of coordinate system (only for 3D charts, supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specified objects support the &amp;lt;tt&amp;gt;com.sun.star.chart.ChartArea&amp;lt;/tt&amp;gt; service, which provides the usual fill and line properties (&amp;lt;idl&amp;gt;com.sun.star.drawing.FillProperties&amp;lt;/idl&amp;gt; and &amp;lt;idl&amp;gt;com.sun.star.drawing.LineProperties&amp;lt;/idl&amp;gt; services, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example shows how graphics (named Sky) already contained in {{OOo}} can be used as a background for a chart. The wall is set to be blue.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).EmbeddedObject&lt;br /&gt;
Chart.Area.FillStyle = com.sun.star.drawing.FillStyle.BITMAP&lt;br /&gt;
Chart.Area.FillBitmapName = &amp;quot;Sky&amp;quot;&lt;br /&gt;
Chart.Area.FillBitmapMode = com.sun.star.drawing.BitmapMode.REPEAT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.Wall.FillStyle = com.sun.star.drawing.FillStyle.SOLID&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(00,132,209)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{OOo}} recognizes five different axes that can be used in a chart. In the simplest scenario, these are the X and Y-axes. When working with 3D charts, a Z-axis is also sometimes provided. For charts in which the values of the various rows of data deviate significantly from one another, {{OOo}} provides a second X and Y-axis for second scaling operations.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the Z-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryXAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary X-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxis (Boolean)&amp;lt;/tt&amp;gt;:activates the secondary Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondaryYAxis (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisDescription (Boolean)&amp;lt;/tt&amp;gt;:activates the labels for the interval marks for the secondary Y-axis&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Properties of Axes ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The axis objects of a {{OOo}} chart support the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxis&amp;lt;/idl&amp;gt; service. In addition to the properties for characters &amp;lt;idl&amp;gt;(com.sun.star.style.CharacterProperties&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Text_Documents|Text Documents]]) and lines &amp;lt;idl&amp;gt;(com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; service, refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]), it provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Scaling properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Max (Double)&amp;lt;/tt&amp;gt;:maximum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Min (Double)&amp;lt;/tt&amp;gt;:minimum value for axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;Origin (Double)&amp;lt;/tt&amp;gt;:point of intersect for crossing axes&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepMain (Double)&amp;lt;/tt&amp;gt;:distance between the major interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelp (Double)&amp;lt;/tt&amp;gt;:distance between the minor interval marks (deprecated since OpenOffice.org 3.0; Use property StepHelpCount instead)&lt;br /&gt;
;&amp;lt;tt&amp;gt;StepHelpCount (Long)&amp;lt;/tt&amp;gt;:Contains the number of minor intervals within a major interval. E.g. a StepHelpCount of 5 divides the major interval into 5 pieces and thus produces 4 minor tick marks. (available since OpenOffice.org 3.0)&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMax (Boolean)&amp;lt;/tt&amp;gt;:the maximum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoMin (Boolean)&amp;lt;/tt&amp;gt;:the minimum value for the axis is calculated automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoOrigin (Boolean)&amp;lt;/tt&amp;gt;:the origin is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepMain (Boolean)&amp;lt;/tt&amp;gt;:StepMain is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;AutoStepHelp (Boolean)&amp;lt;/tt&amp;gt;:StepHelpCount is determined automatically when set to true&lt;br /&gt;
;&amp;lt;tt&amp;gt;Logarithmic (Boolean)&amp;lt;/tt&amp;gt;:scales the axes in logarithmic manner (rather than linear)&lt;br /&gt;
;&amp;lt;tt&amp;gt;ReverseDirection (Boolean)&amp;lt;/tt&amp;gt;:determines if the axis orientation is mathematical or reversed. (available since OpenOffice.org 2.4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Label properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;DisplayLabels (Boolean)&amp;lt;/tt&amp;gt;:activates the text label at the interval marks&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextRotation (Long)&amp;lt;/tt&amp;gt;:angle of rotation of text label in 100ths of a degree&lt;br /&gt;
;&amp;lt;tt&amp;gt;ArrangeOrder (enum)&amp;lt;/tt&amp;gt;:the label may be staggered, thus they are positioned alternately over two lines (values according to &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisArrangeOrderType&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextBreak (Boolean)&amp;lt;/tt&amp;gt;:permits line breaks within the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;TextCanOverlap (Boolean)&amp;lt;/tt&amp;gt;:permits an overlap of the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;NumberFormat (Long)&amp;lt;/tt&amp;gt;:number format to be used with the axes labels&lt;br /&gt;
;&amp;lt;tt&amp;gt;LinkNumberFormatToSource (Boolean)&amp;lt;/tt&amp;gt;:determines whether to use the number format given by the container document, or from the property &amp;lt;tt&amp;gt;NumberFormat&amp;lt;/tt&amp;gt;. (since OpenOffice.org 2.3)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Interval mark properties:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Marks (Const)&amp;lt;/tt&amp;gt;:determines the position of the major interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HelpMarks (Const)&amp;lt;/tt&amp;gt;:determines the position of the minor interval marks (values in accordance with &amp;lt;idl&amp;gt;com.sun.star.chart.ChartAxisMarks&amp;lt;/idl&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only for bar charts:===&lt;br /&gt;
;&amp;lt;tt&amp;gt;Overlap (Long)&amp;lt;/tt&amp;gt;:percentage which specifies the extent to which the bars of different sets of data may overlap (at 100%, the bars are shown as completely overlapping, at -100%, there is a distance of the width of one bar between them)&lt;br /&gt;
;&amp;lt;tt&amp;gt;GapWidth (long)&amp;lt;/tt&amp;gt;:percentage which specifies the distance there may be between the different groups of bars of a chart (at 100%, there is a distance corresponding to the width of one bar)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Grids ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the primary axes grids and sub grids can be displayed, matching to the major and minor intervals.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the grids:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the same for y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisGrid (Boolean)&amp;lt;/tt&amp;gt;:activates major grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZMainGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the major grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisHelpGrid (Boolean)&amp;lt;/tt&amp;gt;:activates minor grid for Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZHelpGrid (Object)&amp;lt;/tt&amp;gt;:object with detailed information about the minor grid for Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The grid object is based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartGrid&amp;lt;/idl&amp;gt; service, which in turn supports the line properties of the &amp;lt;idl&amp;gt;com.sun.star.drawing.LineStyle&amp;lt;/idl&amp;gt; support service (refer to [[Documentation/BASIC_Guide/Drawings_Presentations|Drawings and Presentations]]).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Axes Title ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For all axes an additional title can be displayed.&lt;br /&gt;
The &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object provides the following properties to access the axes title:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of X-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;XAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
same y and z:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Y-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;YAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasZAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of Z-axis&lt;br /&gt;
;&amp;lt;tt&amp;gt;ZAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the Z-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and for the secondary axes (available since OpenOffice.org 3.0):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryXAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary X-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondXAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary X-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;HasSecondaryYAxisTitle (Boolean)&amp;lt;/tt&amp;gt;:activates title of the secondary Y-axis. &lt;br /&gt;
;&amp;lt;tt&amp;gt;SecondYAxisTitle (Object)&amp;lt;/tt&amp;gt;:object with detailed information about title of the secondary Y-axis (supports &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The objects for formatting the axes title are based on the &amp;lt;idl&amp;gt;com.sun.star.chart.ChartTitle&amp;lt;/idl&amp;gt; service, which is also used for chart titles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a line chart. The color for the rear wall of the chart is set to white. Both the X and Y-axes have a gray grid for visual orientation. The minimum value of the Y-axis is fixed to 0 and the maximum value is fixed to 100 so that the resolution of the chart is retained even if the values are changed. The X-axis points in reverse direction from right to left. And a title for the X-axis was added.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.LineDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Wall.FillColor = RGB(255, 255, 255)&lt;br /&gt;
Chart.Diagram.HasXAxisGrid = True&lt;br /&gt;
Chart.Diagram.XMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.HasYAxisGrid = True&lt;br /&gt;
Chart.Diagram.YMainGrid.LineColor = RGB(192, 192, 192)&lt;br /&gt;
Chart.Diagram.YAxis.Min = 0 &lt;br /&gt;
Chart.Diagram.YAxis.Max = 100&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Chart.Diagram.XAxis.ReverseDirection = true &amp;#039;needs OpenOffice.org 2.4 or newer&lt;br /&gt;
Chart.Diagram.HasXAxisTitle = true&lt;br /&gt;
Chart.Diagram.XAxisTitle.String = &amp;quot;Reversed X Axis Example&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== 3D Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Most charts in {{OOo}} can also be displayed with 3D graphics. The following properties are provided for 3D charts at the &amp;lt;tt&amp;gt;Diagram&amp;lt;/tt&amp;gt; object:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Dim3D (Boolean)&amp;lt;/tt&amp;gt;:activates 3D display&lt;br /&gt;
;&amp;lt;tt&amp;gt;Deep (Boolean)&amp;lt;/tt&amp;gt;:the series will be arranged behind each other in z-direction&lt;br /&gt;
;&amp;lt;tt&amp;gt;RightAngledAxes (Boolean)&amp;lt;/tt&amp;gt;:activates a 3D display mode where X- and Y-axes form a right angle within the projection. (available since OpenOffice.org 2.3)&lt;br /&gt;
;&amp;lt;tt&amp;gt;D3DScenePerspective (Enum)&amp;lt;/tt&amp;gt;:defines whether the 3D objects are to be drawn in perspective or parallel projection.(values according to &amp;lt;idl&amp;gt;com.sun.star.drawing.ProjectionMode&amp;lt;/idl&amp;gt;)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Perspective (Long)&amp;lt;/tt&amp;gt;:Perspective of 3D charts ( [0,100] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationHorizontal (Long)&amp;lt;/tt&amp;gt;:Horizontal rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
;&amp;lt;tt&amp;gt;RotationVertical (Long)&amp;lt;/tt&amp;gt;:Vertical rotation of 3D charts in degrees ( [-180,180] ) (available since OpenOffice.org 2.4.1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example creates a 3D area chart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Doc As Object&lt;br /&gt;
Dim Charts As Object&lt;br /&gt;
Dim Chart as Object&lt;br /&gt;
Dim Rect As New com.sun.star.awt.Rectangle&lt;br /&gt;
Dim RangeAddress(0) As New com.sun.star.table.CellRangeAddress&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Doc = StarDesktop.CurrentComponent&lt;br /&gt;
Charts = Doc.Sheets(0).Charts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Rect.X = 8000&lt;br /&gt;
Rect.Y = 1000&lt;br /&gt;
Rect.Width = 10000&lt;br /&gt;
Rect.Height = 7000&lt;br /&gt;
RangeAddress(0).Sheet = 0&lt;br /&gt;
RangeAddress(0).StartColumn = 0 &lt;br /&gt;
RangeAddress(0).StartRow = 0&lt;br /&gt;
RangeAddress(0).EndColumn = 2&lt;br /&gt;
RangeAddress(0).EndRow = 12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Charts.addNewByName(&amp;quot;MyChart&amp;quot;, Rect, RangeAddress(), True, True)&lt;br /&gt;
Chart = Charts.getByName(&amp;quot;MyChart&amp;quot;).embeddedObject&lt;br /&gt;
Chart.Diagram = Chart.createInstance(&amp;quot;com.sun.star.chart.AreaDiagram&amp;quot;)&lt;br /&gt;
Chart.Diagram.Dim3D = true&lt;br /&gt;
Chart.Diagram.Deep = true&lt;br /&gt;
Chart.Diagram.RightAngledAxes = true &amp;#039;needs OpenOffice.org 2.3 or newer&lt;br /&gt;
Chart.Diagram.D3DScenePerspective = com.sun.star.drawing.ProjectionMode.PERSPECTIVE&lt;br /&gt;
Chart.Diagram.Perspective = 100 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationHorizontal = 60 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
Chart.Diagram.RotationVertical = 30 &amp;#039;needs OpenOffice.org 2.4.1 or newer&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Stacked Charts ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Stacked charts are charts that are arranged with several individual values on top of one another to produce a total value. This view shows not only the individual values, but also an overview of all the values.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In {{OOo}}, various types of charts can be displayed in a stacked form. All of these charts support the &amp;lt;idl&amp;gt;com.sun.star.chart.StackableDiagram&amp;lt;/idl&amp;gt; service, which in turn provides the following properties:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Stacked (Boolean)&amp;lt;/tt&amp;gt;:activates the stacked viewing mode&lt;br /&gt;
;&amp;lt;tt&amp;gt;Percent (Boolean)&amp;lt;/tt&amp;gt;:rather than absolute values, displays their percentage distribution&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Structure of Charts}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
	<entry>
		<id>https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139385</id>
		<title>G11NWIKITEST/MediaWiki source Documentation BASIC/Documentation/BASIC Guide/Interface Overview</title>
		<link rel="alternate" type="text/html" href="https://wiki.openoffice.org/w/index.php?title=G11NWIKITEST/MediaWiki_source_Documentation_BASIC/Documentation/BASIC_Guide/Interface_Overview&amp;diff=139385"/>
		<updated>2009-09-07T13:09:18Z</updated>

		<summary type="html">&lt;p&gt;G11nAutomation: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Documentation/BASICGuideTOC/v2&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=Documentation/BASIC Guide/UNO Tools&lt;br /&gt;
|NextPage=Documentation/BASIC Guide/Documents&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
{{DISPLAYTITLE:Overview of Some Central Interfaces}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Some interfaces of {{OOo}} can be found in many parts of the {{OOo}} API. They define sets of methods for abstract tasks which can be applied to various problems. Here, you will find an overview of the most common of these interfaces. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The origin of the objects is explained at a later point in this guide. At this point, only some of the abstract aspects of objects, for which the {{OOo}} API provides some central interfaces, are discussed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating Context-Dependent Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The {{OOo}} API provides two options for creating objects. One can be found in the &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; function mentioned at the start of this chapter. &amp;lt;tt&amp;gt;createUnoService&amp;lt;/tt&amp;gt; creates an object which can be used universally. Such objects and services are also known as context-independent services. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to context-independent services, there are also context-dependent services whose objects are only useful when used in conjunction with another object. A drawing object for a spreadsheet document, for example, can therefore only exist in conjunction with this one document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.lang.XMultiServiceFactory&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Context-dependent objects are usually created by means of an object method, on which the object depends. The &amp;lt;tt&amp;gt;createInstance&amp;lt;/tt&amp;gt; method, which is defined in the &amp;lt;tt&amp;gt;XMultiServiceFactory&amp;lt;/tt&amp;gt; interface, is used in particular in the document objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The drawing object can, for example, be created as follows using a spreadsheet object: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim RectangleShape As Object&lt;br /&gt;
RectangleShape = _&lt;br /&gt;
  Spreadsheet.createInstance(&amp;quot;com.sun.star.drawing.RectangleShape&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A paragraph template in a text document is created in the same way: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Style as Object&lt;br /&gt;
Style = Textdocument.createInstance(&amp;quot;com.sun.star.style.ParagraphStyle&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Named Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interfaces are used in objects that contain subordinate objects, which can be addressed using a natural language name. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While &amp;lt;tt&amp;gt;XNamedAccess&amp;lt;/tt&amp;gt; permits access to the individual objects, &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; takes on the insertion, modification and deletion of elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example of the use of &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; is provided by the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object of a spreadsheet. It combines all the pages within the spreadsheet. The individual pages are accessed from the &amp;lt;tt&amp;gt;sheets&amp;lt;/tt&amp;gt; object, by using the &amp;lt;tt&amp;gt;getByName&amp;lt;/tt&amp;gt; method from &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt;: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
Sheet = Sheets.getByName(&amp;quot;Sheet1&amp;quot;)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;getElementNames&amp;lt;/tt&amp;gt; method provides an overview of the names of all elements. As a result, it returns a data field containing the names. The following example shows how all element names of a spreadsheet can thereby be determined and displayed in a loop: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim SheetNames&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
SheetNames = Sheets.getElementNames&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I=LBound(SheetNames) To UBound(SheetNames)&lt;br /&gt;
  MsgBox SheetNames(I)&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;hasByName&amp;lt;/tt&amp;gt; method of the &amp;lt;tt&amp;gt;XNameAccess&amp;lt;/tt&amp;gt; interface reveals whether a subordinate object with a particular name exists within the basic object. The following example therefore displays a message that informs the user whether the &amp;lt;tt&amp;gt;Spreadsheet&amp;lt;/tt&amp;gt; object contains a page of the name &amp;lt;tt&amp;gt;Sheet1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
If Sheets.HasByName(&amp;quot;Sheet1&amp;quot;) Then&lt;br /&gt;
  MsgBox &amp;quot; Sheet1 available&amp;quot;&lt;br /&gt;
Else&lt;br /&gt;
  MsgBox &amp;quot;Sheet1 not available&amp;quot;&lt;br /&gt;
End If&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XNameContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt; interface takes on the insertion, deletion and modification of subordinate elements in a basic object. The functions responsible are &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is a practical example of this. It calls a text document, which contains a &amp;lt;tt&amp;gt;StyleFamilies&amp;lt;/tt&amp;gt; object and uses this to in turn make the paragraph templates (ParagraphStyles) of the document available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim StyleFamilies As Object&lt;br /&gt;
Dim ParagraphStyles As Object&lt;br /&gt;
Dim NewStyle As Object   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
StyleFamilies = Textdoc.StyleFamilies&lt;br /&gt;
ParagraphStyles = StyleFamilies.getByName(&amp;quot;ParagraphStyles&amp;quot;)&lt;br /&gt;
ParagraphStyles.insertByName(&amp;quot;NewStyle&amp;quot;, NewStyle)      &lt;br /&gt;
ParagraphStyles.replaceByName(&amp;quot;ChangingStyle&amp;quot;, NewStyle)   &lt;br /&gt;
ParagraphStyles.removeByName(&amp;quot;OldStyle&amp;quot;)            &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;insertByName&amp;lt;/tt&amp;gt; line inserts the &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt; style under the name of the same name in the &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt; object. The &amp;lt;tt&amp;gt;replaceByName&amp;lt;/tt&amp;gt; line changes the object behind &amp;lt;tt&amp;gt;ChangingStyle&amp;lt;/tt&amp;gt; into &amp;lt;tt&amp;gt;NewStyle&amp;lt;/tt&amp;gt;. Finally, the &amp;lt;tt&amp;gt;removeByName&amp;lt;/tt&amp;gt; call removes the object behind &amp;lt;tt&amp;gt;OldStyle&amp;lt;/tt&amp;gt; from &amp;lt;tt&amp;gt;ParagraphStyles&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Index-Based Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interfaces are used in objects which contain subordinate objects and which can be addressed using an index. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the methods for accessing individual objects. &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; provides methods for inserting and removing elements.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexAccess&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;XIndexAccess&amp;lt;/tt&amp;gt; provides the &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; methods for calling the subordinate objects. &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; provides an object with a particular index. &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns how many objects are available. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim Sheets As Object&lt;br /&gt;
Dim Sheet As Object&lt;br /&gt;
Dim I As Integer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sheets = Spreadsheet.Sheets&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For I = 0 to Sheets.getCount() - 1&lt;br /&gt;
  Sheet = Sheets.getByIndex(I)&lt;br /&gt;
  &amp;#039; Editing sheet&lt;br /&gt;
Next I&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example shows a loop that runs through all sheet elements one after another and saves a reference to each in the &amp;lt;tt&amp;gt;Sheet&amp;lt;/tt&amp;gt; object variable. When working with the indexes, note that &amp;lt;tt&amp;gt;getCount&amp;lt;/tt&amp;gt; returns the number of elements. The elements in &amp;lt;tt&amp;gt;getByIndex&amp;lt;/tt&amp;gt; however are numbered beginning with 0. The counting variable of the loop therefore runs from 0 to &amp;lt;tt&amp;gt;getCount()-1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XIndexContainer&amp;lt;/tt&amp;gt; Interface ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;XIndexContainer&amp;lt;/tt&amp;gt; interface provides the &amp;lt;tt&amp;gt;insertByIndex&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;removeByIndex&amp;lt;/tt&amp;gt; functions. The parameters are structured in the same way as the corresponding functions in &amp;lt;tt&amp;gt;XNameContainer&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Iterative Access to Subordinate Objects ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In some instances, an object may contain a list of subordinate objects that cannot be addressed by either a name or an index. In these situations, the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; interfaces are appropriate. They provide a mechanism through which all subordinate elements of an objects can be passed, step by step, without having to use direct addressing. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;com.sun.star.container.XEnumeration&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;XenumerationAccess&amp;lt;/tt&amp;gt; Interfaces ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The basic object must provide the &amp;lt;tt&amp;gt;XEnumerationAccess&amp;lt;/tt&amp;gt; interface, which contains only a &amp;lt;tt&amp;gt;createEnumeration&amp;lt;/tt&amp;gt; method. This returns an auxiliary object, which in turn provides the &amp;lt;tt&amp;gt;XEnumeration&amp;lt;/tt&amp;gt; interface with the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;nextElement&amp;lt;/tt&amp;gt; methods. Through these, you then have access to the subordinate objects. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following example steps through all the paragraphs of a text:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Dim ParagraphEnumeration As Object&lt;br /&gt;
Dim Paragraph As Object&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ParagraphEnumeration = Textdoc.Text.createEnumeration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
While ParagraphEnumeration.hasMoreElements()&lt;br /&gt;
  Paragraph = ParagraphEnumeration.nextElement()&lt;br /&gt;
Wend&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example first creates a &amp;lt;tt&amp;gt;ParagraphEnumeration&amp;lt;/tt&amp;gt; auxiliary object. This gradually returns the individual paragraphs of the text in a loop. The loop is terminated as soon as the &amp;lt;tt&amp;gt;hasMoreElements&amp;lt;/tt&amp;gt; method returns the &amp;lt;tt&amp;gt;False&amp;lt;/tt&amp;gt; value, signaling that the end of the text has been reached.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Interface Overview}}&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}[[Category:G11n Wiki Translation Testing]]&lt;/div&gt;</summary>
		<author><name>G11nAutomation</name></author>
	</entry>
</feed>