Difference between revisions of "Documentation/BASIC Guide/Presentations"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Working With Presentations: ThisComponent)
(6 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
}}
 
}}
 
{{DISPLAYTITLE:Presentations}}
 
{{DISPLAYTITLE:Presentations}}
 
+
 
{{OOo}} presentations are based on drawing documents. Each page in the presentation is a slide. You can access slides in the same way as a standard drawing is accessed through the <tt>DrawPages</tt> list of the document object. The <idl>com.sun.star.presentation.PresentationDocument</idl> service, responsible for presentation documents, also provides the complete <idl>com.sun.star.drawing.DrawingDocument</idl> service.
 
{{OOo}} presentations are based on drawing documents. Each page in the presentation is a slide. You can access slides in the same way as a standard drawing is accessed through the <tt>DrawPages</tt> list of the document object. The <idl>com.sun.star.presentation.PresentationDocument</idl> service, responsible for presentation documents, also provides the complete <idl>com.sun.star.drawing.DrawingDocument</idl> service.
  
Line 18: Line 18:
 
Dim Presentation As Object
 
Dim Presentation As Object
  
Doc = StarDesktop.CurrentComponent
+
Doc = ThisComponent
 
Presentation = Doc.Presentation
 
Presentation = Doc.Presentation
 
Presentation.start()
 
Presentation.start()
Line 45: Line 45:
 
;<tt>UsePn (Boolean)</tt>:displays the pointer during the presentation
 
;<tt>UsePn (Boolean)</tt>:displays the pointer during the presentation
  
 +
 +
{{InterWiki Languages BasicGuide|articletitle=Documentation/BASIC Guide/Presentations}}
 
{{PDL1}}
 
{{PDL1}}

Revision as of 09:17, 1 November 2009


Apache OpenOffice presentations are based on drawing documents. Each page in the presentation is a slide. You can access slides in the same way as a standard drawing is accessed through the DrawPages list of the document object. The com.sun.star.presentation.PresentationDocument service, responsible for presentation documents, also provides the complete com.sun.star.drawing.DrawingDocument service.

Working With Presentations

In addition to the drawing functions that are provided by the Presentation property, the presentation document has a presentation object that provides access to the main properties and control mechanisms for presentations. For example, this object provides a start method that can start presentations.

Dim Doc As Object
Dim Presentation As Object
 
Doc = ThisComponent
Presentation = Doc.Presentation
Presentation.start()

The code used in this example creates a Doc object that references the current presentation document and establishes the associated presentation object. The start() method of the object is used to start the example and run the screen presentation.

The following methods are provided as presentation objects:

start
starts the presentation
end
ends the presentation
rehearseTimings
starts the presentation from the beginning and establishes its runtime

The following properties are also available:

AllowAnimations (Boolean)
runs animations in the presentation
CustomShow (String)
allows you to specify the name of the presentation so that you can reference the name in the presentation
FirstPage (String)
name of slide that you want to start the presentation with
IsAlwaysOnTop (Boolean)
always displays the presentation window as the first window on the screen
IsAutomatic (Boolean)
automatically runs through the presentation
IsEndless (Boolean)
restarts the presentation from the beginning once it ends
IsFullScreen (Boolean)
automatically starts the presentation in full screen mode
IsMouseVisible (Boolean)
displays the mouse during the presentation
Pause (long)
the amount of time that a blank screen is displayed at the end of the presentation
StartWithNavigator (Boolean)
displays the navigator window when the presentation starts
UsePn (Boolean)
displays the pointer during the presentation


Content on this page is licensed under the Public Documentation License (PDL).
Personal tools