1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_presentation_XSlideShowController_idl__
29 #define __com_sun_star_presentation_XSlideShowController_idl__
31 #include
<com
/sun
/star
/drawing
/XDrawPage.idl
>
32 #include
<com
/sun
/star
/container
/XIndexAccess.idl
>
33 #include
<com
/sun
/star
/lang
/XComponent.idl
>
34 #include
<com
/sun
/star
/presentation
/XSlideShow.idl
>
36 //=============================================================================
38 module com
{ module sun
{ module star
{ module presentation
{
40 //=============================================================================
42 /** interface to control a running slide show.
47 interface XSlideShowController
49 //-------------------------------------------------------------------------
51 /** returns true if the slide show is still running.
52 If this returns false, this component is already disposed.
53 You can start a new slide show and get a new instance
54 of <type>XSlideShowController</type> from <type>XPresentation2</type>
58 //-------------------------------------------------------------------------
61 the number of slides in this slide show.
67 //-------------------------------------------------------------------------
69 /** gives access to the slides that will be shown in this slide show.
71 <p>Slides are returned in the order they will be displayed in the
72 presentation which can be different than the orders of slides in
73 the document. Not all slides must be present and each slide can
74 be used more than once.
77 the slide at the specified index.
80 specifies the position in the list of slides that are displayed
81 in this slide show. The first index is 0.
83 @throws com::sun::star::lang::IndexOutOfBoundException
84 if the index is not valid.
87 ::com
::sun
::star
::drawing
::XDrawPage getSlideByIndex
( [in] long Index
)
88 raises
( com
::sun
::star
::lang
::IndexOutOfBoundsException
);
90 //-------------------------------------------------------------------------
92 /** adds a listener that receives events while the slide show is running. */
93 void addSlideShowListener
( [in] XSlideShowListener Listener
);
95 //-------------------------------------------------------------------------
97 /** removes a listener. */
98 void removeSlideShowListener
( [in] XSlideShowListener Listener
);
100 //-------------------------------------------------------------------------
102 /** start next effects that wait on a generic trigger.
103 <p>If no generic triggers are waiting the next
104 slide will be displayed.
106 void gotoNextEffect
();
108 //-------------------------------------------------------------------------
110 /** undo the last effects that where triggered by a generic trigger.
111 <p>If there is no previous effect that can be undone then the
112 previous slide will be displayed.
114 void gotoPreviousEffect
();
116 //-------------------------------------------------------------------------
118 /** goto and display first slide */
119 void gotoFirstSlide
();
121 //-------------------------------------------------------------------------
123 /** goto and display next slide.
124 <p>Remaining effects on the current slide will be skipped.*/
125 void gotoNextSlide
();
127 //-------------------------------------------------------------------------
129 /** goto and display previous slide.
130 <p>Remaining effects on the current slide will be skipped.*/
131 void gotoPreviousSlide
();
133 //-------------------------------------------------------------------------
135 /** goto and display last slide.
136 <p>Remaining effects on the current slide will be skipped.*/
137 void gotoLastSlide
();
139 //-------------------------------------------------------------------------
141 /** goto the given textual bookmark */
142 void gotoBookmark
( [in] string Bookmark
);
144 //-------------------------------------------------------------------------
146 /** jumps to the given slide.
147 <p>The slide can also be a slide that would normally not be shown during
148 the current slide show.
150 @throws com::sun::star::lang::IllegalArgumentException
151 if the given page is not a valid slide of the document for
152 which this slide show is started. Also not allowed are master,
153 notes and handout pages.
155 void gotoSlide
( [in] com
::sun
::star
::drawing
::XDrawPage Page
)
156 raises
( com
::sun
::star
::lang
::IllegalArgumentException
);
158 //-------------------------------------------------------------------------
160 /** jumps to the slide at the given index.
162 void gotoSlideIndex
( [in] long Index
);
164 //-------------------------------------------------------------------------
166 /** stop all currently played sounds */
169 //-------------------------------------------------------------------------
171 /** pauses the slide show. All effects are paused.
172 <p>The slide show continues on next user input or if
173 <member>resume</member> is called.
177 //-------------------------------------------------------------------------
179 /** resumes a paused slide show.
183 //-------------------------------------------------------------------------
185 /** returns <TRUE/> if the slide show is currently paused.
187 @see <member>pause</member>
188 @see <member>resume</member>
192 //-------------------------------------------------------------------------
194 /** pauses the slide show and blanks the screen in the given color.
195 <p>Change attribute <member>Pause</member> to false to unpause
198 void blankScreen
( [in] long Color
);
200 //-------------------------------------------------------------------------
202 /** activates the user interface of this slide show.
204 @see <member>deactivate()</member>
205 @see <member>isActive()</member>
209 //-------------------------------------------------------------------------
210 /** can be called to deactivate the user interface of this slide show.
213 @see <member>activate()</member>
214 @see <member>isActive()</member>
218 //-------------------------------------------------------------------------
220 /** determines if the slide show is active.
223 <TRUE/> for UI active slide show
229 //-------------------------------------------------------------------------
231 /** returns slide that is currently displayed */
232 com
::sun
::star
::drawing
::XDrawPage getCurrentSlide
();
234 //-------------------------------------------------------------------------
236 /** returns the index of the current slide. */
237 long getCurrentSlideIndex
();
239 //-------------------------------------------------------------------------
241 /** the index for the slide that is displayed next. */
242 long getNextSlideIndex
();
244 //-------------------------------------------------------------------------
246 /** returns <TRUE/> if the slide show was started to run endlessly.
250 //-------------------------------------------------------------------------
252 /** Returns <TRUE/> if the slide show was started in full-screen mode.
254 boolean isFullScreen
();
256 //-------------------------------------------------------------------------
258 /** If this attribute is set to <TRUE/>, the window of the slide show is
259 always on top of all other windows.
261 [attribute
] boolean AlwaysOnTop
;
263 //-------------------------------------------------------------------------
265 /** If this attribute is <TRUE/>, the mouse is visible during the
268 [attribute
] boolean MouseVisible
;
270 //-------------------------------------------------------------------------
272 /** If this is <TRUE/>, a pen is shown during presentation.
274 <p>You can draw on the presentation with this pen.</p>
276 [attribute
] boolean UsePen
;
278 //-------------------------------------------------------------------------
280 /** This attribute changes the color of the pen. */
281 [attribute
] long PenColor
;
283 //-------------------------------------------------------------------------
285 /** returns the actual <type>XSlideShow</type> instance that runs the
287 <br>Normally all navigation should be done using this controller and
288 not the <type>XSlideShow</type> itself. */
289 XSlideShow getSlideShow
();
291 //-------------------------------------------------------------------------
294 //=============================================================================
300 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */