OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Properties and Methods 67<br />
Real Properties and Imitated Properties<br />
Most of the properties of an object in <strong>OpenOffice</strong>.<strong>org</strong> Basic are defined as such in the UNO<br />
description of the service. In addition to these "real" properties, there are also properties in<br />
<strong>OpenOffice</strong>.<strong>org</strong> Basic which consist of two methods at the UNO level. One of these is used<br />
to query the value of the property and the other is issued to set it (get and set methods).<br />
The property has been virtually imitated from two methods. Character objects in UNO, for<br />
example, provide the getPosition and setPosition methods through which the associated key<br />
point can be called up and changed. The <strong>OpenOffice</strong>.<strong>org</strong> Basic programmer can access the<br />
values through the Position property. Regardless of this, the original methods are also<br />
available (in our example, getPosition and setPosition).<br />
Methods<br />
Methods can be understood as functions that relate directly to an object and through which<br />
this object is called. The preceding Document object could, for example, provide a Save<br />
method, which can be called as follows:<br />
Document.Save()<br />
Methods, just like functions, may contain parameters and return values. The syntax of such<br />
method calls is oriented towards classic functions. The following call also specifies the True<br />
parameter for the document object when requesting the Save method.<br />
Ok = Document.Save(True)<br />
Once the method has been completed, Save saves a return value in the Ok variable.<br />
Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />
<strong>Guide</strong>/ Properties_ and_ Methods_ (API)&oldid=96864<br />
Principal Authors: Fpe, Ccornell<br />
Modules, Services and Interfaces<br />
<strong>OpenOffice</strong>.<strong>org</strong> provides hundreds of services. To provide an overview of these services,<br />
they have been combined into modules. The modules are of no other functional importance<br />
for <strong>OpenOffice</strong>.<strong>org</strong> Basic programmers. When specifying a service name, it is only the<br />
module name which is of any importance because this must be also listed in the name. The<br />
complete name of a service consists of the com.sun.star expression, which specifies that it<br />
is a <strong>OpenOffice</strong>.<strong>org</strong> service, followed by the module name, such as frame, and finally the<br />
actual service name, such as Desktop. The complete name in the named example would be:<br />
com.sun.star.frame.Desktop