Difference between revisions of "Documentation/BASIC Guide/Presentations"
m |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
{{DISPLAYTITLE:Presentations}} | {{DISPLAYTITLE:Presentations}} | ||
− | {{ | + | {{AOo}} 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. |
== Working With Presentations == | == Working With Presentations == | ||
Line 14: | Line 14: | ||
In addition to the drawing functions that are provided by the <tt>Presentation</tt> 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 <tt>start</tt> method that can start presentations. | In addition to the drawing functions that are provided by the <tt>Presentation</tt> 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 <tt>start</tt> method that can start presentations. | ||
− | < | + | <syntaxhighlight lang="oobas"> |
Dim Doc As Object | Dim Doc As Object | ||
Dim Presentation As Object | Dim Presentation As Object | ||
− | Doc = | + | Doc = ThisComponent |
Presentation = Doc.Presentation | Presentation = Doc.Presentation | ||
Presentation.start() | Presentation.start() | ||
− | </ | + | </syntaxhighlight> |
The code used in this example creates a <tt>Doc</tt> object that references the current presentation document and establishes the associated presentation object. The <tt>start()</tt> method of the object is used to start the example and run the screen presentation. | The code used in this example creates a <tt>Doc</tt> object that references the current presentation document and establishes the associated presentation object. The <tt>start()</tt> method of the object is used to start the example and run the screen presentation. |
Latest revision as of 13:59, 30 January 2021
- The Structure of Drawings
- Editing Drawing Objects
- Presentations
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). |