OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Presentations<br />
Presentations<br />
<strong>OpenOffice</strong>.<strong>org</strong> presentations are based on drawing documents. Each page in the presentation is a slide. You can<br />
access slides in the same way as a standard drawing is accessed through the DrawPages list of the document<br />
object. The com.sun.star.presentation.PresentationDocument service, responsible for presentation documents,<br />
also provides the complete com.sun.star.drawing.DrawingDocument service.<br />
Working With Presentations<br />
In addition to the drawing functions that are provided by the Presentation property, the presentation<br />
document has a presentation object that provides access to the main properties and control mechanisms for<br />
presentations. For example, this object provides a start method that can start presentations.<br />
Dim Doc As Object<br />
Dim Presentation As Object<br />
Doc = ThisComponent<br />
Presentation = Doc.Presentation<br />
Presentation.start()<br />
The code used in this example creates a Doc object that references the current presentation document and<br />
establishes the associated presentation object. The start() method of the object is used to start the example and<br />
run the screen presentation.<br />
The following methods are provided as presentation objects:<br />
start<br />
end<br />
starts the presentation<br />
ends the presentation<br />
rehearseTimings<br />
starts the presentation from the beginning and establishes its runtime<br />
The following properties are also available:<br />
AllowAnimations (Boolean)<br />
runs animations in the presentation<br />
CustomShow (String)<br />
allows you to specify the name of the presentation so that you can reference the name in the presentation<br />
FirstPage (String)<br />
name of slide that you want to start the presentation with<br />
IsAlwaysOnTop (Boolean)<br />
always displays the presentation window as the first window on the screen<br />
IsAutomatic (Boolean)<br />
automatically runs through the presentation<br />
IsEndless (Boolean)<br />
restarts the presentation from the beginning once it ends<br />
IsFullScreen (Boolean)<br />
automatically starts the presentation in full screen mode<br />
IsMouseVisible (Boolean)<br />
displays the mouse during the presentation<br />
128 <strong>OpenOffice</strong>.<strong>org</strong> 3.2 <strong>BASIC</strong> <strong>Guide</strong> · March 2010